1 line
No EOL
2.3 KiB
Text
1 line
No EOL
2.3 KiB
Text
{"version":3,"sources":["../../../src/components/VMessages/VMessages.ts"],"names":[],"mappings":";;;;;;;AACA;;AAGA;;AACA;;AAKA;;;;AAVA;AAGA;;AASA;gBACe,qBAAO,kBAAP,EAAkB,kBAAlB,EAA6B,MAA7B,CAAoC;AACjD,EAAA,IAAI,EAAE,YAD2C;AAGjD,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;AACL,MAAA,IAAI,EAAE,KADD;AAEL,MAAA,OAAO,EAAE;AAAA,eAAO,EAAP;AAAA;AAFJ;AADF,GAH0C;AAUjD,EAAA,OAAO,EAAE;AACP,IAAA,WADO,yBACI;AACT,aAAO,KAAK,cAAL,CAAoB,kBAApB,EAAwC;AAC7C,QAAA,WAAW,EAAE,qBADgC;AAE7C,QAAA,KAAK,EAAE;AACL,UAAA,IAAI,EAAE,oBADD;AAEL,UAAA,GAAG,EAAE;AAFA;AAFsC,OAAxC,EAMJ,KAAK,KAAL,CAAW,GAAX,CAAe,KAAK,UAApB,CANI,CAAP;AAOD,KATM;AAUP,IAAA,UAVO,sBAUK,OAVL,EAUsB,GAVtB,EAUiC;AACtC,aAAO,KAAK,cAAL,CAAoB,KAApB,EAA2B;AAChC,QAAA,WAAW,EAAE,qBADmB;AAEhC,QAAA,GAAG,EAAH,GAFgC;AAGhC,QAAA,QAAQ,EAAE;AACR,UAAA,SAAS,EAAE;AADH;AAHsB,OAA3B,CAAP;AAOD;AAlBM,GAVwC;AA+BjD,EAAA,MA/BiD,kBA+BzC,CA/ByC,EA+BxC;AACP,WAAO,CAAC,CAAC,KAAD,EAAQ,KAAK,YAAL,CAAkB,KAAK,KAAvB,EAA8B;AAC5C,MAAA,WAAW,EAAE,YAD+B;AAE5C,MAAA,KAAK,EAAE,KAAK;AAFgC,KAA9B,CAAR,EAGJ,CAAC,KAAK,WAAL,EAAD,CAHI,CAAR;AAID;AApCgD,CAApC,C","sourcesContent":["// Styles\nimport './VMessages.sass'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n// Types\nimport { VNode } from 'vue'\nimport { PropValidator } from 'vue/types/options'\nimport mixins from '../../util/mixins'\n\n/* @vue/component */\nexport default mixins(Colorable, Themeable).extend({\n name: 'v-messages',\n\n props: {\n value: {\n type: Array,\n default: () => ([]),\n } as PropValidator<string[]>,\n },\n\n methods: {\n genChildren () {\n return this.$createElement('transition-group', {\n staticClass: 'v-messages__wrapper',\n attrs: {\n name: 'message-transition',\n tag: 'div',\n },\n }, this.value.map(this.genMessage))\n },\n genMessage (message: string, key: number) {\n return this.$createElement('div', {\n staticClass: 'v-messages__message',\n key,\n domProps: {\n innerHTML: message,\n },\n })\n },\n },\n\n render (h): VNode {\n return h('div', this.setTextColor(this.color, {\n staticClass: 'v-messages',\n class: this.themeClasses,\n }), [this.genChildren()])\n },\n})\n"],"sourceRoot":"","file":"VMessages.js"} |