dpzvc3-ui 3.0.5 → 3.0.6

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/dpzvc3.js CHANGED
@@ -4160,7 +4160,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `
4160
4160
  justify-content: center;
4161
4161
  flex-direction: column;
4162
4162
  }
4163
- `, "",{"version":3,"sources":["webpack://./src/components/radioBox/radiobox-group.vue"],"names":[],"mappings":";AA4DA;EACE,aAAa;EACb,uBAAuB;EACvB,sBAAsB;AACxB","sourcesContent":["<template>\n <div :class=\"classes\">\n <slot />\n </div>\n</template>\n\n<script>\nimport { defineComponent, computed, watch, provide, ref } from 'vue'\n\nconst prefixCls = 'dpzvc3-radioBoxGroup'\n\nexport default defineComponent({\n name: 'RadioBoxGroup',\n props: {\n modelValue: {\n type: [String, Boolean, Number],\n default: ''\n },\n vertical: {\n type: Boolean,\n default: false\n }\n },\n emits: ['update:modelValue', 'on-change', 'on-form-change'],\n setup (props, { emit }) {\n const currentValue = ref(props.modelValue)\n\n // 提供给子组件\n provide('radioBoxGroup', {\n currentValue,\n change: (val) => {\n currentValue.value = val\n emit('update:modelValue', val)\n emit('on-change', val)\n emit('on-form-change', val)\n }\n })\n\n // 监听外部 v-model 改变\n watch(\n () => props.modelValue,\n (val) => {\n currentValue.value = val\n }\n )\n\n const classes = computed(() => [\n prefixCls,\n { [`${prefixCls}-vertical`]: props.vertical }\n ])\n\n return {\n classes,\n currentValue\n }\n }\n})\n</script>\n\n<style scoped>\n.dpzvc3-radioBoxGroup-vertical {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n</style>\n"],"sourceRoot":""}]);
4163
+ `, "",{"version":3,"sources":["webpack://./radiobox-group.vue"],"names":[],"mappings":";AA4DA;EACE,aAAa;EACb,uBAAuB;EACvB,sBAAsB;AACxB","sourcesContent":["<template>\n <div :class=\"classes\">\n <slot />\n </div>\n</template>\n\n<script>\nimport { defineComponent, computed, watch, provide, ref } from 'vue'\n\nconst prefixCls = 'dpzvc3-radioBoxGroup'\n\nexport default defineComponent({\n name: 'RadioBoxGroup',\n props: {\n modelValue: {\n type: [String, Boolean, Number],\n default: ''\n },\n vertical: {\n type: Boolean,\n default: false\n }\n },\n emits: ['update:modelValue', 'on-change', 'on-form-change'],\n setup (props, { emit }) {\n const currentValue = ref(props.modelValue)\n\n // 提供给子组件\n provide('radioBoxGroup', {\n currentValue,\n change: (val) => {\n currentValue.value = val\n emit('update:modelValue', val)\n emit('on-change', val)\n emit('on-form-change', val)\n }\n })\n\n // 监听外部 v-model 改变\n watch(\n () => props.modelValue,\n (val) => {\n currentValue.value = val\n }\n )\n\n const classes = computed(() => [\n prefixCls,\n { [`${prefixCls}-vertical`]: props.vertical }\n ])\n\n return {\n classes,\n currentValue\n }\n }\n})\n</script>\n\n<style scoped>\n.dpzvc3-radioBoxGroup-vertical {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n</style>\n"],"sourceRoot":""}]);
4164
4164
  // Exports
4165
4165
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
4166
4166
 
@@ -4811,7 +4811,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `
4811
4811
  display: flex;
4812
4812
  flex-direction: column;
4813
4813
  }
4814
- `, "",{"version":3,"sources":["webpack://./src/components/checkBox/checkbox-group.vue"],"names":[],"mappings":";AAqEA;EACE,aAAa;EACb,sBAAsB;AACxB","sourcesContent":["<template>\n <div\n :class=\"[\n 'dpzvc3-checkBoxGroup',\n vertical ? 'dpzvc3-checkBoxGroup-vertical' : ''\n ]\"\n >\n <slot />\n </div>\n</template>\n\n<script>\nimport { defineComponent, ref, watch, provide } from 'vue'\n// import Emitter from '../../mixin/emitter'\n\nexport default defineComponent({\n name: 'CheckBoxGroup',\n // mixins: [Emitter],\n\n props: {\n modelValue: {\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 emits: ['update:modelValue', 'on-change'],\n\n setup (props, { emit }) {\n // alert(props)\n const currentValue = ref([...props.modelValue])\n\n /** 对外暴露给 checkbox 的方法 */\n const toggleOption = (label) => {\n let newValue = []\n newValue = [...label]\n // currentValue.value = newValue\n emit('update:modelValue', newValue)\n emit('on-change', newValue)\n }\n\n /** 提供给子 checkbox */\n provide('CheckBoxGroup', {\n currentValue,\n toggleOption\n // single: props.single\n })\n\n watch(\n () => props.modelValue,\n (val) => {\n currentValue.value = [...val]\n }\n )\n\n return {}\n }\n})\n</script>\n\n<style scoped>\n.dpzvc3-checkBoxGroup-vertical {\n display: flex;\n flex-direction: column;\n}\n</style>\n"],"sourceRoot":""}]);
4814
+ `, "",{"version":3,"sources":["webpack://./checkbox-group.vue"],"names":[],"mappings":";AAqEA;EACE,aAAa;EACb,sBAAsB;AACxB","sourcesContent":["<template>\n <div\n :class=\"[\n 'dpzvc3-checkBoxGroup',\n vertical ? 'dpzvc3-checkBoxGroup-vertical' : ''\n ]\"\n >\n <slot />\n </div>\n</template>\n\n<script>\nimport { defineComponent, ref, watch, provide } from 'vue'\n// import Emitter from '../../mixin/emitter'\n\nexport default defineComponent({\n name: 'CheckBoxGroup',\n // mixins: [Emitter],\n\n props: {\n modelValue: {\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 emits: ['update:modelValue', 'on-change'],\n\n setup (props, { emit }) {\n // alert(props)\n const currentValue = ref([...props.modelValue])\n\n /** 对外暴露给 checkbox 的方法 */\n const toggleOption = (label) => {\n let newValue = []\n newValue = [...label]\n // currentValue.value = newValue\n emit('update:modelValue', newValue)\n emit('on-change', newValue)\n }\n\n /** 提供给子 checkbox */\n provide('CheckBoxGroup', {\n currentValue,\n toggleOption\n // single: props.single\n })\n\n watch(\n () => props.modelValue,\n (val) => {\n currentValue.value = [...val]\n }\n )\n\n return {}\n }\n})\n</script>\n\n<style scoped>\n.dpzvc3-checkBoxGroup-vertical {\n display: flex;\n flex-direction: column;\n}\n</style>\n"],"sourceRoot":""}]);
4815
4815
  // Exports
4816
4816
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
4817
4817
 
@@ -13469,10 +13469,10 @@ const upload_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(uploadvue_t
13469
13469
  */
13470
13470
 
13471
13471
  /* harmony default export */ const components_upload = (upload);
13472
- ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[1].rules[7].use[0]!./src/components/action-sheet/actionSheet.vue?vue&type=template&id=3e21ff72
13472
+ ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[1].rules[7].use[0]!./src/components/action-sheet/actionSheet.vue?vue&type=template&id=78a5e8a8
13473
13473
 
13474
- var actionSheetvue_type_template_id_3e21ff72_hoisted_1 = ["onClick"];
13475
- function actionSheetvue_type_template_id_3e21ff72_render(_ctx, _cache, $props, $setup, $data, $options) {
13474
+ var actionSheetvue_type_template_id_78a5e8a8_hoisted_1 = ["onClick"];
13475
+ function actionSheetvue_type_template_id_78a5e8a8_render(_ctx, _cache, $props, $setup, $data, $options) {
13476
13476
  var _component_Popup = (0,external_vue_.resolveComponent)("Popup");
13477
13477
  return (0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", null, [(0,external_vue_.createVNode)(_component_Popup, {
13478
13478
  modelValue: _ctx.visible,
@@ -13496,20 +13496,20 @@ function actionSheetvue_type_template_id_3e21ff72_render(_ctx, _cache, $props, $
13496
13496
  onClick: function onClick($event) {
13497
13497
  return _ctx.emit(item, key);
13498
13498
  }
13499
- }, [(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(item.text), 1 /* TEXT */)], 10 /* CLASS, PROPS */, actionSheetvue_type_template_id_3e21ff72_hoisted_1);
13499
+ }, [(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(item.text), 1 /* TEXT */)], 10 /* CLASS, PROPS */, actionSheetvue_type_template_id_78a5e8a8_hoisted_1);
13500
13500
  }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), _ctx.cancleText ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("a", {
13501
13501
  key: 0,
13502
13502
  href: "javascript:;",
13503
13503
  "class": (0,external_vue_.normalizeClass)(_ctx.cancleClass),
13504
- onClick: _cache[0] || (_cache[0] = function ($event) {
13505
- return _ctx.visible = false;
13504
+ onClick: _cache[0] || (_cache[0] = function () {
13505
+ return _ctx.cancleClick && _ctx.cancleClick.apply(_ctx, arguments);
13506
13506
  })
13507
13507
  }, (0,external_vue_.toDisplayString)(_ctx.cancleText), 3 /* TEXT, CLASS */)) : (0,external_vue_.createCommentVNode)("v-if", true)], 2 /* CLASS */)];
13508
13508
  }),
13509
13509
  _: 1 /* STABLE */
13510
13510
  }, 8 /* PROPS */, ["modelValue"])]);
13511
13511
  }
13512
- ;// ./src/components/action-sheet/actionSheet.vue?vue&type=template&id=3e21ff72
13512
+ ;// ./src/components/action-sheet/actionSheet.vue?vue&type=template&id=78a5e8a8
13513
13513
 
13514
13514
  ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[1].rules[7].use[0]!./src/components/action-sheet/actionSheet.vue?vue&type=script&lang=js
13515
13515
 
@@ -13577,6 +13577,9 @@ var actionSheetvue_type_script_lang_js_prefixCls = 'dpzvc3-actionSheet';
13577
13577
  // visible.value = false
13578
13578
  emit('update:modelValue', false);
13579
13579
  };
13580
+ var cancleClick = function cancleClick() {
13581
+ emit('update:modelValue', false);
13582
+ };
13580
13583
  return {
13581
13584
  visible: visible,
13582
13585
  actions: actions,
@@ -13584,6 +13587,7 @@ var actionSheetvue_type_script_lang_js_prefixCls = 'dpzvc3-actionSheet';
13584
13587
  wrapperClasses: wrapperClasses,
13585
13588
  wrapperActionClass: wrapperActionClass,
13586
13589
  cancleClass: cancleClass,
13590
+ cancleClick: cancleClick,
13587
13591
  emit: emitAction
13588
13592
  };
13589
13593
  }
@@ -13596,7 +13600,7 @@ var actionSheetvue_type_script_lang_js_prefixCls = 'dpzvc3-actionSheet';
13596
13600
 
13597
13601
 
13598
13602
  ;
13599
- const actionSheet_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(actionSheetvue_type_script_lang_js, [['render',actionSheetvue_type_template_id_3e21ff72_render]])
13603
+ const actionSheet_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(actionSheetvue_type_script_lang_js, [['render',actionSheetvue_type_template_id_78a5e8a8_render]])
13600
13604
 
13601
13605
  /* harmony default export */ const actionSheet = (actionSheet_exports_);
13602
13606
  ;// ./src/components/action-sheet/index.js