straw-ui-vue 0.1.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/README.md +42 -0
- package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/st-button/index.d.ts +162 -0
- package/dist/components/st-button/st-button.vue.cjs +1 -0
- package/dist/components/st-button/st-button.vue.d.ts +29 -0
- package/dist/components/st-button/st-button.vue.js +5 -0
- package/dist/components/st-button/st-button.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-button/st-button.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/st-button/types.d.ts +49 -0
- package/dist/components/st-button.cjs +1 -0
- package/dist/components/st-button.js +6 -0
- package/dist/components/st-checkbox/index.d.ts +153 -0
- package/dist/components/st-checkbox/st-checkbox.vue.cjs +1 -0
- package/dist/components/st-checkbox/st-checkbox.vue.d.ts +27 -0
- package/dist/components/st-checkbox/st-checkbox.vue.js +5 -0
- package/dist/components/st-checkbox/st-checkbox.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-checkbox/st-checkbox.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/components/st-checkbox/types.d.ts +20 -0
- package/dist/components/st-checkbox-group/index.d.ts +171 -0
- package/dist/components/st-checkbox-group/st-checkbox-group.vue.cjs +1 -0
- package/dist/components/st-checkbox-group/st-checkbox-group.vue.d.ts +29 -0
- package/dist/components/st-checkbox-group/st-checkbox-group.vue.js +5 -0
- package/dist/components/st-checkbox-group/st-checkbox-group.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-checkbox-group/st-checkbox-group.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/st-checkbox-group/types.d.ts +43 -0
- package/dist/components/st-checkbox-group.cjs +1 -0
- package/dist/components/st-checkbox-group.js +6 -0
- package/dist/components/st-checkbox.cjs +1 -0
- package/dist/components/st-checkbox.js +6 -0
- package/dist/components/st-dialog/index.d.ts +243 -0
- package/dist/components/st-dialog/st-dialog.vue.cjs +1 -0
- package/dist/components/st-dialog/st-dialog.vue.d.ts +41 -0
- package/dist/components/st-dialog/st-dialog.vue.js +5 -0
- package/dist/components/st-dialog/st-dialog.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-dialog/st-dialog.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/components/st-dialog/types.d.ts +29 -0
- package/dist/components/st-dialog.cjs +1 -0
- package/dist/components/st-dialog.js +6 -0
- package/dist/components/st-input/index.d.ts +315 -0
- package/dist/components/st-input/st-input.vue.cjs +1 -0
- package/dist/components/st-input/st-input.vue.d.ts +48 -0
- package/dist/components/st-input/st-input.vue.js +7 -0
- package/dist/components/st-input/st-input.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-input/st-input.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/st-input/types.d.ts +68 -0
- package/dist/components/st-input.cjs +1 -0
- package/dist/components/st-input.js +6 -0
- package/dist/components/st-menu/index.d.ts +217 -0
- package/dist/components/st-menu/st-menu-node.vue.cjs +1 -0
- package/dist/components/st-menu/st-menu-node.vue.d.ts +14 -0
- package/dist/components/st-menu/st-menu-node.vue.js +5 -0
- package/dist/components/st-menu/st-menu-node.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-menu/st-menu-node.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/components/st-menu/st-menu.vue.cjs +1 -0
- package/dist/components/st-menu/st-menu.vue.d.ts +26 -0
- package/dist/components/st-menu/st-menu.vue.js +5 -0
- package/dist/components/st-menu/st-menu.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-menu/st-menu.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/components/st-menu/types.d.ts +82 -0
- package/dist/components/st-menu.cjs +1 -0
- package/dist/components/st-menu.js +7 -0
- package/dist/components/st-popover/index.d.ts +243 -0
- package/dist/components/st-popover/st-popover.vue.cjs +1 -0
- package/dist/components/st-popover/st-popover.vue.d.ts +37 -0
- package/dist/components/st-popover/st-popover.vue.js +5 -0
- package/dist/components/st-popover/st-popover.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-popover/st-popover.vue_vue_type_script_setup_true_lang.js +355 -0
- package/dist/components/st-popover/types.d.ts +103 -0
- package/dist/components/st-popover.cjs +1 -0
- package/dist/components/st-popover.js +6 -0
- package/dist/components/st-radio/index.d.ts +135 -0
- package/dist/components/st-radio/st-radio.vue.cjs +1 -0
- package/dist/components/st-radio/st-radio.vue.d.ts +28 -0
- package/dist/components/st-radio/st-radio.vue.js +5 -0
- package/dist/components/st-radio/st-radio.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-radio/st-radio.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/components/st-radio/types.d.ts +15 -0
- package/dist/components/st-radio-group/index.d.ts +180 -0
- package/dist/components/st-radio-group/st-radio-group.vue.cjs +1 -0
- package/dist/components/st-radio-group/st-radio-group.vue.d.ts +35 -0
- package/dist/components/st-radio-group/st-radio-group.vue.js +5 -0
- package/dist/components/st-radio-group/st-radio-group.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-radio-group/st-radio-group.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/components/st-radio-group/types.d.ts +43 -0
- package/dist/components/st-radio-group.cjs +1 -0
- package/dist/components/st-radio-group.js +6 -0
- package/dist/components/st-radio.cjs +1 -0
- package/dist/components/st-radio.js +6 -0
- package/dist/components/st-select/index.d.ts +306 -0
- package/dist/components/st-select/st-select.vue.cjs +1 -0
- package/dist/components/st-select/st-select.vue.d.ts +47 -0
- package/dist/components/st-select/st-select.vue.js +5 -0
- package/dist/components/st-select/st-select.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-select/st-select.vue_vue_type_script_setup_true_lang.js +200 -0
- package/dist/components/st-select/types.d.ts +85 -0
- package/dist/components/st-select.cjs +1 -0
- package/dist/components/st-select.js +6 -0
- package/dist/components/st-sidebar/index.d.ts +63 -0
- package/dist/components/st-sidebar/st-sidebar.vue.cjs +1 -0
- package/dist/components/st-sidebar/st-sidebar.vue.d.ts +11 -0
- package/dist/components/st-sidebar/st-sidebar.vue.js +5 -0
- package/dist/components/st-sidebar/st-sidebar.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-sidebar/st-sidebar.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/components/st-sidebar/types.d.ts +56 -0
- package/dist/components/st-sidebar-item/index.d.ts +63 -0
- package/dist/components/st-sidebar-item/st-sidebar-item.vue.cjs +1 -0
- package/dist/components/st-sidebar-item/st-sidebar-item.vue.d.ts +11 -0
- package/dist/components/st-sidebar-item/st-sidebar-item.vue.js +5 -0
- package/dist/components/st-sidebar-item/st-sidebar-item.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-sidebar-item/st-sidebar-item.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/components/st-sidebar-item/types.d.ts +19 -0
- package/dist/components/st-sidebar-item.cjs +1 -0
- package/dist/components/st-sidebar-item.js +6 -0
- package/dist/components/st-sidebar.cjs +1 -0
- package/dist/components/st-sidebar.js +6 -0
- package/dist/components/st-splitter/index.d.ts +88 -0
- package/dist/components/st-splitter/st-splitter.vue.cjs +1 -0
- package/dist/components/st-splitter/st-splitter.vue.d.ts +16 -0
- package/dist/components/st-splitter/st-splitter.vue.js +5 -0
- package/dist/components/st-splitter/st-splitter.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-splitter/st-splitter.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/components/st-splitter/types.d.ts +192 -0
- package/dist/components/st-splitter/useSplitter.cjs +1 -0
- package/dist/components/st-splitter/useSplitter.d.ts +24 -0
- package/dist/components/st-splitter/useSplitter.js +129 -0
- package/dist/components/st-splitter-panel/index.d.ts +180 -0
- package/dist/components/st-splitter-panel/st-splitter-panel.vue.cjs +1 -0
- package/dist/components/st-splitter-panel/st-splitter-panel.vue.d.ts +33 -0
- package/dist/components/st-splitter-panel/st-splitter-panel.vue.js +5 -0
- package/dist/components/st-splitter-panel/st-splitter-panel.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-splitter-panel/st-splitter-panel.vue_vue_type_script_setup_true_lang.js +164 -0
- package/dist/components/st-splitter-panel/types.d.ts +27 -0
- package/dist/components/st-splitter-panel.cjs +1 -0
- package/dist/components/st-splitter-panel.js +6 -0
- package/dist/components/st-splitter.cjs +1 -0
- package/dist/components/st-splitter.js +7 -0
- package/dist/components/st-toggle/index.d.ts +159 -0
- package/dist/components/st-toggle/st-toggle.vue.cjs +1 -0
- package/dist/components/st-toggle/st-toggle.vue.d.ts +25 -0
- package/dist/components/st-toggle/st-toggle.vue.js +5 -0
- package/dist/components/st-toggle/st-toggle.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-toggle/st-toggle.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/components/st-toggle/types.d.ts +38 -0
- package/dist/components/st-toggle.cjs +1 -0
- package/dist/components/st-toggle.js +6 -0
- package/dist/components/st-tooltip/index.d.ts +183 -0
- package/dist/components/st-tooltip/st-tooltip.vue.cjs +1 -0
- package/dist/components/st-tooltip/st-tooltip.vue.d.ts +29 -0
- package/dist/components/st-tooltip/st-tooltip.vue.js +5 -0
- package/dist/components/st-tooltip/st-tooltip.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-tooltip/st-tooltip.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/components/st-tooltip/types.d.ts +79 -0
- package/dist/components/st-tooltip.cjs +1 -0
- package/dist/components/st-tooltip.js +6 -0
- package/dist/components/st-tree/index.d.ts +114 -0
- package/dist/components/st-tree/st-tree-node.vue.cjs +1 -0
- package/dist/components/st-tree/st-tree-node.vue.d.ts +4 -0
- package/dist/components/st-tree/st-tree-node.vue.js +5 -0
- package/dist/components/st-tree/st-tree-node.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-tree/st-tree-node.vue_vue_type_script_setup_true_lang.js +87 -0
- package/dist/components/st-tree/st-tree.vue.cjs +1 -0
- package/dist/components/st-tree/st-tree.vue.d.ts +50 -0
- package/dist/components/st-tree/st-tree.vue.js +5 -0
- package/dist/components/st-tree/st-tree.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/components/st-tree/st-tree.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/st-tree/types.d.ts +87 -0
- package/dist/components/st-tree.cjs +1 -0
- package/dist/components/st-tree.js +6 -0
- package/dist/components/types.d.ts +41 -0
- package/dist/index.cjs +1 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +3005 -0
- package/dist/index.js +47 -0
- package/dist/utils/cn.cjs +1 -0
- package/dist/utils/cn.d.ts +11 -0
- package/dist/utils/cn.js +8 -0
- package/dist/utils/cva/index.cjs +1 -0
- package/dist/utils/cva/index.d.ts +9 -0
- package/dist/utils/cva/index.js +25 -0
- package/dist/utils/cva/types.d.ts +45 -0
- package/dist/utils/directive/index.cjs +1 -0
- package/dist/utils/directive/index.d.ts +4 -0
- package/dist/utils/directive/index.js +10 -0
- package/dist/utils/directive/intersection.cjs +1 -0
- package/dist/utils/directive/intersection.d.ts +6 -0
- package/dist/utils/directive/intersection.js +20 -0
- package/dist/utils/directive/interval.cjs +1 -0
- package/dist/utils/directive/interval.d.ts +6 -0
- package/dist/utils/directive/interval.js +14 -0
- package/dist/utils/directive/move.cjs +1 -0
- package/dist/utils/directive/move.d.ts +6 -0
- package/dist/utils/directive/move.js +42 -0
- package/dist/utils/directive/resize.cjs +1 -0
- package/dist/utils/directive/resize.d.ts +6 -0
- package/dist/utils/directive/resize.js +17 -0
- package/dist/utils/with-install.cjs +1 -0
- package/dist/utils/with-install.d.ts +4 -0
- package/dist/utils/with-install.js +10 -0
- package/package.json +87 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
export declare const StDialog: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types.d.ts").DialogProps & {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
}> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
7
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: boolean) => any;
|
|
9
|
+
}, import("vue").PublicProps, {
|
|
10
|
+
title: string;
|
|
11
|
+
center: boolean;
|
|
12
|
+
animation: string;
|
|
13
|
+
width: string;
|
|
14
|
+
height: string;
|
|
15
|
+
closable: boolean;
|
|
16
|
+
draggable: boolean;
|
|
17
|
+
fullscreen: boolean;
|
|
18
|
+
modal: boolean;
|
|
19
|
+
closeOnClickModal: boolean;
|
|
20
|
+
customClass: string;
|
|
21
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
22
|
+
P: {};
|
|
23
|
+
B: {};
|
|
24
|
+
D: {};
|
|
25
|
+
C: {};
|
|
26
|
+
M: {};
|
|
27
|
+
Defaults: {};
|
|
28
|
+
}, Readonly<import("./types.d.ts").DialogProps & {
|
|
29
|
+
modelValue?: boolean;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
32
|
+
}>, {}, {}, {}, {}, {
|
|
33
|
+
title: string;
|
|
34
|
+
center: boolean;
|
|
35
|
+
animation: string;
|
|
36
|
+
width: string;
|
|
37
|
+
height: string;
|
|
38
|
+
closable: boolean;
|
|
39
|
+
draggable: boolean;
|
|
40
|
+
fullscreen: boolean;
|
|
41
|
+
modal: boolean;
|
|
42
|
+
closeOnClickModal: boolean;
|
|
43
|
+
customClass: string;
|
|
44
|
+
}>;
|
|
45
|
+
__isFragment?: never;
|
|
46
|
+
__isTeleport?: never;
|
|
47
|
+
__isSuspense?: never;
|
|
48
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./types.d.ts").DialogProps & {
|
|
49
|
+
modelValue?: boolean;
|
|
50
|
+
}> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
52
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
"update:modelValue": (value: boolean) => any;
|
|
54
|
+
}, string, {
|
|
55
|
+
title: string;
|
|
56
|
+
center: boolean;
|
|
57
|
+
animation: string;
|
|
58
|
+
width: string;
|
|
59
|
+
height: string;
|
|
60
|
+
closable: boolean;
|
|
61
|
+
draggable: boolean;
|
|
62
|
+
fullscreen: boolean;
|
|
63
|
+
modal: boolean;
|
|
64
|
+
closeOnClickModal: boolean;
|
|
65
|
+
customClass: string;
|
|
66
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
67
|
+
$slots: {
|
|
68
|
+
title?: (props: {}) => any;
|
|
69
|
+
} & {
|
|
70
|
+
extra?: (props: {}) => any;
|
|
71
|
+
} & {
|
|
72
|
+
default?: (props: {}) => any;
|
|
73
|
+
} & {
|
|
74
|
+
footer?: (props: {}) => any;
|
|
75
|
+
};
|
|
76
|
+
})>>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
77
|
+
[x: string]: any;
|
|
78
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
79
|
+
P: {};
|
|
80
|
+
B: {};
|
|
81
|
+
D: {};
|
|
82
|
+
C: {};
|
|
83
|
+
M: {};
|
|
84
|
+
Defaults: {};
|
|
85
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types.d.ts").DialogProps & {
|
|
87
|
+
modelValue?: boolean;
|
|
88
|
+
}> & Readonly<{
|
|
89
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
90
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
91
|
+
"update:modelValue": (value: boolean) => any;
|
|
92
|
+
}, import("vue").PublicProps, {
|
|
93
|
+
title: string;
|
|
94
|
+
center: boolean;
|
|
95
|
+
animation: string;
|
|
96
|
+
width: string;
|
|
97
|
+
height: string;
|
|
98
|
+
closable: boolean;
|
|
99
|
+
draggable: boolean;
|
|
100
|
+
fullscreen: boolean;
|
|
101
|
+
modal: boolean;
|
|
102
|
+
closeOnClickModal: boolean;
|
|
103
|
+
customClass: string;
|
|
104
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
105
|
+
P: {};
|
|
106
|
+
B: {};
|
|
107
|
+
D: {};
|
|
108
|
+
C: {};
|
|
109
|
+
M: {};
|
|
110
|
+
Defaults: {};
|
|
111
|
+
}, Readonly<import("./types.d.ts").DialogProps & {
|
|
112
|
+
modelValue?: boolean;
|
|
113
|
+
}> & Readonly<{
|
|
114
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
115
|
+
}>, {}, {}, {}, {}, {
|
|
116
|
+
title: string;
|
|
117
|
+
center: boolean;
|
|
118
|
+
animation: string;
|
|
119
|
+
width: string;
|
|
120
|
+
height: string;
|
|
121
|
+
closable: boolean;
|
|
122
|
+
draggable: boolean;
|
|
123
|
+
fullscreen: boolean;
|
|
124
|
+
modal: boolean;
|
|
125
|
+
closeOnClickModal: boolean;
|
|
126
|
+
customClass: string;
|
|
127
|
+
}>;
|
|
128
|
+
__isFragment?: never;
|
|
129
|
+
__isTeleport?: never;
|
|
130
|
+
__isSuspense?: never;
|
|
131
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./types.d.ts").DialogProps & {
|
|
132
|
+
modelValue?: boolean;
|
|
133
|
+
}> & Readonly<{
|
|
134
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
135
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
136
|
+
"update:modelValue": (value: boolean) => any;
|
|
137
|
+
}, string, {
|
|
138
|
+
title: string;
|
|
139
|
+
center: boolean;
|
|
140
|
+
animation: string;
|
|
141
|
+
width: string;
|
|
142
|
+
height: string;
|
|
143
|
+
closable: boolean;
|
|
144
|
+
draggable: boolean;
|
|
145
|
+
fullscreen: boolean;
|
|
146
|
+
modal: boolean;
|
|
147
|
+
closeOnClickModal: boolean;
|
|
148
|
+
customClass: string;
|
|
149
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
150
|
+
$slots: {
|
|
151
|
+
title?: (props: {}) => any;
|
|
152
|
+
} & {
|
|
153
|
+
extra?: (props: {}) => any;
|
|
154
|
+
} & {
|
|
155
|
+
default?: (props: {}) => any;
|
|
156
|
+
} & {
|
|
157
|
+
footer?: (props: {}) => any;
|
|
158
|
+
};
|
|
159
|
+
})>>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, {
|
|
160
|
+
[x: string]: any;
|
|
161
|
+
}>;
|
|
162
|
+
__isFragment?: never;
|
|
163
|
+
__isTeleport?: never;
|
|
164
|
+
__isSuspense?: never;
|
|
165
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
166
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types.d.ts").DialogProps & {
|
|
167
|
+
modelValue?: boolean;
|
|
168
|
+
}> & Readonly<{
|
|
169
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
170
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
171
|
+
"update:modelValue": (value: boolean) => any;
|
|
172
|
+
}, import("vue").PublicProps, {
|
|
173
|
+
title: string;
|
|
174
|
+
center: boolean;
|
|
175
|
+
animation: string;
|
|
176
|
+
width: string;
|
|
177
|
+
height: string;
|
|
178
|
+
closable: boolean;
|
|
179
|
+
draggable: boolean;
|
|
180
|
+
fullscreen: boolean;
|
|
181
|
+
modal: boolean;
|
|
182
|
+
closeOnClickModal: boolean;
|
|
183
|
+
customClass: string;
|
|
184
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
185
|
+
P: {};
|
|
186
|
+
B: {};
|
|
187
|
+
D: {};
|
|
188
|
+
C: {};
|
|
189
|
+
M: {};
|
|
190
|
+
Defaults: {};
|
|
191
|
+
}, Readonly<import("./types.d.ts").DialogProps & {
|
|
192
|
+
modelValue?: boolean;
|
|
193
|
+
}> & Readonly<{
|
|
194
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
195
|
+
}>, {}, {}, {}, {}, {
|
|
196
|
+
title: string;
|
|
197
|
+
center: boolean;
|
|
198
|
+
animation: string;
|
|
199
|
+
width: string;
|
|
200
|
+
height: string;
|
|
201
|
+
closable: boolean;
|
|
202
|
+
draggable: boolean;
|
|
203
|
+
fullscreen: boolean;
|
|
204
|
+
modal: boolean;
|
|
205
|
+
closeOnClickModal: boolean;
|
|
206
|
+
customClass: string;
|
|
207
|
+
}>;
|
|
208
|
+
__isFragment?: never;
|
|
209
|
+
__isTeleport?: never;
|
|
210
|
+
__isSuspense?: never;
|
|
211
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./types.d.ts").DialogProps & {
|
|
212
|
+
modelValue?: boolean;
|
|
213
|
+
}> & Readonly<{
|
|
214
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
215
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
216
|
+
"update:modelValue": (value: boolean) => any;
|
|
217
|
+
}, string, {
|
|
218
|
+
title: string;
|
|
219
|
+
center: boolean;
|
|
220
|
+
animation: string;
|
|
221
|
+
width: string;
|
|
222
|
+
height: string;
|
|
223
|
+
closable: boolean;
|
|
224
|
+
draggable: boolean;
|
|
225
|
+
fullscreen: boolean;
|
|
226
|
+
modal: boolean;
|
|
227
|
+
closeOnClickModal: boolean;
|
|
228
|
+
customClass: string;
|
|
229
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
230
|
+
$slots: {
|
|
231
|
+
title?: (props: {}) => any;
|
|
232
|
+
} & {
|
|
233
|
+
extra?: (props: {}) => any;
|
|
234
|
+
} & {
|
|
235
|
+
default?: (props: {}) => any;
|
|
236
|
+
} & {
|
|
237
|
+
footer?: (props: {}) => any;
|
|
238
|
+
};
|
|
239
|
+
})>>, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
240
|
+
[x: string]: any;
|
|
241
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & (import("vue").ComponentCustomProps & import("vue").Plugin)));
|
|
242
|
+
export default StDialog;
|
|
243
|
+
export type * from './types.d.ts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=require("./st-dialog.vue_vue_type_script_setup_true_lang.cjs").default;exports.default=e;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { DialogProps } from './types.d.ts';
|
|
2
|
+
type __VLS_Props = DialogProps;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare var __VLS_21: {}, __VLS_23: {}, __VLS_25: {}, __VLS_27: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
title?: (props: typeof __VLS_21) => any;
|
|
10
|
+
} & {
|
|
11
|
+
extra?: (props: typeof __VLS_23) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_25) => any;
|
|
14
|
+
} & {
|
|
15
|
+
footer?: (props: typeof __VLS_27) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
21
|
+
}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
center: boolean;
|
|
24
|
+
animation: string;
|
|
25
|
+
width: string;
|
|
26
|
+
height: string;
|
|
27
|
+
closable: boolean;
|
|
28
|
+
draggable: boolean;
|
|
29
|
+
fullscreen: boolean;
|
|
30
|
+
modal: boolean;
|
|
31
|
+
closeOnClickModal: boolean;
|
|
32
|
+
customClass: string;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../utils/cn.cjs");let t=require("vue");var n={key:1,class:`text-4 font-600 text-foreground`},r={class:`flex items-center gap-2`},i={class:`flex-1 overflow-auto p-4`},a={key:0,class:`flex justify-end gap-2 border-t border-solid border-border p-4`},o=(0,t.defineComponent)({inheritAttrs:!1,__name:`st-dialog`,props:(0,t.mergeModels)({title:{default:``},width:{default:`500px`},height:{default:`auto`},closable:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},center:{type:Boolean,default:!0},customClass:{default:``},animation:{default:`zoom`}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(o){let s=(0,t.useAttrs)(),c=o,l=(0,t.useModel)(o,`modelValue`),u=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.ref)(!1),p=(0,t.ref)({isDragging:!1,startX:0,startY:0,offsetX:0,offsetY:0}),m=(0,t.computed)(()=>e.cn(`st-dialog-overlay`,`fixed`,`inset-0`,`z-999`,`flex`,{"bg-black/50":c.modal,"items-center":c.center,"justify-center":c.center},s.class)),h=(0,t.computed)(()=>e.cn(`st-dialog-container`,`flex`,`flex-col`,`bg-background`,`rounded-radius`,`shadow-lg`,`overflow-hidden`,c.customClass,{"st-dialog-container--fullscreen":f.value,"w-screen h-screen":f.value,"cursor-move":c.draggable&&!p.value.isDragging,"cursor-grabbing":p.value.isDragging},s.class)),g=(0,t.computed)(()=>{if(f.value)return{};let e={width:c.width};return c.height!==`auto`&&(e.height=c.height),(p.value.offsetX!==0||p.value.offsetY!==0)&&(e.translate=`${p.value.offsetX}px ${p.value.offsetY}px`),e}),_=(0,t.computed)(()=>[`flex`,`items-center`,`justify-between`,`border-b`,`border-solid`,`border-border`,`p-4`,`select-none`,{"cursor-grab":c.draggable&&!p.value.isDragging,"cursor-grabbing":p.value.isDragging}]),v=(0,t.computed)(()=>[`inline-flex`,`items-center`,`justify-center`,`w-8`,`h-8`,`rounded-radius`,`cursor-pointer`,`text-4`,`text-muted-foreground`,`hover:bg-muted`,`hover:text-foreground`,`transition-all`,`duration-150`]),y=(0,t.computed)(()=>f.value?`i-ri-fullscreen-exit-line`:`i-ri-fullscreen-line`),b=()=>{f.value=!f.value,f.value&&x()},x=()=>{p.value={isDragging:!1,startX:0,startY:0,offsetX:0,offsetY:0}},S=e=>{!c.draggable||f.value||e.target.closest(`.flex.items-center.gap-2`)||(e.preventDefault(),p.value.isDragging=!0,p.value.startX=e.clientX-p.value.offsetX,p.value.startY=e.clientY-p.value.offsetY,document.addEventListener(`mousemove`,C),document.addEventListener(`mouseup`,w))},C=e=>{p.value.isDragging&&(p.value.offsetX=e.clientX-p.value.startX,p.value.offsetY=e.clientY-p.value.startY)},w=()=>{p.value.isDragging=!1,document.removeEventListener(`mousemove`,C),document.removeEventListener(`mouseup`,w)},T=()=>{l.value=!1},E=()=>{c.closeOnClickModal&&T()};return(0,t.watch)(l,e=>{e&&(x(),f.value=!1)}),(e,o)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[(0,t.createVNode)(t.Transition,{appear:``,"enter-from-class":`opacity-0`,"enter-active-class":`transition-opacity duration-250 ease-[var(--animate-ease-out)]`,"leave-active-class":`transition-opacity duration-150 ease-[var(--animate-ease-in)]`,"leave-to-class":`opacity-0`},{default:(0,t.withCtx)(()=>[l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)(m.value),style:(0,t.normalizeStyle)((0,t.unref)(s).style),onClick:E},[(0,t.createVNode)(t.Transition,{appear:``,"enter-from-class":`scale-0 opacity-0`,"enter-active-class":`transition-[scale,opacity] duration-250 ease-[var(--animate-ease-out-back),var(--animate-ease-out)]`,"leave-active-class":`transition-[scale,opacity] duration-150 ease-[var(--animate-ease-in)]`,"leave-to-class":`scale-0 opacity-0`,onClick:o[0]||=(0,t.withModifiers)(()=>{},[`stop`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{ref_key:`dialogRef`,ref:u,class:(0,t.normalizeClass)(h.value),style:(0,t.normalizeStyle)(g.value)},[(0,t.createElementVNode)(`div`,{ref_key:`headerRef`,ref:d,class:(0,t.normalizeClass)(_.value),onMousedown:S},[e.$slots.title?(0,t.renderSlot)(e.$slots,`title`,{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,n,(0,t.toDisplayString)(c.title),1)),(0,t.createElementVNode)(`div`,r,[(0,t.renderSlot)(e.$slots,`extra`),c.fullscreen?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)(v.value),onClick:b},[(0,t.createElementVNode)(`i`,{class:(0,t.normalizeClass)(y.value)},null,2)],2)):(0,t.createCommentVNode)(``,!0),c.closable?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:(0,t.normalizeClass)(v.value),onClick:T},[...o[1]||=[(0,t.createElementVNode)(`i`,{class:`i-ri-close-line`},null,-1)]],2)):(0,t.createCommentVNode)(``,!0)])],34),(0,t.createElementVNode)(`div`,i,[(0,t.renderSlot)(e.$slots,`default`)]),e.$slots.footer?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,a,[(0,t.renderSlot)(e.$slots,`footer`)])):(0,t.createCommentVNode)(``,!0)],6)]),_:3})],6)):(0,t.createCommentVNode)(``,!0)]),_:3})]))}});exports.default=o;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { cn as e } from "../../utils/cn.js";
|
|
2
|
+
import { Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as v, useModel as y, watch as b, withCtx as x, withModifiers as S } from "vue";
|
|
3
|
+
//#region src/components/st-dialog/st-dialog.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var C = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "text-4 font-600 text-foreground"
|
|
7
|
+
}, w = { class: "flex items-center gap-2" }, T = { class: "flex-1 overflow-auto p-4" }, E = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "flex justify-end gap-2 border-t border-solid border-border p-4"
|
|
10
|
+
}, D = /*@__PURE__*/ l({
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
__name: "st-dialog",
|
|
13
|
+
props: /*@__PURE__*/ u({
|
|
14
|
+
title: { default: "" },
|
|
15
|
+
width: { default: "500px" },
|
|
16
|
+
height: { default: "auto" },
|
|
17
|
+
closable: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
draggable: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
fullscreen: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !0
|
|
28
|
+
},
|
|
29
|
+
modal: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !0
|
|
32
|
+
},
|
|
33
|
+
closeOnClickModal: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !0
|
|
36
|
+
},
|
|
37
|
+
center: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
customClass: { default: "" },
|
|
42
|
+
animation: { default: "zoom" }
|
|
43
|
+
}, {
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
modelModifiers: {}
|
|
49
|
+
}),
|
|
50
|
+
emits: ["update:modelValue"],
|
|
51
|
+
setup(l) {
|
|
52
|
+
let u = v(), D = l, O = y(l, "modelValue"), k = m(null), A = m(null), j = m(!1), M = m({
|
|
53
|
+
isDragging: !1,
|
|
54
|
+
startX: 0,
|
|
55
|
+
startY: 0,
|
|
56
|
+
offsetX: 0,
|
|
57
|
+
offsetY: 0
|
|
58
|
+
}), N = r(() => e("st-dialog-overlay", "fixed", "inset-0", "z-999", "flex", {
|
|
59
|
+
"bg-black/50": D.modal,
|
|
60
|
+
"items-center": D.center,
|
|
61
|
+
"justify-center": D.center
|
|
62
|
+
}, u.class)), P = r(() => e("st-dialog-container", "flex", "flex-col", "bg-background", "rounded-radius", "shadow-lg", "overflow-hidden", D.customClass, {
|
|
63
|
+
"st-dialog-container--fullscreen": j.value,
|
|
64
|
+
"w-screen h-screen": j.value,
|
|
65
|
+
"cursor-move": D.draggable && !M.value.isDragging,
|
|
66
|
+
"cursor-grabbing": M.value.isDragging
|
|
67
|
+
}, u.class)), F = r(() => {
|
|
68
|
+
if (j.value) return {};
|
|
69
|
+
let e = { width: D.width };
|
|
70
|
+
return D.height !== "auto" && (e.height = D.height), (M.value.offsetX !== 0 || M.value.offsetY !== 0) && (e.translate = `${M.value.offsetX}px ${M.value.offsetY}px`), e;
|
|
71
|
+
}), I = r(() => [
|
|
72
|
+
"flex",
|
|
73
|
+
"items-center",
|
|
74
|
+
"justify-between",
|
|
75
|
+
"border-b",
|
|
76
|
+
"border-solid",
|
|
77
|
+
"border-border",
|
|
78
|
+
"p-4",
|
|
79
|
+
"select-none",
|
|
80
|
+
{
|
|
81
|
+
"cursor-grab": D.draggable && !M.value.isDragging,
|
|
82
|
+
"cursor-grabbing": M.value.isDragging
|
|
83
|
+
}
|
|
84
|
+
]), L = r(() => [
|
|
85
|
+
"inline-flex",
|
|
86
|
+
"items-center",
|
|
87
|
+
"justify-center",
|
|
88
|
+
"w-8",
|
|
89
|
+
"h-8",
|
|
90
|
+
"rounded-radius",
|
|
91
|
+
"cursor-pointer",
|
|
92
|
+
"text-4",
|
|
93
|
+
"text-muted-foreground",
|
|
94
|
+
"hover:bg-muted",
|
|
95
|
+
"hover:text-foreground",
|
|
96
|
+
"transition-all",
|
|
97
|
+
"duration-150"
|
|
98
|
+
]), R = r(() => j.value ? "i-ri-fullscreen-exit-line" : "i-ri-fullscreen-line"), z = () => {
|
|
99
|
+
j.value = !j.value, j.value && B();
|
|
100
|
+
}, B = () => {
|
|
101
|
+
M.value = {
|
|
102
|
+
isDragging: !1,
|
|
103
|
+
startX: 0,
|
|
104
|
+
startY: 0,
|
|
105
|
+
offsetX: 0,
|
|
106
|
+
offsetY: 0
|
|
107
|
+
};
|
|
108
|
+
}, V = (e) => {
|
|
109
|
+
!D.draggable || j.value || e.target.closest(".flex.items-center.gap-2") || (e.preventDefault(), M.value.isDragging = !0, M.value.startX = e.clientX - M.value.offsetX, M.value.startY = e.clientY - M.value.offsetY, document.addEventListener("mousemove", H), document.addEventListener("mouseup", U));
|
|
110
|
+
}, H = (e) => {
|
|
111
|
+
M.value.isDragging && (M.value.offsetX = e.clientX - M.value.startX, M.value.offsetY = e.clientY - M.value.startY);
|
|
112
|
+
}, U = () => {
|
|
113
|
+
M.value.isDragging = !1, document.removeEventListener("mousemove", H), document.removeEventListener("mouseup", U);
|
|
114
|
+
}, W = () => {
|
|
115
|
+
O.value = !1;
|
|
116
|
+
}, G = () => {
|
|
117
|
+
D.closeOnClickModal && W();
|
|
118
|
+
};
|
|
119
|
+
return b(O, (e) => {
|
|
120
|
+
e && (B(), j.value = !1);
|
|
121
|
+
}), (e, r) => (p(), i(t, { to: "body" }, [c(n, {
|
|
122
|
+
appear: "",
|
|
123
|
+
"enter-from-class": "opacity-0",
|
|
124
|
+
"enter-active-class": "transition-opacity duration-250 ease-[var(--animate-ease-out)]",
|
|
125
|
+
"leave-active-class": "transition-opacity duration-150 ease-[var(--animate-ease-in)]",
|
|
126
|
+
"leave-to-class": "opacity-0"
|
|
127
|
+
}, {
|
|
128
|
+
default: x(() => [O.value ? (p(), o("div", {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: d(N.value),
|
|
131
|
+
style: f(_(u).style),
|
|
132
|
+
onClick: G
|
|
133
|
+
}, [c(n, {
|
|
134
|
+
appear: "",
|
|
135
|
+
"enter-from-class": "scale-0 opacity-0",
|
|
136
|
+
"enter-active-class": "transition-[scale,opacity] duration-250 ease-[var(--animate-ease-out-back),var(--animate-ease-out)]",
|
|
137
|
+
"leave-active-class": "transition-[scale,opacity] duration-150 ease-[var(--animate-ease-in)]",
|
|
138
|
+
"leave-to-class": "scale-0 opacity-0",
|
|
139
|
+
onClick: r[0] ||= S(() => {}, ["stop"])
|
|
140
|
+
}, {
|
|
141
|
+
default: x(() => [s("div", {
|
|
142
|
+
ref_key: "dialogRef",
|
|
143
|
+
ref: k,
|
|
144
|
+
class: d(P.value),
|
|
145
|
+
style: f(F.value)
|
|
146
|
+
}, [
|
|
147
|
+
s("div", {
|
|
148
|
+
ref_key: "headerRef",
|
|
149
|
+
ref: A,
|
|
150
|
+
class: d(I.value),
|
|
151
|
+
onMousedown: V
|
|
152
|
+
}, [e.$slots.title ? h(e.$slots, "title", { key: 0 }) : (p(), o("span", C, g(D.title), 1)), s("div", w, [
|
|
153
|
+
h(e.$slots, "extra"),
|
|
154
|
+
D.fullscreen ? (p(), o("span", {
|
|
155
|
+
key: 0,
|
|
156
|
+
class: d(L.value),
|
|
157
|
+
onClick: z
|
|
158
|
+
}, [s("i", { class: d(R.value) }, null, 2)], 2)) : a("", !0),
|
|
159
|
+
D.closable ? (p(), o("span", {
|
|
160
|
+
key: 1,
|
|
161
|
+
class: d(L.value),
|
|
162
|
+
onClick: W
|
|
163
|
+
}, [...r[1] ||= [s("i", { class: "i-ri-close-line" }, null, -1)]], 2)) : a("", !0)
|
|
164
|
+
])], 34),
|
|
165
|
+
s("div", T, [h(e.$slots, "default")]),
|
|
166
|
+
e.$slots.footer ? (p(), o("div", E, [h(e.$slots, "footer")])) : a("", !0)
|
|
167
|
+
], 6)]),
|
|
168
|
+
_: 3
|
|
169
|
+
})], 6)) : a("", !0)]),
|
|
170
|
+
_: 3
|
|
171
|
+
})]));
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
//#endregion
|
|
175
|
+
export { D as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 弹窗组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface DialogProps {
|
|
5
|
+
/** 弹窗标题 */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** 弹窗宽度 */
|
|
8
|
+
width?: string;
|
|
9
|
+
/** 弹窗高度 */
|
|
10
|
+
height?: string;
|
|
11
|
+
/** 是否显示关闭按钮 */
|
|
12
|
+
closable?: boolean;
|
|
13
|
+
/** 是否支持拖拽 */
|
|
14
|
+
draggable?: boolean;
|
|
15
|
+
/** 是否支持全屏 */
|
|
16
|
+
fullscreen?: boolean;
|
|
17
|
+
/** 是否显示遮罩层 */
|
|
18
|
+
modal?: boolean;
|
|
19
|
+
/** 点击遮罩层是否关闭弹窗 */
|
|
20
|
+
closeOnClickModal?: boolean;
|
|
21
|
+
/** 是否居中显示 */
|
|
22
|
+
center?: boolean;
|
|
23
|
+
/** 自定义类名 */
|
|
24
|
+
customClass?: string;
|
|
25
|
+
/** 弹窗打开时的动画名称 */
|
|
26
|
+
animation?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../utils/with-install.cjs"),t=require("./st-dialog/st-dialog.vue.cjs");var n=e.withInstall(t.default);exports.StDialog=n,exports.default=n;
|