dpzvc3-ui 3.1.6 → 3.1.7
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 +228 -37
- 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 +183 -37
- package/dist/dpzvc3.js.map +1 -1
- package/dist/dpzvc3.min.js +1 -1
- package/dist/dpzvc3.min.js.map +1 -1
- package/dist/types/components/actionSheet/actionSheet.d.ts +8 -10
- package/dist/types/components/actionSheet/actionSheet.d.ts.map +1 -1
- package/dist/types/components/actionSheet/index.d.ts +1 -1
- package/dist/types/components/actionSheet/index.d.ts.map +1 -1
- package/dist/types/components/actionSheet/types.d.ts +8 -2
- package/dist/types/components/actionSheet/types.d.ts.map +1 -1
- package/dist/types/components/badge/badge.d.ts.map +1 -1
- package/dist/types/components/badge/types.d.ts +2 -0
- package/dist/types/components/badge/types.d.ts.map +1 -1
- package/dist/types/components/button/button.d.ts +10 -8
- package/dist/types/components/button/button.d.ts.map +1 -1
- package/dist/types/components/button/types.d.ts +6 -0
- package/dist/types/components/button/types.d.ts.map +1 -1
- package/dist/types/components/card/card.d.ts.map +1 -1
- package/dist/types/components/card/types.d.ts +3 -0
- package/dist/types/components/card/types.d.ts.map +1 -1
- package/dist/types/components/cell/cell.d.ts +12 -7
- package/dist/types/components/cell/cell.d.ts.map +1 -1
- package/dist/types/components/cell/types.d.ts +9 -0
- package/dist/types/components/cell/types.d.ts.map +1 -1
- package/dist/types/components/header/header.d.ts +1 -1
- package/dist/types/components/loadMore/loadMore.d.ts +9 -5
- package/dist/types/components/loadMore/loadMore.d.ts.map +1 -1
- package/dist/types/components/loadMore/types.d.ts +7 -0
- package/dist/types/components/loadMore/types.d.ts.map +1 -1
- package/dist/types/components/picker/picker.d.ts +18 -14
- package/dist/types/components/picker/picker.d.ts.map +1 -1
- package/dist/types/components/popup/popup.d.ts +11 -8
- package/dist/types/components/popup/popup.d.ts.map +1 -1
- package/dist/types/components/popup/types.d.ts +11 -2
- package/dist/types/components/popup/types.d.ts.map +1 -1
- package/dist/types/components/progress/types.d.ts +2 -1
- package/dist/types/components/progress/types.d.ts.map +1 -1
- package/dist/types/components/rater/raters.d.ts +1 -1
- package/dist/types/components/slideBar/slideBar.d.ts +3 -3
- package/dist/types/components/swipe/swipe.d.ts +1 -1
- package/dist/types/components/tab/tab.d.ts +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/lib/MegaPixImage.d.ts.map +1 -1
- package/package.json +20 -14
package/dist/dpzvc3.esm.js
CHANGED
|
@@ -335,11 +335,13 @@ var prefixCls = 'dpzvc3-swipe';
|
|
|
335
335
|
/* harmony export */ });
|
|
336
336
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5286);
|
|
337
337
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4467);
|
|
338
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4745);
|
|
338
339
|
|
|
339
340
|
|
|
340
341
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
341
342
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
342
343
|
|
|
344
|
+
|
|
343
345
|
var prefixCls = 'dpzvc3-popup';
|
|
344
346
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({
|
|
345
347
|
name: 'Dpzvc3Popup',
|
|
@@ -374,7 +376,7 @@ var prefixCls = 'dpzvc3-popup';
|
|
|
374
376
|
}
|
|
375
377
|
}
|
|
376
378
|
},
|
|
377
|
-
emits:
|
|
379
|
+
emits: _types__WEBPACK_IMPORTED_MODULE_2__/* .inputEmits */ .p,
|
|
378
380
|
setup: function setup(props, _ref) {
|
|
379
381
|
var emit = _ref.emit,
|
|
380
382
|
slots = _ref.slots;
|
|
@@ -639,6 +641,22 @@ var _Card = _card__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A;
|
|
|
639
641
|
|
|
640
642
|
/***/ },
|
|
641
643
|
|
|
644
|
+
/***/ 1139
|
|
645
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
646
|
+
|
|
647
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
648
|
+
/* harmony export */ p: () => (/* binding */ inputEmits)
|
|
649
|
+
/* harmony export */ });
|
|
650
|
+
// 事件 'touchstart', 'touchmove', 'touchend', 'click'
|
|
651
|
+
var inputEmits = {
|
|
652
|
+
touchstart: function touchstart(value) {},
|
|
653
|
+
touchmove: function touchmove(value) {},
|
|
654
|
+
touchend: function touchend(value) {},
|
|
655
|
+
click: function click(value) {}
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
/***/ },
|
|
659
|
+
|
|
642
660
|
/***/ 1568
|
|
643
661
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
644
662
|
|
|
@@ -930,6 +948,7 @@ var _ToTop = _toTop__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A;
|
|
|
930
948
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5286);
|
|
931
949
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4467);
|
|
932
950
|
/* harmony import */ var _spinner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6399);
|
|
951
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2362);
|
|
933
952
|
|
|
934
953
|
|
|
935
954
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -937,6 +956,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
937
956
|
// src/components/Loadmore/Loadmore.tsx
|
|
938
957
|
|
|
939
958
|
|
|
959
|
+
|
|
940
960
|
var prefixCls = 'dpzvc3-loadmore';
|
|
941
961
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({
|
|
942
962
|
name: 'Dpzvc3Loadmore',
|
|
@@ -1006,7 +1026,7 @@ var prefixCls = 'dpzvc3-loadmore';
|
|
|
1006
1026
|
"default": true
|
|
1007
1027
|
}
|
|
1008
1028
|
},
|
|
1009
|
-
emits:
|
|
1029
|
+
emits: _types__WEBPACK_IMPORTED_MODULE_3__/* .inputEmits */ .p,
|
|
1010
1030
|
setup: function setup(props, _ref) {
|
|
1011
1031
|
var slots = _ref.slots,
|
|
1012
1032
|
emit = _ref.emit,
|
|
@@ -1224,9 +1244,11 @@ var prefixCls = 'dpzvc3-loadmore';
|
|
|
1224
1244
|
/* harmony export */ });
|
|
1225
1245
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5286);
|
|
1226
1246
|
/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5220);
|
|
1247
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1139);
|
|
1227
1248
|
// src/components/cell/cell.tsx
|
|
1228
1249
|
|
|
1229
1250
|
|
|
1251
|
+
|
|
1230
1252
|
var prefixCls = 'dpzvc3-cell';
|
|
1231
1253
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({
|
|
1232
1254
|
name: 'Dpzvc3Cell',
|
|
@@ -1237,12 +1259,20 @@ var prefixCls = 'dpzvc3-cell';
|
|
|
1237
1259
|
link: String,
|
|
1238
1260
|
hasMask: Boolean
|
|
1239
1261
|
},
|
|
1240
|
-
emits:
|
|
1262
|
+
emits: _types__WEBPACK_IMPORTED_MODULE_2__/* .inputEmits */ .p,
|
|
1241
1263
|
setup: function setup(props, _ref) {
|
|
1242
1264
|
var emit = _ref.emit,
|
|
1243
1265
|
slots = _ref.slots;
|
|
1244
1266
|
var router = (0,vue_router__WEBPACK_IMPORTED_MODULE_1__/* .useRouter */ .rd)();
|
|
1267
|
+
// const toLink = computed<CellProps['link']>(() => {
|
|
1268
|
+
// if (!props.link) return ''
|
|
1269
|
+
// const resolved = router.resolve(props.link)
|
|
1270
|
+
// return resolved.matched.length ? resolved.href : props.link
|
|
1271
|
+
// })
|
|
1245
1272
|
var toLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(function () {
|
|
1273
|
+
if (typeof window === 'undefined') {
|
|
1274
|
+
return ''; // SSR 阶段不要依赖 props.link
|
|
1275
|
+
}
|
|
1246
1276
|
if (!props.link) return '';
|
|
1247
1277
|
var resolved = router.resolve(props.link);
|
|
1248
1278
|
return resolved.matched.length ? resolved.href : props.link;
|
|
@@ -1290,7 +1320,7 @@ var prefixCls = 'dpzvc3-cell';
|
|
|
1290
1320
|
return function () {
|
|
1291
1321
|
var _a, _b, _c;
|
|
1292
1322
|
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", {
|
|
1293
|
-
"href": toLink.value,
|
|
1323
|
+
"data-href": toLink.value,
|
|
1294
1324
|
"class": classes.value,
|
|
1295
1325
|
"onClick": handleClick,
|
|
1296
1326
|
"onTouchstart": cellTouchStart,
|
|
@@ -1356,6 +1386,19 @@ function toPrimitive(t, r) {
|
|
|
1356
1386
|
}
|
|
1357
1387
|
|
|
1358
1388
|
|
|
1389
|
+
/***/ },
|
|
1390
|
+
|
|
1391
|
+
/***/ 2362
|
|
1392
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1393
|
+
|
|
1394
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1395
|
+
/* harmony export */ p: () => (/* binding */ inputEmits)
|
|
1396
|
+
/* harmony export */ });
|
|
1397
|
+
var inputEmits = {
|
|
1398
|
+
'on-change-up-status': function onChangeUpStatus(value) {},
|
|
1399
|
+
'on-change-down-status': function onChangeDownStatus(value) {}
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1359
1402
|
/***/ },
|
|
1360
1403
|
|
|
1361
1404
|
/***/ 2410
|
|
@@ -2101,7 +2144,7 @@ function scrollTop(el) {
|
|
|
2101
2144
|
var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
2102
2145
|
var to = arguments.length > 2 ? arguments[2] : undefined;
|
|
2103
2146
|
var duration = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 500;
|
|
2104
|
-
if (!window.requestAnimationFrame) {
|
|
2147
|
+
if (typeof window !== 'undefined' && !window.requestAnimationFrame) {
|
|
2105
2148
|
window.requestAnimationFrame = window.requestAnimationFrame || function (callback) {
|
|
2106
2149
|
return window.setTimeout(callback, 1000 / 60);
|
|
2107
2150
|
};
|
|
@@ -4414,6 +4457,21 @@ const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_j
|
|
|
4414
4457
|
|
|
4415
4458
|
/***/ },
|
|
4416
4459
|
|
|
4460
|
+
/***/ 4745
|
|
4461
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4462
|
+
|
|
4463
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4464
|
+
/* harmony export */ p: () => (/* binding */ inputEmits)
|
|
4465
|
+
/* harmony export */ });
|
|
4466
|
+
// 事件
|
|
4467
|
+
var inputEmits = {
|
|
4468
|
+
'update:modelValue': function updateModelValue(value) {
|
|
4469
|
+
return true;
|
|
4470
|
+
}
|
|
4471
|
+
};
|
|
4472
|
+
|
|
4473
|
+
/***/ },
|
|
4474
|
+
|
|
4417
4475
|
/***/ 4756
|
|
4418
4476
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
4419
4477
|
|
|
@@ -11869,6 +11927,22 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
11869
11927
|
}
|
|
11870
11928
|
|
|
11871
11929
|
|
|
11930
|
+
/***/ },
|
|
11931
|
+
|
|
11932
|
+
/***/ 7867
|
|
11933
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11934
|
+
|
|
11935
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11936
|
+
/* harmony export */ p: () => (/* binding */ inputEmits)
|
|
11937
|
+
/* harmony export */ });
|
|
11938
|
+
// 事件
|
|
11939
|
+
// export interface ButtonEmits {
|
|
11940
|
+
// click: (event: MouseEvent) => true
|
|
11941
|
+
// }
|
|
11942
|
+
var inputEmits = {
|
|
11943
|
+
click: function click(value) {}
|
|
11944
|
+
};
|
|
11945
|
+
|
|
11872
11946
|
/***/ },
|
|
11873
11947
|
|
|
11874
11948
|
/***/ 7912
|
|
@@ -11880,11 +11954,13 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
11880
11954
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5286);
|
|
11881
11955
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4467);
|
|
11882
11956
|
/* harmony import */ var _spinner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6399);
|
|
11957
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7867);
|
|
11883
11958
|
|
|
11884
11959
|
|
|
11885
11960
|
// src/components/button/button.tsx
|
|
11886
11961
|
|
|
11887
11962
|
|
|
11963
|
+
|
|
11888
11964
|
var prefixCls = 'dpzvc3-button';
|
|
11889
11965
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({
|
|
11890
11966
|
name: 'VButton',
|
|
@@ -11935,11 +12011,10 @@ var prefixCls = 'dpzvc3-button';
|
|
|
11935
12011
|
"default": 'all'
|
|
11936
12012
|
}
|
|
11937
12013
|
},
|
|
11938
|
-
emits:
|
|
12014
|
+
emits: _types__WEBPACK_IMPORTED_MODULE_3__/* .inputEmits */ .p,
|
|
11939
12015
|
setup: function setup(props, _ref) {
|
|
11940
12016
|
var emit = _ref.emit,
|
|
11941
12017
|
slots = _ref.slots;
|
|
11942
|
-
/** 外层容器类 */
|
|
11943
12018
|
var classes = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(function () {
|
|
11944
12019
|
return [prefixCls, (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)({}, "".concat(prefixCls, "-circle"), props.circle), "".concat(prefixCls, "-inline"), props.inline)];
|
|
11945
12020
|
});
|
|
@@ -11951,7 +12026,6 @@ var prefixCls = 'dpzvc3-button';
|
|
|
11951
12026
|
height: props.height
|
|
11952
12027
|
};
|
|
11953
12028
|
});
|
|
11954
|
-
/** button 类 */
|
|
11955
12029
|
var buttonClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(function () {
|
|
11956
12030
|
return ["".concat(prefixCls, "-btn"), ["dpzvc3-1px-".concat(props.border)], (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)((0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)({}, "".concat(prefixCls, "-success"), props.type === 'success'), "".concat(prefixCls, "-loading"), props.type === 'loading'), "".concat(prefixCls, "-normal"), props.type === 'normal'), "".concat(prefixCls, "-warning"), props.type === 'warning'), "".concat(prefixCls, "-danger"), props.type === 'danger'), "".concat(prefixCls, "-text"), props.type === 'text'), "".concat(prefixCls, "-primary"), props.type === 'primary'), "".concat(prefixCls, "-disabled"), props.disabled), "".concat(prefixCls, "-radius"), props.radius)];
|
|
11957
12031
|
});
|
|
@@ -12329,7 +12403,7 @@ function transformCoordinate(canvas, ctx, width, height, orientation) {
|
|
|
12329
12403
|
break;
|
|
12330
12404
|
}
|
|
12331
12405
|
}
|
|
12332
|
-
var URL = window.URL && window.URL.createObjectURL ? window.URL : window.webkitURL && window.webkitURL.createObjectURL ? window.webkitURL : null;
|
|
12406
|
+
var URL = typeof window !== 'undefined' ? window.URL && window.URL.createObjectURL ? window.URL : window.webkitURL && window.webkitURL.createObjectURL ? window.webkitURL : null : null;
|
|
12333
12407
|
|
|
12334
12408
|
// -------------------------
|
|
12335
12409
|
// MegaPixImage class
|
|
@@ -12337,28 +12411,30 @@ var URL = window.URL && window.URL.createObjectURL ? window.URL : window.webkitU
|
|
|
12337
12411
|
var MegaPixImage = /*#__PURE__*/function () {
|
|
12338
12412
|
function MegaPixImage(srcImage) {
|
|
12339
12413
|
(0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, MegaPixImage);
|
|
12340
|
-
if (window
|
|
12341
|
-
if (
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12414
|
+
if (typeof window !== 'undefined') {
|
|
12415
|
+
if (window.Blob && srcImage instanceof Blob) {
|
|
12416
|
+
if (!URL) throw Error('No createObjectURL function found');
|
|
12417
|
+
var img = new Image();
|
|
12418
|
+
img.src = URL.createObjectURL(srcImage);
|
|
12419
|
+
this.blob = srcImage;
|
|
12420
|
+
srcImage = img;
|
|
12421
|
+
}
|
|
12422
|
+
if (!srcImage.naturalWidth && !srcImage.naturalHeight) {
|
|
12423
|
+
this.imageLoadListeners = [];
|
|
12424
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
12425
|
+
var _this = this;
|
|
12426
|
+
srcImage.onload = srcImage.onerror = function () {
|
|
12427
|
+
var listeners = _this.imageLoadListeners;
|
|
12428
|
+
if (listeners) {
|
|
12429
|
+
_this.imageLoadListeners = null;
|
|
12430
|
+
listeners.forEach(function (fn) {
|
|
12431
|
+
return fn();
|
|
12432
|
+
});
|
|
12433
|
+
}
|
|
12434
|
+
};
|
|
12435
|
+
}
|
|
12436
|
+
this.srcImage = srcImage;
|
|
12360
12437
|
}
|
|
12361
|
-
this.srcImage = srcImage;
|
|
12362
12438
|
}
|
|
12363
12439
|
return (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(MegaPixImage, [{
|
|
12364
12440
|
key: "render",
|
|
@@ -12411,6 +12487,24 @@ var MegaPixImage = /*#__PURE__*/function () {
|
|
|
12411
12487
|
|
|
12412
12488
|
/***/ },
|
|
12413
12489
|
|
|
12490
|
+
/***/ 8162
|
|
12491
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12492
|
+
|
|
12493
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12494
|
+
/* harmony export */ p: () => (/* binding */ inputEmits)
|
|
12495
|
+
/* harmony export */ });
|
|
12496
|
+
// export interface ActionSheetEmits {
|
|
12497
|
+
// 'update:modelValue': (value: string) => true
|
|
12498
|
+
// }
|
|
12499
|
+
// 事件
|
|
12500
|
+
var inputEmits = {
|
|
12501
|
+
'update:modelValue': function updateModelValue(value) {
|
|
12502
|
+
return true;
|
|
12503
|
+
}
|
|
12504
|
+
};
|
|
12505
|
+
|
|
12506
|
+
/***/ },
|
|
12507
|
+
|
|
12414
12508
|
/***/ 8174
|
|
12415
12509
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12416
12510
|
|
|
@@ -12621,14 +12715,12 @@ var _Cell = _cell__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A;
|
|
|
12621
12715
|
/* harmony export */ });
|
|
12622
12716
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5286);
|
|
12623
12717
|
/* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1568);
|
|
12718
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8162);
|
|
12624
12719
|
// src/components/action-sheet/action-sheet.tsx
|
|
12625
12720
|
|
|
12626
12721
|
|
|
12627
|
-
//
|
|
12628
|
-
|
|
12629
|
-
// items?: ActionItem[]
|
|
12630
|
-
// cancleText?: string
|
|
12631
|
-
// }
|
|
12722
|
+
// import type { PopupProps } from '../popup/types'
|
|
12723
|
+
|
|
12632
12724
|
var prefixCls = 'dpzvc3-actionSheet';
|
|
12633
12725
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({
|
|
12634
12726
|
name: 'ActionSheet',
|
|
@@ -12648,7 +12740,7 @@ var prefixCls = 'dpzvc3-actionSheet';
|
|
|
12648
12740
|
"default": '取消'
|
|
12649
12741
|
}
|
|
12650
12742
|
},
|
|
12651
|
-
emits:
|
|
12743
|
+
emits: _types__WEBPACK_IMPORTED_MODULE_2__/* .inputEmits */ .p,
|
|
12652
12744
|
setup: function setup(props, _ref) {
|
|
12653
12745
|
var emit = _ref.emit;
|
|
12654
12746
|
var visible = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(props.modelValue);
|
|
@@ -12686,6 +12778,7 @@ var prefixCls = 'dpzvc3-actionSheet';
|
|
|
12686
12778
|
emit('update:modelValue', false);
|
|
12687
12779
|
};
|
|
12688
12780
|
return function () {
|
|
12781
|
+
var _a;
|
|
12689
12782
|
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_popup__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, {
|
|
12690
12783
|
"modelValue": visible.value,
|
|
12691
12784
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
@@ -12701,7 +12794,7 @@ var prefixCls = 'dpzvc3-actionSheet';
|
|
|
12701
12794
|
"class": classes.value
|
|
12702
12795
|
}, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("ul", {
|
|
12703
12796
|
"class": wrapperClasses.value
|
|
12704
|
-
}, [actions.value.map(function (item, index) {
|
|
12797
|
+
}, [(_a = actions.value) === null || _a === void 0 ? void 0 : _a.map(function (item, index) {
|
|
12705
12798
|
return (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("li", {
|
|
12706
12799
|
"key": index,
|
|
12707
12800
|
"class": wrapperActionClass.value,
|
|
@@ -14878,6 +14971,104 @@ var Dpzvc3UI = {
|
|
|
14878
14971
|
install: install
|
|
14879
14972
|
};
|
|
14880
14973
|
/* harmony default export */ const src = (Dpzvc3UI);
|
|
14974
|
+
/**
|
|
14975
|
+
* Vue 3 组件库入口 ts 版本 - SSR 安全
|
|
14976
|
+
*/
|
|
14977
|
+
// import type { App, Plugin } from 'vue'
|
|
14978
|
+
// /* ========= 组件集合(按需延迟引入) ========= */
|
|
14979
|
+
// const components: Record<string, any> = {
|
|
14980
|
+
// DpButton: () => import('./components/button'),
|
|
14981
|
+
// CheckBox: () => import('./components/checkBox'),
|
|
14982
|
+
// CheckBoxGroup: () => import('./components/checkBox'),
|
|
14983
|
+
// RadioBox: () => import('./components/radioBox'),
|
|
14984
|
+
// RadioBoxGroup: () => import('./components/radioBox'),
|
|
14985
|
+
// DpHeader: () => import('./components/header'),
|
|
14986
|
+
// Picker: () => import('./components/picker'),
|
|
14987
|
+
// Swipe: () => import('./components/swipe'),
|
|
14988
|
+
// Tab: () => import('./components/tab'),
|
|
14989
|
+
// SlideBar: () => import('./components/slideBar'),
|
|
14990
|
+
// TextBar: () => import('./components/Text'),
|
|
14991
|
+
// Number: () => import('./components/number'),
|
|
14992
|
+
// Upload: () => import('./components/upload'),
|
|
14993
|
+
// ActionSheet: () => import('./components/actionSheet'),
|
|
14994
|
+
// SwitchBar: () => import('./components/switchbar'),
|
|
14995
|
+
// Rater: () => import('./components/rater'),
|
|
14996
|
+
// Spinner: () => import('./components/spinner'),
|
|
14997
|
+
// DpLoadMore: () => import('./components/loadMore'),
|
|
14998
|
+
// Popup: () => import('./components/popup'),
|
|
14999
|
+
// DpProgress: () => import('./components/progress'),
|
|
15000
|
+
// ToTop: () => import('./components/toTop'),
|
|
15001
|
+
// Cell: () => import('./components/cell'),
|
|
15002
|
+
// CellSwipe: () => import('./components/cellSwipe'),
|
|
15003
|
+
// Badge: () => import('./components/badge'),
|
|
15004
|
+
// Card: () => import('./components/card')
|
|
15005
|
+
// }
|
|
15006
|
+
// /* ========= 服务组件 ========= */
|
|
15007
|
+
// const services: Record<string, any> = {
|
|
15008
|
+
// Message: () => import('./components/message'),
|
|
15009
|
+
// Modal: () => import('./components/modal'),
|
|
15010
|
+
// Prompt: () => import('./components/prompt'),
|
|
15011
|
+
// Indicator: () => import('./components/Indicator')
|
|
15012
|
+
// }
|
|
15013
|
+
// /* ========= 安装函数 ========= */
|
|
15014
|
+
// export const install: Plugin['install'] = (app: App) => {
|
|
15015
|
+
// const isClient = typeof window !== 'undefined'
|
|
15016
|
+
// // 注册组件
|
|
15017
|
+
// if (isClient) {
|
|
15018
|
+
// Object.entries(components).forEach(async ([key, loader]) => {
|
|
15019
|
+
// const compModule = await loader()
|
|
15020
|
+
// const comp = compModule.default || compModule
|
|
15021
|
+
// if (!comp.install) {
|
|
15022
|
+
// comp.install = (app: App) => {
|
|
15023
|
+
// app.component(comp.name, comp)
|
|
15024
|
+
// }
|
|
15025
|
+
// }
|
|
15026
|
+
// comp.install(app)
|
|
15027
|
+
// })
|
|
15028
|
+
// }
|
|
15029
|
+
// // 注册服务(全局属性)
|
|
15030
|
+
// if (isClient) {
|
|
15031
|
+
// Object.entries(services).forEach(async ([key, loader]) => {
|
|
15032
|
+
// const srvModule = await loader()
|
|
15033
|
+
// const srv = srvModule.default || srvModule
|
|
15034
|
+
// if (!srv.install) {
|
|
15035
|
+
// srv.install = (app: App) => {
|
|
15036
|
+
// app.config.globalProperties[`$${key}`] = srv
|
|
15037
|
+
// }
|
|
15038
|
+
// }
|
|
15039
|
+
// srv.install(app)
|
|
15040
|
+
// })
|
|
15041
|
+
// }
|
|
15042
|
+
// }
|
|
15043
|
+
// /* ========= 按需导出 ========= */
|
|
15044
|
+
// export * from './components/button'
|
|
15045
|
+
// export * from './components/checkBox'
|
|
15046
|
+
// export * from './components/header'
|
|
15047
|
+
// export * from './components/message'
|
|
15048
|
+
// export * from './components/modal'
|
|
15049
|
+
// export * from './components/picker'
|
|
15050
|
+
// export * from './components/radioBox'
|
|
15051
|
+
// export * from './components/swipe'
|
|
15052
|
+
// export * from './components/tab'
|
|
15053
|
+
// export * from './components/slideBar'
|
|
15054
|
+
// export * from './components/Text'
|
|
15055
|
+
// export * from './components/upload'
|
|
15056
|
+
// export * from './components/actionSheet'
|
|
15057
|
+
// export * from './components/switchbar'
|
|
15058
|
+
// export * from './components/rater'
|
|
15059
|
+
// export * from './components/spinner'
|
|
15060
|
+
// export * from './components/loadMore'
|
|
15061
|
+
// export * from './components/popup'
|
|
15062
|
+
// export * from './components/Indicator'
|
|
15063
|
+
// export * from './components/progress'
|
|
15064
|
+
// export * from './components/toTop'
|
|
15065
|
+
// export * from './components/cell'
|
|
15066
|
+
// export * from './components/cellSwipe'
|
|
15067
|
+
// export * from './components/badge'
|
|
15068
|
+
// export * from './components/card'
|
|
15069
|
+
// /* ========= 默认导出 ========= */
|
|
15070
|
+
// const Dpzvc3UI: Plugin = { install }
|
|
15071
|
+
// export default Dpzvc3UI
|
|
14881
15072
|
const __webpack_exports__ActionSheet = __webpack_exports__.Ee;
|
|
14882
15073
|
const __webpack_exports__Badge = __webpack_exports__.Ex;
|
|
14883
15074
|
const __webpack_exports__Card = __webpack_exports__.Zp;
|