Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
const {
OUTLINE_UPGRADED,
NO_LABEL,
} = MDCnotchedOutlineFoundation.cssClasses;
const adapter = {
addClass: className => {
this.$set(this.outlinedClasses, className, true);
},
removeClass: className => {
this.$delete(this.outlinedClasses, className);
},
setNotchWidthProperty: width =>
this.$set(this.notchStyles, 'width', `${width}px`),
removeNotchWidthProperty: () => this.$delete(this.notchStyles, 'width'),
};
this.foundation = new MDCnotchedOutlineFoundation(adapter);
this.foundation.init();
mounted() {
const {
OUTLINE_UPGRADED,
NO_LABEL,
} = MDCnotchedOutlineFoundation.cssClasses;
const adapter = {
addClass: className => {
this.$set(this.outlinedClasses, className, true);
},
removeClass: className => {
this.$delete(this.outlinedClasses, className);
},
setNotchWidthProperty: width =>
this.$set(this.notchStyles, 'width', `${width}px`),
removeNotchWidthProperty: () => this.$delete(this.notchStyles, 'width'),
};
this.foundation = new MDCnotchedOutlineFoundation(adapter);
this.foundation.init();