dpzvc3-ui 3.0.1 → 3.0.2
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.esm.js +101 -93
- package/dist/dpzvc3.esm.js.map +1 -1
- package/dist/dpzvc3.esm.min.js +1 -1
- package/dist/dpzvc3.esm.min.js.map +1 -1
- package/dist/dpzvc3.js +30 -22
- package/dist/dpzvc3.js.map +1 -1
- package/dist/dpzvc3.min.js +1 -1
- package/dist/dpzvc3.min.js.map +1 -1
- package/dist/styles/components/swipe.css +1 -1
- package/dist/styles/dpzvc3.css +1 -1
- package/dist-prod/index.html +1 -1
- package/dist-prod/main.500d6bc40855d284c027.js +2 -0
- package/dist-prod/main.500d6bc40855d284c027.js.map +1 -0
- package/dist-prod/swipe.75b7d741be73c0064982.chunk.js +2 -0
- package/dist-prod/swipe.75b7d741be73c0064982.chunk.js.map +1 -0
- package/dist-prod/upload.a9b44c8a72fe70980a1e.chunk.js +2 -0
- package/dist-prod/upload.a9b44c8a72fe70980a1e.chunk.js.map +1 -0
- package/package.json +1 -1
- package/src/components/swipe/swipe.vue +18 -11
- package/src/styles/components/swipe.less +1 -1
- package/src/views/Swipe.vue +8 -10
- package/dist-prod/main.2e9aaa9095e329ea2d7b.js +0 -2
- package/dist-prod/main.2e9aaa9095e329ea2d7b.js.map +0 -1
- package/dist-prod/swipe.2e5b0acc3bbb2bf49dd5.chunk.js +0 -2
- package/dist-prod/swipe.2e5b0acc3bbb2bf49dd5.chunk.js.map +0 -1
- package/dist-prod/upload.ec7a954970889869d93e.chunk.js +0 -2
- package/dist-prod/upload.ec7a954970889869d93e.chunk.js.map +0 -1
package/dist/dpzvc3.esm.js
CHANGED
|
@@ -381,7 +381,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `
|
|
|
381
381
|
justify-content: center;
|
|
382
382
|
flex-direction: column;
|
|
383
383
|
}
|
|
384
|
-
`, "",{"version":3,"sources":["webpack://./
|
|
384
|
+
`, "",{"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":""}]);
|
|
385
385
|
// Exports
|
|
386
386
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
387
387
|
|
|
@@ -4895,6 +4895,78 @@ const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_j
|
|
|
4895
4895
|
|
|
4896
4896
|
/***/ },
|
|
4897
4897
|
|
|
4898
|
+
/***/ 4510
|
|
4899
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4900
|
+
|
|
4901
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4902
|
+
/* harmony export */ X: () => (/* binding */ render)
|
|
4903
|
+
/* harmony export */ });
|
|
4904
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5286);
|
|
4905
|
+
|
|
4906
|
+
var _hoisted_1 = ["onClick"];
|
|
4907
|
+
var _hoisted_2 = ["src"];
|
|
4908
|
+
var _hoisted_3 = ["onClick"];
|
|
4909
|
+
var _hoisted_4 = ["src"];
|
|
4910
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4911
|
+
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
|
|
4912
|
+
ref: "swipeRef",
|
|
4913
|
+
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.classes),
|
|
4914
|
+
style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)({
|
|
4915
|
+
height: _ctx.height
|
|
4916
|
+
})
|
|
4917
|
+
}, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", {
|
|
4918
|
+
ref: "wrapper",
|
|
4919
|
+
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.wrapperClasses),
|
|
4920
|
+
style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(_ctx.wrapperStyle)
|
|
4921
|
+
}, [_ctx.arrayList.length ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
4922
|
+
key: 0
|
|
4923
|
+
}, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.arrayList, function (item, index) {
|
|
4924
|
+
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
|
|
4925
|
+
key: index,
|
|
4926
|
+
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.itemClasses)
|
|
4927
|
+
}, [_ctx.isMultiple ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
4928
|
+
key: 0
|
|
4929
|
+
}, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(item, function (_item, $index) {
|
|
4930
|
+
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("a", {
|
|
4931
|
+
key: $index,
|
|
4932
|
+
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.multipleClass),
|
|
4933
|
+
onClick: function onClick($event) {
|
|
4934
|
+
return _ctx.choose(_item, $index, $event);
|
|
4935
|
+
}
|
|
4936
|
+
}, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default", {
|
|
4937
|
+
item: _item,
|
|
4938
|
+
index: $index
|
|
4939
|
+
}, function () {
|
|
4940
|
+
return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", {
|
|
4941
|
+
src: _item.image
|
|
4942
|
+
}, null, 8 /* PROPS */, _hoisted_2), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_item.spec), 1 /* TEXT */)];
|
|
4943
|
+
})], 10 /* CLASS, PROPS */, _hoisted_1);
|
|
4944
|
+
}), 128 /* KEYED_FRAGMENT */)) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("a", {
|
|
4945
|
+
key: 1,
|
|
4946
|
+
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.singleClass),
|
|
4947
|
+
onClick: function onClick($event) {
|
|
4948
|
+
return _ctx.choose(item, index, $event);
|
|
4949
|
+
}
|
|
4950
|
+
}, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default", {
|
|
4951
|
+
item: item,
|
|
4952
|
+
index: index
|
|
4953
|
+
}, function () {
|
|
4954
|
+
return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", {
|
|
4955
|
+
src: item.image
|
|
4956
|
+
}, null, 8 /* PROPS */, _hoisted_4), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(item.spec), 1 /* TEXT */)];
|
|
4957
|
+
})], 10 /* CLASS, PROPS */, _hoisted_3))], 2 /* CLASS */);
|
|
4958
|
+
}), 128 /* KEYED_FRAGMENT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 6 /* CLASS, STYLE */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :class=\"['dpzvc3-swipe-dots-item', (loop ? index + 1 : index) === slideIndex ? 'active' : '']\" "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", {
|
|
4959
|
+
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.dotsClasses)
|
|
4960
|
+
}, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.dotLength, function (item, index) {
|
|
4961
|
+
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", {
|
|
4962
|
+
key: index,
|
|
4963
|
+
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(['dpzvc3-swipe-dots-item', index === _ctx.slideIndex ? 'active' : ''])
|
|
4964
|
+
}, null, 2 /* CLASS */);
|
|
4965
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 6 /* CLASS, STYLE */);
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
/***/ },
|
|
4969
|
+
|
|
4898
4970
|
/***/ 4524
|
|
4899
4971
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4900
4972
|
|
|
@@ -12491,9 +12563,11 @@ var prefixCls = 'dpzvc3-swipe';
|
|
|
12491
12563
|
var autoSwipe = (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(true);
|
|
12492
12564
|
var startX = (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(0);
|
|
12493
12565
|
var distance = (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(0);
|
|
12494
|
-
|
|
12566
|
+
// const slideIndex = ref(props.loop ? props.startIndex + 1 : props.startIndex)
|
|
12567
|
+
var slideIndex = (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(props.startIndex);
|
|
12495
12568
|
var timer = (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(null);
|
|
12496
12569
|
var localList = (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(props.list));
|
|
12570
|
+
var transitionRef = (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)('transform .2s ease-out');
|
|
12497
12571
|
var isMultiple = (0,vue__WEBPACK_IMPORTED_MODULE_2__.computed)(function () {
|
|
12498
12572
|
if (props.perpage <= 1) return false;
|
|
12499
12573
|
var page = props.perpage;
|
|
@@ -12513,15 +12587,18 @@ var prefixCls = 'dpzvc3-swipe';
|
|
|
12513
12587
|
var arrayList = (0,vue__WEBPACK_IMPORTED_MODULE_2__.computed)(function () {
|
|
12514
12588
|
if (!localList.value.length) return [];
|
|
12515
12589
|
if (props.loop) {
|
|
12516
|
-
return [localList.value[localList.value.length - 1]
|
|
12590
|
+
// return [localList.value[localList.value.length - 1], ...localList.value, localList.value[0]]
|
|
12591
|
+
return [].concat((0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(localList.value), [localList.value[0]]);
|
|
12517
12592
|
}
|
|
12518
12593
|
return localList.value;
|
|
12519
12594
|
});
|
|
12520
12595
|
var dotLength = (0,vue__WEBPACK_IMPORTED_MODULE_2__.computed)(function () {
|
|
12521
12596
|
return localList.value.length;
|
|
12522
12597
|
});
|
|
12598
|
+
|
|
12599
|
+
// const minIndex = computed(() => (props.loop ? 1 : 0))
|
|
12523
12600
|
var minIndex = (0,vue__WEBPACK_IMPORTED_MODULE_2__.computed)(function () {
|
|
12524
|
-
return
|
|
12601
|
+
return 0;
|
|
12525
12602
|
});
|
|
12526
12603
|
var maxIndex = (0,vue__WEBPACK_IMPORTED_MODULE_2__.computed)(function () {
|
|
12527
12604
|
return props.loop ? arrayList.value.length - 2 : arrayList.value.length - 1;
|
|
@@ -12550,7 +12627,8 @@ var prefixCls = 'dpzvc3-swipe';
|
|
|
12550
12627
|
return {
|
|
12551
12628
|
width: arrayList.value.length * clientWidth.value + 'px',
|
|
12552
12629
|
transform: "translate3d(".concat(translateX.value, "px,0,0)"),
|
|
12553
|
-
height: 'auto'
|
|
12630
|
+
height: 'auto',
|
|
12631
|
+
transition: transitionRef.value
|
|
12554
12632
|
};
|
|
12555
12633
|
});
|
|
12556
12634
|
function choose(item, index, e) {
|
|
@@ -12614,10 +12692,11 @@ var prefixCls = 'dpzvc3-swipe';
|
|
|
12614
12692
|
timer.value = setTimeout(function () {
|
|
12615
12693
|
if (!dragging.value && autoSwipe.value) {
|
|
12616
12694
|
translateX.value -= clientWidth.value;
|
|
12695
|
+
console.log(slideIndex.value, maxIndex.value, 'dsdadddasdss');
|
|
12617
12696
|
slideIndex.value++;
|
|
12618
|
-
// console.log(slideIndex.value, maxIndex.value, 'dsdadddasdss')
|
|
12619
12697
|
if (slideIndex.value > maxIndex.value && props.loop) {
|
|
12620
12698
|
slideIndex.value = minIndex.value;
|
|
12699
|
+
// resetSlide()
|
|
12621
12700
|
wrapper.value.addEventListener('transitionend', resetSlide, false);
|
|
12622
12701
|
}
|
|
12623
12702
|
autoSlide();
|
|
@@ -12628,10 +12707,11 @@ var prefixCls = 'dpzvc3-swipe';
|
|
|
12628
12707
|
wrapper.value.removeEventListener('transitionend', resetSlide, false);
|
|
12629
12708
|
slideIndex.value = minIndex.value;
|
|
12630
12709
|
autoSwipe.value = false;
|
|
12631
|
-
|
|
12710
|
+
transitionRef.value = 'none';
|
|
12632
12711
|
translateX.value = -slideIndex.value * clientWidth.value;
|
|
12633
12712
|
setTimeout(function () {
|
|
12634
12713
|
autoSwipe.value = true;
|
|
12714
|
+
transitionRef.value = 'transform .2s ease-out';
|
|
12635
12715
|
}, 0);
|
|
12636
12716
|
}
|
|
12637
12717
|
function clearTimer() {
|
|
@@ -12838,17 +12918,6 @@ const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_j
|
|
|
12838
12918
|
|
|
12839
12919
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_picker__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A);
|
|
12840
12920
|
|
|
12841
|
-
/***/ },
|
|
12842
|
-
|
|
12843
|
-
/***/ 6119
|
|
12844
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12845
|
-
|
|
12846
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12847
|
-
/* harmony export */ X: () => (/* reexport safe */ _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_swipe_vue_vue_type_template_id_79ae3ca4__WEBPACK_IMPORTED_MODULE_0__.X)
|
|
12848
|
-
/* harmony export */ });
|
|
12849
|
-
/* harmony import */ var _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_swipe_vue_vue_type_template_id_79ae3ca4__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7840);
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
12921
|
/***/ },
|
|
12853
12922
|
|
|
12854
12923
|
/***/ 6155
|
|
@@ -14237,78 +14306,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14237
14306
|
|
|
14238
14307
|
/***/ },
|
|
14239
14308
|
|
|
14240
|
-
/***/ 7840
|
|
14241
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14242
|
-
|
|
14243
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14244
|
-
/* harmony export */ X: () => (/* binding */ render)
|
|
14245
|
-
/* harmony export */ });
|
|
14246
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5286);
|
|
14247
|
-
|
|
14248
|
-
var _hoisted_1 = ["onClick"];
|
|
14249
|
-
var _hoisted_2 = ["src"];
|
|
14250
|
-
var _hoisted_3 = ["onClick"];
|
|
14251
|
-
var _hoisted_4 = ["src"];
|
|
14252
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14253
|
-
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
|
|
14254
|
-
ref: "swipeRef",
|
|
14255
|
-
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.classes),
|
|
14256
|
-
style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)({
|
|
14257
|
-
height: _ctx.height
|
|
14258
|
-
})
|
|
14259
|
-
}, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", {
|
|
14260
|
-
ref: "wrapper",
|
|
14261
|
-
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.wrapperClasses),
|
|
14262
|
-
style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(_ctx.wrapperStyle)
|
|
14263
|
-
}, [_ctx.arrayList.length ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
14264
|
-
key: 0
|
|
14265
|
-
}, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.arrayList, function (item, index) {
|
|
14266
|
-
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
|
|
14267
|
-
key: index,
|
|
14268
|
-
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.itemClasses)
|
|
14269
|
-
}, [_ctx.isMultiple ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
14270
|
-
key: 0
|
|
14271
|
-
}, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(item, function (_item, $index) {
|
|
14272
|
-
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("a", {
|
|
14273
|
-
key: $index,
|
|
14274
|
-
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.multipleClass),
|
|
14275
|
-
onClick: function onClick($event) {
|
|
14276
|
-
return _ctx.choose(_item, $index, $event);
|
|
14277
|
-
}
|
|
14278
|
-
}, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default", {
|
|
14279
|
-
item: _item,
|
|
14280
|
-
index: $index
|
|
14281
|
-
}, function () {
|
|
14282
|
-
return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", {
|
|
14283
|
-
src: _item.image
|
|
14284
|
-
}, null, 8 /* PROPS */, _hoisted_2), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_item.spec), 1 /* TEXT */)];
|
|
14285
|
-
})], 10 /* CLASS, PROPS */, _hoisted_1);
|
|
14286
|
-
}), 128 /* KEYED_FRAGMENT */)) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("a", {
|
|
14287
|
-
key: 1,
|
|
14288
|
-
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.singleClass),
|
|
14289
|
-
onClick: function onClick($event) {
|
|
14290
|
-
return _ctx.choose(item, index, $event);
|
|
14291
|
-
}
|
|
14292
|
-
}, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default", {
|
|
14293
|
-
item: item,
|
|
14294
|
-
index: index
|
|
14295
|
-
}, function () {
|
|
14296
|
-
return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", {
|
|
14297
|
-
src: item.image
|
|
14298
|
-
}, null, 8 /* PROPS */, _hoisted_4), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(item.spec), 1 /* TEXT */)];
|
|
14299
|
-
})], 10 /* CLASS, PROPS */, _hoisted_3))], 2 /* CLASS */);
|
|
14300
|
-
}), 128 /* KEYED_FRAGMENT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 6 /* CLASS, STYLE */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", {
|
|
14301
|
-
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.dotsClasses)
|
|
14302
|
-
}, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.dotLength, function (item, index) {
|
|
14303
|
-
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", {
|
|
14304
|
-
key: index,
|
|
14305
|
-
"class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(['dpzvc3-swipe-dots-item', (_ctx.loop ? index + 1 : index) === _ctx.slideIndex ? 'active' : ''])
|
|
14306
|
-
}, null, 2 /* CLASS */);
|
|
14307
|
-
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 6 /* CLASS, STYLE */);
|
|
14308
|
-
}
|
|
14309
|
-
|
|
14310
|
-
/***/ },
|
|
14311
|
-
|
|
14312
14309
|
/***/ 7849
|
|
14313
14310
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14314
14311
|
|
|
@@ -14765,7 +14762,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14765
14762
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14766
14763
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14767
14764
|
/* harmony export */ });
|
|
14768
|
-
/* harmony import */ var
|
|
14765
|
+
/* harmony import */ var _swipe_vue_vue_type_template_id_4bcc6d9d__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9049);
|
|
14769
14766
|
/* harmony import */ var _swipe_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(186);
|
|
14770
14767
|
/* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6262);
|
|
14771
14768
|
|
|
@@ -14773,7 +14770,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14773
14770
|
|
|
14774
14771
|
|
|
14775
14772
|
;
|
|
14776
|
-
const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(_swipe_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, [['render',
|
|
14773
|
+
const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(_swipe_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, [['render',_swipe_vue_vue_type_template_id_4bcc6d9d__WEBPACK_IMPORTED_MODULE_0__/* .render */ .X]])
|
|
14777
14774
|
|
|
14778
14775
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__);
|
|
14779
14776
|
|
|
@@ -16398,6 +16395,17 @@ function omit(obj, keys) {
|
|
|
16398
16395
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_dist_index_js_ruleSet_1_rules_7_use_0_snake_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9595);
|
|
16399
16396
|
|
|
16400
16397
|
|
|
16398
|
+
/***/ },
|
|
16399
|
+
|
|
16400
|
+
/***/ 9049
|
|
16401
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16402
|
+
|
|
16403
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16404
|
+
/* harmony export */ X: () => (/* reexport safe */ _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_swipe_vue_vue_type_template_id_4bcc6d9d__WEBPACK_IMPORTED_MODULE_0__.X)
|
|
16405
|
+
/* harmony export */ });
|
|
16406
|
+
/* harmony import */ var _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_swipe_vue_vue_type_template_id_4bcc6d9d__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4510);
|
|
16407
|
+
|
|
16408
|
+
|
|
16401
16409
|
/***/ },
|
|
16402
16410
|
|
|
16403
16411
|
/***/ 9075
|
|
@@ -17173,7 +17181,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `
|
|
|
17173
17181
|
display: flex;
|
|
17174
17182
|
flex-direction: column;
|
|
17175
17183
|
}
|
|
17176
|
-
`, "",{"version":3,"sources":["webpack://./
|
|
17184
|
+
`, "",{"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":""}]);
|
|
17177
17185
|
// Exports
|
|
17178
17186
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
17179
17187
|
|