dpzvc-ui 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dpzvc.js CHANGED
@@ -5508,7 +5508,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `
5508
5508
  justify-content: center;
5509
5509
  flex-direction: column;
5510
5510
  }
5511
- `, "",{"version":3,"sources":["webpack://./src/components/checkBox/checkbox-group.vue"],"names":[],"mappings":";AA4EA;IACA,aAAA;IACA,uBAAA;IACA,sBAAA;AACA","sourcesContent":["<template>\n <div :class=\"['dpzvc-checkBoxGroup',vertical?'dpzvc-checkBoxGroup-vertical':'']\" >\n <slot></slot>\n </div>\n</template>\n\n<script>\n\n import {findComponentsDownward} from '../../utils/util'\n import Emitter from '../../mixin/emitter'\n export default {\n name:'checkBoxGroup',\n mixins:[Emitter],\n props:{\n value:{\n type:Array,\n default:()=>[]\n },\n single:{\n type:Boolean,\n default:false\n },\n vertical:{\n type:Boolean,\n default:false\n }\n\n },\n data(){\n return {\n currentValue:this.value,\n childrens:[]\n }\n },\n methods:{\n change(data){\n console.log(data)\n this.currentValue = data;\n this.$emit('input', data);\n this.$emit('on-change',data);\n this.dispatch('on-form-change',data)\n },\n updateModel(){\n let model = this.value;\n this.childrens = findComponentsDownward(this,'checkBox');\n if(this.childrens) {\n this.childrens.forEach((child)=>{\n\n child.model = model;\n child.currentValue = model.indexOf(child.label) >= 0;\n child.isGroup = true;\n })\n }\n\n }\n },\n mounted(){\n\n this.updateModel()\n },\n watch:{\n value(){\n this.updateModel()\n }\n }\n }\n</script>\n\n\n<style scoped>\n .dpzvc-checkBoxGroup-vertical {\n display: flex;\n justify-content: center;\n flex-direction: column;\n }\n</style>"],"sourceRoot":""}]);
5511
+ `, "",{"version":3,"sources":["webpack://./checkbox-group.vue"],"names":[],"mappings":";AA4EA;IACA,aAAA;IACA,uBAAA;IACA,sBAAA;AACA","sourcesContent":["<template>\n <div :class=\"['dpzvc-checkBoxGroup',vertical?'dpzvc-checkBoxGroup-vertical':'']\" >\n <slot></slot>\n </div>\n</template>\n\n<script>\n\n import {findComponentsDownward} from '../../utils/util'\n import Emitter from '../../mixin/emitter'\n export default {\n name:'checkBoxGroup',\n mixins:[Emitter],\n props:{\n value:{\n type:Array,\n default:()=>[]\n },\n single:{\n type:Boolean,\n default:false\n },\n vertical:{\n type:Boolean,\n default:false\n }\n\n },\n data(){\n return {\n currentValue:this.value,\n childrens:[]\n }\n },\n methods:{\n change(data){\n console.log(data)\n this.currentValue = data;\n this.$emit('input', data);\n this.$emit('on-change',data);\n this.dispatch('on-form-change',data)\n },\n updateModel(){\n let model = this.value;\n this.childrens = findComponentsDownward(this,'checkBox');\n if(this.childrens) {\n this.childrens.forEach((child)=>{\n\n child.model = model;\n child.currentValue = model.indexOf(child.label) >= 0;\n child.isGroup = true;\n })\n }\n\n }\n },\n mounted(){\n\n this.updateModel()\n },\n watch:{\n value(){\n this.updateModel()\n }\n }\n }\n</script>\n\n\n<style scoped>\n .dpzvc-checkBoxGroup-vertical {\n display: flex;\n justify-content: center;\n flex-direction: column;\n }\n</style>"],"sourceRoot":""}]);
5512
5512
  // Exports
5513
5513
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
5514
5514