zartui 3.1.17 → 3.1.19
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/README.md +23 -0
- package/es/calendar/Calendar.mjs +1 -2
- package/es/date-time-picker/DateTimePicker.mjs +15 -0
- package/es/dialog/index.css +1 -1
- package/es/drawer-select/DrawerSelect.d.ts +17 -1
- package/es/drawer-select/DrawerSelect.mjs +9 -4
- package/es/drawer-select/index.d.ts +11 -0
- package/es/dropdown-item/DropdownItem.d.ts +26 -0
- package/es/dropdown-item/DropdownItem.mjs +11 -9
- package/es/dropdown-item/index.d.ts +18 -0
- package/es/dropdown-menu/DropdownMenu.mjs +4 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/empty/Empty.mjs +5 -1
- package/es/empty/Images.d.ts +14 -11
- package/es/empty/Images.mjs +89 -89
- package/es/empty/types.d.ts +1 -0
- package/es/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/es/hierarchy-select/HierarchySelect.mjs +11 -1
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.d.ts +9 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/media-picker/MediaPicker.d.ts +4 -0
- package/es/media-picker/MediaPicker.mjs +31 -15
- package/es/media-picker/index.d.ts +4 -0
- package/es/media-picker/index.mjs +3 -1
- package/es/media-picker/type.d.ts +12 -1
- package/es/media-picker/type.mjs +12 -0
- package/es/media-picker/util/wx-util.d.ts +4 -0
- package/es/media-picker/util/wx-util.mjs +67 -0
- package/es/popup/index.css +1 -1
- package/es/slider/Slider.mjs +15 -16
- package/es/slider/index.css +1 -1
- package/es/table/Table.d.ts +13 -0
- package/es/table/Table.mjs +28 -7
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +9 -0
- package/es/table/style/index.mjs +6 -0
- package/es/tabs/TabsTitle.mjs +1 -0
- package/es/tabs/index.css +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +13 -0
- package/es/text-ellipsis/TextEllipsis.mjs +15 -4
- package/es/text-ellipsis/index.d.ts +9 -0
- package/es/text-ellipsis/style/index.mjs +7 -0
- package/es/toast/index.css +1 -1
- package/lib/calendar/Calendar.js +1 -2
- package/lib/date-time-picker/DateTimePicker.js +15 -0
- package/lib/dialog/index.css +1 -1
- package/lib/drawer-select/DrawerSelect.d.ts +17 -1
- package/lib/drawer-select/DrawerSelect.js +9 -4
- package/lib/drawer-select/index.d.ts +11 -0
- package/lib/dropdown-item/DropdownItem.d.ts +26 -0
- package/lib/dropdown-item/DropdownItem.js +10 -8
- package/lib/dropdown-item/index.d.ts +18 -0
- package/lib/dropdown-menu/DropdownMenu.js +4 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/empty/Empty.js +5 -1
- package/lib/empty/Images.d.ts +14 -11
- package/lib/empty/Images.js +89 -89
- package/lib/empty/types.d.ts +1 -0
- package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/lib/hierarchy-select/HierarchySelect.js +11 -1
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.d.ts +9 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/media-picker/MediaPicker.d.ts +4 -0
- package/lib/media-picker/MediaPicker.js +30 -14
- package/lib/media-picker/index.d.ts +4 -0
- package/lib/media-picker/index.js +3 -1
- package/lib/media-picker/type.d.ts +12 -1
- package/lib/media-picker/type.js +16 -0
- package/lib/media-picker/util/wx-util.d.ts +4 -0
- package/lib/media-picker/util/wx-util.js +86 -0
- package/lib/popup/index.css +1 -1
- package/lib/slider/Slider.js +15 -16
- package/lib/slider/index.css +1 -1
- package/lib/table/Table.d.ts +13 -0
- package/lib/table/Table.js +37 -6
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +9 -0
- package/lib/table/style/index.js +6 -0
- package/lib/tabs/TabsTitle.js +1 -0
- package/lib/tabs/index.css +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +13 -0
- package/lib/text-ellipsis/TextEllipsis.js +13 -2
- package/lib/text-ellipsis/index.d.ts +9 -0
- package/lib/text-ellipsis/style/index.js +7 -0
- package/lib/toast/index.css +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +727 -572
- package/lib/zartui.es.js +727 -572
- package/lib/zartui.js +727 -572
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
package/lib/empty/types.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ declare const hierarchySelectProps: {
|
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
|
+
showParentChecked: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
16
20
|
multiple: {
|
|
17
21
|
type: BooleanConstructor;
|
|
18
22
|
default: boolean;
|
|
@@ -52,6 +56,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
56
|
type: BooleanConstructor;
|
|
53
57
|
default: boolean;
|
|
54
58
|
};
|
|
59
|
+
showParentChecked: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
55
63
|
multiple: {
|
|
56
64
|
type: BooleanConstructor;
|
|
57
65
|
default: boolean;
|
|
@@ -89,6 +97,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
97
|
type: BooleanConstructor;
|
|
90
98
|
default: boolean;
|
|
91
99
|
};
|
|
100
|
+
showParentChecked: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
92
104
|
multiple: {
|
|
93
105
|
type: BooleanConstructor;
|
|
94
106
|
default: boolean;
|
|
@@ -126,6 +138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
138
|
treeData: unknown[];
|
|
127
139
|
checkedList: HierarchyData[];
|
|
128
140
|
disableParent: boolean;
|
|
141
|
+
showParentChecked: boolean;
|
|
129
142
|
unanimous: boolean;
|
|
130
143
|
autoChangeToChildren: boolean;
|
|
131
144
|
}, {}>;
|
|
@@ -51,6 +51,10 @@ const hierarchySelectProps = {
|
|
|
51
51
|
type: Boolean,
|
|
52
52
|
default: false
|
|
53
53
|
},
|
|
54
|
+
showParentChecked: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
57
|
+
},
|
|
54
58
|
multiple: {
|
|
55
59
|
type: Boolean,
|
|
56
60
|
default: false
|
|
@@ -163,6 +167,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
163
167
|
emitChange && emit("change", checkedList.value);
|
|
164
168
|
};
|
|
165
169
|
const selected = (item) => {
|
|
170
|
+
if (showSub(item) && !props.showParentChecked) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
166
173
|
if (isDisabled(item) || item.disabled) {
|
|
167
174
|
return;
|
|
168
175
|
}
|
|
@@ -325,6 +332,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
325
332
|
dataList.value = historyLayers.value[index + 1];
|
|
326
333
|
historyLayers.value.splice(index + 1);
|
|
327
334
|
};
|
|
335
|
+
const showRadio = (item) => {
|
|
336
|
+
return !showSub(item) || showSub(item) && props.showParentChecked;
|
|
337
|
+
};
|
|
328
338
|
adapterHierarchTree(props.treeData, false);
|
|
329
339
|
(0, import_use_expose.useExpose)({
|
|
330
340
|
toNodeLevel
|
|
@@ -339,7 +349,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
339
349
|
"breadcrumbTitle": props.breadcrumbTitle
|
|
340
350
|
}, null), dataList.value.map((item, index) => (0, import_vue.createVNode)("div", {
|
|
341
351
|
"class": [bem("score-item"), isDisabled(item) ? bem("disable-parent") : "", item.disabled ? bem("disable") : ""]
|
|
342
|
-
}, [props.multiple && (0, import_vue.createVNode)("div", {
|
|
352
|
+
}, [props.multiple && showRadio(item) && (0, import_vue.createVNode)("div", {
|
|
343
353
|
"class": bem("multiple-button"),
|
|
344
354
|
"onClick": () => {
|
|
345
355
|
multipleClicked(item);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-hierarchy-select-color: var(--zt-gray-5);--zt-hierarchy-select-duration: var(--zt-duration-fast);--zt-hierarchy-select-round-icon-border: 1px solid rgba(45, 75, 115, .13);--zt-hierarchy-select-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-hierarchy-select-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-hierarchy-select-checked-icon-color: var(--zt-primary-color);--zt-hierarchy-select-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-hierarchy-select-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-hierarchy-select-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-hierarchy-select-disabled-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-hierarchy-select-disabled-checked-icon-opacity: .4;--zt-hierarchy-select-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%);--zt-hierarchy-breadcrumb-line-height: 44px;--zt-hierarchy-select-sub-icon-gap: 4px}:root[zt-theme-size=large]{--zt-hierarchy-breadcrumb-line-height: 56px}.zt-hierarchy-select__score-item{position:relative;display:flex;justify-content:space-between;align-items:center;padding:var(--zt-padding-sm) 0 var(--zt-padding-sm) var(--zt-padding-md);background-color:var(--zt-background-popup)}.zt-hierarchy-select__score-item:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-hierarchy-select__item-content{flex:1;margin-right:var(--zt-padding-md);font-size:var(--zt-font-size-md);color:var(--zt-gray);line-height:var(--zt-line-height-md);word-break:break-all}.zt-hierarchy-select__item-content--selected,.zt-hierarchy-select__item-content span{color:var(--zt-primary-color)}.zt-hierarchy-select__disable .zt-hierarchy-select__sub-level,.zt-hierarchy-select__disable-parent .zt-hierarchy-select__sub-level,.zt-hierarchy-select__disable .zt-hierarchy-select__item-content,.zt-hierarchy-select__disable-parent .zt-hierarchy-select__item-content{opacity:.4}.zt-hierarchy-select__item-nav{padding:0 16px;border-left:rgba(0,0,0,.1) 1px solid}.zt-hierarchy-select__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-hierarchy-select__sub-level{display:flex;align-items:center;gap:var(--zt-hierarchy-select-sub-icon-gap)}.zt-hierarchy-select__sub-level span{color:var(--zt-primary-color);font-size:var(--zt-font-size-md)}.zt-hierarchy-select__sub-level--disable{opacity:.2}.zt-hierarchy-select__sub-icon{line-height:.75}.zt-hierarchy-select__svg-sub-icon{width:var(--zt-font-size-md);height:var(--zt-font-size-md)}.zt-hierarchy-select__multiple-button{margin-right:8px;display:flex;justify-content:center;align-items:center}.zt-hierarchy-select__icon{font-size:var(--zt-font-size-lg);cursor:pointer;box-sizing:border-box}.zt-hierarchy-select__icon .zt-icon{display:flex;justify-content:center;align-items:center;color:transparent;text-align:center;width:18px;height:18px;border:1px solid var(--zt-hierarchy-select-color);transition-duration:var(--zt-hierarchy-select-duration);transition-property:color,border-color,background-color}.zt-hierarchy-select__icon--round .zt-icon{border-radius:100%;border:var(--zt-hierarchy-select-round-icon-border);box-shadow:var(--zt-hierarchy-select-round-icon-box-shadow);background:var(--zt-hierarchy-select-round-icon-background)}.zt-hierarchy-select__icon--indeterminate .zt-icon{color:var(--zt-white);background:var(--zt-checkbox-checked-icon-color);box-shadow:var(--zt-checkbox-checked-icon-shadow);border:var(--zt-checkbox-checked-icon-border)}.zt-hierarchy-select__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-hierarchy-select-checked-icon-color);box-shadow:var(--zt-hierarchy-select-checked-icon-shadow);border:var(--zt-hierarchy-select-checked-icon-border)}.zt-hierarchy-select__icon--disabled{cursor:not-allowed}.zt-hierarchy-select__icon--disabled .zt-icon{border:var(--zt-hierarchy-select-disabled-icon-border);box-shadow:var(--zt-hierarchy-select-disabled-icon-shadow);background:var(--zt-hierarchy-select-disabled-icon-background)}.zt-hierarchy-select__icon--disabled.zt-hierarchy-select__icon--checked .zt-icon{opacity:var(--zt-hierarchy-select-disabled-checked-icon-opacity);background:var(--zt-primary-color);color:var(--zt-white)}.zt-breadcrumb{padding:0 16px}.zt-breadcrumb__list{box-sizing:border-box;height:var(--zt-hierarchy-breadcrumb-line-height);display:flex;align-items:center;color:var(--zt-primary-color);width:100%;overflow-x:scroll;font-size:var(--zt-font-size-lg)}.zt-breadcrumb__list::-webkit-scrollbar{width:0;height:0}.zt-breadcrumb__default{display:flex;white-space:nowrap}.zt-breadcrumb__item{height:44px;display:flex;align-items:center;white-space:nowrap}.zt-breadcrumb__item:last-child{color:var(--zt-gray)}.zt-breadcrumb__icon{padding:0 4px}
|
|
1
|
+
:root{--zt-hierarchy-select-color: var(--zt-gray-5);--zt-hierarchy-select-duration: var(--zt-duration-fast);--zt-hierarchy-select-round-icon-border: 1px solid rgba(45, 75, 115, .13);--zt-hierarchy-select-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-hierarchy-select-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-hierarchy-select-checked-icon-color: var(--zt-primary-color);--zt-hierarchy-select-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-hierarchy-select-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-hierarchy-select-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-hierarchy-select-disabled-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-hierarchy-select-disabled-checked-icon-opacity: .4;--zt-hierarchy-select-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%);--zt-hierarchy-breadcrumb-line-height: 44px;--zt-hierarchy-select-sub-icon-gap: 4px}:root[zt-theme-size=large]{--zt-hierarchy-breadcrumb-line-height: 56px}.zt-hierarchy-select__score-item{position:relative;display:flex;justify-content:space-between;align-items:center;padding:var(--zt-padding-sm) 0 var(--zt-padding-sm) var(--zt-padding-md);background-color:var(--zt-background-popup)}.zt-hierarchy-select__score-item:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-hierarchy-select__item-content{flex:1;margin-right:var(--zt-padding-md);font-size:var(--zt-font-size-md);color:var(--zt-gray);line-height:var(--zt-line-height-md);word-break:break-all}.zt-hierarchy-select__item-content--selected,.zt-hierarchy-select__item-content span{color:var(--zt-primary-color)}.zt-hierarchy-select__disable .zt-hierarchy-select__sub-level,.zt-hierarchy-select__disable-parent .zt-hierarchy-select__sub-level,.zt-hierarchy-select__disable .zt-hierarchy-select__item-content,.zt-hierarchy-select__disable-parent .zt-hierarchy-select__item-content{opacity:.4}.zt-hierarchy-select__item-nav{padding:0 16px;border-left:rgba(0,0,0,.1) 1px solid}.zt-hierarchy-select__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-hierarchy-select__sub-level{display:flex;align-items:center;gap:var(--zt-hierarchy-select-sub-icon-gap)}.zt-hierarchy-select__sub-level span{color:var(--zt-primary-color);font-size:var(--zt-font-size-md)}.zt-hierarchy-select__sub-level--disable{opacity:.2}.zt-hierarchy-select__sub-icon{line-height:.75}.zt-hierarchy-select__svg-sub-icon{width:var(--zt-font-size-md);height:var(--zt-font-size-md)}.zt-hierarchy-select__multiple-button{margin-right:8px;display:flex;justify-content:center;align-items:center}.zt-hierarchy-select__icon{font-size:var(--zt-font-size-lg);cursor:pointer;box-sizing:border-box}.zt-hierarchy-select__icon .zt-icon{display:flex;justify-content:center;align-items:center;color:transparent;text-align:center;width:18px;height:18px;border:1px solid var(--zt-hierarchy-select-color);transition-duration:var(--zt-hierarchy-select-duration);transition-property:color,border-color,background-color}.zt-hierarchy-select__icon--round .zt-icon{border-radius:100%;border:var(--zt-hierarchy-select-round-icon-border);box-shadow:var(--zt-hierarchy-select-round-icon-box-shadow);background:var(--zt-hierarchy-select-round-icon-background)}.zt-hierarchy-select__icon--indeterminate .zt-icon{color:var(--zt-white);background:var(--zt-checkbox-checked-icon-color);box-shadow:var(--zt-checkbox-checked-icon-shadow);border:var(--zt-checkbox-checked-icon-border)}.zt-hierarchy-select__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-hierarchy-select-checked-icon-color);box-shadow:var(--zt-hierarchy-select-checked-icon-shadow);border:var(--zt-hierarchy-select-checked-icon-border)}.zt-hierarchy-select__icon--disabled{cursor:not-allowed}.zt-hierarchy-select__icon--disabled .zt-icon{border:var(--zt-hierarchy-select-disabled-icon-border);box-shadow:var(--zt-hierarchy-select-disabled-icon-shadow);background:var(--zt-hierarchy-select-disabled-icon-background)}.zt-hierarchy-select__icon--disabled.zt-hierarchy-select__icon--checked .zt-icon{opacity:var(--zt-hierarchy-select-disabled-checked-icon-opacity);background:var(--zt-primary-color);color:var(--zt-white)}.zt-breadcrumb{padding:0 16px}.zt-breadcrumb__list{box-sizing:border-box;height:var(--zt-hierarchy-breadcrumb-line-height);display:flex;align-items:center;color:var(--zt-primary-color);width:100%;overflow-x:scroll;font-size:var(--zt-font-size-lg)}.zt-breadcrumb__list::-webkit-scrollbar{width:0;height:0}.zt-breadcrumb__default{display:flex;white-space:nowrap}.zt-breadcrumb__item{height:44px;display:flex;align-items:center;white-space:nowrap}.zt-breadcrumb__item:last-child{color:var(--zt-gray)}.zt-breadcrumb__icon{padding:0 4px}.zt-theme-dark{--zt-hierarchy-select-round-icon-box-shadow: none;--zt-hierarchy-select-disabled-icon-shadow: none;--zt-hierarchy-select-round-icon-background: rgba(255, 255, 255, .04);--zt-hierarchy-select-round-icon-border: 1px solid var(--zt-gray);--zt-hierarchy-select-disabled-icon-background: var(--zt-gray-a2)}
|
|
@@ -11,6 +11,10 @@ export declare const HierarchySelect: import("../utils").WithInstall<import("vue
|
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
+
showParentChecked: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
14
18
|
multiple: {
|
|
15
19
|
type: BooleanConstructor;
|
|
16
20
|
default: boolean;
|
|
@@ -48,6 +52,10 @@ export declare const HierarchySelect: import("../utils").WithInstall<import("vue
|
|
|
48
52
|
type: BooleanConstructor;
|
|
49
53
|
default: boolean;
|
|
50
54
|
};
|
|
55
|
+
showParentChecked: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
51
59
|
multiple: {
|
|
52
60
|
type: BooleanConstructor;
|
|
53
61
|
default: boolean;
|
|
@@ -85,6 +93,7 @@ export declare const HierarchySelect: import("../utils").WithInstall<import("vue
|
|
|
85
93
|
treeData: unknown[];
|
|
86
94
|
checkedList: import("./types").HierarchyData[];
|
|
87
95
|
disableParent: boolean;
|
|
96
|
+
showParentChecked: boolean;
|
|
88
97
|
unanimous: boolean;
|
|
89
98
|
autoChangeToChildren: boolean;
|
|
90
99
|
}, {}>>;
|