@nutui/nutui 3.2.2-beta.1 → 3.2.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/CHANGELOG.md +40 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1767 -1993
- package/dist/nutui.umd.js +1777 -2002
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +57 -63
- package/dist/packages/_es/AddressList.js +3 -7
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +25 -11
- package/dist/packages/_es/AudioOperate.js +21 -2
- package/dist/packages/_es/Avatar.js +20 -5
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +4 -7
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +65 -51
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +17 -31
- package/dist/packages/_es/CheckboxGroup.js +7 -14
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +19 -22
- package/dist/packages/_es/CollapseItem.js +32 -18
- package/dist/packages/_es/Comment.js +9 -13
- package/dist/packages/_es/ConfigProvider.js +4 -8
- package/dist/packages/_es/CountDown.js +46 -40
- package/dist/packages/_es/CountUp.js +40 -39
- package/dist/packages/_es/DatePicker.js +40 -27
- package/dist/packages/_es/Dialog.js +28 -13
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Ecard.js +4 -7
- package/dist/packages/_es/Elevator.js +38 -25
- package/dist/packages/_es/Ellipsis.js +28 -14
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +11 -15
- package/dist/packages/_es/Image.js +24 -8
- package/dist/packages/_es/ImagePreview.js +34 -22
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +24 -5
- package/dist/packages/_es/Input.js +9 -13
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +156 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +25 -10
- package/dist/packages/_es/Menu.js +7 -13
- package/dist/packages/_es/MenuItem.js +22 -3
- package/dist/packages/_es/Navbar.js +2 -2
- package/dist/packages/_es/NoticeBar.js +28 -17
- package/dist/packages/_es/Notify.js +38 -20
- package/dist/packages/_es/NumberKeyboard.js +5 -12
- package/dist/packages/_es/OldPicker.js +46 -47
- package/dist/packages/_es/OverLay.js +23 -11
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +72 -64
- package/dist/packages/_es/Popover.js +52 -55
- package/dist/packages/_es/Popup.js +40 -35
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +20 -5
- package/dist/packages/_es/Radio.js +15 -27
- package/dist/packages/_es/RadioGroup.js +5 -12
- package/dist/packages/_es/Range.js +33 -20
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +44 -11
- package/dist/packages/_es/ShortPassword.js +11 -18
- package/dist/packages/_es/SideNavBar.js +22 -4
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +32 -24
- package/dist/packages/_es/Step.js +22 -4
- package/dist/packages/_es/Steps.js +4 -8
- package/dist/packages/_es/Sticky.js +12 -23
- package/dist/packages/_es/SubSideNavBar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- package/dist/packages/_es/Swiper.js +14 -23
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +7 -10
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +4 -7
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +25 -10
- package/dist/packages/_es/Tabs.js +41 -25
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +5 -8
- package/dist/packages/_es/TimeDetail.js +24 -5
- package/dist/packages/_es/TimePannel.js +22 -4
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +47 -28
- package/dist/packages/_es/Uploader.js +27 -18
- package/dist/packages/_es/Video.js +33 -22
- package/dist/packages/_es/WaterMark.js +41 -31
- package/dist/packages/_es/common.js +11 -21
- package/dist/packages/_es/component.js +5 -5
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +31 -23
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/address/index.scss +17 -0
- package/dist/packages/invoice/index.scss +33 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +3 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +8 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/smartips/attributes.json +36 -12
- package/dist/smartips/tags.json +20 -10
- package/dist/smartips/web-types.json +74 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +51 -50
- package/dist/styles/themes/jdb.scss +51 -50
- package/dist/styles/themes/jdt.scss +51 -50
- package/dist/styles/variables-jdb.scss +4 -1
- package/dist/styles/variables-jdt.scss +4 -1
- package/dist/styles/variables.scss +4 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +6 -7
- package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/index.vue.d.ts +5 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
1
33
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
34
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
35
|
* (c) 2022 @jdf2e.
|
|
4
36
|
* Released under the MIT License.
|
|
5
37
|
*/
|
|
@@ -13,16 +45,16 @@ import "./Icon.js";
|
|
|
13
45
|
import "./pxCheck.js";
|
|
14
46
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
15
47
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
16
|
-
const { [valueKey]: value, [textKey]: text, [childrenKey]: children,
|
|
17
|
-
const newNode = {
|
|
18
|
-
loading: false
|
|
19
|
-
|
|
48
|
+
const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
|
|
49
|
+
const newNode = __spreadProps(__spreadValues({
|
|
50
|
+
loading: false
|
|
51
|
+
}, others), {
|
|
20
52
|
level: parent ? (parent && parent.level || 0) + 1 : 0,
|
|
21
53
|
value,
|
|
22
54
|
text,
|
|
23
55
|
children,
|
|
24
56
|
_parent: parent
|
|
25
|
-
};
|
|
57
|
+
});
|
|
26
58
|
if (newNode.children && newNode.children.length) {
|
|
27
59
|
newNode.children = formatTree(newNode.children, newNode, config);
|
|
28
60
|
}
|
|
@@ -47,15 +79,12 @@ const defaultConvertConfig = {
|
|
|
47
79
|
sortKey: ""
|
|
48
80
|
};
|
|
49
81
|
const convertListToOptions = (list, options) => {
|
|
50
|
-
const mergedOptions = {
|
|
51
|
-
...defaultConvertConfig,
|
|
52
|
-
...options || {}
|
|
53
|
-
};
|
|
82
|
+
const mergedOptions = __spreadValues(__spreadValues({}, defaultConvertConfig), options || {});
|
|
54
83
|
const { topId, idKey, pidKey, sortKey } = mergedOptions;
|
|
55
84
|
let result = [];
|
|
56
85
|
let map = {};
|
|
57
86
|
list.forEach((node) => {
|
|
58
|
-
node = {
|
|
87
|
+
node = __spreadValues({}, node);
|
|
59
88
|
const { [idKey]: id, [pidKey]: pid } = node;
|
|
60
89
|
const children = map[pid] = map[pid] || [];
|
|
61
90
|
if (!result.length && pid === topId) {
|
|
@@ -76,12 +105,11 @@ const convertListToOptions = (list, options) => {
|
|
|
76
105
|
};
|
|
77
106
|
class Tree {
|
|
78
107
|
constructor(nodes, config) {
|
|
79
|
-
this.config = {
|
|
108
|
+
this.config = __spreadValues({
|
|
80
109
|
value: "value",
|
|
81
110
|
text: "text",
|
|
82
|
-
children: "children"
|
|
83
|
-
|
|
84
|
-
};
|
|
111
|
+
children: "children"
|
|
112
|
+
}, config || {});
|
|
85
113
|
this.nodes = formatTree(nodes, null, this.config);
|
|
86
114
|
}
|
|
87
115
|
updateChildren(nodes, parent) {
|
|
@@ -329,34 +357,24 @@ const _sfc_main$1 = create$1({
|
|
|
329
357
|
return pane.selectedNode && pane.selectedNode.value === node.value;
|
|
330
358
|
}
|
|
331
359
|
};
|
|
332
|
-
watch(
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
watch(
|
|
343
|
-
() => props.modelValue,
|
|
344
|
-
(value) => {
|
|
345
|
-
if (value !== innerValue.value) {
|
|
346
|
-
innerValue.value = value;
|
|
347
|
-
syncValue();
|
|
348
|
-
}
|
|
360
|
+
watch([configs, () => props.options], () => {
|
|
361
|
+
init();
|
|
362
|
+
}, {
|
|
363
|
+
deep: true,
|
|
364
|
+
immediate: true
|
|
365
|
+
});
|
|
366
|
+
watch(() => props.modelValue, (value) => {
|
|
367
|
+
if (value !== innerValue.value) {
|
|
368
|
+
innerValue.value = value;
|
|
369
|
+
syncValue();
|
|
349
370
|
}
|
|
350
|
-
);
|
|
351
|
-
watch(
|
|
352
|
-
()
|
|
353
|
-
|
|
354
|
-
if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
|
|
355
|
-
syncValue();
|
|
356
|
-
}
|
|
371
|
+
});
|
|
372
|
+
watch(() => props.visible, (val) => {
|
|
373
|
+
if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
|
|
374
|
+
syncValue();
|
|
357
375
|
}
|
|
358
|
-
);
|
|
359
|
-
return { panes, initLoading, tabsCursor,
|
|
376
|
+
});
|
|
377
|
+
return __spreadValues({ panes, initLoading, tabsCursor }, methods);
|
|
360
378
|
}
|
|
361
379
|
});
|
|
362
380
|
const _hoisted_1$1 = {
|
|
@@ -429,8 +447,7 @@ const _sfc_main = create({
|
|
|
429
447
|
components: {
|
|
430
448
|
[CascaderItem.name]: CascaderItem
|
|
431
449
|
},
|
|
432
|
-
props: {
|
|
433
|
-
...popupProps,
|
|
450
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
434
451
|
modelValue: Array,
|
|
435
452
|
visible: Boolean,
|
|
436
453
|
title: String,
|
|
@@ -453,7 +470,7 @@ const _sfc_main = create({
|
|
|
453
470
|
default: "children"
|
|
454
471
|
},
|
|
455
472
|
convertConfig: Object
|
|
456
|
-
},
|
|
473
|
+
}),
|
|
457
474
|
emits: ["update:modelValue", "change", "pathChange", "update:visible"],
|
|
458
475
|
setup(props, { emit }) {
|
|
459
476
|
const innerValue = ref(props.modelValue);
|
|
@@ -474,14 +491,11 @@ const _sfc_main = create({
|
|
|
474
491
|
const onPathChange = (pathNodes) => {
|
|
475
492
|
emit("pathChange", pathNodes);
|
|
476
493
|
};
|
|
477
|
-
watch(
|
|
478
|
-
(
|
|
479
|
-
|
|
480
|
-
if (value !== innerValue.value) {
|
|
481
|
-
innerValue.value = value;
|
|
482
|
-
}
|
|
494
|
+
watch(() => props.modelValue, (value) => {
|
|
495
|
+
if (value !== innerValue.value) {
|
|
496
|
+
innerValue.value = value;
|
|
483
497
|
}
|
|
484
|
-
);
|
|
498
|
+
});
|
|
485
499
|
return {
|
|
486
500
|
onChange,
|
|
487
501
|
onPathChange,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -86,16 +86,13 @@ const component = (componentName2, nutIcon) => {
|
|
|
86
86
|
emit("update:modelValue", value);
|
|
87
87
|
emit("change", value, label);
|
|
88
88
|
};
|
|
89
|
-
watch(
|
|
90
|
-
()
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
} else {
|
|
95
|
-
emit("change", v);
|
|
96
|
-
}
|
|
89
|
+
watch(() => props.modelValue, (v) => {
|
|
90
|
+
if (updateType == "click") {
|
|
91
|
+
updateType = "";
|
|
92
|
+
} else {
|
|
93
|
+
emit("change", v);
|
|
97
94
|
}
|
|
98
|
-
);
|
|
95
|
+
});
|
|
99
96
|
const renderIcon = () => {
|
|
100
97
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
|
|
101
98
|
return h(nutIcon, {
|
|
@@ -108,13 +105,9 @@ const component = (componentName2, nutIcon) => {
|
|
|
108
105
|
};
|
|
109
106
|
const renderLabel = () => {
|
|
110
107
|
var _a;
|
|
111
|
-
return h(
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
|
|
115
|
-
},
|
|
116
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
117
|
-
);
|
|
108
|
+
return h("view", {
|
|
109
|
+
class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
|
|
110
|
+
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
118
111
|
};
|
|
119
112
|
const handleClick = (e) => {
|
|
120
113
|
var _a, _b;
|
|
@@ -142,21 +135,14 @@ const component = (componentName2, nutIcon) => {
|
|
|
142
135
|
onMounted(() => {
|
|
143
136
|
hasParent.value && parent["relation"](getCurrentInstance());
|
|
144
137
|
});
|
|
145
|
-
watch(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
state.partialSelect = newVal;
|
|
149
|
-
}
|
|
150
|
-
);
|
|
138
|
+
watch(() => props.indeterminate, (newVal) => {
|
|
139
|
+
state.partialSelect = newVal;
|
|
140
|
+
});
|
|
151
141
|
return () => {
|
|
152
|
-
return h(
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
onClick: handleClick
|
|
157
|
-
},
|
|
158
|
-
[renderIcon(), renderLabel()]
|
|
159
|
-
);
|
|
142
|
+
return h("view", {
|
|
143
|
+
class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
|
|
144
|
+
onClick: handleClick
|
|
145
|
+
}, [renderIcon(), renderLabel()]);
|
|
160
146
|
};
|
|
161
147
|
}
|
|
162
148
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -69,22 +69,15 @@ const _sfc_main = create({
|
|
|
69
69
|
updateValue,
|
|
70
70
|
relation
|
|
71
71
|
});
|
|
72
|
-
watch(
|
|
73
|
-
()
|
|
74
|
-
|
|
75
|
-
emit("change", value);
|
|
76
|
-
}
|
|
77
|
-
);
|
|
72
|
+
watch(() => props.modelValue, (value) => {
|
|
73
|
+
emit("change", value);
|
|
74
|
+
});
|
|
78
75
|
useExpose({ toggleAll, toggleReverse });
|
|
79
76
|
return () => {
|
|
80
77
|
var _a;
|
|
81
|
-
return h(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
class: `${componentName}`
|
|
85
|
-
},
|
|
86
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
87
|
-
);
|
|
78
|
+
return h("view", {
|
|
79
|
+
class: `${componentName}`
|
|
80
|
+
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
88
81
|
};
|
|
89
82
|
}
|
|
90
83
|
});
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -53,28 +53,25 @@ const _sfc_main = create({
|
|
|
53
53
|
setup(props, { emit, slots }) {
|
|
54
54
|
const collapseDom = ref(null);
|
|
55
55
|
const collapseChldren = ref([]);
|
|
56
|
-
watch(
|
|
57
|
-
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
} else {
|
|
65
|
-
item.changeOpen(false);
|
|
66
|
-
}
|
|
67
|
-
} else if (Object.values(newval) instanceof Array) {
|
|
68
|
-
if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
|
|
69
|
-
item.changeOpen(true);
|
|
70
|
-
} else {
|
|
71
|
-
item.changeOpen(false);
|
|
72
|
-
}
|
|
56
|
+
watch(() => props.active, (newval, oldval) => {
|
|
57
|
+
let doms = collapseChldren.value;
|
|
58
|
+
Array.from(doms).forEach((item) => {
|
|
59
|
+
if (typeof newval == "number" || typeof newval == "string") {
|
|
60
|
+
if (newval == item.name) {
|
|
61
|
+
item.changeOpen(true);
|
|
62
|
+
} else {
|
|
63
|
+
item.changeOpen(false);
|
|
73
64
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
} else if (Object.values(newval) instanceof Array) {
|
|
66
|
+
if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
|
|
67
|
+
item.changeOpen(true);
|
|
68
|
+
} else {
|
|
69
|
+
item.changeOpen(false);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
item.animation();
|
|
73
|
+
});
|
|
74
|
+
});
|
|
78
75
|
onMounted(() => {
|
|
79
76
|
collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
|
|
80
77
|
});
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -131,17 +150,14 @@ const _sfc_main = create({
|
|
|
131
150
|
proxyData.openExpanded = true;
|
|
132
151
|
}
|
|
133
152
|
});
|
|
134
|
-
watch(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}, 300);
|
|
143
|
-
}
|
|
144
|
-
);
|
|
153
|
+
watch(() => {
|
|
154
|
+
var _a, _b;
|
|
155
|
+
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
156
|
+
}, () => {
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
animation();
|
|
159
|
+
}, 300);
|
|
160
|
+
});
|
|
145
161
|
const init = () => {
|
|
146
162
|
const { name } = props;
|
|
147
163
|
const active = parent && parent.props.active;
|
|
@@ -169,19 +185,17 @@ const _sfc_main = create({
|
|
|
169
185
|
}
|
|
170
186
|
return _class;
|
|
171
187
|
});
|
|
172
|
-
return {
|
|
188
|
+
return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
173
189
|
classes,
|
|
174
|
-
emptyContent
|
|
175
|
-
|
|
176
|
-
...toRefs(parent.props),
|
|
177
|
-
...toRefs(titleIconStyle),
|
|
190
|
+
emptyContent
|
|
191
|
+
}, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
|
|
178
192
|
wrapperRef,
|
|
179
193
|
contentRef,
|
|
180
194
|
open,
|
|
181
195
|
toggleOpen,
|
|
182
196
|
changeOpen,
|
|
183
197
|
animation
|
|
184
|
-
};
|
|
198
|
+
});
|
|
185
199
|
}
|
|
186
200
|
});
|
|
187
201
|
const _hoisted_1 = { class: "collapse-title" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -131,18 +131,14 @@ const _sfc_main$2 = create$2({
|
|
|
131
131
|
const isShowImage = ref(false);
|
|
132
132
|
const initIndex = ref(1);
|
|
133
133
|
const totalImages = ref([]);
|
|
134
|
-
watch(
|
|
135
|
-
(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
totalImages.value = value[0].concat(value[1]);
|
|
143
|
-
},
|
|
144
|
-
{ deep: true }
|
|
145
|
-
);
|
|
134
|
+
watch(() => [props.videos, props.images], (value) => {
|
|
135
|
+
if (value[0].length > 0) {
|
|
136
|
+
value[0].forEach((el) => {
|
|
137
|
+
el.type = "video";
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
totalImages.value = value[0].concat(value[1]);
|
|
141
|
+
}, { deep: true });
|
|
146
142
|
onMounted(() => {
|
|
147
143
|
if (props.videos.length > 0) {
|
|
148
144
|
props.videos.forEach((el) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -14,13 +14,9 @@ const component = {
|
|
|
14
14
|
setup(props, { slots }) {
|
|
15
15
|
return () => {
|
|
16
16
|
var _a;
|
|
17
|
-
return h(
|
|
18
|
-
props.
|
|
19
|
-
|
|
20
|
-
class: `nut-theme-${props.theme}`
|
|
21
|
-
},
|
|
22
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
23
|
-
);
|
|
17
|
+
return h(props.tag, {
|
|
18
|
+
class: `nut-theme-${props.theme}`
|
|
19
|
+
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
24
20
|
};
|
|
25
21
|
}
|
|
26
22
|
};
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -129,7 +148,7 @@ const _sfc_main = create({
|
|
|
129
148
|
rest.s = Math.floor(ts % MINUTE / SECOND);
|
|
130
149
|
rest.ms = Math.floor(ts % SECOND);
|
|
131
150
|
}
|
|
132
|
-
return type == "custom" ? rest : parseFormat({
|
|
151
|
+
return type == "custom" ? rest : parseFormat(__spreadValues({}, rest));
|
|
133
152
|
};
|
|
134
153
|
const parseFormat = (time) => {
|
|
135
154
|
let { d, h, m, s, ms } = time;
|
|
@@ -192,45 +211,32 @@ const _sfc_main = create({
|
|
|
192
211
|
state.restTime = props.time;
|
|
193
212
|
}
|
|
194
213
|
});
|
|
195
|
-
watch(
|
|
196
|
-
|
|
197
|
-
(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
() => props.paused,
|
|
205
|
-
(v, ov) => {
|
|
206
|
-
if (!ov) {
|
|
207
|
-
if (state.counting) {
|
|
208
|
-
pause();
|
|
209
|
-
}
|
|
210
|
-
} else {
|
|
211
|
-
if (!state.counting) {
|
|
212
|
-
state.counting = true;
|
|
213
|
-
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
214
|
-
tick();
|
|
215
|
-
}
|
|
216
|
-
emit("on-restart", state.restTime);
|
|
214
|
+
watch(() => state.restTime, (value) => {
|
|
215
|
+
let tranTime = formatRemainTime(value, "custom");
|
|
216
|
+
emit("update:modelValue", tranTime);
|
|
217
|
+
emit("input", tranTime);
|
|
218
|
+
});
|
|
219
|
+
watch(() => props.paused, (v, ov) => {
|
|
220
|
+
if (!ov) {
|
|
221
|
+
if (state.counting) {
|
|
222
|
+
pause();
|
|
217
223
|
}
|
|
224
|
+
} else {
|
|
225
|
+
if (!state.counting) {
|
|
226
|
+
state.counting = true;
|
|
227
|
+
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
228
|
+
tick();
|
|
229
|
+
}
|
|
230
|
+
emit("on-restart", state.restTime);
|
|
218
231
|
}
|
|
219
|
-
);
|
|
220
|
-
watch(
|
|
221
|
-
()
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
);
|
|
226
|
-
|
|
227
|
-
() => props.startTime,
|
|
228
|
-
(value) => {
|
|
229
|
-
initTime();
|
|
230
|
-
}
|
|
231
|
-
);
|
|
232
|
-
return {
|
|
233
|
-
...toRefs(props),
|
|
232
|
+
});
|
|
233
|
+
watch(() => props.endTime, (value) => {
|
|
234
|
+
initTime();
|
|
235
|
+
});
|
|
236
|
+
watch(() => props.startTime, (value) => {
|
|
237
|
+
initTime();
|
|
238
|
+
});
|
|
239
|
+
return __spreadProps(__spreadValues({}, toRefs(props)), {
|
|
234
240
|
slots,
|
|
235
241
|
classes,
|
|
236
242
|
getTimeStamp,
|
|
@@ -239,7 +245,7 @@ const _sfc_main = create({
|
|
|
239
245
|
renderTime,
|
|
240
246
|
translate,
|
|
241
247
|
reset
|
|
242
|
-
};
|
|
248
|
+
});
|
|
243
249
|
}
|
|
244
250
|
});
|
|
245
251
|
const _hoisted_1 = ["innerHTML"];
|