zartui 3.1.38 → 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 +1 -4
- package/es/date-time-picker/DateTimePickerWrapper.mjs +1 -3
- package/es/date-time-picker/index.css +1 -1
- 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 +1 -4
- package/lib/date-time-picker/DateTimePickerWrapper.js +1 -3
- package/lib/date-time-picker/index.css +1 -1
- 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 +29 -40
- package/lib/zartui.es.js +29 -40
- package/lib/zartui.js +29 -40
- package/lib/zartui.min.js +1 -1
- package/package.json +6 -6
package/lib/zartui.cjs.js
CHANGED
|
@@ -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) {
|
|
@@ -7671,9 +7665,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
7671
7665
|
}, null);
|
|
7672
7666
|
const renderPicker = () => vue.createVNode("div", {
|
|
7673
7667
|
"class": bem$P()
|
|
7674
|
-
}, [hasDateColumn ? vue.createVNode(
|
|
7675
|
-
"style": "margin: 0"
|
|
7676
|
-
}, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
|
|
7668
|
+
}, [hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
|
|
7677
7669
|
"popup": false,
|
|
7678
7670
|
"columnsUnit": dateUnits.value,
|
|
7679
7671
|
"modelValue": dateValuesRef.value,
|
|
@@ -7925,9 +7917,7 @@ var stdin_default$18 = vue.defineComponent({
|
|
|
7925
7917
|
};
|
|
7926
7918
|
const renderToolbar = () => {
|
|
7927
7919
|
if (props.showToolbar) {
|
|
7928
|
-
return [vue.createVNode(stdin_default$
|
|
7929
|
-
"style": "margin: 0"
|
|
7930
|
-
}, 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), {
|
|
7931
7921
|
"onConfirm": onConfirm,
|
|
7932
7922
|
"onCancel": onCancel
|
|
7933
7923
|
}), pick(slots, pickerToolbarSlots$1))];
|
|
@@ -8741,7 +8731,8 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
|
8741
8731
|
background: String,
|
|
8742
8732
|
inputBackground: String,
|
|
8743
8733
|
actionText: String,
|
|
8744
|
-
showAction: Boolean
|
|
8734
|
+
showAction: Boolean,
|
|
8735
|
+
boxShadow: String
|
|
8745
8736
|
});
|
|
8746
8737
|
var stdin_default$15 = vue.defineComponent({
|
|
8747
8738
|
name: name$L,
|
|
@@ -8850,7 +8841,8 @@ var stdin_default$15 = vue.defineComponent({
|
|
|
8850
8841
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
|
|
8851
8842
|
"class": bem$L("content", props.shape),
|
|
8852
8843
|
"style": {
|
|
8853
|
-
background: props.inputBackground
|
|
8844
|
+
background: props.inputBackground,
|
|
8845
|
+
boxShadow: props.boxShadow
|
|
8854
8846
|
}
|
|
8855
8847
|
}, [renderLabel(), renderField()]), renderAction()]);
|
|
8856
8848
|
};
|
|
@@ -9229,11 +9221,11 @@ var stdin_default$11 = vue.defineComponent({
|
|
|
9229
9221
|
}, [vue.createVNode("span", {
|
|
9230
9222
|
"class": [bem$J("label--placeholder")]
|
|
9231
9223
|
}, [children2.length > 0 && vue.createVNode(stdin_default$1V, {
|
|
9232
|
-
"name": "
|
|
9224
|
+
"name": "arrow-right",
|
|
9233
9225
|
"class": [bem$J("label--icon", {
|
|
9234
9226
|
active: item.expand
|
|
9235
9227
|
})],
|
|
9236
|
-
"size": "
|
|
9228
|
+
"size": "16"
|
|
9237
9229
|
}, null)]), vue.createVNode("span", {
|
|
9238
9230
|
"class": [bem$J("label--text")]
|
|
9239
9231
|
}, [text])]), !isEmpty(item) && item.expand && ((_b = item.children) == null ? void 0 : _b.map((child) => {
|
|
@@ -9261,11 +9253,11 @@ var stdin_default$11 = vue.defineComponent({
|
|
|
9261
9253
|
}, [vue.createVNode("span", {
|
|
9262
9254
|
"class": [bem$J("item--placeholder")]
|
|
9263
9255
|
}, [!empty && vue.createVNode(stdin_default$1V, {
|
|
9264
|
-
"name": "
|
|
9256
|
+
"name": "arrow-right",
|
|
9265
9257
|
"class": [bem$J("item--icon", {
|
|
9266
9258
|
active: item.checked
|
|
9267
9259
|
})],
|
|
9268
|
-
"size": "
|
|
9260
|
+
"size": "14"
|
|
9269
9261
|
}, null)]), vue.createVNode("div", {
|
|
9270
9262
|
"class": [bem$J("item--label", {
|
|
9271
9263
|
active
|
|
@@ -9341,7 +9333,7 @@ var stdin_default$11 = vue.defineComponent({
|
|
|
9341
9333
|
}, [historyList.value.map((item) => vue.createVNode(stdin_default$12, {
|
|
9342
9334
|
"onClick": () => onHistoryClick(item),
|
|
9343
9335
|
"round": true,
|
|
9344
|
-
"text-color": "var(--zt-gray-
|
|
9336
|
+
"text-color": "var(--zt-gray-60)",
|
|
9345
9337
|
"icon-color": "var(--zt-gray)"
|
|
9346
9338
|
}, {
|
|
9347
9339
|
default: () => [item]
|
|
@@ -13214,11 +13206,13 @@ var stdin_default$L = vue.defineComponent({
|
|
|
13214
13206
|
}, {
|
|
13215
13207
|
default: () => [renderTag(), vue.createVNode("div", {
|
|
13216
13208
|
"class": bem$u("cancel")
|
|
13217
|
-
}, [vue.createVNode(
|
|
13218
|
-
"type": "
|
|
13219
|
-
"
|
|
13209
|
+
}, [vue.createVNode(stdin_default$1G, {
|
|
13210
|
+
"type": "default",
|
|
13211
|
+
"block-inner": true,
|
|
13220
13212
|
"onClick": onClose
|
|
13221
|
-
},
|
|
13213
|
+
}, {
|
|
13214
|
+
default: () => [vue.createTextVNode("关闭")]
|
|
13215
|
+
})])]
|
|
13222
13216
|
});
|
|
13223
13217
|
}
|
|
13224
13218
|
});
|
|
@@ -14384,11 +14378,9 @@ var stdin_default$B = vue.defineComponent({
|
|
|
14384
14378
|
file: media
|
|
14385
14379
|
});
|
|
14386
14380
|
}
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
}, [media.label]);
|
|
14391
|
-
}
|
|
14381
|
+
return vue.createVNode("div", {
|
|
14382
|
+
"class": bem$t("thumbnail-label")
|
|
14383
|
+
}, [media.label, vue.createTextVNode("12312")]);
|
|
14392
14384
|
};
|
|
14393
14385
|
const onDelete = (media, index) => {
|
|
14394
14386
|
if (props.beforeDelete) {
|
|
@@ -16734,9 +16726,6 @@ var stdin_default$m = vue.defineComponent({
|
|
|
16734
16726
|
}, [props.title]);
|
|
16735
16727
|
}
|
|
16736
16728
|
};
|
|
16737
|
-
const topDivider = () => props.showTitle ? vue.createVNode(Divider, {
|
|
16738
|
-
"style": "margin: 0"
|
|
16739
|
-
}, null) : null;
|
|
16740
16729
|
const buttomDivider = () => props.showToolbar ? vue.createVNode(Divider, {
|
|
16741
16730
|
"style": "margin: 0"
|
|
16742
16731
|
}, null) : null;
|
|
@@ -16780,7 +16769,7 @@ var stdin_default$m = vue.defineComponent({
|
|
|
16780
16769
|
"class": bem$g()
|
|
16781
16770
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
16782
16771
|
"class": bem$g("loading")
|
|
16783
|
-
}, 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()]);
|
|
16784
16773
|
};
|
|
16785
16774
|
return () => {
|
|
16786
16775
|
if (props.popup) {
|
|
@@ -17498,7 +17487,7 @@ var stdin_default$h = vue.defineComponent({
|
|
|
17498
17487
|
} = parentProps;
|
|
17499
17488
|
const style = {};
|
|
17500
17489
|
if (isActive()) {
|
|
17501
|
-
style.background = `${activeBgColor || "var(--zt-
|
|
17490
|
+
style.background = `${activeBgColor || " var(--zt-blue-10)"}`;
|
|
17502
17491
|
if (activeBorderColor) {
|
|
17503
17492
|
style.border = `1px solid ${activeBorderColor}`;
|
|
17504
17493
|
}
|
|
@@ -20627,7 +20616,7 @@ const Lazyload = {
|
|
|
20627
20616
|
});
|
|
20628
20617
|
}
|
|
20629
20618
|
};
|
|
20630
|
-
const version = "3.
|
|
20619
|
+
const version = "3.2.0";
|
|
20631
20620
|
function install(app) {
|
|
20632
20621
|
const components = [
|
|
20633
20622
|
ActionSheet,
|
package/lib/zartui.es.js
CHANGED
|
@@ -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) {
|
|
@@ -7669,9 +7663,7 @@ var stdin_default$19 = defineComponent({
|
|
|
7669
7663
|
}, null);
|
|
7670
7664
|
const renderPicker = () => createVNode("div", {
|
|
7671
7665
|
"class": bem$P()
|
|
7672
|
-
}, [hasDateColumn ? createVNode(
|
|
7673
|
-
"style": "margin: 0"
|
|
7674
|
-
}, null) : null, hasDateColumn ? createVNode(stdin_default$1e, mergeProps({
|
|
7666
|
+
}, [hasDateColumn ? createVNode(stdin_default$1e, mergeProps({
|
|
7675
7667
|
"popup": false,
|
|
7676
7668
|
"columnsUnit": dateUnits.value,
|
|
7677
7669
|
"modelValue": dateValuesRef.value,
|
|
@@ -7923,9 +7915,7 @@ var stdin_default$18 = defineComponent({
|
|
|
7923
7915
|
};
|
|
7924
7916
|
const renderToolbar = () => {
|
|
7925
7917
|
if (props.showToolbar) {
|
|
7926
|
-
return [createVNode(stdin_default$
|
|
7927
|
-
"style": "margin: 0"
|
|
7928
|
-
}, null), createVNode(stdin_default$1h, mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7918
|
+
return [createVNode(stdin_default$1h, mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7929
7919
|
"onConfirm": onConfirm,
|
|
7930
7920
|
"onCancel": onCancel
|
|
7931
7921
|
}), pick(slots, pickerToolbarSlots$1))];
|
|
@@ -8739,7 +8729,8 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
|
8739
8729
|
background: String,
|
|
8740
8730
|
inputBackground: String,
|
|
8741
8731
|
actionText: String,
|
|
8742
|
-
showAction: Boolean
|
|
8732
|
+
showAction: Boolean,
|
|
8733
|
+
boxShadow: String
|
|
8743
8734
|
});
|
|
8744
8735
|
var stdin_default$15 = defineComponent({
|
|
8745
8736
|
name: name$L,
|
|
@@ -8848,7 +8839,8 @@ var stdin_default$15 = defineComponent({
|
|
|
8848
8839
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), createVNode("div", {
|
|
8849
8840
|
"class": bem$L("content", props.shape),
|
|
8850
8841
|
"style": {
|
|
8851
|
-
background: props.inputBackground
|
|
8842
|
+
background: props.inputBackground,
|
|
8843
|
+
boxShadow: props.boxShadow
|
|
8852
8844
|
}
|
|
8853
8845
|
}, [renderLabel(), renderField()]), renderAction()]);
|
|
8854
8846
|
};
|
|
@@ -9227,11 +9219,11 @@ var stdin_default$11 = defineComponent({
|
|
|
9227
9219
|
}, [createVNode("span", {
|
|
9228
9220
|
"class": [bem$J("label--placeholder")]
|
|
9229
9221
|
}, [children2.length > 0 && createVNode(stdin_default$1V, {
|
|
9230
|
-
"name": "
|
|
9222
|
+
"name": "arrow-right",
|
|
9231
9223
|
"class": [bem$J("label--icon", {
|
|
9232
9224
|
active: item.expand
|
|
9233
9225
|
})],
|
|
9234
|
-
"size": "
|
|
9226
|
+
"size": "16"
|
|
9235
9227
|
}, null)]), createVNode("span", {
|
|
9236
9228
|
"class": [bem$J("label--text")]
|
|
9237
9229
|
}, [text])]), !isEmpty(item) && item.expand && ((_b = item.children) == null ? void 0 : _b.map((child) => {
|
|
@@ -9259,11 +9251,11 @@ var stdin_default$11 = defineComponent({
|
|
|
9259
9251
|
}, [createVNode("span", {
|
|
9260
9252
|
"class": [bem$J("item--placeholder")]
|
|
9261
9253
|
}, [!empty && createVNode(stdin_default$1V, {
|
|
9262
|
-
"name": "
|
|
9254
|
+
"name": "arrow-right",
|
|
9263
9255
|
"class": [bem$J("item--icon", {
|
|
9264
9256
|
active: item.checked
|
|
9265
9257
|
})],
|
|
9266
|
-
"size": "
|
|
9258
|
+
"size": "14"
|
|
9267
9259
|
}, null)]), createVNode("div", {
|
|
9268
9260
|
"class": [bem$J("item--label", {
|
|
9269
9261
|
active
|
|
@@ -9339,7 +9331,7 @@ var stdin_default$11 = defineComponent({
|
|
|
9339
9331
|
}, [historyList.value.map((item) => createVNode(stdin_default$12, {
|
|
9340
9332
|
"onClick": () => onHistoryClick(item),
|
|
9341
9333
|
"round": true,
|
|
9342
|
-
"text-color": "var(--zt-gray-
|
|
9334
|
+
"text-color": "var(--zt-gray-60)",
|
|
9343
9335
|
"icon-color": "var(--zt-gray)"
|
|
9344
9336
|
}, {
|
|
9345
9337
|
default: () => [item]
|
|
@@ -13212,11 +13204,13 @@ var stdin_default$L = defineComponent({
|
|
|
13212
13204
|
}, {
|
|
13213
13205
|
default: () => [renderTag(), createVNode("div", {
|
|
13214
13206
|
"class": bem$u("cancel")
|
|
13215
|
-
}, [createVNode(
|
|
13216
|
-
"type": "
|
|
13217
|
-
"
|
|
13207
|
+
}, [createVNode(stdin_default$1G, {
|
|
13208
|
+
"type": "default",
|
|
13209
|
+
"block-inner": true,
|
|
13218
13210
|
"onClick": onClose
|
|
13219
|
-
},
|
|
13211
|
+
}, {
|
|
13212
|
+
default: () => [createTextVNode("关闭")]
|
|
13213
|
+
})])]
|
|
13220
13214
|
});
|
|
13221
13215
|
}
|
|
13222
13216
|
});
|
|
@@ -14382,11 +14376,9 @@ var stdin_default$B = defineComponent({
|
|
|
14382
14376
|
file: media
|
|
14383
14377
|
});
|
|
14384
14378
|
}
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
}, [media.label]);
|
|
14389
|
-
}
|
|
14379
|
+
return createVNode("div", {
|
|
14380
|
+
"class": bem$t("thumbnail-label")
|
|
14381
|
+
}, [media.label, createTextVNode("12312")]);
|
|
14390
14382
|
};
|
|
14391
14383
|
const onDelete = (media, index) => {
|
|
14392
14384
|
if (props.beforeDelete) {
|
|
@@ -16732,9 +16724,6 @@ var stdin_default$m = defineComponent({
|
|
|
16732
16724
|
}, [props.title]);
|
|
16733
16725
|
}
|
|
16734
16726
|
};
|
|
16735
|
-
const topDivider = () => props.showTitle ? createVNode(Divider, {
|
|
16736
|
-
"style": "margin: 0"
|
|
16737
|
-
}, null) : null;
|
|
16738
16727
|
const buttomDivider = () => props.showToolbar ? createVNode(Divider, {
|
|
16739
16728
|
"style": "margin: 0"
|
|
16740
16729
|
}, null) : null;
|
|
@@ -16778,7 +16767,7 @@ var stdin_default$m = defineComponent({
|
|
|
16778
16767
|
"class": bem$g()
|
|
16779
16768
|
}, [renderTitleBar(), props.loading ? createVNode(Loading, {
|
|
16780
16769
|
"class": bem$g("loading")
|
|
16781
|
-
}, 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()]);
|
|
16782
16771
|
};
|
|
16783
16772
|
return () => {
|
|
16784
16773
|
if (props.popup) {
|
|
@@ -17496,7 +17485,7 @@ var stdin_default$h = defineComponent({
|
|
|
17496
17485
|
} = parentProps;
|
|
17497
17486
|
const style = {};
|
|
17498
17487
|
if (isActive()) {
|
|
17499
|
-
style.background = `${activeBgColor || "var(--zt-
|
|
17488
|
+
style.background = `${activeBgColor || " var(--zt-blue-10)"}`;
|
|
17500
17489
|
if (activeBorderColor) {
|
|
17501
17490
|
style.border = `1px solid ${activeBorderColor}`;
|
|
17502
17491
|
}
|
|
@@ -20625,7 +20614,7 @@ const Lazyload = {
|
|
|
20625
20614
|
});
|
|
20626
20615
|
}
|
|
20627
20616
|
};
|
|
20628
|
-
const version = "3.
|
|
20617
|
+
const version = "3.2.0";
|
|
20629
20618
|
function install(app) {
|
|
20630
20619
|
const components = [
|
|
20631
20620
|
ActionSheet,
|
package/lib/zartui.js
CHANGED
|
@@ -5557,7 +5557,7 @@
|
|
|
5557
5557
|
});
|
|
5558
5558
|
const renderCascade = () => vue.createVNode("div", {
|
|
5559
5559
|
"class": bem$11()
|
|
5560
|
-
}, [renderHeader(),
|
|
5560
|
+
}, [renderHeader(), renderTabs(), props.popup ? renderDivider() : "", props.popup ? renderMenu() : ""]);
|
|
5561
5561
|
return () => {
|
|
5562
5562
|
if (props.popup) {
|
|
5563
5563
|
return vue.createVNode(Popup, {
|
|
@@ -6046,7 +6046,7 @@
|
|
|
6046
6046
|
if (checkedColor && props.checked && !disabled.value) {
|
|
6047
6047
|
return {
|
|
6048
6048
|
borderColor: checkedColor,
|
|
6049
|
-
backgroundColor: checkedColor
|
|
6049
|
+
backgroundColor: props.role === "radio" ? "" : checkedColor
|
|
6050
6050
|
};
|
|
6051
6051
|
}
|
|
6052
6052
|
});
|
|
@@ -6084,11 +6084,7 @@
|
|
|
6084
6084
|
disabled: disabled.value
|
|
6085
6085
|
}) : props.role === "radio" ? vue.createVNode(Icon, {
|
|
6086
6086
|
"style": iconStyle.value
|
|
6087
|
-
}, {
|
|
6088
|
-
default: () => [checked ? vue.createVNode("div", {
|
|
6089
|
-
"class": bem2("dot")
|
|
6090
|
-
}, null) : ""]
|
|
6091
|
-
}) : vue.createVNode(Icon, {
|
|
6087
|
+
}, null) : vue.createVNode(Icon, {
|
|
6092
6088
|
"name": indeterminate ? "minus" : "checkbox-select",
|
|
6093
6089
|
"style": iconStyle.value
|
|
6094
6090
|
}, null)]);
|
|
@@ -6120,6 +6116,7 @@
|
|
|
6120
6116
|
const [name$_, bem$Z] = createNamespace("checkbox");
|
|
6121
6117
|
const checkboxProps = extend({}, checkerProps, {
|
|
6122
6118
|
bindGroup: truthProp,
|
|
6119
|
+
shape: makeStringProp("square"),
|
|
6123
6120
|
indeterminate: {
|
|
6124
6121
|
type: Boolean,
|
|
6125
6122
|
default: null
|
|
@@ -7125,9 +7122,6 @@
|
|
|
7125
7122
|
}, [props.title]);
|
|
7126
7123
|
}
|
|
7127
7124
|
};
|
|
7128
|
-
const topDivider = () => props.showTitle ? vue.createVNode(Divider, {
|
|
7129
|
-
"style": "margin: 0"
|
|
7130
|
-
}, null) : null;
|
|
7131
7125
|
const buttomDivider = () => props.showToolbar ? vue.createVNode(Divider, {
|
|
7132
7126
|
"style": "margin: 0"
|
|
7133
7127
|
}, null) : null;
|
|
@@ -7172,7 +7166,7 @@
|
|
|
7172
7166
|
"class": bem$U()
|
|
7173
7167
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
7174
7168
|
"class": bem$U("loading")
|
|
7175
|
-
}, null) : null,
|
|
7169
|
+
}, 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()]);
|
|
7176
7170
|
};
|
|
7177
7171
|
const renderOptionItems = () => {
|
|
7178
7172
|
return currentColumns.value.map((options, columnIndex) => {
|
|
@@ -7201,7 +7195,7 @@
|
|
|
7201
7195
|
"class": bem$U()
|
|
7202
7196
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
7203
7197
|
"class": bem$U("loading")
|
|
7204
|
-
}, null) : null,
|
|
7198
|
+
}, 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()]);
|
|
7205
7199
|
};
|
|
7206
7200
|
return () => {
|
|
7207
7201
|
if (isButtonPicker.value) {
|
|
@@ -7915,9 +7909,7 @@
|
|
|
7915
7909
|
}, null);
|
|
7916
7910
|
const renderPicker = () => vue.createVNode("div", {
|
|
7917
7911
|
"class": bem$P()
|
|
7918
|
-
}, [hasDateColumn ? vue.createVNode(
|
|
7919
|
-
"style": "margin: 0"
|
|
7920
|
-
}, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
|
|
7912
|
+
}, [hasDateColumn ? vue.createVNode(stdin_default$1e, vue.mergeProps({
|
|
7921
7913
|
"popup": false,
|
|
7922
7914
|
"columnsUnit": dateUnits.value,
|
|
7923
7915
|
"modelValue": dateValuesRef.value,
|
|
@@ -8169,9 +8161,7 @@
|
|
|
8169
8161
|
};
|
|
8170
8162
|
const renderToolbar = () => {
|
|
8171
8163
|
if (props.showToolbar) {
|
|
8172
|
-
return [vue.createVNode(stdin_default$
|
|
8173
|
-
"style": "margin: 0"
|
|
8174
|
-
}, null), vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
8164
|
+
return [vue.createVNode(stdin_default$1h, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
8175
8165
|
"onConfirm": onConfirm,
|
|
8176
8166
|
"onCancel": onCancel
|
|
8177
8167
|
}), pick(slots, pickerToolbarSlots$1))];
|
|
@@ -8985,7 +8975,8 @@
|
|
|
8985
8975
|
background: String,
|
|
8986
8976
|
inputBackground: String,
|
|
8987
8977
|
actionText: String,
|
|
8988
|
-
showAction: Boolean
|
|
8978
|
+
showAction: Boolean,
|
|
8979
|
+
boxShadow: String
|
|
8989
8980
|
});
|
|
8990
8981
|
var stdin_default$15 = vue.defineComponent({
|
|
8991
8982
|
name: name$L,
|
|
@@ -9094,7 +9085,8 @@
|
|
|
9094
9085
|
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), vue.createVNode("div", {
|
|
9095
9086
|
"class": bem$L("content", props.shape),
|
|
9096
9087
|
"style": {
|
|
9097
|
-
background: props.inputBackground
|
|
9088
|
+
background: props.inputBackground,
|
|
9089
|
+
boxShadow: props.boxShadow
|
|
9098
9090
|
}
|
|
9099
9091
|
}, [renderLabel(), renderField()]), renderAction()]);
|
|
9100
9092
|
};
|
|
@@ -9473,11 +9465,11 @@
|
|
|
9473
9465
|
}, [vue.createVNode("span", {
|
|
9474
9466
|
"class": [bem$J("label--placeholder")]
|
|
9475
9467
|
}, [children2.length > 0 && vue.createVNode(stdin_default$1V, {
|
|
9476
|
-
"name": "
|
|
9468
|
+
"name": "arrow-right",
|
|
9477
9469
|
"class": [bem$J("label--icon", {
|
|
9478
9470
|
active: item.expand
|
|
9479
9471
|
})],
|
|
9480
|
-
"size": "
|
|
9472
|
+
"size": "16"
|
|
9481
9473
|
}, null)]), vue.createVNode("span", {
|
|
9482
9474
|
"class": [bem$J("label--text")]
|
|
9483
9475
|
}, [text])]), !isEmpty(item) && item.expand && ((_b = item.children) == null ? void 0 : _b.map((child) => {
|
|
@@ -9505,11 +9497,11 @@
|
|
|
9505
9497
|
}, [vue.createVNode("span", {
|
|
9506
9498
|
"class": [bem$J("item--placeholder")]
|
|
9507
9499
|
}, [!empty && vue.createVNode(stdin_default$1V, {
|
|
9508
|
-
"name": "
|
|
9500
|
+
"name": "arrow-right",
|
|
9509
9501
|
"class": [bem$J("item--icon", {
|
|
9510
9502
|
active: item.checked
|
|
9511
9503
|
})],
|
|
9512
|
-
"size": "
|
|
9504
|
+
"size": "14"
|
|
9513
9505
|
}, null)]), vue.createVNode("div", {
|
|
9514
9506
|
"class": [bem$J("item--label", {
|
|
9515
9507
|
active
|
|
@@ -9585,7 +9577,7 @@
|
|
|
9585
9577
|
}, [historyList.value.map((item) => vue.createVNode(stdin_default$12, {
|
|
9586
9578
|
"onClick": () => onHistoryClick(item),
|
|
9587
9579
|
"round": true,
|
|
9588
|
-
"text-color": "var(--zt-gray-
|
|
9580
|
+
"text-color": "var(--zt-gray-60)",
|
|
9589
9581
|
"icon-color": "var(--zt-gray)"
|
|
9590
9582
|
}, {
|
|
9591
9583
|
default: () => [item]
|
|
@@ -13449,11 +13441,13 @@
|
|
|
13449
13441
|
}, {
|
|
13450
13442
|
default: () => [renderTag(), vue.createVNode("div", {
|
|
13451
13443
|
"class": bem$u("cancel")
|
|
13452
|
-
}, [vue.createVNode(
|
|
13453
|
-
"type": "
|
|
13454
|
-
"
|
|
13444
|
+
}, [vue.createVNode(stdin_default$1G, {
|
|
13445
|
+
"type": "default",
|
|
13446
|
+
"block-inner": true,
|
|
13455
13447
|
"onClick": onClose
|
|
13456
|
-
},
|
|
13448
|
+
}, {
|
|
13449
|
+
default: () => [vue.createTextVNode("关闭")]
|
|
13450
|
+
})])]
|
|
13457
13451
|
});
|
|
13458
13452
|
}
|
|
13459
13453
|
});
|
|
@@ -16160,11 +16154,9 @@
|
|
|
16160
16154
|
file: media
|
|
16161
16155
|
});
|
|
16162
16156
|
}
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
|
|
16166
|
-
}, [media.label]);
|
|
16167
|
-
}
|
|
16157
|
+
return vue.createVNode("div", {
|
|
16158
|
+
"class": bem$t("thumbnail-label")
|
|
16159
|
+
}, [media.label, vue.createTextVNode("12312")]);
|
|
16168
16160
|
};
|
|
16169
16161
|
const onDelete = (media, index2) => {
|
|
16170
16162
|
if (props.beforeDelete) {
|
|
@@ -20817,9 +20809,6 @@
|
|
|
20817
20809
|
}, [props.title]);
|
|
20818
20810
|
}
|
|
20819
20811
|
};
|
|
20820
|
-
const topDivider = () => props.showTitle ? vue.createVNode(Divider, {
|
|
20821
|
-
"style": "margin: 0"
|
|
20822
|
-
}, null) : null;
|
|
20823
20812
|
const buttomDivider = () => props.showToolbar ? vue.createVNode(Divider, {
|
|
20824
20813
|
"style": "margin: 0"
|
|
20825
20814
|
}, null) : null;
|
|
@@ -20863,7 +20852,7 @@
|
|
|
20863
20852
|
"class": bem$g()
|
|
20864
20853
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
20865
20854
|
"class": bem$g("loading")
|
|
20866
|
-
}, null) : null,
|
|
20855
|
+
}, 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()]);
|
|
20867
20856
|
};
|
|
20868
20857
|
return () => {
|
|
20869
20858
|
if (props.popup) {
|
|
@@ -21578,7 +21567,7 @@
|
|
|
21578
21567
|
} = parentProps;
|
|
21579
21568
|
const style = {};
|
|
21580
21569
|
if (isActive()) {
|
|
21581
|
-
style.background = `${activeBgColor || "var(--zt-
|
|
21570
|
+
style.background = `${activeBgColor || " var(--zt-blue-10)"}`;
|
|
21582
21571
|
if (activeBorderColor) {
|
|
21583
21572
|
style.border = `1px solid ${activeBorderColor}`;
|
|
21584
21573
|
}
|
|
@@ -24687,7 +24676,7 @@
|
|
|
24687
24676
|
});
|
|
24688
24677
|
}
|
|
24689
24678
|
};
|
|
24690
|
-
const version = "3.
|
|
24679
|
+
const version = "3.2.0";
|
|
24691
24680
|
function install(app) {
|
|
24692
24681
|
const components = [
|
|
24693
24682
|
ActionSheet,
|