x-next 1.11.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI_USAGE/catalog.md +1 -1
- package/AI_USAGE/components/alert.md +1 -1
- package/AI_USAGE/components/bar-chart.md +1 -1
- package/AI_USAGE/components/button.md +1 -1
- package/AI_USAGE/components/checkbox.md +1 -1
- package/AI_USAGE/components/color-picker.md +1 -1
- package/AI_USAGE/components/config-provider.md +1 -1
- package/AI_USAGE/components/date-picker.md +1 -1
- package/AI_USAGE/components/dialog.md +1 -1
- package/AI_USAGE/components/dropdown.md +1 -1
- package/AI_USAGE/components/empty.md +1 -1
- package/AI_USAGE/components/input.md +1 -1
- package/AI_USAGE/components/line-chart.md +1 -1
- package/AI_USAGE/components/message-box.md +1 -1
- package/AI_USAGE/components/message.md +1 -1
- package/AI_USAGE/components/notification.md +1 -1
- package/AI_USAGE/components/pagination.md +7 -3
- package/AI_USAGE/components/pie-chart.md +1 -1
- package/AI_USAGE/components/popconfirm.md +1 -1
- package/AI_USAGE/components/popover.md +1 -1
- package/AI_USAGE/components/progress.md +1 -1
- package/AI_USAGE/components/radio.md +1 -1
- package/AI_USAGE/components/rate.md +1 -1
- package/AI_USAGE/components/select.md +1 -1
- package/AI_USAGE/components/slider.md +1 -1
- package/AI_USAGE/components/steps.md +1 -1
- package/AI_USAGE/components/switch.md +1 -1
- package/AI_USAGE/components/tabs.md +1 -1
- package/AI_USAGE/components/textarea.md +1 -1
- package/AI_USAGE/components/time-picker.md +1 -1
- package/AI_USAGE/components/upload.md +1 -1
- package/AI_USAGE/core.md +1 -1
- package/AI_USAGE/index.md +1 -1
- package/AI_USAGE/recipes/form-on-demand.md +1 -1
- package/AI_USAGE.md +8 -4
- package/CHANGELOG.md +40 -0
- package/dist/components/network/Network.vue.d.ts +8 -4
- package/dist/components/network/index.d.ts +13 -5
- package/dist/components/network/props.d.ts +5 -0
- package/dist/components/network/utils.d.ts +3 -3
- package/dist/components/pagination/page-item-ellipsis.vue.d.ts +4 -1
- package/dist/components/pagination/page-item-step.vue.d.ts +101 -130
- package/dist/components/pagination/page-item.vue.d.ts +1 -0
- package/dist/components/pagination/page-jumper.vue.d.ts +1 -1
- package/dist/components/pagination/page-options.vue.d.ts +6 -4
- package/dist/components/pagination/utils.d.ts +3 -0
- package/dist/components/table/Table.d.ts +11 -0
- package/dist/components/table/context.d.ts +5 -0
- package/dist/components/table/dom-listeners.d.ts +23 -0
- package/dist/components/table/hooks/use-column-resize.d.ts +2 -1
- package/dist/components/table/hooks/use-drag.d.ts +6 -3
- package/dist/components/table/hooks/use-keyboard-navigation.d.ts +27 -0
- package/dist/components/table/hooks/use-sorter.d.ts +3 -1
- package/dist/components/table/index.d.ts +15 -0
- package/dist/components/table/interface.d.ts +9 -2
- package/dist/components/table/locale.d.ts +8 -7
- package/dist/components/table/table-operation-td.d.ts +34 -0
- package/dist/components/table/table-td.d.ts +36 -2
- package/dist/components/table/table-th.d.ts +34 -0
- package/dist/components/table/table-tr.d.ts +34 -0
- package/dist/components/time-range-selector/index.d.ts +6 -6
- package/dist/components/trend-chart/components/TrendChart.d.ts +1 -1
- package/dist/components/trend-chart/index.d.ts +3 -3
- package/dist/components/upload/Upload.d.ts +1 -1
- package/dist/components/upload/index.d.ts +3 -3
- package/dist/es/_styles/palette-aliases.js +4 -4
- package/dist/es/components/button/Button.js +53 -42
- package/dist/es/components/network/Network.vue.js +17 -12
- package/dist/es/components/network/Network.vue2.js +78 -70
- package/dist/es/components/network/utils.js +112 -71
- package/dist/es/components/pagination/Pagination.js +132 -123
- package/dist/es/components/pagination/page-item-ellipsis.vue.js +10 -10
- package/dist/es/components/pagination/page-item-ellipsis.vue2.js +24 -19
- package/dist/es/components/pagination/page-item-step.vue.js +14 -11
- package/dist/es/components/pagination/page-item-step.vue2.js +20 -22
- package/dist/es/components/pagination/page-item.vue.js +10 -9
- package/dist/es/components/pagination/page-item.vue2.js +24 -19
- package/dist/es/components/pagination/page-jumper.vue2.js +23 -23
- package/dist/es/components/pagination/page-options.vue.js +15 -10
- package/dist/es/components/pagination/page-options.vue2.js +21 -17
- package/dist/es/components/pagination/utils.js +4 -2
- package/dist/es/components/table/Table.js +947 -713
- package/dist/es/components/table/dom-listeners.js +23 -0
- package/dist/es/components/table/hooks/use-column-resize.js +27 -18
- package/dist/es/components/table/hooks/use-column-sorter.js +22 -29
- package/dist/es/components/table/hooks/use-drag.js +23 -20
- package/dist/es/components/table/hooks/use-filter.js +43 -43
- package/dist/es/components/table/hooks/use-keyboard-navigation.js +69 -0
- package/dist/es/components/table/hooks/use-row-selection.js +33 -29
- package/dist/es/components/table/hooks/use-sorter.js +86 -38
- package/dist/es/components/table/hooks/use-span.js +28 -35
- package/dist/es/components/table/locale.js +27 -10
- package/dist/es/components/table/table-col-group.vue2.js +9 -9
- package/dist/es/components/table/table-operation-td.js +72 -51
- package/dist/es/components/table/table-operation-th.js +41 -34
- package/dist/es/components/table/table-td.js +100 -77
- package/dist/es/components/table/table-th.js +221 -188
- package/dist/es/components/table/table-tr.js +11 -8
- package/dist/es/components/table/utils.js +104 -94
- package/dist/es/components/virtual-list-v2/hooks/use-size.js +47 -41
- package/dist/es/components/virtual-list-v2/virtual-list-item.js +29 -16
- package/dist/es/locale/en-US.js +9 -1
- package/dist/es/locale/index.js +3 -3
- package/dist/es/locale/zh-CN.js +9 -1
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/locale/interface.d.ts +12 -0
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style/network.css +1 -1
- package/dist/style/pagination.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -48,12 +48,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
48
48
|
default: number;
|
|
49
49
|
};
|
|
50
50
|
renderExpandBtn: {
|
|
51
|
-
type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean) => VNode>;
|
|
51
|
+
type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean, loading?: boolean) => VNode>;
|
|
52
52
|
};
|
|
53
53
|
summary: {
|
|
54
54
|
type: BooleanConstructor;
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
58
|
+
onClick: PropType<(event: MouseEvent) => void>;
|
|
59
|
+
onDblclick: PropType<(event: MouseEvent) => void>;
|
|
60
|
+
onContextmenu: PropType<(event: MouseEvent) => void>;
|
|
61
|
+
onMouseenter: PropType<(event: MouseEvent) => void>;
|
|
62
|
+
onMouseleave: PropType<(event: MouseEvent) => void>;
|
|
63
|
+
onDragstart: PropType<(event: DragEvent) => void>;
|
|
64
|
+
onDragend: PropType<(event: DragEvent) => void>;
|
|
65
|
+
onDragenter: PropType<(event: DragEvent) => void>;
|
|
66
|
+
onDragover: PropType<(event: DragEvent) => void>;
|
|
67
|
+
onDrop: PropType<(event: DragEvent) => void>;
|
|
68
|
+
onKeydown: PropType<(event: KeyboardEvent) => void>;
|
|
69
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
70
|
+
onPointerdown: PropType<(event: PointerEvent) => void>;
|
|
71
|
+
onPointermove: PropType<(event: PointerEvent) => void>;
|
|
72
|
+
onPointerup: PropType<(event: PointerEvent) => void>;
|
|
73
|
+
onPointercancel: PropType<(event: PointerEvent) => void>;
|
|
57
74
|
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
58
75
|
[key: string]: any;
|
|
59
76
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -102,12 +119,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
102
119
|
default: number;
|
|
103
120
|
};
|
|
104
121
|
renderExpandBtn: {
|
|
105
|
-
type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean) => VNode>;
|
|
122
|
+
type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean, loading?: boolean) => VNode>;
|
|
106
123
|
};
|
|
107
124
|
summary: {
|
|
108
125
|
type: BooleanConstructor;
|
|
109
126
|
default: boolean;
|
|
110
127
|
};
|
|
128
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
129
|
+
onClick: PropType<(event: MouseEvent) => void>;
|
|
130
|
+
onDblclick: PropType<(event: MouseEvent) => void>;
|
|
131
|
+
onContextmenu: PropType<(event: MouseEvent) => void>;
|
|
132
|
+
onMouseenter: PropType<(event: MouseEvent) => void>;
|
|
133
|
+
onMouseleave: PropType<(event: MouseEvent) => void>;
|
|
134
|
+
onDragstart: PropType<(event: DragEvent) => void>;
|
|
135
|
+
onDragend: PropType<(event: DragEvent) => void>;
|
|
136
|
+
onDragenter: PropType<(event: DragEvent) => void>;
|
|
137
|
+
onDragover: PropType<(event: DragEvent) => void>;
|
|
138
|
+
onDrop: PropType<(event: DragEvent) => void>;
|
|
139
|
+
onKeydown: PropType<(event: KeyboardEvent) => void>;
|
|
140
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
141
|
+
onPointerdown: PropType<(event: PointerEvent) => void>;
|
|
142
|
+
onPointermove: PropType<(event: PointerEvent) => void>;
|
|
143
|
+
onPointerup: PropType<(event: PointerEvent) => void>;
|
|
144
|
+
onPointercancel: PropType<(event: PointerEvent) => void>;
|
|
111
145
|
}>> & Readonly<{}>, {
|
|
112
146
|
type: "normal" | "expand" | "checkbox" | "radio" | "operation";
|
|
113
147
|
summary: boolean;
|
|
@@ -14,6 +14,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
14
14
|
default: () => never[];
|
|
15
15
|
};
|
|
16
16
|
resizable: BooleanConstructor;
|
|
17
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
18
|
+
onClick: PropType<(event: MouseEvent) => void>;
|
|
19
|
+
onDblclick: PropType<(event: MouseEvent) => void>;
|
|
20
|
+
onContextmenu: PropType<(event: MouseEvent) => void>;
|
|
21
|
+
onMouseenter: PropType<(event: MouseEvent) => void>;
|
|
22
|
+
onMouseleave: PropType<(event: MouseEvent) => void>;
|
|
23
|
+
onDragstart: PropType<(event: DragEvent) => void>;
|
|
24
|
+
onDragend: PropType<(event: DragEvent) => void>;
|
|
25
|
+
onDragenter: PropType<(event: DragEvent) => void>;
|
|
26
|
+
onDragover: PropType<(event: DragEvent) => void>;
|
|
27
|
+
onDrop: PropType<(event: DragEvent) => void>;
|
|
28
|
+
onKeydown: PropType<(event: KeyboardEvent) => void>;
|
|
29
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
30
|
+
onPointerdown: PropType<(event: PointerEvent) => void>;
|
|
31
|
+
onPointermove: PropType<(event: PointerEvent) => void>;
|
|
32
|
+
onPointerup: PropType<(event: PointerEvent) => void>;
|
|
33
|
+
onPointercancel: PropType<(event: PointerEvent) => void>;
|
|
17
34
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
18
35
|
[key: string]: any;
|
|
19
36
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -30,6 +47,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
30
47
|
default: () => never[];
|
|
31
48
|
};
|
|
32
49
|
resizable: BooleanConstructor;
|
|
50
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
51
|
+
onClick: PropType<(event: MouseEvent) => void>;
|
|
52
|
+
onDblclick: PropType<(event: MouseEvent) => void>;
|
|
53
|
+
onContextmenu: PropType<(event: MouseEvent) => void>;
|
|
54
|
+
onMouseenter: PropType<(event: MouseEvent) => void>;
|
|
55
|
+
onMouseleave: PropType<(event: MouseEvent) => void>;
|
|
56
|
+
onDragstart: PropType<(event: DragEvent) => void>;
|
|
57
|
+
onDragend: PropType<(event: DragEvent) => void>;
|
|
58
|
+
onDragenter: PropType<(event: DragEvent) => void>;
|
|
59
|
+
onDragover: PropType<(event: DragEvent) => void>;
|
|
60
|
+
onDrop: PropType<(event: DragEvent) => void>;
|
|
61
|
+
onKeydown: PropType<(event: KeyboardEvent) => void>;
|
|
62
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
63
|
+
onPointerdown: PropType<(event: PointerEvent) => void>;
|
|
64
|
+
onPointermove: PropType<(event: PointerEvent) => void>;
|
|
65
|
+
onPointerup: PropType<(event: PointerEvent) => void>;
|
|
66
|
+
onPointercancel: PropType<(event: PointerEvent) => void>;
|
|
33
67
|
}>> & Readonly<{}>, {
|
|
34
68
|
column: TableColumnData;
|
|
35
69
|
dataColumns: TableColumnData[];
|
|
@@ -15,6 +15,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
15
|
type: PropType<TableDataWithRaw>;
|
|
16
16
|
default: () => {};
|
|
17
17
|
};
|
|
18
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
onClick: PropType<(event: MouseEvent) => void>;
|
|
20
|
+
onDblclick: PropType<(event: MouseEvent) => void>;
|
|
21
|
+
onContextmenu: PropType<(event: MouseEvent) => void>;
|
|
22
|
+
onMouseenter: PropType<(event: MouseEvent) => void>;
|
|
23
|
+
onMouseleave: PropType<(event: MouseEvent) => void>;
|
|
24
|
+
onDragstart: PropType<(event: DragEvent) => void>;
|
|
25
|
+
onDragend: PropType<(event: DragEvent) => void>;
|
|
26
|
+
onDragenter: PropType<(event: DragEvent) => void>;
|
|
27
|
+
onDragover: PropType<(event: DragEvent) => void>;
|
|
28
|
+
onDrop: PropType<(event: DragEvent) => void>;
|
|
29
|
+
onKeydown: PropType<(event: KeyboardEvent) => void>;
|
|
30
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
31
|
+
onPointerdown: PropType<(event: PointerEvent) => void>;
|
|
32
|
+
onPointermove: PropType<(event: PointerEvent) => void>;
|
|
33
|
+
onPointerup: PropType<(event: PointerEvent) => void>;
|
|
34
|
+
onPointercancel: PropType<(event: PointerEvent) => void>;
|
|
18
35
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
19
36
|
[key: string]: any;
|
|
20
37
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -32,6 +49,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
32
49
|
type: PropType<TableDataWithRaw>;
|
|
33
50
|
default: () => {};
|
|
34
51
|
};
|
|
52
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
53
|
+
onClick: PropType<(event: MouseEvent) => void>;
|
|
54
|
+
onDblclick: PropType<(event: MouseEvent) => void>;
|
|
55
|
+
onContextmenu: PropType<(event: MouseEvent) => void>;
|
|
56
|
+
onMouseenter: PropType<(event: MouseEvent) => void>;
|
|
57
|
+
onMouseleave: PropType<(event: MouseEvent) => void>;
|
|
58
|
+
onDragstart: PropType<(event: DragEvent) => void>;
|
|
59
|
+
onDragend: PropType<(event: DragEvent) => void>;
|
|
60
|
+
onDragenter: PropType<(event: DragEvent) => void>;
|
|
61
|
+
onDragover: PropType<(event: DragEvent) => void>;
|
|
62
|
+
onDrop: PropType<(event: DragEvent) => void>;
|
|
63
|
+
onKeydown: PropType<(event: KeyboardEvent) => void>;
|
|
64
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
65
|
+
onPointerdown: PropType<(event: PointerEvent) => void>;
|
|
66
|
+
onPointermove: PropType<(event: PointerEvent) => void>;
|
|
67
|
+
onPointerup: PropType<(event: PointerEvent) => void>;
|
|
68
|
+
onPointercancel: PropType<(event: PointerEvent) => void>;
|
|
35
69
|
}>> & Readonly<{}>, {
|
|
36
70
|
empty: boolean;
|
|
37
71
|
expand: boolean;
|
|
@@ -2,7 +2,7 @@ export declare const TimeRangeSelector: {
|
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
3
|
modelValue: [string, string][];
|
|
4
4
|
color?: string;
|
|
5
|
-
scene?: "default" | "compact" | "
|
|
5
|
+
scene?: "default" | "compact" | "monitor" | "schedule";
|
|
6
6
|
overlapAllowed?: boolean;
|
|
7
7
|
stepMinutes?: number;
|
|
8
8
|
disabledRanges?: [string, string][];
|
|
@@ -21,7 +21,7 @@ export declare const TimeRangeSelector: {
|
|
|
21
21
|
}, import('vue').PublicProps, {
|
|
22
22
|
readonly: boolean;
|
|
23
23
|
disabled: boolean;
|
|
24
|
-
scene: "default" | "compact" | "
|
|
24
|
+
scene: "default" | "compact" | "monitor" | "schedule";
|
|
25
25
|
overlapAllowed: boolean;
|
|
26
26
|
stepMinutes: number;
|
|
27
27
|
disabledRanges: [string, string][];
|
|
@@ -37,7 +37,7 @@ export declare const TimeRangeSelector: {
|
|
|
37
37
|
}, Readonly<{
|
|
38
38
|
modelValue: [string, string][];
|
|
39
39
|
color?: string;
|
|
40
|
-
scene?: "default" | "compact" | "
|
|
40
|
+
scene?: "default" | "compact" | "monitor" | "schedule";
|
|
41
41
|
overlapAllowed?: boolean;
|
|
42
42
|
stepMinutes?: number;
|
|
43
43
|
disabledRanges?: [string, string][];
|
|
@@ -52,7 +52,7 @@ export declare const TimeRangeSelector: {
|
|
|
52
52
|
}>, {}, {}, {}, {}, {
|
|
53
53
|
readonly: boolean;
|
|
54
54
|
disabled: boolean;
|
|
55
|
-
scene: "default" | "compact" | "
|
|
55
|
+
scene: "default" | "compact" | "monitor" | "schedule";
|
|
56
56
|
overlapAllowed: boolean;
|
|
57
57
|
stepMinutes: number;
|
|
58
58
|
disabledRanges: [string, string][];
|
|
@@ -65,7 +65,7 @@ export declare const TimeRangeSelector: {
|
|
|
65
65
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
66
66
|
modelValue: [string, string][];
|
|
67
67
|
color?: string;
|
|
68
|
-
scene?: "default" | "compact" | "
|
|
68
|
+
scene?: "default" | "compact" | "monitor" | "schedule";
|
|
69
69
|
overlapAllowed?: boolean;
|
|
70
70
|
stepMinutes?: number;
|
|
71
71
|
disabledRanges?: [string, string][];
|
|
@@ -84,7 +84,7 @@ export declare const TimeRangeSelector: {
|
|
|
84
84
|
}, string, {
|
|
85
85
|
readonly: boolean;
|
|
86
86
|
disabled: boolean;
|
|
87
|
-
scene: "default" | "compact" | "
|
|
87
|
+
scene: "default" | "compact" | "monitor" | "schedule";
|
|
88
88
|
overlapAllowed: boolean;
|
|
89
89
|
stepMinutes: number;
|
|
90
90
|
disabledRanges: [string, string][];
|
|
@@ -165,12 +165,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
165
165
|
padding: string | number;
|
|
166
166
|
height: string | number;
|
|
167
167
|
width: string | number;
|
|
168
|
-
dataset: import('../props').DataSet;
|
|
169
168
|
labels: Record<string, unknown> | null;
|
|
170
169
|
theme: Theme;
|
|
171
170
|
showPoints: import('../props').ShowPoints;
|
|
172
171
|
interactive: boolean;
|
|
173
172
|
tooltipFormatter: (value: number) => string;
|
|
173
|
+
dataset: import('../props').DataSet;
|
|
174
174
|
}, {}, {
|
|
175
175
|
TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
176
176
|
boundary: {
|
|
@@ -92,12 +92,12 @@ export declare const TrendChart: {
|
|
|
92
92
|
padding: string | number;
|
|
93
93
|
height: string | number;
|
|
94
94
|
width: string | number;
|
|
95
|
-
dataset: import('./props').DataSet;
|
|
96
95
|
labels: Record<string, unknown> | null;
|
|
97
96
|
theme: import('./props').Theme;
|
|
98
97
|
showPoints: import('./props').ShowPoints;
|
|
99
98
|
interactive: boolean;
|
|
100
99
|
tooltipFormatter: (value: number) => string;
|
|
100
|
+
dataset: import('./props').DataSet;
|
|
101
101
|
}, true, {}, {}, {
|
|
102
102
|
TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
103
103
|
boundary: {
|
|
@@ -328,12 +328,12 @@ export declare const TrendChart: {
|
|
|
328
328
|
padding: string | number;
|
|
329
329
|
height: string | number;
|
|
330
330
|
width: string | number;
|
|
331
|
-
dataset: import('./props').DataSet;
|
|
332
331
|
labels: Record<string, unknown> | null;
|
|
333
332
|
theme: import('./props').Theme;
|
|
334
333
|
showPoints: import('./props').ShowPoints;
|
|
335
334
|
interactive: boolean;
|
|
336
335
|
tooltipFormatter: (value: number) => string;
|
|
336
|
+
dataset: import('./props').DataSet;
|
|
337
337
|
}>;
|
|
338
338
|
__isFragment?: never;
|
|
339
339
|
__isTeleport?: never;
|
|
@@ -431,12 +431,12 @@ export declare const TrendChart: {
|
|
|
431
431
|
padding: string | number;
|
|
432
432
|
height: string | number;
|
|
433
433
|
width: string | number;
|
|
434
|
-
dataset: import('./props').DataSet;
|
|
435
434
|
labels: Record<string, unknown> | null;
|
|
436
435
|
theme: import('./props').Theme;
|
|
437
436
|
showPoints: import('./props').ShowPoints;
|
|
438
437
|
interactive: boolean;
|
|
439
438
|
tooltipFormatter: (value: number) => string;
|
|
439
|
+
dataset: import('./props').DataSet;
|
|
440
440
|
}, {}, string, {}, {
|
|
441
441
|
TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
442
442
|
boundary: {
|
|
@@ -323,8 +323,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
323
323
|
imagePreview: boolean;
|
|
324
324
|
multiple: boolean;
|
|
325
325
|
tip: string;
|
|
326
|
-
draggable: boolean;
|
|
327
326
|
limit: number;
|
|
327
|
+
draggable: boolean;
|
|
328
328
|
method: import('./interface').UploadRequestMethod;
|
|
329
329
|
timeout: number;
|
|
330
330
|
accept: string;
|
|
@@ -177,8 +177,8 @@ export declare const Upload: {
|
|
|
177
177
|
imagePreview: boolean;
|
|
178
178
|
multiple: boolean;
|
|
179
179
|
tip: string;
|
|
180
|
-
draggable: boolean;
|
|
181
180
|
limit: number;
|
|
181
|
+
draggable: boolean;
|
|
182
182
|
method: import('./interface').UploadRequestMethod;
|
|
183
183
|
timeout: number;
|
|
184
184
|
accept: string;
|
|
@@ -396,8 +396,8 @@ export declare const Upload: {
|
|
|
396
396
|
imagePreview: boolean;
|
|
397
397
|
multiple: boolean;
|
|
398
398
|
tip: string;
|
|
399
|
-
draggable: boolean;
|
|
400
399
|
limit: number;
|
|
400
|
+
draggable: boolean;
|
|
401
401
|
method: import('./interface').UploadRequestMethod;
|
|
402
402
|
timeout: number;
|
|
403
403
|
accept: string;
|
|
@@ -604,8 +604,8 @@ export declare const Upload: {
|
|
|
604
604
|
imagePreview: boolean;
|
|
605
605
|
multiple: boolean;
|
|
606
606
|
tip: string;
|
|
607
|
-
draggable: boolean;
|
|
608
607
|
limit: number;
|
|
608
|
+
draggable: boolean;
|
|
609
609
|
method: import('./interface').UploadRequestMethod;
|
|
610
610
|
timeout: number;
|
|
611
611
|
accept: string;
|
|
@@ -74,11 +74,11 @@ const r = {
|
|
|
74
74
|
"--x-notification-color-accent-info": "var(--x-color-primary-solid)",
|
|
75
75
|
"--x-notification-color-icon-bg-info": "var(--x-color-primary-subtle)",
|
|
76
76
|
"--x-pagination-color-bg-item_active": "var(--x-color-primary-light-1)",
|
|
77
|
-
"--x-pagination-color-icon-arrow-text_hover": "var(--x-color-primary-
|
|
78
|
-
"--x-pagination-color-item-outline_focus": "var(--x-color-primary-
|
|
79
|
-
"--x-pagination-color-item-text_active": "var(--x-color-primary-
|
|
77
|
+
"--x-pagination-color-icon-arrow-text_hover": "var(--x-color-primary-text)",
|
|
78
|
+
"--x-pagination-color-item-outline_focus": "var(--x-color-primary-text)",
|
|
79
|
+
"--x-pagination-color-item-text_active": "color-mix( in srgb, var(--x-color-primary-text) 96%, var(--x-color-text-1) )",
|
|
80
80
|
"--x-pagination-color-item-text_active_disabled": "var(--x-color-primary-light-3)",
|
|
81
|
-
"--x-pagination-simple-color-icon-arrow-text_hover": "var(--x-color-primary-
|
|
81
|
+
"--x-pagination-simple-color-icon-arrow-text_hover": "var(--x-color-primary-text)",
|
|
82
82
|
"--x-picker-color-border_focus": "var(--x-field-color-border-focus)",
|
|
83
83
|
"--x-picker-color-shadow_focus": "var(--x-field-color-shadow-focus)",
|
|
84
84
|
"--x-radio-button-color-text_active": "var(--x-color-primary-6)",
|
|
@@ -1,73 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getClassNameMixin as
|
|
3
|
-
import { buttonProps as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { buttonGroupInjectionKey as
|
|
7
|
-
import { useSize as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as C, getCurrentInstance as E, inject as M, reactive as R, computed as r, withDirectives as Z, createVNode as d, resolveDirective as $, isVNode as q, Comment as H, Fragment as J, Text as Q } from "vue";
|
|
2
|
+
import { getClassNameMixin as U } from "../../_utils/config.js";
|
|
3
|
+
import { buttonProps as W } from "./props.js";
|
|
4
|
+
import X from "../../icons/animation/animation-loading.js";
|
|
5
|
+
import Y from "../../directives/wave.js";
|
|
6
|
+
import { buttonGroupInjectionKey as _ } from "./context.js";
|
|
7
|
+
import { useSize as G } from "../../_hooks/use-size.js";
|
|
8
|
+
const o = (e) => {
|
|
9
|
+
if (Array.isArray(e)) return e.some(o);
|
|
10
|
+
if (e == null || typeof e == "boolean") return !1;
|
|
11
|
+
if (typeof e == "string") return e.trim().length > 0;
|
|
12
|
+
if (q(e)) {
|
|
13
|
+
if (e.type === H) return !1;
|
|
14
|
+
if (e.type === J || e.type === Q)
|
|
15
|
+
return o(e.children);
|
|
16
|
+
}
|
|
17
|
+
return !0;
|
|
18
|
+
}, re = /* @__PURE__ */ C({
|
|
9
19
|
name: "Button",
|
|
10
|
-
props:
|
|
20
|
+
props: W,
|
|
11
21
|
// 显式导入插槽
|
|
12
22
|
slots: Object,
|
|
13
23
|
directives: {
|
|
14
|
-
wave:
|
|
24
|
+
wave: Y
|
|
15
25
|
},
|
|
16
26
|
emits: ["click"],
|
|
17
27
|
setup(e, {
|
|
18
|
-
slots:
|
|
19
|
-
emit:
|
|
28
|
+
slots: n,
|
|
29
|
+
emit: A
|
|
20
30
|
}) {
|
|
21
|
-
const
|
|
22
|
-
mergedSize:
|
|
23
|
-
} =
|
|
31
|
+
const v = E(), a = M(_, void 0), {
|
|
32
|
+
mergedSize: F
|
|
33
|
+
} = G(void 0, {
|
|
24
34
|
defaultValue: "medium"
|
|
25
|
-
}),
|
|
35
|
+
}), u = R({
|
|
26
36
|
clicked: !1,
|
|
27
37
|
isDebounce: !1
|
|
28
|
-
}), i =
|
|
29
|
-
const
|
|
30
|
-
return Object.prototype.hasOwnProperty.call(
|
|
31
|
-
}, m =
|
|
32
|
-
e.debounce > 0 && !
|
|
33
|
-
|
|
38
|
+
}), i = U("button"), I = (t) => t.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`), f = (t) => {
|
|
39
|
+
const c = (v == null ? void 0 : v.vnode.props) ?? {};
|
|
40
|
+
return Object.prototype.hasOwnProperty.call(c, t) || Object.prototype.hasOwnProperty.call(c, I(t));
|
|
41
|
+
}, m = r(() => f("type") ? e.type : (a == null ? void 0 : a.type) ?? e.type), w = r(() => f("size") ? e.size : (a == null ? void 0 : a.size) ?? F.value), D = r(() => f("status") ? e.status : (a == null ? void 0 : a.status) ?? e.status), y = r(() => f("shape") ? e.shape : (a == null ? void 0 : a.shape) ?? e.shape), s = r(() => f("disabled") ? e.disabled : (a == null ? void 0 : a.disabled) ?? e.disabled), L = r(() => [i.block, m.value && m.value !== "default" && i.modifier(m.value), w.value && i.modifier(w.value), D.value && i.modifier(D.value), s.value && i.is("disabled"), e.block && i.modifier("block"), e.plain && i.modifier("plain"), y.value && i.modifier(y.value), e.link && i.modifier("link"), !e.border && i.modifier("hide-border"), l.value && i.modifier("loading"), e.narrow && i.modifier("narrow")]), N = () => {
|
|
42
|
+
e.debounce > 0 && !u.isDebounce && (u.isDebounce = !0, setTimeout(() => {
|
|
43
|
+
u.isDebounce = !1;
|
|
34
44
|
}, e.debounce));
|
|
35
|
-
},
|
|
36
|
-
var
|
|
37
|
-
|
|
45
|
+
}, l = r(() => e.loading || u.clicked || u.isDebounce), V = r(() => s.value || l.value || e.link || m.value === "text"), B = (t) => {
|
|
46
|
+
var c;
|
|
47
|
+
t.detail > 0 && ((c = t.currentTarget) == null || c.blur()), !(s.value || l.value) && (N(), A("click", t));
|
|
38
48
|
};
|
|
39
49
|
return () => {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
var P, j, O, T;
|
|
51
|
+
const t = (P = n.default) == null ? void 0 : P.call(n), c = (j = n.prefix) == null ? void 0 : j.call(n), S = (O = n.icon) == null ? void 0 : O.call(n), x = (T = n.suffix) == null ? void 0 : T.call(n), b = o(t), g = o(c), h = o(S), p = o(x), z = !b && !g && h && !p, k = e.loadingFill || l.value && (y.value === "circle" || z), K = l.value && !k && (b || g || h || p);
|
|
52
|
+
return Z(d("button", {
|
|
53
|
+
class: [L.value, !b && i.modifier("empty-content"), z && i.modifier("only-icon"), k && i.modifier("loading-fill")],
|
|
43
54
|
type: e.htmlType,
|
|
44
|
-
disabled:
|
|
45
|
-
"aria-busy":
|
|
46
|
-
onClick:
|
|
47
|
-
}, [
|
|
55
|
+
disabled: s.value || l.value,
|
|
56
|
+
"aria-busy": l.value || void 0,
|
|
57
|
+
onClick: B
|
|
58
|
+
}, [d("span", {
|
|
48
59
|
class: i.element("loading"),
|
|
49
60
|
"aria-hidden": "true",
|
|
50
61
|
style: {
|
|
51
62
|
display: "flex",
|
|
52
|
-
opacity:
|
|
53
|
-
width:
|
|
54
|
-
marginRight:
|
|
63
|
+
opacity: l.value ? 1 : 0,
|
|
64
|
+
width: k ? void 0 : l.value ? "1em" : 0,
|
|
65
|
+
marginRight: K ? "4px" : "0",
|
|
55
66
|
overflow: "hidden"
|
|
56
67
|
}
|
|
57
|
-
}, [
|
|
68
|
+
}, [l.value && d(X, null, null)]), g && d("span", {
|
|
58
69
|
class: i.element("prefix")
|
|
59
|
-
}, [
|
|
70
|
+
}, [c]), h && d("span", {
|
|
60
71
|
class: i.element("prefix")
|
|
61
|
-
}, [
|
|
72
|
+
}, [S]), d("span", {
|
|
62
73
|
class: i.element("content")
|
|
63
|
-
}, [
|
|
74
|
+
}, [t]), p && d("span", {
|
|
64
75
|
class: i.element("suffix")
|
|
65
|
-
}, [
|
|
66
|
-
disabled:
|
|
76
|
+
}, [x])]), [[$("wave"), {
|
|
77
|
+
disabled: V.value
|
|
67
78
|
}]]);
|
|
68
79
|
};
|
|
69
80
|
}
|
|
70
81
|
});
|
|
71
82
|
export {
|
|
72
|
-
|
|
83
|
+
re as default
|
|
73
84
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import d from "./Network.vue2.js";
|
|
2
|
-
import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, Fragment as p, renderList as g, normalizeStyle as S,
|
|
2
|
+
import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, toDisplayString as t, Fragment as p, renderList as g, normalizeStyle as S, createCommentVNode as m } from "vue";
|
|
3
3
|
import y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
4
|
+
const c = ["aria-label", "aria-live", "title"];
|
|
5
|
+
function f(e, n, v, N, h, k) {
|
|
6
6
|
return s(), r("div", {
|
|
7
7
|
class: a(e.cls),
|
|
8
8
|
role: "status",
|
|
9
9
|
"aria-label": e.mergedAriaLabel,
|
|
10
10
|
"aria-live": e.ariaLive,
|
|
11
|
+
"aria-atomic": "true",
|
|
11
12
|
title: e.showTooltip ? e.mergedAriaLabel : void 0
|
|
12
13
|
}, [
|
|
13
14
|
u(e.$slots, "default", {
|
|
@@ -21,40 +22,44 @@ function c(e, t, v, N, h, k) {
|
|
|
21
22
|
reason: e.mergedStatus.reason,
|
|
22
23
|
refresh: e.refresh
|
|
23
24
|
}, () => [
|
|
25
|
+
l("span", {
|
|
26
|
+
class: a(e.className.element("status-text"))
|
|
27
|
+
}, t(e.mergedAriaLabel), 3),
|
|
24
28
|
l("div", {
|
|
25
29
|
class: a(e.className.element("signal")),
|
|
26
30
|
"aria-hidden": "true"
|
|
27
31
|
}, [
|
|
28
|
-
(s(!0), r(p, null, g(e.lineItems, (o,
|
|
29
|
-
key:
|
|
32
|
+
(s(!0), r(p, null, g(e.lineItems, (o, i) => (s(), r("div", {
|
|
33
|
+
key: i,
|
|
30
34
|
class: a([
|
|
31
35
|
e.className.element("signal--item"),
|
|
32
36
|
o.active && e.className.is("active")
|
|
33
37
|
]),
|
|
34
38
|
style: S({
|
|
35
|
-
height: `${100 / e.lineItems.length * (
|
|
39
|
+
height: `${100 / e.lineItems.length * (i + 1)}%`,
|
|
36
40
|
"--x-network-line-color": o.color
|
|
37
41
|
})
|
|
38
|
-
}, [...
|
|
42
|
+
}, [...n[0] || (n[0] = [
|
|
39
43
|
l("i", null, null, -1)
|
|
40
44
|
])], 6))), 128))
|
|
41
45
|
], 2),
|
|
42
46
|
e.mergedShowMetrics ? (s(), r("span", {
|
|
43
47
|
key: 0,
|
|
44
|
-
class: a(e.className.element("metrics"))
|
|
48
|
+
class: a(e.className.element("metrics")),
|
|
49
|
+
"aria-hidden": "true"
|
|
45
50
|
}, [
|
|
46
51
|
e.mergedStatus.latency !== void 0 ? (s(), r("span", {
|
|
47
52
|
key: 0,
|
|
48
53
|
class: a(e.className.element("latency"))
|
|
49
|
-
},
|
|
54
|
+
}, t(e.mergedStatus.latency) + "ms ", 3)) : m("", !0),
|
|
50
55
|
l("span", {
|
|
51
56
|
class: a(e.className.element("speed"))
|
|
52
|
-
},
|
|
57
|
+
}, t(e.formattedDownloadSpeed), 3)
|
|
53
58
|
], 2)) : m("", !0)
|
|
54
59
|
])
|
|
55
|
-
], 10,
|
|
60
|
+
], 10, c);
|
|
56
61
|
}
|
|
57
|
-
const L = /* @__PURE__ */ y(d, [["render",
|
|
62
|
+
const L = /* @__PURE__ */ y(d, [["render", f]]);
|
|
58
63
|
export {
|
|
59
64
|
L as default
|
|
60
65
|
};
|