@koi-design/uxd-ui 14.0.2 → 14.0.3
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/components/Alert/Alert.mjs +10 -24
- package/es/components/Alert/Alert.mjs.map +1 -1
- package/es/components/Alert/Alert.type.d.ts +5 -7
- package/es/components/Alert/Alert.type.mjs +4 -7
- package/es/components/Alert/Alert.type.mjs.map +1 -1
- package/es/components/Alert/Alert.vue.d.ts +5 -15
- package/es/components/Alert/index.d.ts +9 -27
- package/es/components/Alert/index.mjs +1 -1
- package/es/components/Calendar/Calendar.vue.d.ts +2 -2
- package/es/components/Calendar/index.d.ts +6 -6
- package/es/components/DatePicker/DatePicker.vue.d.ts +14 -14
- package/es/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
- package/es/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
- package/es/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
- package/es/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
- package/es/components/DatePicker/index.d.ts +28 -28
- package/es/components/Menu/MenuItem.vue.d.ts +33 -33
- package/es/components/Menu/index.d.ts +33 -33
- package/es/components/Message/Message.mjs +4 -3
- package/es/components/Message/Message.mjs.map +1 -1
- package/es/components/Notice/Notice.mjs +15 -13
- package/es/components/Notice/Notice.mjs.map +1 -1
- package/es/components/Notice/Notice.type.d.ts +3 -2
- package/es/components/Notification/Notice.mjs +1 -5
- package/es/components/Notification/Notice.mjs.map +1 -1
- package/es/components/Notification/Notification.mjs.map +1 -1
- package/es/components/Rate/Rate.vue.d.ts +33 -33
- package/es/components/Rate/index.d.ts +66 -66
- package/es/components/Statistic/Statistic.vue.d.ts +33 -33
- package/es/components/Statistic/index.d.ts +66 -66
- package/es/components/Table/BaseTable.vue.d.ts +132 -132
- package/es/components/Table/BodyTable.vue.d.ts +132 -132
- package/es/components/Table/HeadTable.vue.d.ts +132 -132
- package/es/components/Table/Table.vue.d.ts +264 -264
- package/es/components/Table/TableBox.vue.d.ts +264 -264
- package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
- package/es/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
- package/es/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
- package/es/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
- package/es/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
- package/es/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
- package/es/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
- package/es/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
- package/es/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
- package/es/components/ThemePanel/index.d.ts +66 -66
- package/es/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
- package/es/components/TimePicker/TimePicker.vue.d.ts +12 -12
- package/es/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
- package/es/components/TimePicker/index.d.ts +28 -28
- package/es/components/Tooltip/Tooltip.mjs +84 -8
- package/es/components/Tooltip/Tooltip.mjs.map +1 -1
- package/es/components/Tooltip/Tooltip.type.d.ts +2 -2
- package/es/components/Tooltip/Tooltip.type.mjs +1 -3
- package/es/components/Tooltip/Tooltip.type.mjs.map +1 -1
- package/es/components/Tooltip/Tooltip.vue.d.ts +13 -13
- package/es/components/Tooltip/index.d.ts +33 -33
- package/es/components/index.mjs +1 -1
- package/es/index.mjs +1 -1
- package/lib/components/Alert/Alert.js +9 -23
- package/lib/components/Alert/Alert.js.map +1 -1
- package/lib/components/Alert/Alert.type.d.ts +5 -7
- package/lib/components/Alert/Alert.type.js +4 -6
- package/lib/components/Alert/Alert.type.js.map +1 -1
- package/lib/components/Alert/Alert.vue.d.ts +5 -15
- package/lib/components/Alert/index.d.ts +9 -27
- package/lib/components/Alert/index.js +1 -0
- package/lib/components/Alert/index.js.map +1 -1
- package/lib/components/Calendar/Calendar.vue.d.ts +2 -2
- package/lib/components/Calendar/index.d.ts +6 -6
- package/lib/components/DatePicker/DatePicker.vue.d.ts +14 -14
- package/lib/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
- package/lib/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
- package/lib/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
- package/lib/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
- package/lib/components/DatePicker/index.d.ts +28 -28
- package/lib/components/Menu/MenuItem.vue.d.ts +33 -33
- package/lib/components/Menu/index.d.ts +33 -33
- package/lib/components/Message/Message.js +4 -3
- package/lib/components/Message/Message.js.map +1 -1
- package/lib/components/Notice/Notice.js +15 -13
- package/lib/components/Notice/Notice.js.map +1 -1
- package/lib/components/Notice/Notice.type.d.ts +3 -2
- package/lib/components/Notification/Notice.js +1 -5
- package/lib/components/Notification/Notice.js.map +1 -1
- package/lib/components/Notification/Notification.js.map +1 -1
- package/lib/components/Rate/Rate.vue.d.ts +33 -33
- package/lib/components/Rate/index.d.ts +66 -66
- package/lib/components/Statistic/Statistic.vue.d.ts +33 -33
- package/lib/components/Statistic/index.d.ts +66 -66
- package/lib/components/Table/BaseTable.vue.d.ts +132 -132
- package/lib/components/Table/BodyTable.vue.d.ts +132 -132
- package/lib/components/Table/HeadTable.vue.d.ts +132 -132
- package/lib/components/Table/Table.vue.d.ts +264 -264
- package/lib/components/Table/TableBox.vue.d.ts +264 -264
- package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
- package/lib/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
- package/lib/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
- package/lib/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
- package/lib/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
- package/lib/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
- package/lib/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
- package/lib/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
- package/lib/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
- package/lib/components/ThemePanel/index.d.ts +66 -66
- package/lib/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
- package/lib/components/TimePicker/TimePicker.vue.d.ts +12 -12
- package/lib/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
- package/lib/components/TimePicker/index.d.ts +28 -28
- package/lib/components/Tooltip/Tooltip.js +84 -8
- package/lib/components/Tooltip/Tooltip.js.map +1 -1
- package/lib/components/Tooltip/Tooltip.type.d.ts +2 -2
- package/lib/components/Tooltip/Tooltip.type.js +1 -3
- package/lib/components/Tooltip/Tooltip.type.js.map +1 -1
- package/lib/components/Tooltip/Tooltip.vue.d.ts +13 -13
- package/lib/components/Tooltip/index.d.ts +33 -33
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/alert/index.css +1 -1
- package/styles/components/alert/index.less +51 -48
- package/styles/components/alert/var.less +8 -42
- package/styles/components/autoComplete/index.css +1 -1
- package/styles/components/avatar/index.css +1 -1
- package/styles/components/badge/index.css +1 -1
- package/styles/components/badge/var.less +2 -2
- package/styles/components/button/index.css +1 -1
- package/styles/components/carousel/index.css +1 -1
- package/styles/components/cascader/index.css +1 -1
- package/styles/components/datePicker/index.css +1 -1
- package/styles/components/form/index.css +1 -1
- package/styles/components/icon/index.css +1 -1
- package/styles/components/input/index.css +1 -1
- package/styles/components/inputNumber/index.css +1 -1
- package/styles/components/link/index.css +1 -1
- package/styles/components/mentions/index.css +1 -1
- package/styles/components/message/index.css +1 -1
- package/styles/components/message/index.less +63 -30
- package/styles/components/message/var.less +6 -27
- package/styles/components/modal/index.css +1 -1
- package/styles/components/notice/index.css +1 -1
- package/styles/components/notice/index.less +93 -49
- package/styles/components/notice/var.less +10 -33
- package/styles/components/select/index.css +1 -1
- package/styles/components/spin/index.css +1 -1
- package/styles/components/tag/index.css +1 -1
- package/styles/components/tag/var.less +17 -17
- package/styles/components/timePicker/index.css +1 -1
- package/styles/components/tooltip/index.css +1 -1
- package/styles/components/tooltip/index.less +3 -55
- package/styles/components/tooltip/var.less +15 -14
- package/styles/cssVariable.css +1 -1
- package/styles/cssVariable.less +8 -9
- package/styles/index.css +1 -1
- package/types/components/Alert/Alert.type.d.ts +5 -7
- package/types/components/Alert/Alert.vue.d.ts +5 -15
- package/types/components/Alert/index.d.ts +9 -27
- package/types/components/Calendar/Calendar.vue.d.ts +2 -2
- package/types/components/Calendar/index.d.ts +6 -6
- package/types/components/DatePicker/DatePicker.vue.d.ts +14 -14
- package/types/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
- package/types/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
- package/types/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
- package/types/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
- package/types/components/DatePicker/index.d.ts +28 -28
- package/types/components/Menu/MenuItem.vue.d.ts +33 -33
- package/types/components/Menu/index.d.ts +33 -33
- package/types/components/Notice/Notice.type.d.ts +3 -2
- package/types/components/Rate/Rate.vue.d.ts +33 -33
- package/types/components/Rate/index.d.ts +66 -66
- package/types/components/Statistic/Statistic.vue.d.ts +33 -33
- package/types/components/Statistic/index.d.ts +66 -66
- package/types/components/Table/BaseTable.vue.d.ts +132 -132
- package/types/components/Table/BodyTable.vue.d.ts +132 -132
- package/types/components/Table/HeadTable.vue.d.ts +132 -132
- package/types/components/Table/Table.vue.d.ts +264 -264
- package/types/components/Table/TableBox.vue.d.ts +264 -264
- package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
- package/types/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
- package/types/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
- package/types/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
- package/types/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
- package/types/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
- package/types/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
- package/types/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
- package/types/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
- package/types/components/ThemePanel/index.d.ts +66 -66
- package/types/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
- package/types/components/TimePicker/TimePicker.vue.d.ts +12 -12
- package/types/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
- package/types/components/TimePicker/index.d.ts +28 -28
- package/types/components/Tooltip/Tooltip.type.d.ts +2 -2
- package/types/components/Tooltip/Tooltip.vue.d.ts +13 -13
- package/types/components/Tooltip/index.d.ts +33 -33
- package/uxd-ui.css +1 -1
- package/uxd-ui.esm.min.mjs +6 -6
- package/uxd-ui.esm.mjs +122 -64
- package/uxd-ui.umd.js +121 -62
- package/uxd-ui.umd.min.js +6 -6
|
@@ -46,8 +46,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
color: {
|
|
49
|
-
type: import("vue").PropType<"
|
|
50
|
-
default: "
|
|
49
|
+
type: import("vue").PropType<"light" | "red">;
|
|
50
|
+
default: "light" | "red";
|
|
51
51
|
validator: (val: string) => boolean;
|
|
52
52
|
};
|
|
53
53
|
}>, {
|
|
@@ -56,34 +56,34 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
56
56
|
prefixCls: import("vue").ComputedRef<string>;
|
|
57
57
|
arrowStyle: import("vue").ComputedRef<{
|
|
58
58
|
top: string;
|
|
59
|
+
right: string;
|
|
59
60
|
transform: string;
|
|
60
61
|
bottom?: undefined;
|
|
61
62
|
left?: undefined;
|
|
62
|
-
right?: undefined;
|
|
63
63
|
} | {
|
|
64
64
|
bottom: string;
|
|
65
|
+
right: string;
|
|
65
66
|
transform: string;
|
|
66
67
|
top?: undefined;
|
|
67
68
|
left?: undefined;
|
|
68
|
-
right?: undefined;
|
|
69
69
|
} | {
|
|
70
|
+
top: string;
|
|
70
71
|
left: string;
|
|
71
72
|
transform: string;
|
|
72
|
-
top?: undefined;
|
|
73
|
-
bottom?: undefined;
|
|
74
73
|
right?: undefined;
|
|
74
|
+
bottom?: undefined;
|
|
75
75
|
} | {
|
|
76
|
-
|
|
76
|
+
bottom: string;
|
|
77
|
+
left: string;
|
|
77
78
|
transform: string;
|
|
78
79
|
top?: undefined;
|
|
79
|
-
|
|
80
|
-
left?: undefined;
|
|
80
|
+
right?: undefined;
|
|
81
81
|
} | {
|
|
82
82
|
top?: undefined;
|
|
83
|
+
right?: undefined;
|
|
83
84
|
transform?: undefined;
|
|
84
85
|
bottom?: undefined;
|
|
85
86
|
left?: undefined;
|
|
86
|
-
right?: undefined;
|
|
87
87
|
}>;
|
|
88
88
|
onVisibleChange: (val: boolean) => void;
|
|
89
89
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -137,15 +137,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
137
137
|
default: boolean;
|
|
138
138
|
};
|
|
139
139
|
color: {
|
|
140
|
-
type: import("vue").PropType<"
|
|
141
|
-
default: "
|
|
140
|
+
type: import("vue").PropType<"light" | "red">;
|
|
141
|
+
default: "light" | "red";
|
|
142
142
|
validator: (val: string) => boolean;
|
|
143
143
|
};
|
|
144
144
|
}>> & Readonly<{
|
|
145
145
|
"onUpdate:visible"?: (v: boolean) => any;
|
|
146
146
|
"onVisible-change"?: (v: boolean) => any;
|
|
147
147
|
}>, {
|
|
148
|
-
color: "
|
|
148
|
+
color: "light" | "red";
|
|
149
149
|
offset: number[];
|
|
150
150
|
visible: boolean;
|
|
151
151
|
placement: "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
|
|
@@ -47,8 +47,8 @@ export declare const UTooltip: {
|
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
49
|
color: {
|
|
50
|
-
type: import("vue").PropType<"
|
|
51
|
-
default: "
|
|
50
|
+
type: import("vue").PropType<"light" | "red">;
|
|
51
|
+
default: "light" | "red";
|
|
52
52
|
validator: (val: string) => boolean;
|
|
53
53
|
};
|
|
54
54
|
}>> & Readonly<{
|
|
@@ -60,41 +60,41 @@ export declare const UTooltip: {
|
|
|
60
60
|
prefixCls: import("vue").ComputedRef<string>;
|
|
61
61
|
arrowStyle: import("vue").ComputedRef<{
|
|
62
62
|
top: string;
|
|
63
|
+
right: string;
|
|
63
64
|
transform: string;
|
|
64
65
|
bottom?: undefined;
|
|
65
66
|
left?: undefined;
|
|
66
|
-
right?: undefined;
|
|
67
67
|
} | {
|
|
68
68
|
bottom: string;
|
|
69
|
+
right: string;
|
|
69
70
|
transform: string;
|
|
70
71
|
top?: undefined;
|
|
71
72
|
left?: undefined;
|
|
72
|
-
right?: undefined;
|
|
73
73
|
} | {
|
|
74
|
+
top: string;
|
|
74
75
|
left: string;
|
|
75
76
|
transform: string;
|
|
76
|
-
top?: undefined;
|
|
77
|
-
bottom?: undefined;
|
|
78
77
|
right?: undefined;
|
|
78
|
+
bottom?: undefined;
|
|
79
79
|
} | {
|
|
80
|
-
|
|
80
|
+
bottom: string;
|
|
81
|
+
left: string;
|
|
81
82
|
transform: string;
|
|
82
83
|
top?: undefined;
|
|
83
|
-
|
|
84
|
-
left?: undefined;
|
|
84
|
+
right?: undefined;
|
|
85
85
|
} | {
|
|
86
86
|
top?: undefined;
|
|
87
|
+
right?: undefined;
|
|
87
88
|
transform?: undefined;
|
|
88
89
|
bottom?: undefined;
|
|
89
90
|
left?: undefined;
|
|
90
|
-
right?: undefined;
|
|
91
91
|
}>;
|
|
92
92
|
onVisibleChange: (val: boolean) => void;
|
|
93
93
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
94
94
|
'visible-change': (v: boolean) => boolean;
|
|
95
95
|
'update:visible': (v: boolean) => boolean;
|
|
96
96
|
}, import("vue").PublicProps, {
|
|
97
|
-
color: "
|
|
97
|
+
color: "light" | "red";
|
|
98
98
|
offset: number[];
|
|
99
99
|
visible: boolean;
|
|
100
100
|
placement: "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
|
|
@@ -348,8 +348,8 @@ export declare const UTooltip: {
|
|
|
348
348
|
default: boolean;
|
|
349
349
|
};
|
|
350
350
|
color: {
|
|
351
|
-
type: import("vue").PropType<"
|
|
352
|
-
default: "
|
|
351
|
+
type: import("vue").PropType<"light" | "red">;
|
|
352
|
+
default: "light" | "red";
|
|
353
353
|
validator: (val: string) => boolean;
|
|
354
354
|
};
|
|
355
355
|
}>> & Readonly<{
|
|
@@ -361,38 +361,38 @@ export declare const UTooltip: {
|
|
|
361
361
|
prefixCls: import("vue").ComputedRef<string>;
|
|
362
362
|
arrowStyle: import("vue").ComputedRef<{
|
|
363
363
|
top: string;
|
|
364
|
+
right: string;
|
|
364
365
|
transform: string;
|
|
365
366
|
bottom?: undefined;
|
|
366
367
|
left?: undefined;
|
|
367
|
-
right?: undefined;
|
|
368
368
|
} | {
|
|
369
369
|
bottom: string;
|
|
370
|
+
right: string;
|
|
370
371
|
transform: string;
|
|
371
372
|
top?: undefined;
|
|
372
373
|
left?: undefined;
|
|
373
|
-
right?: undefined;
|
|
374
374
|
} | {
|
|
375
|
+
top: string;
|
|
375
376
|
left: string;
|
|
376
377
|
transform: string;
|
|
377
|
-
top?: undefined;
|
|
378
|
-
bottom?: undefined;
|
|
379
378
|
right?: undefined;
|
|
379
|
+
bottom?: undefined;
|
|
380
380
|
} | {
|
|
381
|
-
|
|
381
|
+
bottom: string;
|
|
382
|
+
left: string;
|
|
382
383
|
transform: string;
|
|
383
384
|
top?: undefined;
|
|
384
|
-
|
|
385
|
-
left?: undefined;
|
|
385
|
+
right?: undefined;
|
|
386
386
|
} | {
|
|
387
387
|
top?: undefined;
|
|
388
|
+
right?: undefined;
|
|
388
389
|
transform?: undefined;
|
|
389
390
|
bottom?: undefined;
|
|
390
391
|
left?: undefined;
|
|
391
|
-
right?: undefined;
|
|
392
392
|
}>;
|
|
393
393
|
onVisibleChange: (val: boolean) => void;
|
|
394
394
|
}, {}, {}, {}, {
|
|
395
|
-
color: "
|
|
395
|
+
color: "light" | "red";
|
|
396
396
|
offset: number[];
|
|
397
397
|
visible: boolean;
|
|
398
398
|
placement: "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
|
|
@@ -455,8 +455,8 @@ export declare const UTooltip: {
|
|
|
455
455
|
default: boolean;
|
|
456
456
|
};
|
|
457
457
|
color: {
|
|
458
|
-
type: import("vue").PropType<"
|
|
459
|
-
default: "
|
|
458
|
+
type: import("vue").PropType<"light" | "red">;
|
|
459
|
+
default: "light" | "red";
|
|
460
460
|
validator: (val: string) => boolean;
|
|
461
461
|
};
|
|
462
462
|
}>> & Readonly<{
|
|
@@ -468,41 +468,41 @@ export declare const UTooltip: {
|
|
|
468
468
|
prefixCls: import("vue").ComputedRef<string>;
|
|
469
469
|
arrowStyle: import("vue").ComputedRef<{
|
|
470
470
|
top: string;
|
|
471
|
+
right: string;
|
|
471
472
|
transform: string;
|
|
472
473
|
bottom?: undefined;
|
|
473
474
|
left?: undefined;
|
|
474
|
-
right?: undefined;
|
|
475
475
|
} | {
|
|
476
476
|
bottom: string;
|
|
477
|
+
right: string;
|
|
477
478
|
transform: string;
|
|
478
479
|
top?: undefined;
|
|
479
480
|
left?: undefined;
|
|
480
|
-
right?: undefined;
|
|
481
481
|
} | {
|
|
482
|
+
top: string;
|
|
482
483
|
left: string;
|
|
483
484
|
transform: string;
|
|
484
|
-
top?: undefined;
|
|
485
|
-
bottom?: undefined;
|
|
486
485
|
right?: undefined;
|
|
486
|
+
bottom?: undefined;
|
|
487
487
|
} | {
|
|
488
|
-
|
|
488
|
+
bottom: string;
|
|
489
|
+
left: string;
|
|
489
490
|
transform: string;
|
|
490
491
|
top?: undefined;
|
|
491
|
-
|
|
492
|
-
left?: undefined;
|
|
492
|
+
right?: undefined;
|
|
493
493
|
} | {
|
|
494
494
|
top?: undefined;
|
|
495
|
+
right?: undefined;
|
|
495
496
|
transform?: undefined;
|
|
496
497
|
bottom?: undefined;
|
|
497
498
|
left?: undefined;
|
|
498
|
-
right?: undefined;
|
|
499
499
|
}>;
|
|
500
500
|
onVisibleChange: (val: boolean) => void;
|
|
501
501
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
502
502
|
'visible-change': (v: boolean) => boolean;
|
|
503
503
|
'update:visible': (v: boolean) => boolean;
|
|
504
504
|
}, string, {
|
|
505
|
-
color: "
|
|
505
|
+
color: "light" | "red";
|
|
506
506
|
offset: number[];
|
|
507
507
|
visible: boolean;
|
|
508
508
|
placement: "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
|
package/es/components/index.mjs
CHANGED
|
@@ -70,7 +70,7 @@ export { UScrollbar } from './Scrollbar/index.mjs';
|
|
|
70
70
|
export { UThemePanel } from './ThemePanel/index.mjs';
|
|
71
71
|
export { UMentions } from './Mention/index.mjs';
|
|
72
72
|
export { affixEmits, affixProps } from './Affix/Affix.type.mjs';
|
|
73
|
-
export { alertEmits, alertProps, alertType } from './Alert/Alert.type.mjs';
|
|
73
|
+
export { alertEmits, alertProps, alertType, alertVariant } from './Alert/Alert.type.mjs';
|
|
74
74
|
export { avatarEmits, avatarProps, avatarShape } from './Avatar/Avatar.type.mjs';
|
|
75
75
|
export { default as UAvatarGroup } from './Avatar/AvatarGroup.mjs';
|
|
76
76
|
export { anchorEmits, anchorLinkEmits, anchorLinkProps, anchorProps } from './Anchor/Anchor.type.mjs';
|
package/es/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export { colorType, labelAlign, middleSizeMap, normalSizeMap, variantType } from
|
|
|
5
5
|
export { UAutoComplete } from './components/AutoComplete/index.mjs';
|
|
6
6
|
export { affixEmits, affixProps } from './components/Affix/Affix.type.mjs';
|
|
7
7
|
export { UAffix } from './components/Affix/index.mjs';
|
|
8
|
-
export { alertEmits, alertProps, alertType } from './components/Alert/Alert.type.mjs';
|
|
8
|
+
export { alertEmits, alertProps, alertType, alertVariant } from './components/Alert/Alert.type.mjs';
|
|
9
9
|
export { UAlert } from './components/Alert/index.mjs';
|
|
10
10
|
export { autoCompleteEmits, autoCompleteProps } from './components/AutoComplete/AuoComplete.type.mjs';
|
|
11
11
|
export { avatarEmits, avatarProps, avatarShape } from './components/Avatar/Avatar.type.mjs';
|
|
@@ -29,9 +29,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
29
29
|
case "warning":
|
|
30
30
|
return lucideVueNext.CircleAlert;
|
|
31
31
|
case "error":
|
|
32
|
-
|
|
32
|
+
case "error-outline":
|
|
33
|
+
return lucideVueNext.CircleAlert;
|
|
33
34
|
default:
|
|
34
|
-
return lucideVueNext.
|
|
35
|
+
return lucideVueNext.Terminal;
|
|
35
36
|
}
|
|
36
37
|
});
|
|
37
38
|
const handleClose = (e) => {
|
|
@@ -51,28 +52,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
51
52
|
props.afterClose();
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
|
-
const computedColor = vue.computed(() => {
|
|
55
|
-
switch (props.type) {
|
|
56
|
-
case "info":
|
|
57
|
-
case "error":
|
|
58
|
-
case "warning":
|
|
59
|
-
case "success":
|
|
60
|
-
return props.type;
|
|
61
|
-
default:
|
|
62
|
-
return void 0;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
55
|
return {
|
|
66
56
|
prefixCls,
|
|
67
57
|
iconType,
|
|
68
58
|
stateVisible,
|
|
69
59
|
handleClose,
|
|
70
|
-
onTransitionOver
|
|
71
|
-
computedColor
|
|
60
|
+
onTransitionOver
|
|
72
61
|
};
|
|
73
62
|
}
|
|
74
63
|
});
|
|
75
|
-
const _hoisted_1 = ["data-color"];
|
|
76
64
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
77
65
|
const _component_UIcon = vue.resolveComponent("UIcon");
|
|
78
66
|
const _component_X = vue.resolveComponent("X");
|
|
@@ -88,11 +76,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
88
76
|
`${_ctx.prefixCls}-${_ctx.type}`,
|
|
89
77
|
{
|
|
90
78
|
[`${_ctx.prefixCls}-with-icon`]: _ctx.showIcon,
|
|
91
|
-
[`${_ctx.prefixCls}-with-desc`]: _ctx.description
|
|
92
|
-
[`${_ctx.prefixCls}-with-banner`]: _ctx.banner
|
|
79
|
+
[`${_ctx.prefixCls}-with-desc`]: _ctx.description
|
|
93
80
|
}
|
|
94
|
-
])
|
|
95
|
-
"data-color": _ctx.computedColor
|
|
81
|
+
])
|
|
96
82
|
}, [
|
|
97
83
|
_ctx.showIcon ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
98
84
|
key: 0,
|
|
@@ -105,12 +91,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
105
91
|
_: 1
|
|
106
92
|
})
|
|
107
93
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
108
|
-
vue.createElementVNode("
|
|
94
|
+
vue.createElementVNode("div", {
|
|
109
95
|
class: vue.normalizeClass(`${_ctx.prefixCls}-message`)
|
|
110
96
|
}, [
|
|
111
97
|
vue.renderSlot(_ctx.$slots, "default")
|
|
112
98
|
], 2),
|
|
113
|
-
vue.createElementVNode("
|
|
99
|
+
vue.createElementVNode("div", {
|
|
114
100
|
class: vue.normalizeClass(`${_ctx.prefixCls}-desc`)
|
|
115
101
|
}, vue.toDisplayString(_ctx.description), 3),
|
|
116
102
|
_ctx.closable ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
@@ -127,7 +113,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
127
113
|
})
|
|
128
114
|
])
|
|
129
115
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
130
|
-
],
|
|
116
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
131
117
|
]),
|
|
132
118
|
_: 3
|
|
133
119
|
}, 8, ["onAfterLeave"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sources":["../../../../src/components/Alert/Alert.vue"],"sourcesContent":["<template>\n <transition name=\"fade\" @after-leave=\"onTransitionOver\">\n <div\n v-if=\"stateVisible\"\n :class=\"[\n prefixCls,\n `${prefixCls}-${type}`,\n {\n [`${prefixCls}-with-icon`]: showIcon,\n [`${prefixCls}-with-desc`]: description
|
|
1
|
+
{"version":3,"file":"Alert.js","sources":["../../../../src/components/Alert/Alert.vue"],"sourcesContent":["<template>\n <transition name=\"fade\" @after-leave=\"onTransitionOver\">\n <div\n v-if=\"stateVisible\"\n :class=\"[\n prefixCls,\n `${prefixCls}-${type}`,\n {\n [`${prefixCls}-with-icon`]: showIcon,\n [`${prefixCls}-with-desc`]: description\n }\n ]\"\n >\n <span v-if=\"showIcon\" :class=\"`${prefixCls}-icon`\">\n <UIcon>\n <component :is=\"icon || iconType\" />\n </UIcon>\n </span>\n\n <div :class=\"`${prefixCls}-message`\"><slot /></div>\n <div :class=\"`${prefixCls}-desc`\">{{ description }}</div>\n\n <a v-if=\"closable\" :class=\"`${prefixCls}-close`\" @click=\"handleClose\">\n <slot name=\"close\">\n <UIcon>\n <X />\n </UIcon>\n </slot>\n </a>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\">\nimport { CircleCheck, Info, CircleAlert, X, Terminal } from 'lucide-vue-next';\nimport { defineComponent, computed, ref, watch } from 'vue';\nimport UIcon from '@uxd-ui/components/Icon';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { alertProps, alertEmits } from './Alert.type';\n\nexport default defineComponent({\n name: 'UAlert',\n components: {\n UIcon,\n X\n },\n props: alertProps,\n emits: alertEmits,\n setup(props, { emit }) {\n const { prefixCls } = useGlobalConfig('alert');\n const stateVisible = ref(props.visible);\n const iconType = computed(() => {\n switch (props.type) {\n case 'success':\n return CircleCheck;\n\n case 'info':\n return Info;\n\n case 'warning':\n return CircleAlert;\n\n case 'error':\n case 'error-outline':\n return CircleAlert;\n\n default:\n return Terminal;\n }\n });\n const handleClose = (e: Event) => {\n e.stopPropagation();\n emit('close', e);\n stateVisible.value = false;\n emit('update:visible', false);\n };\n\n watch(\n () => props.visible,\n (val) => {\n stateVisible.value = val;\n }\n );\n\n const onTransitionOver = () => {\n if (!stateVisible.value && props.afterClose) {\n props.afterClose();\n }\n };\n\n return {\n prefixCls,\n iconType,\n stateVisible,\n handleClose,\n onTransitionOver\n };\n }\n});\n</script>\n"],"names":["defineComponent","UIcon","X","alertProps","alertEmits","useGlobalConfig","ref","computed","CircleCheck","Info","CircleAlert","Terminal","_createBlock","_Transition","_createElementBlock","_normalizeClass","_createVNode","_resolveDynamicComponent","_createElementVNode","_renderSlot"],"mappings":";;;;;;;;;;;AAwCA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,WACVC;AAAA,OACAC;AAAA;AACF,EACA,OAAOC;AAAA,EACP,OAAOC;AAAA,EACP,MAAM,OAAO,EAAE,QAAQ;UACf,EAAE,cAAcC,2BAAgB,OAAO;UACvC,eAAeC,QAAI,MAAM,OAAO;UAChC,WAAWC,aAAS,MAAM;cACtB,MAAM;AAAA,aACP;iBACIC;AAAA,aAEJ;iBACIC;AAAA,aAEJ;iBACIC;AAAA,aAEJ;AAAA,aACA;iBACIA;AAAA;iBAGAC;AAAA;AAAA,KAEZ;UACK,cAAc,CAAC,MAAa;QAC9B;WACG,SAAS,CAAC;mBACF,QAAQ;WAChB,kBAAkB,KAAK;AAAA;;MAI5B,MAAM,MAAM;AAAA,MACZ,CAAC,QAAQ;qBACM,QAAQ;AAAA;AACvB;UAGI,mBAAmB,MAAM;UACzB,CAAC,aAAa,SAAS,MAAM,YAAY;cACrC;AAAW;AACnB;WAGK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;;0BAjGCC,gBA6BaC;IA7BD,MAAK;AAAA,IAAQ,cAAa;;yBACpC,MA2BM;AAAA,MA1BE,sCADRC,uBA2BM;;QAzBH,OAAKC;UAAY;aAAsB,kBAAa;;gBAAgC,6BAAwB;gBAAwB,6BAAwB;;;;QASjJ,kCAAZD,uBAIO;;UAJgB,OAAKC,sBAAK,qBAAS;AAAA;UACxCC,gBAEQ;iCADN,MAAoC;AAAA,gCAApCJ,gBAAoCK,4BAApB,aAAQ,aAAQ;;;;;QAIpCC,uBAAmD;UAA7C,OAAKH,sBAAK,wBAAS;AAAA;UAAYI,eAAQ;;QAC7CD,uBAAyD;UAAnD,OAAKH,sBAAK,qBAAS;AAAA,+BAAY,gBAAW;QAEvC,kCAATD,uBAMI;;UANgB,OAAKC,sBAAK,sBAAS;AAAA,UAAW,SAAK,uCAAE;;UACvDI,eAIO,0BAJP,MAIO;AAAA,YAHLH,gBAEQ;mCADN,MAAK;AAAA,gBAALA,gBAAK;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { IconPropType } from '../../utils/globalType';
|
|
3
3
|
import type Alert from './Alert.vue';
|
|
4
|
-
export declare const alertType: readonly ["success", "info", "warning", "error"];
|
|
4
|
+
export declare const alertType: readonly ["default", "success", "info", "warning", "error", "error-outline"];
|
|
5
5
|
export declare type AlertType = (typeof alertType)[number];
|
|
6
|
+
export declare const alertVariant: readonly ["surface", "outline"];
|
|
7
|
+
export declare type AlertVariant = (typeof alertVariant)[number];
|
|
6
8
|
export declare const alertProps: {
|
|
7
9
|
type: {
|
|
8
|
-
type: PropType<"error" | "success" | "info" | "warning">;
|
|
9
|
-
validator: (val: "error" | "success" | "info" | "warning") => boolean;
|
|
10
|
+
type: PropType<"error" | "success" | "info" | "warning" | "default" | "error-outline">;
|
|
11
|
+
validator: (val: "error" | "success" | "info" | "warning" | "default" | "error-outline") => boolean;
|
|
10
12
|
default: string;
|
|
11
13
|
};
|
|
12
14
|
closable: {
|
|
@@ -27,10 +29,6 @@ export declare const alertProps: {
|
|
|
27
29
|
type: StringConstructor;
|
|
28
30
|
default: string;
|
|
29
31
|
};
|
|
30
|
-
banner: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
32
|
visible: {
|
|
35
33
|
type: BooleanConstructor;
|
|
36
34
|
default: boolean;
|
|
@@ -4,12 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var propsValidators = require('../../utils/propsValidators.js');
|
|
6
6
|
|
|
7
|
-
const alertType = ["success", "info", "warning", "error"];
|
|
7
|
+
const alertType = ["default", "success", "info", "warning", "error", "error-outline"];
|
|
8
|
+
const alertVariant = ["surface", "outline"];
|
|
8
9
|
const alertProps = {
|
|
9
10
|
type: {
|
|
10
11
|
type: String,
|
|
11
12
|
validator: propsValidators.oneOf(alertType),
|
|
12
|
-
default: "
|
|
13
|
+
default: "default"
|
|
13
14
|
},
|
|
14
15
|
closable: {
|
|
15
16
|
type: Boolean,
|
|
@@ -29,10 +30,6 @@ const alertProps = {
|
|
|
29
30
|
type: String,
|
|
30
31
|
default: ""
|
|
31
32
|
},
|
|
32
|
-
banner: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: false
|
|
35
|
-
},
|
|
36
33
|
visible: {
|
|
37
34
|
type: Boolean,
|
|
38
35
|
default: true
|
|
@@ -46,4 +43,5 @@ const alertEmits = {
|
|
|
46
43
|
exports.alertEmits = alertEmits;
|
|
47
44
|
exports.alertProps = alertProps;
|
|
48
45
|
exports.alertType = alertType;
|
|
46
|
+
exports.alertVariant = alertVariant;
|
|
49
47
|
//# sourceMappingURL=Alert.type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.type.js","sources":["../../../../src/components/Alert/Alert.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport type { IconPropType } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\nimport type Alert from './Alert.vue';\n\nexport const alertType = ['success', 'info', 'warning', 'error'] as const;\n\nexport type AlertType = (typeof alertType)[number];\n\nexport const alertProps = {\n type: {\n type: String as PropType<AlertType>,\n validator: oneOf(alertType),\n default: '
|
|
1
|
+
{"version":3,"file":"Alert.type.js","sources":["../../../../src/components/Alert/Alert.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport type { IconPropType } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\nimport type Alert from './Alert.vue';\n\nexport const alertType = ['default', 'success', 'info', 'warning', 'error', 'error-outline'] as const;\n\nexport type AlertType = (typeof alertType)[number];\n\nexport const alertVariant = ['surface', 'outline'] as const;\n\nexport type AlertVariant = (typeof alertVariant)[number];\n\nexport const alertProps = {\n type: {\n type: String as PropType<AlertType>,\n validator: oneOf(alertType),\n default: 'default'\n },\n closable: {\n type: Boolean,\n default: false\n },\n afterClose: {\n type: Function as PropType<() => void>\n },\n showIcon: {\n type: Boolean,\n default: false\n },\n icon: {\n type: [String, Object] as PropType<IconPropType>\n },\n description: {\n type: String,\n default: ''\n },\n visible: {\n type: Boolean,\n default: true\n }\n};\n\nexport type AlertProps = ExtractPropTypes<typeof alertProps>;\n\nexport const alertEmits = {\n close: (e: Event) => e instanceof Event,\n 'update:visible': (v: boolean) => typeof v === 'boolean'\n};\n\nexport type AlertInstanceType = InstanceType<typeof Alert>;\n"],"names":["oneOf"],"mappings":";;;;;;MAKa,YAAY,CAAC,WAAW,WAAW,QAAQ,WAAW,SAAS,eAAe;MAI9E,eAAe,CAAC,WAAW,SAAS;MAIpC,aAAa;AAAA,EACxB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,WAAWA,sBAAM,SAAS;AAAA,IAC1B,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA;AACR,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM,CAAC,QAAQ,MAAM;AAAA;AACvB,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,aAAa;AAAA,EACxB,OAAO,CAAC,MAAa,aAAa;AAAA,EAClC,kBAAkB,CAAC,MAAe,OAAO,MAAM;AACjD;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
type: {
|
|
3
|
-
type: import("vue").PropType<"error" | "success" | "info" | "warning">;
|
|
4
|
-
validator: (val: "error" | "success" | "info" | "warning") => boolean;
|
|
3
|
+
type: import("vue").PropType<"error" | "success" | "info" | "warning" | "default" | "error-outline">;
|
|
4
|
+
validator: (val: "error" | "success" | "info" | "warning" | "default" | "error-outline") => boolean;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
closable: {
|
|
@@ -22,10 +22,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
|
-
banner: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
25
|
visible: {
|
|
30
26
|
type: BooleanConstructor;
|
|
31
27
|
default: boolean;
|
|
@@ -36,14 +32,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
32
|
stateVisible: import("vue").Ref<boolean, boolean>;
|
|
37
33
|
handleClose: (e: Event) => void;
|
|
38
34
|
onTransitionOver: () => void;
|
|
39
|
-
computedColor: import("vue").ComputedRef<"error" | "success" | "info" | "warning">;
|
|
40
35
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
36
|
close: (e: Event) => boolean;
|
|
42
37
|
'update:visible': (v: boolean) => boolean;
|
|
43
38
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
39
|
type: {
|
|
45
|
-
type: import("vue").PropType<"error" | "success" | "info" | "warning">;
|
|
46
|
-
validator: (val: "error" | "success" | "info" | "warning") => boolean;
|
|
40
|
+
type: import("vue").PropType<"error" | "success" | "info" | "warning" | "default" | "error-outline">;
|
|
41
|
+
validator: (val: "error" | "success" | "info" | "warning" | "default" | "error-outline") => boolean;
|
|
47
42
|
default: string;
|
|
48
43
|
};
|
|
49
44
|
closable: {
|
|
@@ -64,10 +59,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
59
|
type: StringConstructor;
|
|
65
60
|
default: string;
|
|
66
61
|
};
|
|
67
|
-
banner: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
62
|
visible: {
|
|
72
63
|
type: BooleanConstructor;
|
|
73
64
|
default: boolean;
|
|
@@ -76,11 +67,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
76
67
|
onClose?: (e: Event) => any;
|
|
77
68
|
"onUpdate:visible"?: (v: boolean) => any;
|
|
78
69
|
}>, {
|
|
79
|
-
type: "error" | "success" | "info" | "warning";
|
|
70
|
+
type: "error" | "success" | "info" | "warning" | "default" | "error-outline";
|
|
80
71
|
closable: boolean;
|
|
81
72
|
showIcon: boolean;
|
|
82
73
|
description: string;
|
|
83
|
-
banner: boolean;
|
|
84
74
|
visible: boolean;
|
|
85
75
|
}, {}, {
|
|
86
76
|
UIcon: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const UAlert: {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
3
|
type: {
|
|
4
|
-
type: import("vue").PropType<"error" | "success" | "info" | "warning">;
|
|
5
|
-
validator: (val: "error" | "success" | "info" | "warning") => boolean;
|
|
4
|
+
type: import("vue").PropType<"error" | "success" | "info" | "warning" | "default" | "error-outline">;
|
|
5
|
+
validator: (val: "error" | "success" | "info" | "warning" | "default" | "error-outline") => boolean;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
closable: {
|
|
@@ -23,10 +23,6 @@ export declare const UAlert: {
|
|
|
23
23
|
type: StringConstructor;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
|
-
banner: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: boolean;
|
|
29
|
-
};
|
|
30
26
|
visible: {
|
|
31
27
|
type: BooleanConstructor;
|
|
32
28
|
default: boolean;
|
|
@@ -40,16 +36,14 @@ export declare const UAlert: {
|
|
|
40
36
|
stateVisible: import("vue").Ref<boolean, boolean>;
|
|
41
37
|
handleClose: (e: Event) => void;
|
|
42
38
|
onTransitionOver: () => void;
|
|
43
|
-
computedColor: import("vue").ComputedRef<"error" | "success" | "info" | "warning">;
|
|
44
39
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
40
|
close: (e: Event) => boolean;
|
|
46
41
|
'update:visible': (v: boolean) => boolean;
|
|
47
42
|
}, import("vue").PublicProps, {
|
|
48
|
-
type: "error" | "success" | "info" | "warning";
|
|
43
|
+
type: "error" | "success" | "info" | "warning" | "default" | "error-outline";
|
|
49
44
|
closable: boolean;
|
|
50
45
|
showIcon: boolean;
|
|
51
46
|
description: string;
|
|
52
|
-
banner: boolean;
|
|
53
47
|
visible: boolean;
|
|
54
48
|
}, true, {}, {}, {
|
|
55
49
|
UIcon: {
|
|
@@ -193,8 +187,8 @@ export declare const UAlert: {
|
|
|
193
187
|
Defaults: {};
|
|
194
188
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
195
189
|
type: {
|
|
196
|
-
type: import("vue").PropType<"error" | "success" | "info" | "warning">;
|
|
197
|
-
validator: (val: "error" | "success" | "info" | "warning") => boolean;
|
|
190
|
+
type: import("vue").PropType<"error" | "success" | "info" | "warning" | "default" | "error-outline">;
|
|
191
|
+
validator: (val: "error" | "success" | "info" | "warning" | "default" | "error-outline") => boolean;
|
|
198
192
|
default: string;
|
|
199
193
|
};
|
|
200
194
|
closable: {
|
|
@@ -215,10 +209,6 @@ export declare const UAlert: {
|
|
|
215
209
|
type: StringConstructor;
|
|
216
210
|
default: string;
|
|
217
211
|
};
|
|
218
|
-
banner: {
|
|
219
|
-
type: BooleanConstructor;
|
|
220
|
-
default: boolean;
|
|
221
|
-
};
|
|
222
212
|
visible: {
|
|
223
213
|
type: BooleanConstructor;
|
|
224
214
|
default: boolean;
|
|
@@ -232,13 +222,11 @@ export declare const UAlert: {
|
|
|
232
222
|
stateVisible: import("vue").Ref<boolean, boolean>;
|
|
233
223
|
handleClose: (e: Event) => void;
|
|
234
224
|
onTransitionOver: () => void;
|
|
235
|
-
computedColor: import("vue").ComputedRef<"error" | "success" | "info" | "warning">;
|
|
236
225
|
}, {}, {}, {}, {
|
|
237
|
-
type: "error" | "success" | "info" | "warning";
|
|
226
|
+
type: "error" | "success" | "info" | "warning" | "default" | "error-outline";
|
|
238
227
|
closable: boolean;
|
|
239
228
|
showIcon: boolean;
|
|
240
229
|
description: string;
|
|
241
|
-
banner: boolean;
|
|
242
230
|
visible: boolean;
|
|
243
231
|
}>;
|
|
244
232
|
__isFragment?: never;
|
|
@@ -246,8 +234,8 @@ export declare const UAlert: {
|
|
|
246
234
|
__isSuspense?: never;
|
|
247
235
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
248
236
|
type: {
|
|
249
|
-
type: import("vue").PropType<"error" | "success" | "info" | "warning">;
|
|
250
|
-
validator: (val: "error" | "success" | "info" | "warning") => boolean;
|
|
237
|
+
type: import("vue").PropType<"error" | "success" | "info" | "warning" | "default" | "error-outline">;
|
|
238
|
+
validator: (val: "error" | "success" | "info" | "warning" | "default" | "error-outline") => boolean;
|
|
251
239
|
default: string;
|
|
252
240
|
};
|
|
253
241
|
closable: {
|
|
@@ -268,10 +256,6 @@ export declare const UAlert: {
|
|
|
268
256
|
type: StringConstructor;
|
|
269
257
|
default: string;
|
|
270
258
|
};
|
|
271
|
-
banner: {
|
|
272
|
-
type: BooleanConstructor;
|
|
273
|
-
default: boolean;
|
|
274
|
-
};
|
|
275
259
|
visible: {
|
|
276
260
|
type: BooleanConstructor;
|
|
277
261
|
default: boolean;
|
|
@@ -285,16 +269,14 @@ export declare const UAlert: {
|
|
|
285
269
|
stateVisible: import("vue").Ref<boolean, boolean>;
|
|
286
270
|
handleClose: (e: Event) => void;
|
|
287
271
|
onTransitionOver: () => void;
|
|
288
|
-
computedColor: import("vue").ComputedRef<"error" | "success" | "info" | "warning">;
|
|
289
272
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
290
273
|
close: (e: Event) => boolean;
|
|
291
274
|
'update:visible': (v: boolean) => boolean;
|
|
292
275
|
}, string, {
|
|
293
|
-
type: "error" | "success" | "info" | "warning";
|
|
276
|
+
type: "error" | "success" | "info" | "warning" | "default" | "error-outline";
|
|
294
277
|
closable: boolean;
|
|
295
278
|
showIcon: boolean;
|
|
296
279
|
description: string;
|
|
297
|
-
banner: boolean;
|
|
298
280
|
visible: boolean;
|
|
299
281
|
}, {}, string, {}, {
|
|
300
282
|
UIcon: {
|
|
@@ -11,6 +11,7 @@ const UAlert = install.withInstall(Alert["default"]);
|
|
|
11
11
|
exports.alertEmits = Alert_type.alertEmits;
|
|
12
12
|
exports.alertProps = Alert_type.alertProps;
|
|
13
13
|
exports.alertType = Alert_type.alertType;
|
|
14
|
+
exports.alertVariant = Alert_type.alertVariant;
|
|
14
15
|
exports.UAlert = UAlert;
|
|
15
16
|
exports["default"] = UAlert;
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Alert/index.ts"],"sourcesContent":["import { withInstall } from '../../utils/install';\nimport Alert from './Alert.vue';\n\nexport const UAlert = withInstall(Alert);\n\nexport default UAlert;\n\nexport * from './Alert.type';\n"],"names":["withInstall","Alert"],"mappings":";;;;;;;;MAGa,SAASA,oBAAYC,gBAAK
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Alert/index.ts"],"sourcesContent":["import { withInstall } from '../../utils/install';\nimport Alert from './Alert.vue';\n\nexport const UAlert = withInstall(Alert);\n\nexport default UAlert;\n\nexport * from './Alert.type';\n"],"names":["withInstall","Alert"],"mappings":";;;;;;;;MAGa,SAASA,oBAAYC,gBAAK;;;;;;;;;"}
|