zartui 3.1.37 → 3.2.0
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/es/action-sheet/index.css +1 -1
- package/es/audio/index.css +1 -1
- package/es/avatar/index.css +1 -1
- package/es/button/index.css +1 -1
- package/es/calendar/index.css +1 -1
- package/es/cascader/Cascader.mjs +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cell/index.css +1 -1
- package/es/checkbox/Checkbox.d.ts +20 -7
- package/es/checkbox/Checkbox.mjs +2 -1
- package/es/checkbox/Checker.mjs +2 -6
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +8 -0
- package/es/collapse-item/index.css +1 -1
- package/es/date-time-picker/DateTimePicker.mjs +4 -7
- package/es/date-time-picker/DateTimePickerWrapper.mjs +1 -3
- package/es/date-time-picker/index.css +1 -1
- package/es/date-time-picker/utils.d.ts +1 -0
- package/es/date-time-picker/utils.mjs +8 -0
- package/es/dialog/index.css +1 -1
- package/es/divider/index.css +1 -1
- package/es/drawer-select/DrawerSelect.mjs +5 -5
- package/es/drawer-select/index.css +1 -1
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/empty/index.css +1 -1
- package/es/field/index.css +1 -1
- package/es/floating-bubble/index.css +1 -1
- package/es/hierarchy-select/index.css +1 -1
- package/es/image/index.css +1 -1
- package/es/image-preview/index.css +1 -1
- package/es/index-anchor/index.css +1 -1
- package/es/index-bar/index.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/index.css +1 -1
- package/es/loading/index.css +1 -1
- package/es/media-picker/MediaPicker.mjs +4 -7
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/style/index.mjs +2 -1
- package/es/media-player/MediaPlayer.mjs +7 -4
- package/es/media-player/index.css +1 -1
- package/es/media-player/style/index.mjs +2 -0
- package/es/multiple-picker/index.css +1 -1
- package/es/nav-bar/index.css +1 -1
- package/es/notice-bar/index.css +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/picker/Picker.mjs +2 -5
- package/es/picker/index.css +1 -1
- package/es/popover/index.css +1 -1
- package/es/popup/index.css +1 -1
- package/es/radio/index.css +1 -1
- package/es/radio-picker/RadioPicker.mjs +1 -4
- package/es/radio-picker/index.css +1 -1
- package/es/rate/index.css +1 -1
- package/es/search/Search.d.ts +3 -0
- package/es/search/Search.mjs +4 -2
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +2 -0
- package/es/signature/index.css +1 -1
- package/es/skeleton/index.css +1 -1
- package/es/slider/index.css +1 -1
- package/es/step/Step.mjs +1 -1
- package/es/step/index.css +1 -1
- package/es/stepper/index.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/switch/index.css +1 -1
- package/es/tabbar/index.css +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/table/index.css +1 -1
- package/es/tabs/index.css +1 -1
- package/es/tag/index.css +1 -1
- package/es/time-picker/index.css +1 -1
- package/es/timeline/index.css +1 -1
- package/es/toast/index.css +1 -1
- package/es/uploader/index.css +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/audio/index.css +1 -1
- package/lib/avatar/index.css +1 -1
- package/lib/button/index.css +1 -1
- package/lib/calendar/index.css +1 -1
- package/lib/cascader/Cascader.js +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/checkbox/Checkbox.d.ts +20 -7
- package/lib/checkbox/Checkbox.js +1 -0
- package/lib/checkbox/Checker.js +2 -6
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +8 -0
- package/lib/collapse-item/index.css +1 -1
- package/lib/date-time-picker/DateTimePicker.js +3 -6
- package/lib/date-time-picker/DateTimePickerWrapper.js +1 -3
- package/lib/date-time-picker/index.css +1 -1
- package/lib/date-time-picker/utils.d.ts +1 -0
- package/lib/date-time-picker/utils.js +8 -0
- package/lib/dialog/index.css +1 -1
- package/lib/divider/index.css +1 -1
- package/lib/drawer-select/DrawerSelect.js +5 -5
- package/lib/drawer-select/index.css +1 -1
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/field/index.css +1 -1
- package/lib/floating-bubble/index.css +1 -1
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-bar/index.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.css +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/media-picker/MediaPicker.js +3 -6
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/style/index.js +2 -1
- package/lib/media-player/MediaPlayer.js +7 -4
- package/lib/media-player/index.css +1 -1
- package/lib/media-player/style/index.js +2 -0
- package/lib/multiple-picker/index.css +1 -1
- package/lib/nav-bar/index.css +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/picker/Picker.js +2 -5
- package/lib/picker/index.css +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popup/index.css +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/radio-picker/RadioPicker.js +1 -4
- package/lib/radio-picker/index.css +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/search/Search.d.ts +3 -0
- package/lib/search/Search.js +4 -2
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +2 -0
- package/lib/signature/index.css +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/slider/index.css +1 -1
- package/lib/step/Step.js +1 -1
- package/lib/step/index.css +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/table/index.css +1 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/time-picker/index.css +1 -1
- package/lib/timeline/index.css +1 -1
- package/lib/toast/index.css +1 -1
- package/lib/uploader/index.css +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +39 -44
- package/lib/zartui.es.js +39 -44
- package/lib/zartui.js +39 -44
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
package/lib/zartui.cjs.js
CHANGED
|
@@ -1295,7 +1295,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
|
1295
1295
|
closeOnClickAction: Boolean,
|
|
1296
1296
|
safeAreaInsetBottom: truthProp
|
|
1297
1297
|
});
|
|
1298
|
-
const popupInheritKeys$
|
|
1298
|
+
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1299
1299
|
var stdin_default$1P = vue.defineComponent({
|
|
1300
1300
|
name: name$1l,
|
|
1301
1301
|
props: actionSheetProps,
|
|
@@ -1403,7 +1403,7 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
1403
1403
|
"class": bem$1h(),
|
|
1404
1404
|
"position": "bottom",
|
|
1405
1405
|
"onUpdate:show": updateShow
|
|
1406
|
-
}, pick(props, popupInheritKeys$
|
|
1406
|
+
}, pick(props, popupInheritKeys$2)), {
|
|
1407
1407
|
default: () => {
|
|
1408
1408
|
var _a;
|
|
1409
1409
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
|
@@ -5296,7 +5296,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
5296
5296
|
});
|
|
5297
5297
|
const renderCascade = () => vue.createVNode("div", {
|
|
5298
5298
|
"class": bem$11()
|
|
5299
|
-
}, [renderHeader(),
|
|
5299
|
+
}, [renderHeader(), renderTabs(), props.popup ? renderDivider() : "", props.popup ? renderMenu() : ""]);
|
|
5300
5300
|
return () => {
|
|
5301
5301
|
if (props.popup) {
|
|
5302
5302
|
return vue.createVNode(Popup, {
|
|
@@ -5785,7 +5785,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
5785
5785
|
if (checkedColor && props.checked && !disabled.value) {
|
|
5786
5786
|
return {
|
|
5787
5787
|
borderColor: checkedColor,
|
|
5788
|
-
backgroundColor: checkedColor
|
|
5788
|
+
backgroundColor: props.role === "radio" ? "" : checkedColor
|
|
5789
5789
|
};
|
|
5790
5790
|
}
|
|
5791
5791
|
});
|
|
@@ -5823,11 +5823,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
5823
5823
|
disabled: disabled.value
|
|
5824
5824
|
}) : props.role === "radio" ? vue.createVNode(Icon, {
|
|
5825
5825
|
"style": iconStyle.value
|
|
5826
|
-
}, {
|
|
5827
|
-
default: () => [checked ? vue.createVNode("div", {
|
|
5828
|
-
"class": bem2("dot")
|
|
5829
|
-
}, null) : ""]
|
|
5830
|
-
}) : vue.createVNode(Icon, {
|
|
5826
|
+
}, null) : vue.createVNode(Icon, {
|
|
5831
5827
|
"name": indeterminate ? "minus" : "checkbox-select",
|
|
5832
5828
|
"style": iconStyle.value
|
|
5833
5829
|
}, null)]);
|
|
@@ -5859,6 +5855,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
5859
5855
|
const [name$_, bem$Z] = createNamespace("checkbox");
|
|
5860
5856
|
const checkboxProps = extend({}, checkerProps, {
|
|
5861
5857
|
bindGroup: truthProp,
|
|
5858
|
+
shape: makeStringProp("square"),
|
|
5862
5859
|
indeterminate: {
|
|
5863
5860
|
type: Boolean,
|
|
5864
5861
|
default: null
|
|
@@ -6881,9 +6878,6 @@ var stdin_default$1f = vue.defineComponent({
|
|
|
6881
6878
|
}, [props.title]);
|
|
6882
6879
|
}
|
|
6883
6880
|
};
|
|
6884
|
-
const topDivider = () => props.showTitle ? vue.createVNode(Divider, {
|
|
6885
|
-
"style": "margin: 0"
|
|
6886
|
-
}, null) : null;
|
|
6887
6881
|
const buttomDivider = () => props.showToolbar ? vue.createVNode(Divider, {
|
|
6888
6882
|
"style": "margin: 0"
|
|
6889
6883
|
}, null) : null;
|
|
@@ -6928,7 +6922,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
|
6928
6922
|
"class": bem$U()
|
|
6929
6923
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
6930
6924
|
"class": bem$U("loading")
|
|
6931
|
-
}, null) : null,
|
|
6925
|
+
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), buttomDivider(), renderToolbar()]);
|
|
6932
6926
|
};
|
|
6933
6927
|
const renderOptionItems = () => {
|
|
6934
6928
|
return currentColumns.value.map((options, columnIndex) => {
|
|
@@ -6957,7 +6951,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
|
6957
6951
|
"class": bem$U()
|
|
6958
6952
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
6959
6953
|
"class": bem$U("loading")
|
|
6960
|
-
}, null) : null,
|
|
6954
|
+
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderOptions(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), buttomDivider(), renderToolbar()]);
|
|
6961
6955
|
};
|
|
6962
6956
|
return () => {
|
|
6963
6957
|
if (isButtonPicker.value) {
|
|
@@ -6999,6 +6993,12 @@ const sharedProps = extend({}, pickerSharedProps$1, {
|
|
|
6999
6993
|
}
|
|
7000
6994
|
});
|
|
7001
6995
|
const pickerInheritKeys = Object.keys(pickerSharedProps$1);
|
|
6996
|
+
const popupInheritKeys$1 = [
|
|
6997
|
+
...popupSharedPropKeys,
|
|
6998
|
+
"round",
|
|
6999
|
+
"closeOnPopstate",
|
|
7000
|
+
"safeAreaInsetBottom"
|
|
7001
|
+
];
|
|
7002
7002
|
function times(n, iteratee) {
|
|
7003
7003
|
if (n < 0) {
|
|
7004
7004
|
return [];
|
|
@@ -7665,9 +7665,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
7665
7665
|
}, null);
|
|
7666
7666
|
const renderPicker = () => vue.createVNode("div", {
|
|
7667
7667
|
"class": bem$P()
|
|
7668
|
-
}, [hasDateColumn ? vue.createVNode(
|
|
7669
|
-
"style": "margin: 0"
|
|
7670
|
-
}, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
|
|
7668
|
+
}, [hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
|
|
7671
7669
|
"popup": false,
|
|
7672
7670
|
"columnsUnit": dateUnits.value,
|
|
7673
7671
|
"modelValue": dateValuesRef.value,
|
|
@@ -7919,21 +7917,19 @@ var stdin_default$18 = vue.defineComponent({
|
|
|
7919
7917
|
};
|
|
7920
7918
|
const renderToolbar = () => {
|
|
7921
7919
|
if (props.showToolbar) {
|
|
7922
|
-
return [vue.createVNode(stdin_default$
|
|
7923
|
-
"style": "margin: 0"
|
|
7924
|
-
}, null), vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7920
|
+
return [vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7925
7921
|
"onConfirm": onConfirm,
|
|
7926
7922
|
"onCancel": onCancel
|
|
7927
7923
|
}), pick(slots, pickerToolbarSlots$1))];
|
|
7928
7924
|
}
|
|
7929
7925
|
};
|
|
7930
|
-
return () => vue.createVNode(stdin_default$1T, {
|
|
7926
|
+
return () => vue.createVNode(stdin_default$1T, vue.mergeProps(pick(props, popupInheritKeys$1), {
|
|
7931
7927
|
"round": true,
|
|
7932
7928
|
"position": "bottom",
|
|
7933
7929
|
"onOpen": onOpen,
|
|
7934
7930
|
"show": currentShow.value,
|
|
7935
7931
|
"onUpdate:show": ($event) => currentShow.value = $event
|
|
7936
|
-
}, {
|
|
7932
|
+
}), {
|
|
7937
7933
|
default: () => [renderTitle(), renderPicker(), renderToolbar()]
|
|
7938
7934
|
});
|
|
7939
7935
|
}
|
|
@@ -8735,7 +8731,8 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
|
8735
8731
|
background: String,
|
|
8736
8732
|
inputBackground: String,
|
|
8737
8733
|
actionText: String,
|
|
8738
|
-
showAction: Boolean
|
|
8734
|
+
showAction: Boolean,
|
|
8735
|
+
boxShadow: String
|
|
8739
8736
|
});
|
|
8740
8737
|
var stdin_default$15 = vue.defineComponent({
|
|
8741
8738
|
name: name$L,
|
|
@@ -8844,7 +8841,8 @@ var stdin_default$15 = vue.defineComponent({
|
|
|
8844
8841
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
|
|
8845
8842
|
"class": bem$L("content", props.shape),
|
|
8846
8843
|
"style": {
|
|
8847
|
-
background: props.inputBackground
|
|
8844
|
+
background: props.inputBackground,
|
|
8845
|
+
boxShadow: props.boxShadow
|
|
8848
8846
|
}
|
|
8849
8847
|
}, [renderLabel(), renderField()]), renderAction()]);
|
|
8850
8848
|
};
|
|
@@ -9223,11 +9221,11 @@ var stdin_default$11 = vue.defineComponent({
|
|
|
9223
9221
|
}, [vue.createVNode("span", {
|
|
9224
9222
|
"class": [bem$J("label--placeholder")]
|
|
9225
9223
|
}, [children2.length > 0 && vue.createVNode(stdin_default$1V, {
|
|
9226
|
-
"name": "
|
|
9224
|
+
"name": "arrow-right",
|
|
9227
9225
|
"class": [bem$J("label--icon", {
|
|
9228
9226
|
active: item.expand
|
|
9229
9227
|
})],
|
|
9230
|
-
"size": "
|
|
9228
|
+
"size": "16"
|
|
9231
9229
|
}, null)]), vue.createVNode("span", {
|
|
9232
9230
|
"class": [bem$J("label--text")]
|
|
9233
9231
|
}, [text])]), !isEmpty(item) && item.expand && ((_b = item.children) == null ? void 0 : _b.map((child) => {
|
|
@@ -9255,11 +9253,11 @@ var stdin_default$11 = vue.defineComponent({
|
|
|
9255
9253
|
}, [vue.createVNode("span", {
|
|
9256
9254
|
"class": [bem$J("item--placeholder")]
|
|
9257
9255
|
}, [!empty && vue.createVNode(stdin_default$1V, {
|
|
9258
|
-
"name": "
|
|
9256
|
+
"name": "arrow-right",
|
|
9259
9257
|
"class": [bem$J("item--icon", {
|
|
9260
9258
|
active: item.checked
|
|
9261
9259
|
})],
|
|
9262
|
-
"size": "
|
|
9260
|
+
"size": "14"
|
|
9263
9261
|
}, null)]), vue.createVNode("div", {
|
|
9264
9262
|
"class": [bem$J("item--label", {
|
|
9265
9263
|
active
|
|
@@ -9335,7 +9333,7 @@ var stdin_default$11 = vue.defineComponent({
|
|
|
9335
9333
|
}, [historyList.value.map((item) => vue.createVNode(stdin_default$12, {
|
|
9336
9334
|
"onClick": () => onHistoryClick(item),
|
|
9337
9335
|
"round": true,
|
|
9338
|
-
"text-color": "var(--zt-gray-
|
|
9336
|
+
"text-color": "var(--zt-gray-60)",
|
|
9339
9337
|
"icon-color": "var(--zt-gray)"
|
|
9340
9338
|
}, {
|
|
9341
9339
|
default: () => [item]
|
|
@@ -13208,11 +13206,13 @@ var stdin_default$L = vue.defineComponent({
|
|
|
13208
13206
|
}, {
|
|
13209
13207
|
default: () => [renderTag(), vue.createVNode("div", {
|
|
13210
13208
|
"class": bem$u("cancel")
|
|
13211
|
-
}, [vue.createVNode(
|
|
13212
|
-
"type": "
|
|
13213
|
-
"
|
|
13209
|
+
}, [vue.createVNode(stdin_default$1G, {
|
|
13210
|
+
"type": "default",
|
|
13211
|
+
"block-inner": true,
|
|
13214
13212
|
"onClick": onClose
|
|
13215
|
-
},
|
|
13213
|
+
}, {
|
|
13214
|
+
default: () => [vue.createTextVNode("关闭")]
|
|
13215
|
+
})])]
|
|
13216
13216
|
});
|
|
13217
13217
|
}
|
|
13218
13218
|
});
|
|
@@ -14378,11 +14378,9 @@ var stdin_default$B = vue.defineComponent({
|
|
|
14378
14378
|
file: media
|
|
14379
14379
|
});
|
|
14380
14380
|
}
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
}, [media.label]);
|
|
14385
|
-
}
|
|
14381
|
+
return vue.createVNode("div", {
|
|
14382
|
+
"class": bem$t("thumbnail-label")
|
|
14383
|
+
}, [media.label, vue.createTextVNode("12312")]);
|
|
14386
14384
|
};
|
|
14387
14385
|
const onDelete = (media, index) => {
|
|
14388
14386
|
if (props.beforeDelete) {
|
|
@@ -16728,9 +16726,6 @@ var stdin_default$m = vue.defineComponent({
|
|
|
16728
16726
|
}, [props.title]);
|
|
16729
16727
|
}
|
|
16730
16728
|
};
|
|
16731
|
-
const topDivider = () => props.showTitle ? vue.createVNode(Divider, {
|
|
16732
|
-
"style": "margin: 0"
|
|
16733
|
-
}, null) : null;
|
|
16734
16729
|
const buttomDivider = () => props.showToolbar ? vue.createVNode(Divider, {
|
|
16735
16730
|
"style": "margin: 0"
|
|
16736
16731
|
}, null) : null;
|
|
@@ -16774,7 +16769,7 @@ var stdin_default$m = vue.defineComponent({
|
|
|
16774
16769
|
"class": bem$g()
|
|
16775
16770
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
16776
16771
|
"class": bem$g("loading")
|
|
16777
|
-
}, null) : null,
|
|
16772
|
+
}, null) : null, renderSearch(), (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), buttomDivider(), renderToolbar()]);
|
|
16778
16773
|
};
|
|
16779
16774
|
return () => {
|
|
16780
16775
|
if (props.popup) {
|
|
@@ -17492,7 +17487,7 @@ var stdin_default$h = vue.defineComponent({
|
|
|
17492
17487
|
} = parentProps;
|
|
17493
17488
|
const style = {};
|
|
17494
17489
|
if (isActive()) {
|
|
17495
|
-
style.background = `${activeBgColor || "var(--zt-
|
|
17490
|
+
style.background = `${activeBgColor || " var(--zt-blue-10)"}`;
|
|
17496
17491
|
if (activeBorderColor) {
|
|
17497
17492
|
style.border = `1px solid ${activeBorderColor}`;
|
|
17498
17493
|
}
|
|
@@ -20621,7 +20616,7 @@ const Lazyload = {
|
|
|
20621
20616
|
});
|
|
20622
20617
|
}
|
|
20623
20618
|
};
|
|
20624
|
-
const version = "3.
|
|
20619
|
+
const version = "3.2.0";
|
|
20625
20620
|
function install(app) {
|
|
20626
20621
|
const components = [
|
|
20627
20622
|
ActionSheet,
|
package/lib/zartui.es.js
CHANGED
|
@@ -1293,7 +1293,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
|
1293
1293
|
closeOnClickAction: Boolean,
|
|
1294
1294
|
safeAreaInsetBottom: truthProp
|
|
1295
1295
|
});
|
|
1296
|
-
const popupInheritKeys$
|
|
1296
|
+
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1297
1297
|
var stdin_default$1P = defineComponent({
|
|
1298
1298
|
name: name$1l,
|
|
1299
1299
|
props: actionSheetProps,
|
|
@@ -1401,7 +1401,7 @@ var stdin_default$1P = defineComponent({
|
|
|
1401
1401
|
"class": bem$1h(),
|
|
1402
1402
|
"position": "bottom",
|
|
1403
1403
|
"onUpdate:show": updateShow
|
|
1404
|
-
}, pick(props, popupInheritKeys$
|
|
1404
|
+
}, pick(props, popupInheritKeys$2)), {
|
|
1405
1405
|
default: () => {
|
|
1406
1406
|
var _a;
|
|
1407
1407
|
return [renderHeader(), renderDescription(), createVNode("div", {
|
|
@@ -5294,7 +5294,7 @@ var stdin_default$1s = defineComponent({
|
|
|
5294
5294
|
});
|
|
5295
5295
|
const renderCascade = () => createVNode("div", {
|
|
5296
5296
|
"class": bem$11()
|
|
5297
|
-
}, [renderHeader(),
|
|
5297
|
+
}, [renderHeader(), renderTabs(), props.popup ? renderDivider() : "", props.popup ? renderMenu() : ""]);
|
|
5298
5298
|
return () => {
|
|
5299
5299
|
if (props.popup) {
|
|
5300
5300
|
return createVNode(Popup, {
|
|
@@ -5783,7 +5783,7 @@ var stdin_default$1o = defineComponent({
|
|
|
5783
5783
|
if (checkedColor && props.checked && !disabled.value) {
|
|
5784
5784
|
return {
|
|
5785
5785
|
borderColor: checkedColor,
|
|
5786
|
-
backgroundColor: checkedColor
|
|
5786
|
+
backgroundColor: props.role === "radio" ? "" : checkedColor
|
|
5787
5787
|
};
|
|
5788
5788
|
}
|
|
5789
5789
|
});
|
|
@@ -5821,11 +5821,7 @@ var stdin_default$1o = defineComponent({
|
|
|
5821
5821
|
disabled: disabled.value
|
|
5822
5822
|
}) : props.role === "radio" ? createVNode(Icon, {
|
|
5823
5823
|
"style": iconStyle.value
|
|
5824
|
-
}, {
|
|
5825
|
-
default: () => [checked ? createVNode("div", {
|
|
5826
|
-
"class": bem2("dot")
|
|
5827
|
-
}, null) : ""]
|
|
5828
|
-
}) : createVNode(Icon, {
|
|
5824
|
+
}, null) : createVNode(Icon, {
|
|
5829
5825
|
"name": indeterminate ? "minus" : "checkbox-select",
|
|
5830
5826
|
"style": iconStyle.value
|
|
5831
5827
|
}, null)]);
|
|
@@ -5857,6 +5853,7 @@ var stdin_default$1o = defineComponent({
|
|
|
5857
5853
|
const [name$_, bem$Z] = createNamespace("checkbox");
|
|
5858
5854
|
const checkboxProps = extend({}, checkerProps, {
|
|
5859
5855
|
bindGroup: truthProp,
|
|
5856
|
+
shape: makeStringProp("square"),
|
|
5860
5857
|
indeterminate: {
|
|
5861
5858
|
type: Boolean,
|
|
5862
5859
|
default: null
|
|
@@ -6879,9 +6876,6 @@ var stdin_default$1f = defineComponent({
|
|
|
6879
6876
|
}, [props.title]);
|
|
6880
6877
|
}
|
|
6881
6878
|
};
|
|
6882
|
-
const topDivider = () => props.showTitle ? createVNode(Divider, {
|
|
6883
|
-
"style": "margin: 0"
|
|
6884
|
-
}, null) : null;
|
|
6885
6879
|
const buttomDivider = () => props.showToolbar ? createVNode(Divider, {
|
|
6886
6880
|
"style": "margin: 0"
|
|
6887
6881
|
}, null) : null;
|
|
@@ -6926,7 +6920,7 @@ var stdin_default$1f = defineComponent({
|
|
|
6926
6920
|
"class": bem$U()
|
|
6927
6921
|
}, [renderTitleBar(), props.loading ? createVNode(Loading, {
|
|
6928
6922
|
"class": bem$U("loading")
|
|
6929
|
-
}, null) : null,
|
|
6923
|
+
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), buttomDivider(), renderToolbar()]);
|
|
6930
6924
|
};
|
|
6931
6925
|
const renderOptionItems = () => {
|
|
6932
6926
|
return currentColumns.value.map((options, columnIndex) => {
|
|
@@ -6955,7 +6949,7 @@ var stdin_default$1f = defineComponent({
|
|
|
6955
6949
|
"class": bem$U()
|
|
6956
6950
|
}, [renderTitleBar(), props.loading ? createVNode(Loading, {
|
|
6957
6951
|
"class": bem$U("loading")
|
|
6958
|
-
}, null) : null,
|
|
6952
|
+
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderOptions(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), buttomDivider(), renderToolbar()]);
|
|
6959
6953
|
};
|
|
6960
6954
|
return () => {
|
|
6961
6955
|
if (isButtonPicker.value) {
|
|
@@ -6997,6 +6991,12 @@ const sharedProps = extend({}, pickerSharedProps$1, {
|
|
|
6997
6991
|
}
|
|
6998
6992
|
});
|
|
6999
6993
|
const pickerInheritKeys = Object.keys(pickerSharedProps$1);
|
|
6994
|
+
const popupInheritKeys$1 = [
|
|
6995
|
+
...popupSharedPropKeys,
|
|
6996
|
+
"round",
|
|
6997
|
+
"closeOnPopstate",
|
|
6998
|
+
"safeAreaInsetBottom"
|
|
6999
|
+
];
|
|
7000
7000
|
function times(n, iteratee) {
|
|
7001
7001
|
if (n < 0) {
|
|
7002
7002
|
return [];
|
|
@@ -7663,9 +7663,7 @@ var stdin_default$19 = defineComponent({
|
|
|
7663
7663
|
}, null);
|
|
7664
7664
|
const renderPicker = () => createVNode("div", {
|
|
7665
7665
|
"class": bem$P()
|
|
7666
|
-
}, [hasDateColumn ? createVNode(
|
|
7667
|
-
"style": "margin: 0"
|
|
7668
|
-
}, null) : null, hasDateColumn ? createVNode(stdin_default$1e, mergeProps({
|
|
7666
|
+
}, [hasDateColumn ? createVNode(stdin_default$1e, mergeProps({
|
|
7669
7667
|
"popup": false,
|
|
7670
7668
|
"columnsUnit": dateUnits.value,
|
|
7671
7669
|
"modelValue": dateValuesRef.value,
|
|
@@ -7917,21 +7915,19 @@ var stdin_default$18 = defineComponent({
|
|
|
7917
7915
|
};
|
|
7918
7916
|
const renderToolbar = () => {
|
|
7919
7917
|
if (props.showToolbar) {
|
|
7920
|
-
return [createVNode(stdin_default$
|
|
7921
|
-
"style": "margin: 0"
|
|
7922
|
-
}, null), createVNode(stdin_default$1h, mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7918
|
+
return [createVNode(stdin_default$1h, mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7923
7919
|
"onConfirm": onConfirm,
|
|
7924
7920
|
"onCancel": onCancel
|
|
7925
7921
|
}), pick(slots, pickerToolbarSlots$1))];
|
|
7926
7922
|
}
|
|
7927
7923
|
};
|
|
7928
|
-
return () => createVNode(stdin_default$1T, {
|
|
7924
|
+
return () => createVNode(stdin_default$1T, mergeProps(pick(props, popupInheritKeys$1), {
|
|
7929
7925
|
"round": true,
|
|
7930
7926
|
"position": "bottom",
|
|
7931
7927
|
"onOpen": onOpen,
|
|
7932
7928
|
"show": currentShow.value,
|
|
7933
7929
|
"onUpdate:show": ($event) => currentShow.value = $event
|
|
7934
|
-
}, {
|
|
7930
|
+
}), {
|
|
7935
7931
|
default: () => [renderTitle(), renderPicker(), renderToolbar()]
|
|
7936
7932
|
});
|
|
7937
7933
|
}
|
|
@@ -8733,7 +8729,8 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
|
8733
8729
|
background: String,
|
|
8734
8730
|
inputBackground: String,
|
|
8735
8731
|
actionText: String,
|
|
8736
|
-
showAction: Boolean
|
|
8732
|
+
showAction: Boolean,
|
|
8733
|
+
boxShadow: String
|
|
8737
8734
|
});
|
|
8738
8735
|
var stdin_default$15 = defineComponent({
|
|
8739
8736
|
name: name$L,
|
|
@@ -8842,7 +8839,8 @@ var stdin_default$15 = defineComponent({
|
|
|
8842
8839
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), createVNode("div", {
|
|
8843
8840
|
"class": bem$L("content", props.shape),
|
|
8844
8841
|
"style": {
|
|
8845
|
-
background: props.inputBackground
|
|
8842
|
+
background: props.inputBackground,
|
|
8843
|
+
boxShadow: props.boxShadow
|
|
8846
8844
|
}
|
|
8847
8845
|
}, [renderLabel(), renderField()]), renderAction()]);
|
|
8848
8846
|
};
|
|
@@ -9221,11 +9219,11 @@ var stdin_default$11 = defineComponent({
|
|
|
9221
9219
|
}, [createVNode("span", {
|
|
9222
9220
|
"class": [bem$J("label--placeholder")]
|
|
9223
9221
|
}, [children2.length > 0 && createVNode(stdin_default$1V, {
|
|
9224
|
-
"name": "
|
|
9222
|
+
"name": "arrow-right",
|
|
9225
9223
|
"class": [bem$J("label--icon", {
|
|
9226
9224
|
active: item.expand
|
|
9227
9225
|
})],
|
|
9228
|
-
"size": "
|
|
9226
|
+
"size": "16"
|
|
9229
9227
|
}, null)]), createVNode("span", {
|
|
9230
9228
|
"class": [bem$J("label--text")]
|
|
9231
9229
|
}, [text])]), !isEmpty(item) && item.expand && ((_b = item.children) == null ? void 0 : _b.map((child) => {
|
|
@@ -9253,11 +9251,11 @@ var stdin_default$11 = defineComponent({
|
|
|
9253
9251
|
}, [createVNode("span", {
|
|
9254
9252
|
"class": [bem$J("item--placeholder")]
|
|
9255
9253
|
}, [!empty && createVNode(stdin_default$1V, {
|
|
9256
|
-
"name": "
|
|
9254
|
+
"name": "arrow-right",
|
|
9257
9255
|
"class": [bem$J("item--icon", {
|
|
9258
9256
|
active: item.checked
|
|
9259
9257
|
})],
|
|
9260
|
-
"size": "
|
|
9258
|
+
"size": "14"
|
|
9261
9259
|
}, null)]), createVNode("div", {
|
|
9262
9260
|
"class": [bem$J("item--label", {
|
|
9263
9261
|
active
|
|
@@ -9333,7 +9331,7 @@ var stdin_default$11 = defineComponent({
|
|
|
9333
9331
|
}, [historyList.value.map((item) => createVNode(stdin_default$12, {
|
|
9334
9332
|
"onClick": () => onHistoryClick(item),
|
|
9335
9333
|
"round": true,
|
|
9336
|
-
"text-color": "var(--zt-gray-
|
|
9334
|
+
"text-color": "var(--zt-gray-60)",
|
|
9337
9335
|
"icon-color": "var(--zt-gray)"
|
|
9338
9336
|
}, {
|
|
9339
9337
|
default: () => [item]
|
|
@@ -13206,11 +13204,13 @@ var stdin_default$L = defineComponent({
|
|
|
13206
13204
|
}, {
|
|
13207
13205
|
default: () => [renderTag(), createVNode("div", {
|
|
13208
13206
|
"class": bem$u("cancel")
|
|
13209
|
-
}, [createVNode(
|
|
13210
|
-
"type": "
|
|
13211
|
-
"
|
|
13207
|
+
}, [createVNode(stdin_default$1G, {
|
|
13208
|
+
"type": "default",
|
|
13209
|
+
"block-inner": true,
|
|
13212
13210
|
"onClick": onClose
|
|
13213
|
-
},
|
|
13211
|
+
}, {
|
|
13212
|
+
default: () => [createTextVNode("关闭")]
|
|
13213
|
+
})])]
|
|
13214
13214
|
});
|
|
13215
13215
|
}
|
|
13216
13216
|
});
|
|
@@ -14376,11 +14376,9 @@ var stdin_default$B = defineComponent({
|
|
|
14376
14376
|
file: media
|
|
14377
14377
|
});
|
|
14378
14378
|
}
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
}, [media.label]);
|
|
14383
|
-
}
|
|
14379
|
+
return createVNode("div", {
|
|
14380
|
+
"class": bem$t("thumbnail-label")
|
|
14381
|
+
}, [media.label, createTextVNode("12312")]);
|
|
14384
14382
|
};
|
|
14385
14383
|
const onDelete = (media, index) => {
|
|
14386
14384
|
if (props.beforeDelete) {
|
|
@@ -16726,9 +16724,6 @@ var stdin_default$m = defineComponent({
|
|
|
16726
16724
|
}, [props.title]);
|
|
16727
16725
|
}
|
|
16728
16726
|
};
|
|
16729
|
-
const topDivider = () => props.showTitle ? createVNode(Divider, {
|
|
16730
|
-
"style": "margin: 0"
|
|
16731
|
-
}, null) : null;
|
|
16732
16727
|
const buttomDivider = () => props.showToolbar ? createVNode(Divider, {
|
|
16733
16728
|
"style": "margin: 0"
|
|
16734
16729
|
}, null) : null;
|
|
@@ -16772,7 +16767,7 @@ var stdin_default$m = defineComponent({
|
|
|
16772
16767
|
"class": bem$g()
|
|
16773
16768
|
}, [renderTitleBar(), props.loading ? createVNode(Loading, {
|
|
16774
16769
|
"class": bem$g("loading")
|
|
16775
|
-
}, null) : null,
|
|
16770
|
+
}, null) : null, renderSearch(), (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), buttomDivider(), renderToolbar()]);
|
|
16776
16771
|
};
|
|
16777
16772
|
return () => {
|
|
16778
16773
|
if (props.popup) {
|
|
@@ -17490,7 +17485,7 @@ var stdin_default$h = defineComponent({
|
|
|
17490
17485
|
} = parentProps;
|
|
17491
17486
|
const style = {};
|
|
17492
17487
|
if (isActive()) {
|
|
17493
|
-
style.background = `${activeBgColor || "var(--zt-
|
|
17488
|
+
style.background = `${activeBgColor || " var(--zt-blue-10)"}`;
|
|
17494
17489
|
if (activeBorderColor) {
|
|
17495
17490
|
style.border = `1px solid ${activeBorderColor}`;
|
|
17496
17491
|
}
|
|
@@ -20619,7 +20614,7 @@ const Lazyload = {
|
|
|
20619
20614
|
});
|
|
20620
20615
|
}
|
|
20621
20616
|
};
|
|
20622
|
-
const version = "3.
|
|
20617
|
+
const version = "3.2.0";
|
|
20623
20618
|
function install(app) {
|
|
20624
20619
|
const components = [
|
|
20625
20620
|
ActionSheet,
|