This commit is contained in:
darenhsu
2022-07-17 13:16:16 +08:00
parent 84759556ff
commit befd344ab0
28070 changed files with 4008428 additions and 1 deletions
+46
View File
@@ -0,0 +1,46 @@
// Styles
import "../../../src/components/VBtnToggle/VBtnToggle.sass"; // Mixins
import ButtonGroup from '../../mixins/button-group';
import Colorable from '../../mixins/colorable'; // Utilities
import mixins from '../../util/mixins';
/* @vue/component */
export default mixins(ButtonGroup, Colorable).extend({
name: 'v-btn-toggle',
props: {
backgroundColor: String,
borderless: Boolean,
dense: Boolean,
group: Boolean,
rounded: Boolean,
shaped: Boolean,
tile: Boolean
},
computed: {
classes() {
return { ...ButtonGroup.options.computed.classes.call(this),
'v-btn-toggle': true,
'v-btn-toggle--borderless': this.borderless,
'v-btn-toggle--dense': this.dense,
'v-btn-toggle--group': this.group,
'v-btn-toggle--rounded': this.rounded,
'v-btn-toggle--shaped': this.shaped,
'v-btn-toggle--tile': this.tile,
...this.themeClasses
};
}
},
methods: {
genData() {
const data = this.setTextColor(this.color, { ...ButtonGroup.options.methods.genData.call(this)
});
if (this.group) return data;
return this.setBackgroundColor(this.backgroundColor, data);
}
}
});
//# sourceMappingURL=VBtnToggle.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VBtnToggle/VBtnToggle.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,oDAAP,C,CAEA;;AACA,OAAO,WAAP,MAAwB,2BAAxB;AACA,OAAO,SAAP,MAAsB,wBAAtB,C,CAEA;;AACA,OAAO,MAAP,MAAmB,mBAAnB;AAEA;;AACA,eAAe,MAAM,CACnB,WADmB,EAEnB,SAFmB,CAAN,CAGb,MAHa,CAGN;AACP,EAAA,IAAI,EAAE,cADC;AAGP,EAAA,KAAK,EAAE;AACL,IAAA,eAAe,EAAE,MADZ;AAEL,IAAA,UAAU,EAAE,OAFP;AAGL,IAAA,KAAK,EAAE,OAHF;AAIL,IAAA,KAAK,EAAE,OAJF;AAKL,IAAA,OAAO,EAAE,OALJ;AAML,IAAA,MAAM,EAAE,OANH;AAOL,IAAA,IAAI,EAAE;AAPD,GAHA;AAaP,EAAA,QAAQ,EAAE;AACR,IAAA,OAAO,GAAA;AACL,aAAO,EACL,GAAG,WAAW,CAAC,OAAZ,CAAoB,QAApB,CAA6B,OAA7B,CAAqC,IAArC,CAA0C,IAA1C,CADE;AAEL,wBAAgB,IAFX;AAGL,oCAA4B,KAAK,UAH5B;AAIL,+BAAuB,KAAK,KAJvB;AAKL,+BAAuB,KAAK,KALvB;AAML,iCAAyB,KAAK,OANzB;AAOL,gCAAwB,KAAK,MAPxB;AAQL,8BAAsB,KAAK,IARtB;AASL,WAAG,KAAK;AATH,OAAP;AAWD;;AAbO,GAbH;AA6BP,EAAA,OAAO,EAAE;AACP,IAAA,OAAO,GAAA;AACL,YAAM,IAAI,GAAG,KAAK,YAAL,CAAkB,KAAK,KAAvB,EAA8B,EACzC,GAAG,WAAW,CAAC,OAAZ,CAAoB,OAApB,CAA4B,OAA5B,CAAoC,IAApC,CAAyC,IAAzC;AADsC,OAA9B,CAAb;AAIA,UAAI,KAAK,KAAT,EAAgB,OAAO,IAAP;AAEhB,aAAO,KAAK,kBAAL,CAAwB,KAAK,eAA7B,EAA8C,IAA9C,CAAP;AACD;;AATM;AA7BF,CAHM,CAAf","sourcesContent":["// Styles\nimport './VBtnToggle.sass'\n\n// Mixins\nimport ButtonGroup from '../../mixins/button-group'\nimport Colorable from '../../mixins/colorable'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n/* @vue/component */\nexport default mixins(\n ButtonGroup,\n Colorable\n).extend({\n name: 'v-btn-toggle',\n\n props: {\n backgroundColor: String,\n borderless: Boolean,\n dense: Boolean,\n group: Boolean,\n rounded: Boolean,\n shaped: Boolean,\n tile: Boolean,\n },\n\n computed: {\n classes (): object {\n return {\n ...ButtonGroup.options.computed.classes.call(this),\n 'v-btn-toggle': true,\n 'v-btn-toggle--borderless': this.borderless,\n 'v-btn-toggle--dense': this.dense,\n 'v-btn-toggle--group': this.group,\n 'v-btn-toggle--rounded': this.rounded,\n 'v-btn-toggle--shaped': this.shaped,\n 'v-btn-toggle--tile': this.tile,\n ...this.themeClasses,\n }\n },\n },\n\n methods: {\n genData () {\n const data = this.setTextColor(this.color, {\n ...ButtonGroup.options.methods.genData.call(this),\n })\n\n if (this.group) return data\n\n return this.setBackgroundColor(this.backgroundColor, data)\n },\n },\n})\n"],"sourceRoot":"","file":"VBtnToggle.js"}
+4
View File
@@ -0,0 +1,4 @@
import VBtnToggle from './VBtnToggle';
export { VBtnToggle };
export default VBtnToggle;
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/VBtnToggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAP,MAAuB,cAAvB;AAEA,SAAS,UAAT;AACA,eAAe,UAAf","sourcesContent":["import VBtnToggle from './VBtnToggle'\n\nexport { VBtnToggle }\nexport default VBtnToggle\n"],"sourceRoot":"","file":"index.js"}