zartui 3.1.7 → 3.1.8
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 +25 -0
- package/es/action-sheet/ActionSheet.d.ts +2 -2
- package/es/action-sheet/index.d.ts +2 -2
- package/es/button/Button.d.ts +3 -3
- package/es/button/index.d.ts +3 -3
- package/es/calendar/Calendar.d.ts +2 -2
- package/es/calendar/index.d.ts +2 -2
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.d.ts +2 -2
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/CellGroup.mjs +2 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +26 -12
- package/es/checkbox/Checkbox.mjs +13 -2
- package/es/checkbox/Checker.d.ts +9 -0
- package/es/checkbox/Checker.mjs +10 -10
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +9 -0
- package/es/composables/use-global-z-index.d.ts +4 -0
- package/es/composables/use-global-z-index.mjs +9 -0
- package/es/composables/use-scope-id.d.ts +3 -0
- package/es/composables/use-scope-id.mjs +9 -0
- package/es/composables/use-sync-prop-ref.d.ts +2 -0
- package/es/composables/use-sync-prop-ref.mjs +18 -0
- package/es/config-provider/ConfigProvider.d.ts +30 -6
- package/es/config-provider/ConfigProvider.mjs +48 -9
- package/es/config-provider/index.d.ts +17 -2
- package/es/date-time-picker/DateTimePicker.d.ts +2 -2
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/es/date-time-picker/index.d.ts +2 -2
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/function-call.d.ts +3 -3
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.mjs +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/field/Field.d.ts +3 -3
- package/es/field/index.d.ts +3 -3
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/icon/config.mjs +34 -11
- package/es/icon/index.css +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +17 -1
- package/es/image-preview/ImagePreview.mjs +17 -4
- package/es/image-preview/ImagePreviewItem.d.ts +6 -0
- package/es/image-preview/ImagePreviewItem.mjs +9 -3
- package/es/image-preview/function-call.mjs +1 -0
- package/es/image-preview/index.d.ts +12 -1
- package/es/image-preview/types.d.ts +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/list/List.d.ts +7 -3
- package/es/list/List.mjs +5 -3
- package/es/list/index.d.ts +2 -0
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +3 -3
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +3 -3
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/Popover.mjs +16 -12
- package/es/popover/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +2 -2
- package/es/popup/Popup.mjs +9 -10
- package/es/popup/index.d.ts +2 -2
- package/es/search/Search.d.ts +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.d.ts +2 -2
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/index.d.ts +2 -2
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/swipe/Swipe.mjs +1 -1
- package/es/swipe/index.css +1 -1
- package/es/swipe-cell/SwipeCell.mjs +10 -1
- package/es/tabs/Tabs.d.ts +4 -4
- package/es/tabs/index.d.ts +4 -4
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +17 -4
- package/es/text-ellipsis/TextEllipsis.mjs +52 -30
- package/es/text-ellipsis/index.d.ts +12 -3
- package/es/toast/Toast.d.ts +5 -2
- package/es/toast/Toast.mjs +2 -1
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +4 -2
- package/es/toast/types.d.ts +2 -0
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/utils/interceptor.d.ts +2 -1
- package/es/utils/interceptor.mjs +3 -2
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/ActionSheet.d.ts +2 -2
- package/lib/action-sheet/index.d.ts +2 -2
- package/lib/button/Button.d.ts +3 -3
- package/lib/button/index.d.ts +3 -3
- package/lib/calendar/Calendar.d.ts +2 -2
- package/lib/calendar/index.d.ts +2 -2
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.d.ts +2 -2
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/CellGroup.js +2 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +26 -12
- package/lib/checkbox/Checkbox.js +13 -2
- package/lib/checkbox/Checker.d.ts +9 -0
- package/lib/checkbox/Checker.js +10 -10
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-scope-id.d.ts +3 -0
- package/lib/composables/use-scope-id.js +28 -0
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/config-provider/ConfigProvider.d.ts +30 -6
- package/lib/config-provider/ConfigProvider.js +46 -7
- package/lib/config-provider/index.d.ts +17 -2
- package/lib/date-time-picker/DateTimePicker.d.ts +2 -2
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/lib/date-time-picker/index.d.ts +2 -2
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/function-call.d.ts +3 -3
- package/lib/dialog/function-call.js +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.js +2 -2
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/field/Field.d.ts +3 -3
- package/lib/field/index.d.ts +3 -3
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/icon/config.js +34 -11
- package/lib/icon/index.css +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +17 -1
- package/lib/image-preview/ImagePreview.js +17 -4
- package/lib/image-preview/ImagePreviewItem.d.ts +6 -0
- package/lib/image-preview/ImagePreviewItem.js +9 -3
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +12 -1
- package/lib/image-preview/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/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/list/List.d.ts +7 -3
- package/lib/list/List.js +4 -2
- package/lib/list/index.d.ts +2 -0
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +3 -3
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/index.d.ts +3 -3
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/Popover.js +16 -12
- package/lib/popover/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +2 -2
- package/lib/popup/Popup.js +8 -9
- package/lib/popup/index.d.ts +2 -2
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.d.ts +2 -2
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/index.d.ts +2 -2
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/swipe/Swipe.js +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/swipe-cell/SwipeCell.js +10 -1
- package/lib/tabs/Tabs.d.ts +4 -4
- package/lib/tabs/index.d.ts +4 -4
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +17 -4
- package/lib/text-ellipsis/TextEllipsis.js +51 -29
- package/lib/text-ellipsis/index.d.ts +12 -3
- package/lib/toast/Toast.d.ts +5 -2
- package/lib/toast/Toast.js +2 -1
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +4 -2
- package/lib/toast/types.d.ts +2 -0
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/utils/interceptor.d.ts +2 -1
- package/lib/utils/interceptor.js +3 -2
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +214 -88
- package/lib/zartui.es.js +215 -89
- package/lib/zartui.js +214 -88
- package/lib/zartui.min.js +1 -1
- package/package.json +19 -9
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { ref, watch, onMounted, defineComponent } from "vue";
|
|
2
|
+
import { ref, watch, computed, onMounted, defineComponent } from "vue";
|
|
3
3
|
import { useEventListener } from "@zartui/use";
|
|
4
4
|
import { makeNumericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
5
5
|
const [name, bem] = createNamespace("text-ellipsis");
|
|
6
6
|
const textEllipsisProps = {
|
|
7
7
|
rows: makeNumericProp(1),
|
|
8
|
+
dots: makeStringProp("..."),
|
|
8
9
|
content: makeStringProp(""),
|
|
9
10
|
expandText: makeStringProp(""),
|
|
10
11
|
collapseText: makeStringProp(""),
|
|
11
|
-
|
|
12
|
+
position: makeStringProp("end")
|
|
12
13
|
};
|
|
13
14
|
var stdin_default = defineComponent({
|
|
14
15
|
name,
|
|
@@ -21,6 +22,7 @@ var stdin_default = defineComponent({
|
|
|
21
22
|
const expanded = ref(false);
|
|
22
23
|
const hasAction = ref(false);
|
|
23
24
|
const root = ref();
|
|
25
|
+
const actionText = computed(() => expanded.value ? props.collapseText : props.expandText);
|
|
24
26
|
const pxToNum = (value) => {
|
|
25
27
|
if (!value)
|
|
26
28
|
return 0;
|
|
@@ -50,23 +52,52 @@ var stdin_default = defineComponent({
|
|
|
50
52
|
const calcEllipsisText = (container2, maxHeight2) => {
|
|
51
53
|
const {
|
|
52
54
|
content,
|
|
53
|
-
|
|
55
|
+
position,
|
|
56
|
+
dots
|
|
54
57
|
} = props;
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
const end = content.length;
|
|
59
|
+
const calcEllipse = () => {
|
|
60
|
+
const tail = (left, right) => {
|
|
61
|
+
if (right - left <= 1) {
|
|
62
|
+
if (position === "end") {
|
|
63
|
+
return content.slice(0, left) + dots;
|
|
64
|
+
}
|
|
65
|
+
return dots + content.slice(right, end);
|
|
66
|
+
}
|
|
67
|
+
const middle2 = Math.round((left + right) / 2);
|
|
68
|
+
if (position === "end") {
|
|
69
|
+
container2.innerText = content.slice(0, middle2) + dots + actionText.value;
|
|
70
|
+
} else {
|
|
71
|
+
container2.innerText = dots + content.slice(middle2, end) + actionText.value;
|
|
72
|
+
}
|
|
73
|
+
if (container2.offsetHeight > maxHeight2) {
|
|
74
|
+
if (position === "end") {
|
|
75
|
+
return tail(left, middle2);
|
|
76
|
+
}
|
|
77
|
+
return tail(middle2, right);
|
|
78
|
+
}
|
|
79
|
+
if (position === "end") {
|
|
80
|
+
return tail(middle2, right);
|
|
81
|
+
}
|
|
82
|
+
return tail(left, middle2);
|
|
83
|
+
};
|
|
84
|
+
container2.innerText = tail(0, end);
|
|
85
|
+
};
|
|
86
|
+
const middleTail = (leftPart, rightPart) => {
|
|
87
|
+
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
|
88
|
+
return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
|
|
67
89
|
}
|
|
68
|
-
|
|
69
|
-
|
|
90
|
+
const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
|
|
91
|
+
const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
|
|
92
|
+
container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
|
|
93
|
+
if (container2.offsetHeight >= maxHeight2) {
|
|
94
|
+
return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
|
|
95
|
+
}
|
|
96
|
+
return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
|
|
97
|
+
};
|
|
98
|
+
const middle = 0 + end >> 1;
|
|
99
|
+
props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end]) : calcEllipse();
|
|
100
|
+
return container2.innerText;
|
|
70
101
|
};
|
|
71
102
|
const container = cloneContainer();
|
|
72
103
|
if (!container)
|
|
@@ -76,7 +107,7 @@ var stdin_default = defineComponent({
|
|
|
76
107
|
paddingTop,
|
|
77
108
|
lineHeight
|
|
78
109
|
} = container.style;
|
|
79
|
-
const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
|
|
110
|
+
const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
|
|
80
111
|
if (maxHeight < container.offsetHeight) {
|
|
81
112
|
hasAction.value = true;
|
|
82
113
|
text.value = calcEllipsisText(container, maxHeight);
|
|
@@ -90,26 +121,17 @@ var stdin_default = defineComponent({
|
|
|
90
121
|
expanded.value = !expanded.value;
|
|
91
122
|
emit("clickAction", event);
|
|
92
123
|
};
|
|
93
|
-
const formatSearchKeyword = (keywords, text2) => {
|
|
94
|
-
if (!keywords)
|
|
95
|
-
return text2;
|
|
96
|
-
const replaceReg = new RegExp(keywords, "ig");
|
|
97
|
-
const replaceString = `<span style="color: #0091FA; background: rgba(0, 145, 250, 0.1);">${keywords}</span>`;
|
|
98
|
-
return text2.replace(replaceReg, replaceString);
|
|
99
|
-
};
|
|
100
124
|
const renderAction = () => _createVNode("span", {
|
|
101
125
|
"class": bem("action"),
|
|
102
126
|
"onClick": onClickAction
|
|
103
|
-
}, [
|
|
127
|
+
}, [actionText.value]);
|
|
104
128
|
onMounted(calcEllipsised);
|
|
105
|
-
watch(() => [props.content, props.rows], calcEllipsised);
|
|
129
|
+
watch(() => [props.content, props.rows, props.position], calcEllipsised);
|
|
106
130
|
useEventListener("resize", calcEllipsised);
|
|
107
131
|
return () => _createVNode("div", {
|
|
108
132
|
"ref": root,
|
|
109
133
|
"class": bem()
|
|
110
|
-
}, [
|
|
111
|
-
"innerHTML": formatSearchKeyword(props.highlight, expanded.value ? props.content : text.value)
|
|
112
|
-
}, null), hasAction.value ? renderAction() : null]);
|
|
134
|
+
}, [expanded.value ? props.content : text.value, hasAction.value ? renderAction() : null]);
|
|
113
135
|
}
|
|
114
136
|
});
|
|
115
137
|
export {
|
|
@@ -3,6 +3,10 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").
|
|
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
|
4
4
|
default: number;
|
|
5
5
|
};
|
|
6
|
+
dots: {
|
|
7
|
+
type: import("vue").PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
6
10
|
content: {
|
|
7
11
|
type: import("vue").PropType<string>;
|
|
8
12
|
default: string;
|
|
@@ -15,7 +19,7 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").
|
|
|
15
19
|
type: import("vue").PropType<string>;
|
|
16
20
|
default: string;
|
|
17
21
|
};
|
|
18
|
-
|
|
22
|
+
position: {
|
|
19
23
|
type: import("vue").PropType<string>;
|
|
20
24
|
default: string;
|
|
21
25
|
};
|
|
@@ -24,6 +28,10 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").
|
|
|
24
28
|
type: (NumberConstructor | StringConstructor)[];
|
|
25
29
|
default: number;
|
|
26
30
|
};
|
|
31
|
+
dots: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
27
35
|
content: {
|
|
28
36
|
type: import("vue").PropType<string>;
|
|
29
37
|
default: string;
|
|
@@ -36,7 +44,7 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").
|
|
|
36
44
|
type: import("vue").PropType<string>;
|
|
37
45
|
default: string;
|
|
38
46
|
};
|
|
39
|
-
|
|
47
|
+
position: {
|
|
40
48
|
type: import("vue").PropType<string>;
|
|
41
49
|
default: string;
|
|
42
50
|
};
|
|
@@ -44,10 +52,11 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").
|
|
|
44
52
|
onClickAction?: ((...args: any[]) => any) | undefined;
|
|
45
53
|
}, {
|
|
46
54
|
content: string;
|
|
55
|
+
position: string;
|
|
47
56
|
rows: string | number;
|
|
57
|
+
dots: string;
|
|
48
58
|
expandText: string;
|
|
49
59
|
collapseText: string;
|
|
50
|
-
highlight: string;
|
|
51
60
|
}, {}>>;
|
|
52
61
|
export default TextEllipsis;
|
|
53
62
|
export { textEllipsisProps } from './TextEllipsis';
|
package/es/toast/Toast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { LoadingType } from '../loading';
|
|
3
|
-
import type { ToastType, ToastPosition } from './types';
|
|
3
|
+
import type { ToastType, ToastPosition, ToastWordBreak } from './types';
|
|
4
4
|
declare const toastProps: {
|
|
5
5
|
icon: StringConstructor;
|
|
6
6
|
show: BooleanConstructor;
|
|
@@ -20,6 +20,7 @@ declare const toastProps: {
|
|
|
20
20
|
default: ToastPosition;
|
|
21
21
|
};
|
|
22
22
|
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
23
|
+
wordBreak: PropType<ToastWordBreak>;
|
|
23
24
|
className: PropType<unknown>;
|
|
24
25
|
iconPrefix: StringConstructor;
|
|
25
26
|
transition: {
|
|
@@ -53,6 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
54
|
default: ToastPosition;
|
|
54
55
|
};
|
|
55
56
|
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
57
|
+
wordBreak: PropType<ToastWordBreak>;
|
|
56
58
|
className: PropType<unknown>;
|
|
57
59
|
iconPrefix: StringConstructor;
|
|
58
60
|
transition: {
|
|
@@ -84,6 +86,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
86
|
default: ToastPosition;
|
|
85
87
|
};
|
|
86
88
|
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
89
|
+
wordBreak: PropType<ToastWordBreak>;
|
|
87
90
|
className: PropType<unknown>;
|
|
88
91
|
iconPrefix: StringConstructor;
|
|
89
92
|
transition: {
|
|
@@ -101,8 +104,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
104
|
}, {
|
|
102
105
|
type: ToastType;
|
|
103
106
|
position: ToastPosition;
|
|
104
|
-
show: boolean;
|
|
105
107
|
overlay: boolean;
|
|
108
|
+
show: boolean;
|
|
106
109
|
duration: number;
|
|
107
110
|
closeOnClickOverlay: boolean;
|
|
108
111
|
transition: string;
|
package/es/toast/Toast.mjs
CHANGED
|
@@ -17,6 +17,7 @@ const toastProps = {
|
|
|
17
17
|
duration: makeNumberProp(2e3),
|
|
18
18
|
position: makeStringProp("middle"),
|
|
19
19
|
teleport: [String, Object],
|
|
20
|
+
wordBreak: String,
|
|
20
21
|
className: unknownProp,
|
|
21
22
|
iconPrefix: String,
|
|
22
23
|
transition: makeStringProp("zt-fade"),
|
|
@@ -102,7 +103,7 @@ var stdin_default = defineComponent({
|
|
|
102
103
|
onMounted(toggleClickable);
|
|
103
104
|
onUnmounted(toggleClickable);
|
|
104
105
|
return () => _createVNode(Popup, _mergeProps({
|
|
105
|
-
"class": [bem([props.position, {
|
|
106
|
+
"class": [bem([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
|
106
107
|
[props.type]: !props.icon
|
|
107
108
|
}]), props.className],
|
|
108
109
|
"lockScroll": false,
|
package/es/toast/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-toast-max-width: 70%;--zt-toast-font-size: var(--zt-font-size-md);--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-line-height: var(--zt-line-height-md);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: rgba(45, 75, 115, .8);--zt-toast-icon-size: 36px;--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-toast-font-size);line-height:var(--zt-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--zt-toast-text-min-width);min-height:0;padding:var(--zt-toast-text-padding)}.zt-toast--text .zt-toast__text,.zt-toast--html .zt-toast__text{margin-top:0}.zt-toast--top{top:var(--zt-toast-position-top-distance)}.zt-toast--bottom{top:auto;bottom:var(--zt-toast-position-bottom-distance)}.zt-toast__icon{font-size:var(--zt-toast-icon-size)}.zt-toast__loading{padding:var(--zt-padding-base);color:var(--zt-toast-loading-icon-color)}.zt-toast__text{margin-top:var(--zt-padding-xs)}.zt-theme-dark{--zt-toast-background: rgba(255, 255, 255, .1);--zt-toast-text-color: var(--zt-white)}
|
|
1
|
+
:root{--zt-toast-max-width: 70%;--zt-toast-font-size: var(--zt-font-size-md);--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-line-height: var(--zt-line-height-md);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: rgba(45, 75, 115, .8);--zt-toast-icon-size: 36px;--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-toast-font-size);line-height:var(--zt-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--break-normal{word-break:normal;word-wrap:normal}.zt-toast--break-word{word-break:normal;word-wrap:break-word}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--zt-toast-text-min-width);min-height:0;padding:var(--zt-toast-text-padding)}.zt-toast--text .zt-toast__text,.zt-toast--html .zt-toast__text{margin-top:0}.zt-toast--top{top:var(--zt-toast-position-top-distance)}.zt-toast--bottom{top:auto;bottom:var(--zt-toast-position-bottom-distance)}.zt-toast__icon{font-size:var(--zt-toast-icon-size)}.zt-toast__loading{padding:var(--zt-padding-base);color:var(--zt-toast-loading-icon-color)}.zt-toast__text{margin-top:var(--zt-padding-xs)}.zt-theme-dark{--zt-toast-background: rgba(255, 255, 255, .1);--zt-toast-text-color: var(--zt-white)}
|
package/es/toast/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
|
|
|
17
17
|
default: import("./types").ToastPosition;
|
|
18
18
|
};
|
|
19
19
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
20
|
+
wordBreak: import("vue").PropType<import("./types").ToastWordBreak>;
|
|
20
21
|
className: import("vue").PropType<unknown>;
|
|
21
22
|
iconPrefix: StringConstructor;
|
|
22
23
|
transition: {
|
|
@@ -48,6 +49,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
|
|
|
48
49
|
default: import("./types").ToastPosition;
|
|
49
50
|
};
|
|
50
51
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
52
|
+
wordBreak: import("vue").PropType<import("./types").ToastWordBreak>;
|
|
51
53
|
className: import("vue").PropType<unknown>;
|
|
52
54
|
iconPrefix: StringConstructor;
|
|
53
55
|
transition: {
|
|
@@ -65,8 +67,8 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
|
|
|
65
67
|
}, {
|
|
66
68
|
type: import("./types").ToastType;
|
|
67
69
|
position: import("./types").ToastPosition;
|
|
68
|
-
show: boolean;
|
|
69
70
|
overlay: boolean;
|
|
71
|
+
show: boolean;
|
|
70
72
|
duration: number;
|
|
71
73
|
closeOnClickOverlay: boolean;
|
|
72
74
|
transition: string;
|
|
@@ -76,7 +78,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
|
|
|
76
78
|
export default Toast;
|
|
77
79
|
export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
|
|
78
80
|
export type { ToastProps } from './Toast';
|
|
79
|
-
export type { ToastType, ToastOptions, ToastPosition } from './types';
|
|
81
|
+
export type { ToastType, ToastOptions, ToastPosition, ToastWordBreak, ToastWrapperInstance, } from './types';
|
|
80
82
|
declare module 'vue' {
|
|
81
83
|
interface GlobalComponents {
|
|
82
84
|
ZtToast: typeof Toast;
|
package/es/toast/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { LoadingType } from '../loading';
|
|
|
3
3
|
import type { Numeric } from '../utils';
|
|
4
4
|
export type ToastType = 'text' | 'loading' | 'success' | 'warning' | 'html';
|
|
5
5
|
export type ToastPosition = 'top' | 'middle' | 'bottom';
|
|
6
|
+
export type ToastWordBreak = 'break-all' | 'break-word' | 'normal';
|
|
6
7
|
export type ToastOptions = {
|
|
7
8
|
icon?: string;
|
|
8
9
|
type?: ToastType;
|
|
@@ -18,6 +19,7 @@ export type ToastOptions = {
|
|
|
18
19
|
className?: unknown;
|
|
19
20
|
transition?: string;
|
|
20
21
|
iconPrefix?: string;
|
|
22
|
+
wordBreak?: ToastWordBreak;
|
|
21
23
|
loadingType?: LoadingType;
|
|
22
24
|
forbidClick?: boolean;
|
|
23
25
|
closeOnClick?: boolean;
|
|
@@ -197,10 +197,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
197
197
|
name: string | number;
|
|
198
198
|
disabled: boolean;
|
|
199
199
|
accept: string;
|
|
200
|
+
multiple: boolean;
|
|
200
201
|
modelValue: UploaderFileListItem[];
|
|
201
202
|
readonly: boolean;
|
|
202
203
|
lazyLoad: boolean;
|
|
203
|
-
multiple: boolean;
|
|
204
204
|
resultType: UploaderResultType;
|
|
205
205
|
maxCount: string | number;
|
|
206
206
|
imageFit: ImageFit;
|
package/es/uploader/index.d.ts
CHANGED
|
@@ -130,10 +130,10 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
|
130
130
|
name: string | number;
|
|
131
131
|
disabled: boolean;
|
|
132
132
|
accept: string;
|
|
133
|
+
multiple: boolean;
|
|
133
134
|
modelValue: import("./types").UploaderFileListItem[];
|
|
134
135
|
readonly: boolean;
|
|
135
136
|
lazyLoad: boolean;
|
|
136
|
-
multiple: boolean;
|
|
137
137
|
resultType: import("./types").UploaderResultType;
|
|
138
138
|
maxCount: string | number;
|
|
139
139
|
imageFit: import("..").ImageFit;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
2
|
-
export declare function callInterceptor(interceptor: Interceptor | undefined, { args, done, canceled, }: {
|
|
2
|
+
export declare function callInterceptor(interceptor: Interceptor | undefined, { args, done, canceled, error, }: {
|
|
3
3
|
args?: unknown[];
|
|
4
4
|
done: () => void;
|
|
5
5
|
canceled?: () => void;
|
|
6
|
+
error?: () => void;
|
|
6
7
|
}): void;
|
package/es/utils/interceptor.mjs
CHANGED
|
@@ -3,7 +3,8 @@ import { isPromise } from "./validate.mjs";
|
|
|
3
3
|
function callInterceptor(interceptor, {
|
|
4
4
|
args = [],
|
|
5
5
|
done,
|
|
6
|
-
canceled
|
|
6
|
+
canceled,
|
|
7
|
+
error
|
|
7
8
|
}) {
|
|
8
9
|
if (interceptor) {
|
|
9
10
|
const returnVal = interceptor.apply(null, args);
|
|
@@ -14,7 +15,7 @@ function callInterceptor(interceptor, {
|
|
|
14
15
|
} else if (canceled) {
|
|
15
16
|
canceled();
|
|
16
17
|
}
|
|
17
|
-
}).catch(noop);
|
|
18
|
+
}).catch(error || noop);
|
|
18
19
|
} else if (returnVal) {
|
|
19
20
|
done();
|
|
20
21
|
} else if (canceled) {
|
package/es/vue-sfc-shim.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare module '*.vue' {
|
|
2
|
-
// eslint-disable-next-line
|
|
3
|
-
import { DefineComponent } from 'vue';
|
|
4
|
-
const Component: DefineComponent;
|
|
5
|
-
export default Component;
|
|
6
|
-
}
|
|
1
|
+
declare module '*.vue' {
|
|
2
|
+
// eslint-disable-next-line
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
const Component: DefineComponent;
|
|
5
|
+
export default Component;
|
|
6
|
+
}
|
package/es/vue-tsx-shim.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import 'vue';
|
|
2
|
-
|
|
3
|
-
type EventHandler = (...args: any[]) => void;
|
|
4
|
-
|
|
5
|
-
declare module 'vue' {
|
|
6
|
-
interface ComponentCustomProps {
|
|
7
|
-
id?: string;
|
|
8
|
-
role?: string;
|
|
9
|
-
tabindex?: number;
|
|
10
|
-
onClick?: EventHandler;
|
|
11
|
-
onTouchend?: EventHandler;
|
|
12
|
-
onTouchmove?: EventHandler;
|
|
13
|
-
onTouchstart?: EventHandler;
|
|
14
|
-
onTouchcancel?: EventHandler;
|
|
15
|
-
onTouchmovePassive?: EventHandler;
|
|
16
|
-
onTouchstartPassive?: EventHandler;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface HTMLAttributes {
|
|
20
|
-
onTouchmovePassive?: EventHandler;
|
|
21
|
-
onTouchstartPassive?: EventHandler;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
import 'vue';
|
|
2
|
+
|
|
3
|
+
type EventHandler = (...args: any[]) => void;
|
|
4
|
+
|
|
5
|
+
declare module 'vue' {
|
|
6
|
+
interface ComponentCustomProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
role?: string;
|
|
9
|
+
tabindex?: number;
|
|
10
|
+
onClick?: EventHandler;
|
|
11
|
+
onTouchend?: EventHandler;
|
|
12
|
+
onTouchmove?: EventHandler;
|
|
13
|
+
onTouchstart?: EventHandler;
|
|
14
|
+
onTouchcancel?: EventHandler;
|
|
15
|
+
onTouchmovePassive?: EventHandler;
|
|
16
|
+
onTouchstartPassive?: EventHandler;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface HTMLAttributes {
|
|
20
|
+
onTouchmovePassive?: EventHandler;
|
|
21
|
+
onTouchstartPassive?: EventHandler;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -177,13 +177,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
177
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
178
178
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
179
179
|
}, {
|
|
180
|
-
show: boolean;
|
|
181
180
|
overlay: boolean;
|
|
181
|
+
round: boolean;
|
|
182
|
+
show: boolean;
|
|
182
183
|
lockScroll: boolean;
|
|
183
184
|
lazyRender: boolean;
|
|
184
185
|
transitionAppear: boolean;
|
|
185
186
|
closeOnClickOverlay: boolean;
|
|
186
|
-
round: boolean;
|
|
187
187
|
closeIcon: string;
|
|
188
188
|
closeable: boolean;
|
|
189
189
|
closeOnPopstate: boolean;
|
|
@@ -111,13 +111,13 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
111
111
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
112
112
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
show: boolean;
|
|
115
114
|
overlay: boolean;
|
|
115
|
+
round: boolean;
|
|
116
|
+
show: boolean;
|
|
116
117
|
lockScroll: boolean;
|
|
117
118
|
lazyRender: boolean;
|
|
118
119
|
transitionAppear: boolean;
|
|
119
120
|
closeOnClickOverlay: boolean;
|
|
120
|
-
round: boolean;
|
|
121
121
|
closeIcon: string;
|
|
122
122
|
closeable: boolean;
|
|
123
123
|
closeOnPopstate: boolean;
|
package/lib/button/Button.d.ts
CHANGED
|
@@ -142,11 +142,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
142
|
type: ButtonType;
|
|
143
143
|
tag: keyof HTMLElementTagNameMap;
|
|
144
144
|
disabled: boolean;
|
|
145
|
-
size: ButtonSize;
|
|
146
145
|
round: boolean;
|
|
147
|
-
loading: boolean;
|
|
148
|
-
square: boolean;
|
|
149
146
|
block: boolean;
|
|
147
|
+
size: ButtonSize;
|
|
148
|
+
square: boolean;
|
|
149
|
+
loading: boolean;
|
|
150
150
|
borderLess: boolean;
|
|
151
151
|
blockInner: boolean;
|
|
152
152
|
plain: boolean;
|
package/lib/button/index.d.ts
CHANGED
|
@@ -93,11 +93,11 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
93
93
|
type: import("./types").ButtonType;
|
|
94
94
|
tag: keyof HTMLElementTagNameMap;
|
|
95
95
|
disabled: boolean;
|
|
96
|
-
size: import("./types").ButtonSize;
|
|
97
96
|
round: boolean;
|
|
98
|
-
loading: boolean;
|
|
99
|
-
square: boolean;
|
|
100
97
|
block: boolean;
|
|
98
|
+
size: import("./types").ButtonSize;
|
|
99
|
+
square: boolean;
|
|
100
|
+
loading: boolean;
|
|
101
101
|
borderLess: boolean;
|
|
102
102
|
blockInner: boolean;
|
|
103
103
|
plain: boolean;
|
|
@@ -282,11 +282,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
282
282
|
}, {
|
|
283
283
|
type: CalendarType;
|
|
284
284
|
position: PopupPosition;
|
|
285
|
-
|
|
285
|
+
round: boolean;
|
|
286
286
|
show: boolean;
|
|
287
|
+
readonly: boolean;
|
|
287
288
|
lazyRender: boolean;
|
|
288
289
|
closeOnClickOverlay: boolean;
|
|
289
|
-
round: boolean;
|
|
290
290
|
closeOnPopstate: boolean;
|
|
291
291
|
safeAreaInsetTop: boolean;
|
|
292
292
|
safeAreaInsetBottom: boolean;
|
package/lib/calendar/index.d.ts
CHANGED
|
@@ -188,11 +188,11 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
188
188
|
}, {
|
|
189
189
|
type: import("./types").CalendarType;
|
|
190
190
|
position: import("..").PopupPosition;
|
|
191
|
-
|
|
191
|
+
round: boolean;
|
|
192
192
|
show: boolean;
|
|
193
|
+
readonly: boolean;
|
|
193
194
|
lazyRender: boolean;
|
|
194
195
|
closeOnClickOverlay: boolean;
|
|
195
|
-
round: boolean;
|
|
196
196
|
closeOnPopstate: boolean;
|
|
197
197
|
safeAreaInsetTop: boolean;
|
|
198
198
|
safeAreaInsetBottom: boolean;
|
|
@@ -156,10 +156,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
156
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
position: PopupPosition;
|
|
159
|
+
round: boolean;
|
|
159
160
|
show: boolean;
|
|
160
161
|
teleport: string;
|
|
161
162
|
closeOnClickOverlay: boolean;
|
|
162
|
-
round: boolean;
|
|
163
163
|
closeable: boolean;
|
|
164
164
|
closeOnPopstate: boolean;
|
|
165
165
|
safeAreaInsetTop: boolean;
|
package/lib/cascader/index.d.ts
CHANGED
|
@@ -103,10 +103,10 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
103
103
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
position: import("..").PopupPosition;
|
|
106
|
+
round: boolean;
|
|
106
107
|
show: boolean;
|
|
107
108
|
teleport: string;
|
|
108
109
|
closeOnClickOverlay: boolean;
|
|
109
|
-
round: boolean;
|
|
110
110
|
closeable: boolean;
|
|
111
111
|
closeOnPopstate: boolean;
|
|
112
112
|
safeAreaInsetTop: boolean;
|
package/lib/cell/Cell.d.ts
CHANGED
|
@@ -141,10 +141,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
}, {
|
|
142
142
|
replace: boolean;
|
|
143
143
|
value: string;
|
|
144
|
-
direction: CellDirection;
|
|
145
144
|
center: boolean;
|
|
146
|
-
isLink: boolean;
|
|
147
145
|
border: boolean;
|
|
146
|
+
direction: CellDirection;
|
|
147
|
+
isLink: boolean;
|
|
148
148
|
required: boolean;
|
|
149
149
|
clickable: boolean | null;
|
|
150
150
|
}, {}>;
|
package/lib/cell/index.d.ts
CHANGED
|
@@ -71,10 +71,10 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
71
71
|
}, {
|
|
72
72
|
replace: boolean;
|
|
73
73
|
value: string;
|
|
74
|
-
direction: import("./types").CellDirection;
|
|
75
74
|
center: boolean;
|
|
76
|
-
isLink: boolean;
|
|
77
75
|
border: boolean;
|
|
76
|
+
direction: import("./types").CellDirection;
|
|
77
|
+
isLink: boolean;
|
|
78
78
|
required: boolean;
|
|
79
79
|
clickable: boolean | null;
|
|
80
80
|
}, {}>>;
|
|
@@ -23,6 +23,7 @@ module.exports = __toCommonJS(stdin_exports);
|
|
|
23
23
|
var import_vue = require("vue");
|
|
24
24
|
var import_vue2 = require("vue");
|
|
25
25
|
var import_utils = require("../utils");
|
|
26
|
+
var import_use_scope_id = require("../composables/use-scope-id");
|
|
26
27
|
const [name, bem] = (0, import_utils.createNamespace)("cell-group");
|
|
27
28
|
const cellGroupProps = {
|
|
28
29
|
title: String,
|
|
@@ -45,7 +46,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
45
46
|
}), {
|
|
46
47
|
[import_utils.BORDER_TOP_BOTTOM]: props.border && !props.inset
|
|
47
48
|
}]
|
|
48
|
-
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
49
|
+
}, attrs, (0, import_use_scope_id.useScopeId)()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
49
50
|
};
|
|
50
51
|
const renderTitle = () => (0, import_vue.createVNode)("div", {
|
|
51
52
|
"class": bem("title", {
|
|
@@ -13,8 +13,8 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
|
|
|
13
13
|
default: true;
|
|
14
14
|
};
|
|
15
15
|
}>>, {
|
|
16
|
-
border: boolean;
|
|
17
16
|
inset: boolean;
|
|
17
|
+
border: boolean;
|
|
18
18
|
}, {}>>;
|
|
19
19
|
export default CellGroup;
|
|
20
20
|
export type { CellGroupProps } from './CellGroup';
|