zartui 3.1.10 → 3.1.11
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/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +24 -1
- package/es/cell/Cell.mjs +30 -5
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +14 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/date-time-picker/DateTimePicker.d.ts +1 -1
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/es/date-time-picker/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/field/Field.d.ts +17 -2
- package/es/field/index.d.ts +12 -2
- package/es/hierarchy-select/HierarchySelect.mjs +1 -0
- package/es/index-bar/IndexBar.mjs +27 -19
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/types.d.ts +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.d.ts +1 -1
- package/es/radio-picker/RadioPicker.d.ts +1 -1
- package/es/radio-picker/index.d.ts +1 -1
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.d.ts +1 -1
- package/es/search/Search.d.ts +2 -2
- package/es/search/index.d.ts +2 -2
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/time-picker/TimePicker.d.ts +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +24 -1
- package/lib/cell/Cell.js +28 -3
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +14 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/lib/date-time-picker/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/field/Field.d.ts +17 -2
- package/lib/field/index.d.ts +12 -2
- package/lib/hierarchy-select/HierarchySelect.js +1 -0
- package/lib/index-bar/IndexBar.js +27 -19
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/types.d.ts +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/picker/Picker.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/radio-picker/RadioPicker.d.ts +1 -1
- package/lib/radio-picker/index.d.ts +1 -1
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.d.ts +1 -1
- package/lib/search/Search.d.ts +2 -2
- package/lib/search/index.d.ts +2 -2
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/time-picker/TimePicker.d.ts +1 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +56 -23
- package/lib/zartui.es.js +56 -23
- package/lib/zartui.js +56 -23
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -4
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
type: BooleanConstructor;
|
|
100
100
|
default: true;
|
|
101
101
|
};
|
|
102
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
102
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish")[], "cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
103
103
|
title: StringConstructor;
|
|
104
104
|
show: BooleanConstructor;
|
|
105
105
|
round: {
|
package/es/cascader/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: true;
|
|
48
48
|
};
|
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish")[], "cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
title: StringConstructor;
|
|
51
51
|
show: BooleanConstructor;
|
|
52
52
|
round: {
|
package/es/cell/Cell.d.ts
CHANGED
|
@@ -31,6 +31,11 @@ export declare const cellSharedProps: {
|
|
|
31
31
|
type: PropType<boolean | null>;
|
|
32
32
|
default: null;
|
|
33
33
|
};
|
|
34
|
+
clearable: BooleanConstructor;
|
|
35
|
+
clearIcon: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
34
39
|
};
|
|
35
40
|
declare const cellProps: {
|
|
36
41
|
leftIcon: StringConstructor;
|
|
@@ -62,6 +67,11 @@ declare const cellProps: {
|
|
|
62
67
|
type: PropType<boolean | null>;
|
|
63
68
|
default: null;
|
|
64
69
|
};
|
|
70
|
+
clearable: BooleanConstructor;
|
|
71
|
+
clearIcon: {
|
|
72
|
+
type: PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
65
75
|
} & {
|
|
66
76
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
67
77
|
url: StringConstructor;
|
|
@@ -98,11 +108,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
108
|
type: PropType<boolean | null>;
|
|
99
109
|
default: null;
|
|
100
110
|
};
|
|
111
|
+
clearable: BooleanConstructor;
|
|
112
|
+
clearIcon: {
|
|
113
|
+
type: PropType<string>;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
101
116
|
} & {
|
|
102
117
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
103
118
|
url: StringConstructor;
|
|
104
119
|
replace: BooleanConstructor;
|
|
105
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
120
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
106
121
|
leftIcon: StringConstructor;
|
|
107
122
|
titleIcon: StringConstructor;
|
|
108
123
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -132,12 +147,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
147
|
type: PropType<boolean | null>;
|
|
133
148
|
default: null;
|
|
134
149
|
};
|
|
150
|
+
clearable: BooleanConstructor;
|
|
151
|
+
clearIcon: {
|
|
152
|
+
type: PropType<string>;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
135
155
|
} & {
|
|
136
156
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
137
157
|
url: StringConstructor;
|
|
138
158
|
replace: BooleanConstructor;
|
|
139
159
|
}>> & {
|
|
140
160
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
141
162
|
}, {
|
|
142
163
|
replace: boolean;
|
|
143
164
|
value: string;
|
|
@@ -147,5 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
147
168
|
isLink: boolean;
|
|
148
169
|
required: boolean;
|
|
149
170
|
clickable: boolean | null;
|
|
171
|
+
clearable: boolean;
|
|
172
|
+
clearIcon: string;
|
|
150
173
|
}, {}>;
|
|
151
174
|
export default _default;
|
package/es/cell/Cell.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { defineComponent } from "vue";
|
|
3
|
-
import { isDef, extend, truthProp, unknownProp, numericProp, createNamespace, makeStringProp } from "../utils/index.mjs";
|
|
2
|
+
import { computed, defineComponent, ref } from "vue";
|
|
3
|
+
import { isDef, extend, truthProp, unknownProp, numericProp, createNamespace, makeStringProp, preventDefault } from "../utils/index.mjs";
|
|
4
4
|
import { useRoute, routeProps } from "../composables/use-route.mjs";
|
|
5
|
+
import { useEventListener } from "@zartui/use";
|
|
5
6
|
import { Icon } from "../icon/index.mjs";
|
|
6
7
|
const [name, bem] = createNamespace("cell");
|
|
7
8
|
const cellSharedProps = {
|
|
@@ -24,18 +25,21 @@ const cellSharedProps = {
|
|
|
24
25
|
clickable: {
|
|
25
26
|
type: Boolean,
|
|
26
27
|
default: null
|
|
27
|
-
}
|
|
28
|
+
},
|
|
29
|
+
clearable: Boolean,
|
|
30
|
+
clearIcon: makeStringProp("clear-r")
|
|
28
31
|
};
|
|
29
32
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
|
30
33
|
var stdin_default = defineComponent({
|
|
31
34
|
name,
|
|
32
35
|
props: cellProps,
|
|
33
|
-
emits: ["click"],
|
|
36
|
+
emits: ["click", "clear"],
|
|
34
37
|
setup(props, {
|
|
35
38
|
slots,
|
|
36
39
|
emit
|
|
37
40
|
}) {
|
|
38
41
|
const route = useRoute();
|
|
42
|
+
const clearIconRef = ref();
|
|
39
43
|
const renderLabel = () => {
|
|
40
44
|
const showLabel = slots.label || isDef(props.label);
|
|
41
45
|
if (showLabel) {
|
|
@@ -94,11 +98,28 @@ var stdin_default = defineComponent({
|
|
|
94
98
|
emit("click");
|
|
95
99
|
}
|
|
96
100
|
};
|
|
101
|
+
const onClear = (event) => {
|
|
102
|
+
preventDefault(event, true);
|
|
103
|
+
emit("clear", event);
|
|
104
|
+
};
|
|
105
|
+
function getClearIconListenerEvent() {
|
|
106
|
+
if ("ontouchstart" in document.documentElement) {
|
|
107
|
+
return "touchstart";
|
|
108
|
+
}
|
|
109
|
+
return "click";
|
|
110
|
+
}
|
|
111
|
+
useEventListener(getClearIconListenerEvent(), onClear, {
|
|
112
|
+
target: computed(() => {
|
|
113
|
+
var _a;
|
|
114
|
+
return (_a = clearIconRef.value) == null ? void 0 : _a.$el;
|
|
115
|
+
})
|
|
116
|
+
});
|
|
97
117
|
const renderValue = () => {
|
|
98
118
|
var _a;
|
|
99
119
|
const slot = slots.value || slots.default;
|
|
100
120
|
const hasValue = slot || isDef(props.value);
|
|
101
121
|
const isHorizontal = props.direction === "horizontal";
|
|
122
|
+
const showClear = props.clearable && isDef(props.value) && props.value !== "";
|
|
102
123
|
if (hasValue) {
|
|
103
124
|
return _createVNode("div", {
|
|
104
125
|
"class": [bem("value", {
|
|
@@ -107,7 +128,11 @@ var stdin_default = defineComponent({
|
|
|
107
128
|
"onClick": () => onClick(isHorizontal)
|
|
108
129
|
}, [slot ? slot() : _createVNode("span", {
|
|
109
130
|
"class": bem("value-text")
|
|
110
|
-
}, [props.value]),
|
|
131
|
+
}, [props.value]), showClear && _createVNode(Icon, {
|
|
132
|
+
"ref": clearIconRef,
|
|
133
|
+
"name": props.clearIcon,
|
|
134
|
+
"class": bem("value-clear")
|
|
135
|
+
}, null), (_a = slots.extra) == null ? void 0 : _a.call(slots), renderRightIcon()]);
|
|
111
136
|
}
|
|
112
137
|
};
|
|
113
138
|
const renderLeftIcon = () => {
|
package/es/cell/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-cell-text-color: var(--zt-text-color);--zt-cell-border-color: var(--zt-border-color);--zt-cell-active-color: var(--zt-active-color);--zt-cell-required-color: var(--zt-danger-color);--zt-cell-label-color: var(--zt-gray-a4);--zt-cell-right-icon-color: var(--zt-gray-a4);--zt-cell-vertical-background: var(--zt-background-card);--zt-cell-horizontal-background: var(--zt-background-card);--zt-cell-background: var(--zt-background);--zt-cell-value-padding: 12px;--zt-cell-value-radius: 4px;--zt-cell-direction: column;--zt-cell-padding: 16px;--zt-cell-row-title-max-width: 100px;--zt-cell-left-icon-font-size: 48px;--zt-cell-left-icon-size: 48px}:root[zt-theme-size=large]{--zt-cell-left-icon-size: 60px;--zt-cell-left-icon-font-size: 54px}.zt-cell{position:relative;display:flex;box-sizing:border-box;width:100%;overflow:hidden;color:var(--zt-cell-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);background:var(--zt-cell-background);flex-direction:var(--zt-cell-direction);padding:var(--zt-cell-padding)}.zt-cell: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-cell-border-color);transform:scaleY(.5)}.zt-cell--borderless:after{display:none}.zt-cell__label{color:var(--zt-cell-label-color);line-height:var(--zt-line-height-md);font-size:var(--zt-font-size-md);flex:1;text-align:right}.zt-cell__value{position:relative;overflow:hidden;vertical-align:middle;word-wrap:break-word;background:var(--zt-cell-background);box-sizing:border-box;display:flex;border-radius:var(--zt-cell-value-radius);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);word-break:break-all}.zt-cell__value--horizontal{padding:0;flex:1;justify-content:flex-end;align-items:center;text-align:right;background:transparent}.zt-cell__value--vertical{padding:var(--zt-cell-value-padding);background:var(--zt-cell-vertical-background)}.zt-cell__value-text{display:inline-block;flex:1}.zt-cell__title{margin-bottom:8px;display:flex;align-items:center}.zt-cell__title--horizontal{padding:0;margin:0;flex:1}.zt-cell__title--with-value{margin-right:8px;max-width:var(--zt-cell-row-title-max-width)}.zt-cell__title-text{font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);word-break:break-all;display:inline-block;overflow:hidden;flex:1}.zt-cell__title-icon,.zt-cell__right-icon{height:var(--zt-line-height-md);font-size:var(--zt-font-size-xxl);line-height:var(--zt-line-height-md)}.zt-cell__left-icon{width:var(--zt-cell-left-icon-size);height:var(--zt-cell-left-icon-size);font-size:var(--zt-cell-left-icon-font-size);line-height:var(--zt-cell-left-icon-size);margin-right:var(--zt-padding-base)}.zt-cell__right-icon{margin-left:var(--zt-padding-base);color:var(--zt-cell-right-icon-color)}.zt-cell__title-icon{margin-right:var(--zt-padding-base)}.zt-cell__with-left{position:relative;display:flex}.zt-cell__with-left: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-cell-border-color);transform:scaleY(.5)}.zt-cell__with-left--borderless:after{display:none}.zt-cell__left-icon{margin:16px 0 16px 16px}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable .zt-cell__value:active,.zt-cell--clickable.zt-cell--horizontal:active{background-color:var(--zt-cell-active-color)}.zt-cell--clickable.zt-cell--horizontal:active .zt-cell__value:active{background-color:transparent}.zt-cell--required{overflow:visible}.zt-cell--required:before{position:absolute;left:var(--zt-padding-xs);color:var(--zt-cell-required-color);font-size:var(--zt-font-size-md);content:"*"}.zt-cell--center .zt-cell__value{align-items:center}.zt-cell--horizontal{flex-direction:row;justify-content:space-between;background:var(--zt-cell-horizontal-background);padding:12px 16px}.zt-cell--horizontal:last-child:after{display:none}
|
|
1
|
+
:root{--zt-cell-text-color: var(--zt-text-color);--zt-cell-border-color: var(--zt-border-color);--zt-cell-active-color: var(--zt-active-color);--zt-cell-required-color: var(--zt-danger-color);--zt-cell-label-color: var(--zt-gray-a4);--zt-cell-right-icon-color: var(--zt-gray-a4);--zt-cell-vertical-background: var(--zt-background-card);--zt-cell-horizontal-background: var(--zt-background-card);--zt-cell-background: var(--zt-background);--zt-cell-value-padding: 12px;--zt-cell-value-radius: 4px;--zt-cell-direction: column;--zt-cell-padding: 16px;--zt-cell-row-title-max-width: 100px;--zt-cell-left-icon-font-size: 48px;--zt-cell-left-icon-size: 48px;--zt-cell-clear-icon-color: var(--zt-gray-a6)}:root[zt-theme-size=large]{--zt-cell-left-icon-size: 60px;--zt-cell-left-icon-font-size: 54px}.zt-cell{position:relative;display:flex;box-sizing:border-box;width:100%;overflow:hidden;color:var(--zt-cell-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);background:var(--zt-cell-background);flex-direction:var(--zt-cell-direction);padding:var(--zt-cell-padding)}.zt-cell: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-cell-border-color);transform:scaleY(.5)}.zt-cell--borderless:after{display:none}.zt-cell__label{color:var(--zt-cell-label-color);line-height:var(--zt-line-height-md);font-size:var(--zt-font-size-md);flex:1;text-align:right}.zt-cell__value{position:relative;overflow:hidden;vertical-align:middle;word-wrap:break-word;background:var(--zt-cell-background);box-sizing:border-box;display:flex;align-items:center;border-radius:var(--zt-cell-value-radius);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);word-break:break-all}.zt-cell__value--horizontal{padding:0;flex:1;justify-content:flex-end;align-items:center;text-align:right;background:transparent}.zt-cell__value--vertical{padding:var(--zt-cell-value-padding);background:var(--zt-cell-vertical-background)}.zt-cell__value-text{display:inline-block;flex:1}.zt-cell__value-clear{color:var(--zt-cell-clear-icon-color);font-size:var(--zt-font-size-xxl);margin:0 4px 0 10px;cursor:pointer}.zt-cell__title{margin-bottom:8px;display:flex;align-items:center}.zt-cell__title--horizontal{padding:0;margin:0;flex:1}.zt-cell__title--with-value{margin-right:8px;max-width:var(--zt-cell-row-title-max-width)}.zt-cell__title-text{font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);word-break:break-all;display:inline-block;overflow:hidden;flex:1}.zt-cell__title-icon,.zt-cell__right-icon{height:var(--zt-line-height-md);font-size:var(--zt-font-size-xxl);line-height:var(--zt-line-height-md)}.zt-cell__left-icon{width:var(--zt-cell-left-icon-size);height:var(--zt-cell-left-icon-size);font-size:var(--zt-cell-left-icon-font-size);line-height:var(--zt-cell-left-icon-size);margin-right:var(--zt-padding-base)}.zt-cell__right-icon{margin-left:var(--zt-padding-base);color:var(--zt-cell-right-icon-color)}.zt-cell__title-icon{margin-right:var(--zt-padding-base)}.zt-cell__with-left{position:relative;display:flex}.zt-cell__with-left: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-cell-border-color);transform:scaleY(.5)}.zt-cell__with-left--borderless:after{display:none}.zt-cell__left-icon{margin:16px 0 16px 16px}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable .zt-cell__value:active,.zt-cell--clickable.zt-cell--horizontal:active{background-color:var(--zt-cell-active-color)}.zt-cell--clickable.zt-cell--horizontal:active .zt-cell__value:active{background-color:transparent}.zt-cell--required{overflow:visible}.zt-cell--required:before{position:absolute;left:var(--zt-padding-xs);color:var(--zt-cell-required-color);font-size:var(--zt-font-size-md);content:"*"}.zt-cell--center .zt-cell__value{align-items:center}.zt-cell--horizontal{flex-direction:row;justify-content:space-between;background:var(--zt-cell-horizontal-background);padding:12px 16px}.zt-cell--horizontal:last-child:after{display:none}
|
package/es/cell/index.d.ts
CHANGED
|
@@ -28,11 +28,16 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
28
28
|
type: import("vue").PropType<boolean | null>;
|
|
29
29
|
default: null;
|
|
30
30
|
};
|
|
31
|
+
clearable: BooleanConstructor;
|
|
32
|
+
clearIcon: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
31
36
|
} & {
|
|
32
37
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
33
38
|
url: StringConstructor;
|
|
34
39
|
replace: BooleanConstructor;
|
|
35
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
41
|
leftIcon: StringConstructor;
|
|
37
42
|
titleIcon: StringConstructor;
|
|
38
43
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -62,12 +67,18 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
62
67
|
type: import("vue").PropType<boolean | null>;
|
|
63
68
|
default: null;
|
|
64
69
|
};
|
|
70
|
+
clearable: BooleanConstructor;
|
|
71
|
+
clearIcon: {
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
65
75
|
} & {
|
|
66
76
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
67
77
|
url: StringConstructor;
|
|
68
78
|
replace: BooleanConstructor;
|
|
69
79
|
}>> & {
|
|
70
80
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
71
82
|
}, {
|
|
72
83
|
replace: boolean;
|
|
73
84
|
value: string;
|
|
@@ -77,6 +88,8 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
77
88
|
isLink: boolean;
|
|
78
89
|
required: boolean;
|
|
79
90
|
clickable: boolean | null;
|
|
91
|
+
clearable: boolean;
|
|
92
|
+
clearIcon: string;
|
|
80
93
|
}, {}>>;
|
|
81
94
|
export default Cell;
|
|
82
95
|
export type { CellProps, CellArrowDirection } from './Cell';
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
type: PropType<boolean | null>;
|
|
45
45
|
default: null;
|
|
46
46
|
};
|
|
47
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
48
48
|
name: PropType<unknown>;
|
|
49
49
|
shape: {
|
|
50
50
|
type: PropType<import("./Checker").CheckerShape>;
|
package/es/checkbox/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
19
19
|
type: import("vue").PropType<boolean | null>;
|
|
20
20
|
default: null;
|
|
21
21
|
};
|
|
22
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
name: import("vue").PropType<unknown>;
|
|
24
24
|
shape: {
|
|
25
25
|
type: import("vue").PropType<import("./Checker").CheckerShape>;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
default: () => unknown[];
|
|
31
31
|
};
|
|
32
32
|
checkedColor: StringConstructor;
|
|
33
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
33
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
34
34
|
max: (NumberConstructor | StringConstructor)[];
|
|
35
35
|
disabled: BooleanConstructor;
|
|
36
36
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -11,7 +11,7 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
|
|
|
11
11
|
default: () => unknown[];
|
|
12
12
|
};
|
|
13
13
|
checkedColor: StringConstructor;
|
|
14
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
max: (NumberConstructor | StringConstructor)[];
|
|
16
16
|
disabled: BooleanConstructor;
|
|
17
17
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: PropType<Numeric | Numeric[]>;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
37
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
38
38
|
border: {
|
|
39
39
|
type: BooleanConstructor;
|
|
40
40
|
default: true;
|
package/es/collapse/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const Collapse: import("../utils").WithInstall<import("vue").Defi
|
|
|
8
8
|
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
border: {
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: true;
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
type: import("vue").PropType<string[]>;
|
|
103
103
|
default: () => string[];
|
|
104
104
|
};
|
|
105
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
105
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue")[], "cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
106
106
|
loading: BooleanConstructor;
|
|
107
107
|
readonly: BooleanConstructor;
|
|
108
108
|
allowHtml: BooleanConstructor;
|
|
@@ -201,7 +201,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
201
|
type: PropType<string[]>;
|
|
202
202
|
default: () => string[];
|
|
203
203
|
};
|
|
204
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
204
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
205
205
|
loading: BooleanConstructor;
|
|
206
206
|
readonly: BooleanConstructor;
|
|
207
207
|
allowHtml: BooleanConstructor;
|
|
@@ -99,7 +99,7 @@ export declare const DateTimePicker: import("../utils").WithInstall<import("vue"
|
|
|
99
99
|
type: import("vue").PropType<string[]>;
|
|
100
100
|
default: () => string[];
|
|
101
101
|
};
|
|
102
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
102
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue")[], "cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
103
|
loading: BooleanConstructor;
|
|
104
104
|
readonly: BooleanConstructor;
|
|
105
105
|
allowHtml: BooleanConstructor;
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
};
|
|
41
41
|
titleClass: PropType<unknown>;
|
|
42
42
|
multiSelect: BooleanConstructor;
|
|
43
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "
|
|
43
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "change" | "close" | "update:modelValue" | "opened" | "closed" | "confirm")[], "reset" | "open" | "change" | "close" | "update:modelValue" | "opened" | "closed" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
44
44
|
title: StringConstructor;
|
|
45
45
|
options: {
|
|
46
46
|
type: PropType<DropdownItemOption[]>;
|
|
@@ -18,7 +18,7 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
|
18
18
|
};
|
|
19
19
|
titleClass: import("vue").PropType<unknown>;
|
|
20
20
|
multiSelect: BooleanConstructor;
|
|
21
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "
|
|
21
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "change" | "close" | "update:modelValue" | "opened" | "closed" | "confirm")[], "reset" | "open" | "change" | "close" | "update:modelValue" | "opened" | "closed" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
title: StringConstructor;
|
|
23
23
|
options: {
|
|
24
24
|
type: import("vue").PropType<import("./types").DropdownItemOption[]>;
|
package/es/field/Field.d.ts
CHANGED
|
@@ -74,6 +74,11 @@ declare const fieldProps: {
|
|
|
74
74
|
type: PropType<boolean | null>;
|
|
75
75
|
default: null;
|
|
76
76
|
};
|
|
77
|
+
clearable: BooleanConstructor;
|
|
78
|
+
clearIcon: {
|
|
79
|
+
type: PropType<string>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
77
82
|
} & {
|
|
78
83
|
id: StringConstructor;
|
|
79
84
|
name: StringConstructor;
|
|
@@ -171,6 +176,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
171
176
|
type: PropType<boolean | null>;
|
|
172
177
|
default: null;
|
|
173
178
|
};
|
|
179
|
+
clearable: BooleanConstructor;
|
|
180
|
+
clearIcon: {
|
|
181
|
+
type: PropType<string>;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
174
184
|
} & {
|
|
175
185
|
id: StringConstructor;
|
|
176
186
|
name: StringConstructor;
|
|
@@ -236,7 +246,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
236
246
|
type: BooleanConstructor;
|
|
237
247
|
default: null;
|
|
238
248
|
};
|
|
239
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
249
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "focus" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "blur" | "focus" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
240
250
|
leftIcon: StringConstructor;
|
|
241
251
|
titleIcon: StringConstructor;
|
|
242
252
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -266,6 +276,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
266
276
|
type: PropType<boolean | null>;
|
|
267
277
|
default: null;
|
|
268
278
|
};
|
|
279
|
+
clearable: BooleanConstructor;
|
|
280
|
+
clearIcon: {
|
|
281
|
+
type: PropType<string>;
|
|
282
|
+
default: string;
|
|
283
|
+
};
|
|
269
284
|
} & {
|
|
270
285
|
id: StringConstructor;
|
|
271
286
|
name: StringConstructor;
|
|
@@ -355,10 +370,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
355
370
|
clickable: boolean | null;
|
|
356
371
|
clearable: boolean;
|
|
357
372
|
clearIcon: string;
|
|
373
|
+
error: boolean;
|
|
358
374
|
modelValue: string | number;
|
|
359
375
|
clearTrigger: FieldClearTrigger;
|
|
360
376
|
formatTrigger: FieldFormatTrigger;
|
|
361
|
-
error: boolean;
|
|
362
377
|
readonly: boolean;
|
|
363
378
|
showWordLimit: boolean;
|
|
364
379
|
description: string;
|
package/es/field/index.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
29
29
|
type: import("vue").PropType<boolean | null>;
|
|
30
30
|
default: null;
|
|
31
31
|
};
|
|
32
|
+
clearable: BooleanConstructor;
|
|
33
|
+
clearIcon: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
32
37
|
} & {
|
|
33
38
|
id: StringConstructor;
|
|
34
39
|
name: StringConstructor;
|
|
@@ -94,7 +99,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
94
99
|
type: BooleanConstructor;
|
|
95
100
|
default: null;
|
|
96
101
|
};
|
|
97
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
102
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "focus" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "blur" | "focus" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
103
|
leftIcon: StringConstructor;
|
|
99
104
|
titleIcon: StringConstructor;
|
|
100
105
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -124,6 +129,11 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
124
129
|
type: import("vue").PropType<boolean | null>;
|
|
125
130
|
default: null;
|
|
126
131
|
};
|
|
132
|
+
clearable: BooleanConstructor;
|
|
133
|
+
clearIcon: {
|
|
134
|
+
type: import("vue").PropType<string>;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
127
137
|
} & {
|
|
128
138
|
id: StringConstructor;
|
|
129
139
|
name: StringConstructor;
|
|
@@ -213,10 +223,10 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
213
223
|
clickable: boolean | null;
|
|
214
224
|
clearable: boolean;
|
|
215
225
|
clearIcon: string;
|
|
226
|
+
error: boolean;
|
|
216
227
|
modelValue: string | number;
|
|
217
228
|
clearTrigger: import("./types").FieldClearTrigger;
|
|
218
229
|
formatTrigger: import("./types").FieldFormatTrigger;
|
|
219
|
-
error: boolean;
|
|
220
230
|
readonly: boolean;
|
|
221
231
|
showWordLimit: boolean;
|
|
222
232
|
description: string;
|
|
@@ -25,7 +25,7 @@ const indexBarProps = {
|
|
|
25
25
|
default: genAlphabet
|
|
26
26
|
},
|
|
27
27
|
indexBarMaxHeight: makeNumericProp("70vh"),
|
|
28
|
-
contractionPointText: makeStringProp("\
|
|
28
|
+
contractionPointText: makeStringProp("\u2022")
|
|
29
29
|
};
|
|
30
30
|
const INDEX_BAR_KEY = Symbol(name);
|
|
31
31
|
const MIN_CONTRACTION_NUM = 2;
|
|
@@ -41,9 +41,9 @@ var stdin_default = defineComponent({
|
|
|
41
41
|
const sidebar = ref();
|
|
42
42
|
const activeAnchor = useSyncPropRef(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
|
|
43
43
|
const touchIndex = ref("");
|
|
44
|
-
const indexBarMaxHeight = () => {
|
|
44
|
+
const indexBarMaxHeight = computed(() => {
|
|
45
45
|
return props.indexBarMaxHeight ? unitToPx(props.indexBarMaxHeight) : unitToPx("100vh");
|
|
46
|
-
};
|
|
46
|
+
});
|
|
47
47
|
const touch = useTouch();
|
|
48
48
|
const scrollParent = useScrollParent(root);
|
|
49
49
|
const {
|
|
@@ -242,9 +242,9 @@ var stdin_default = defineComponent({
|
|
|
242
242
|
};
|
|
243
243
|
const adaptorIndexListByHeight = () => {
|
|
244
244
|
const actualIndexListHeight = props.indexList.length * getIndexHeight();
|
|
245
|
-
if (actualIndexListHeight && actualIndexListHeight > indexBarMaxHeight
|
|
245
|
+
if (actualIndexListHeight && actualIndexListHeight > indexBarMaxHeight.value) {
|
|
246
246
|
const adaptedIndexList = deepClone(props.indexList);
|
|
247
|
-
const renderedNum = Math.floor(indexBarMaxHeight
|
|
247
|
+
const renderedNum = Math.floor(indexBarMaxHeight.value / getIndexHeight());
|
|
248
248
|
const renderedPointNum = Math.floor(renderedNum / MIN_CONTRACTION_NUM);
|
|
249
249
|
const renderedIndexNum = renderedNum - renderedPointNum;
|
|
250
250
|
const hiddenIndexNum = adaptedIndexList.length - renderedIndexNum;
|
|
@@ -302,23 +302,31 @@ var stdin_default = defineComponent({
|
|
|
302
302
|
}, [_createVNode("div", {
|
|
303
303
|
"class": bem("touch-text")
|
|
304
304
|
}, [touchActiveText]), _createVNode("svg", {
|
|
305
|
-
"class": bem("icon"),
|
|
306
305
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
307
|
-
"viewBox": "0 0 20 32"
|
|
308
|
-
}, [_createVNode("defs", null, [_createVNode("path", {
|
|
309
|
-
"id": "7rkhbmqvk__gc482iacwa",
|
|
310
|
-
"d": "M0 0H20V32H0z"
|
|
311
|
-
}, null)]), _createVNode("g", {
|
|
312
306
|
"fill": "none",
|
|
313
|
-
"
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"
|
|
317
|
-
|
|
307
|
+
"viewBox": "0 0 20 32",
|
|
308
|
+
"class": bem("icon")
|
|
309
|
+
}, [_createVNode("defs", null, [_createVNode("mask", {
|
|
310
|
+
"id": "ei8r0nsyx__b6fjzymnfa"
|
|
311
|
+
}, [_createVNode("rect", {
|
|
312
|
+
"width": "20",
|
|
313
|
+
"height": "32",
|
|
314
|
+
"rx": "0",
|
|
315
|
+
"fill": "#FFF"
|
|
316
|
+
}, null)])]), _createVNode("g", {
|
|
317
|
+
"mask": "url(#ei8r0nsyx__b6fjzymnfa)"
|
|
318
|
+
}, [_createVNode("rect", {
|
|
319
|
+
"width": "20",
|
|
320
|
+
"height": "32",
|
|
321
|
+
"rx": "0"
|
|
322
|
+
}, null), _createVNode("path", {
|
|
323
|
+
"d": "M-1.0000000000000497,0C7.83656,0,15,7.16344,15,16C15,24.8366,7.83656,32,-1,32L-1.0000000000000497,0Z",
|
|
324
|
+
"fill-rule": "evenodd",
|
|
325
|
+
"class": bem("icon-fill")
|
|
318
326
|
}, null), _createVNode("path", {
|
|
319
|
-
"d": "M12.
|
|
320
|
-
"fill": "
|
|
321
|
-
"
|
|
327
|
+
"d": "M12.243150099299784,24.98157383041382L19.435507386779786,16.65358383041382C19.759737386779786,16.27815383041382,19.759737386779786,15.721773830413818,19.435507386779786,15.346343830413819L12.243151433939785,7.018357001713818C13.983177386779785,9.578993830413818,14.999997386779786,12.670733830413818,14.999997386779786,15.999963830413819C14.999997386779786,19.32917383041382,13.983177386779785,22.420973830413818,12.243150099299784,24.98157383041382Z",
|
|
328
|
+
"fill-rule": "evenodd",
|
|
329
|
+
"class": bem("icon-fill")
|
|
322
330
|
}, null)])])]), _createVNode("div", {
|
|
323
331
|
"data-index": index,
|
|
324
332
|
"data-index-map": contractionPointMapList,
|
package/es/index-bar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-index-bar-sidebar-z-index: 2}.zt-index-bar__sidebar{position:fixed;top:50%;right:var(--zt-padding-xs);z-index:var(--zt-index-bar-sidebar-z-index);display:flex;flex-direction:column;align-items:
|
|
1
|
+
:root{--zt-index-bar-sidebar-z-index: 2;--zt-index-bar-sidebar-touch-index-background-color: #8093ab}.zt-index-bar__sidebar{position:fixed;top:50%;right:var(--zt-padding-xs);z-index:var(--zt-index-bar-sidebar-z-index);display:flex;flex-direction:column;align-items:center;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.zt-index-bar__index{position:relative;color:var(--zt-text-color);padding:0 var(--zt-padding-base);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-sm);display:flex;height:var(--zt-line-height-sm)}.zt-index-bar__index--active{color:var(--zt-primary-color);font-weight:700}.zt-index-bar__index--touch{position:relative;color:var(--zt-white)}.zt-index-bar__index--touch:after{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:100%;height:100%;z-index:-1;padding:0;background:var(--zt-primary-color);border-radius:calc(var(--zt-line-height-sm) / 2)}.zt-index-bar__touch{display:none}.zt-index-bar__touch-text{width:-webkit-max-content;width:max-content;margin-right:-1px;height:32px;line-height:32px;border-radius:16px 0 0 16px;padding:0 1px 0 14px;font-size:var(--zt-font-size-lg);color:var(--zt-white);text-align:center;background:var(--zt-index-bar-sidebar-touch-index-background-color)}.zt-index-bar__touch--active{display:flex;position:absolute;top:-6px;right:100%}.zt-index-bar__icon{position:relative;width:20px;height:32px}.zt-index-bar__icon-fill{fill:var(--zt-index-bar-sidebar-touch-index-background-color)}
|
package/es/index-bar/types.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type IndexBarExpose = {
|
|
|
10
10
|
export type IndexBarInstance = ComponentPublicInstance<IndexBarProps, IndexBarExpose>;
|
|
11
11
|
export type IndexBarThemeVars = {
|
|
12
12
|
indexBarSidebarZIndex?: number | string;
|
|
13
|
+
indexBarSidebarTouchIndexBackgroundColor?: string;
|
|
13
14
|
};
|
|
14
15
|
export interface IndexBarContractionItem {
|
|
15
16
|
index: Numeric;
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -71,7 +71,7 @@ import { TimePicker } from "./time-picker/index.mjs";
|
|
|
71
71
|
import { Timeline } from "./timeline/index.mjs";
|
|
72
72
|
import { Toast } from "./toast/index.mjs";
|
|
73
73
|
import { Uploader } from "./uploader/index.mjs";
|
|
74
|
-
const version = "3.1.
|
|
74
|
+
const version = "3.1.11";
|
|
75
75
|
function install(app) {
|
|
76
76
|
const components = [
|
|
77
77
|
ActionSheet,
|
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
92
|
type: PropType<string | string[]>;
|
|
93
93
|
default: string;
|
|
94
94
|
};
|
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "hide" | "show" | "blur" | "
|
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "hide" | "show" | "blur" | "close" | "update:modelValue" | "delete")[], "input" | "hide" | "show" | "blur" | "close" | "update:modelValue" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
96
96
|
show: BooleanConstructor;
|
|
97
97
|
title: StringConstructor;
|
|
98
98
|
theme: {
|
|
@@ -43,7 +43,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
|
43
43
|
type: import("vue").PropType<string | string[]>;
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "hide" | "show" | "blur" | "
|
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "hide" | "show" | "blur" | "close" | "update:modelValue" | "delete")[], "input" | "hide" | "show" | "blur" | "close" | "update:modelValue" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
47
|
show: BooleanConstructor;
|
|
48
48
|
title: StringConstructor;
|
|
49
49
|
theme: {
|