@vrojs/element-plus 0.0.31 → 0.0.32
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/dist/index.d.ts +1 -0
- package/dist/index.js +147 -139
- package/dist/style/deps.js +1 -0
- package/dist/vro-el-async-dialog/function-call.d.ts +3 -0
- package/dist/vro-el-async-dialog/function-call.js +20 -0
- package/dist/vro-el-async-dialog/index.d.ts +48 -0
- package/dist/vro-el-async-dialog/index.js +9 -0
- package/dist/vro-el-async-dialog/style/css.d.ts +0 -0
- package/dist/vro-el-async-dialog/style/css.js +2 -0
- package/dist/vro-el-async-dialog/style/deps.d.ts +0 -0
- package/dist/vro-el-async-dialog/style/deps.js +1 -0
- package/dist/vro-el-async-dialog/style/index.d.ts +0 -0
- package/dist/vro-el-async-dialog/style/index.js +2 -0
- package/dist/vro-el-async-dialog/types.d.ts +12 -0
- package/dist/vro-el-async-dialog/types.js +1 -0
- package/dist/vro-el-async-dialog/vro-el-async-dialog.vue.d.ts +28 -0
- package/dist/vro-el-async-dialog/vro-el-async-dialog.vue.js +58 -0
- package/dist/vro-el-async-dialog/vro-el-async-dialog.vue2.js +4 -0
- package/dist/vro-el-image/index.d.ts +3 -3
- package/dist/vro-el-image/utils.d.ts +1 -1
- package/dist/vro-el-image/vro-el-image.vue.d.ts +1 -1
- package/dist/vro-el-schema-form/defineVroElSchemaForm.d.ts +2 -3
- package/dist/vro-el-schema-form/types.d.ts +3 -0
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +2 -5
- package/dist/vro-el-schema-form-dialog/function-call.js +2 -2
- package/dist/vro-el-schema-form-dialog/index.d.ts +2 -1
- package/dist/vro-el-schema-form-dialog/index.js +13 -9
- package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.d.ts +12 -13
- package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.js +27 -15
- package/dist/vro-el-schema-form-dialog/utils.d.ts +2 -0
- package/dist/vro-el-schema-form-dialog/utils.js +6 -0
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +2 -2
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +25 -24
- package/dist/vro-el-schema-form-drawer/function-call.js +2 -2
- package/dist/vro-el-schema-form-drawer/index.d.ts +1 -1
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +2 -2
- package/dist/vro-el-select/index.d.ts +1 -1
- package/dist/vro-el-select/vro-el-select.vue.d.ts +1 -1
- package/dist/vro-el-with-config/index.d.ts +58 -11
- package/dist/vro-el-with-config/types.d.ts +7 -0
- package/dist/vro-el-with-config/types.js +8 -1
- package/dist/vro-el-with-config/vro-el-with-config.vue.d.ts +28 -2
- package/dist/vro-el-with-config/vro-el-with-config.vue.js +40 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,152 +2,160 @@ import { default as e } from "./locale/lang/en.js";
|
|
|
2
2
|
import { default as m } from "./locale/lang/zh-cn.js";
|
|
3
3
|
import { default as t } from "./locale/lang/zh-tw.js";
|
|
4
4
|
import { useLocale as f } from "./locale/useLocale.js";
|
|
5
|
-
import { datePickerValueFormat as
|
|
5
|
+
import { datePickerValueFormat as x } from "./utils/datePickerValueFormat.js";
|
|
6
6
|
import { elTableColumnProps as i } from "./utils/elTableColumnProps.js";
|
|
7
7
|
import { parseType as V } from "@vrojs/base";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
8
|
+
import { VroElAsyncDialog as g } from "./vro-el-async-dialog/index.js";
|
|
9
|
+
import { VroElCheckboxGroup as u } from "./vro-el-checkbox-group/index.js";
|
|
10
|
+
import { VroElConfigProvider as F } from "./vro-el-config-provider/index.js";
|
|
11
|
+
import { VroElDivider as d } from "./vro-el-divider/index.js";
|
|
12
|
+
import { VroElFileUpload as C } from "./vro-el-file-upload/index.js";
|
|
13
|
+
import { VroElIcon as T } from "./vro-el-icon/index.js";
|
|
14
|
+
import { VroElImage as I } from "./vro-el-image/index.js";
|
|
15
|
+
import { VroElImageUpload as w } from "./vro-el-image-upload/index.js";
|
|
16
|
+
import { VroElRadioGroup as U } from "./vro-el-radio-group/index.js";
|
|
17
|
+
import { VroElSchemaDescs as k } from "./vro-el-schema-descs/index.js";
|
|
18
|
+
import { VroElSchemaFilter as K } from "./vro-el-schema-filter/index.js";
|
|
19
|
+
import { VroElSchemaForm as j } from "./vro-el-schema-form/index.js";
|
|
20
|
+
import { VroElSchemaFormDialog as M } from "./vro-el-schema-form-dialog/index.js";
|
|
21
|
+
import { VroElSchemaFormDrawer as L } from "./vro-el-schema-form-drawer/index.js";
|
|
22
|
+
import { VroElSelect as q } from "./vro-el-select/index.js";
|
|
23
|
+
import { VroElSkeleton as H } from "./vro-el-skeleton/index.js";
|
|
24
|
+
import { VroElTable as Q } from "./vro-el-table/index.js";
|
|
25
|
+
import { VroElTableActionsColumn as Y } from "./vro-el-table-actions-column/index.js";
|
|
26
|
+
import { VroElTableColumn as _ } from "./vro-el-table-column/index.js";
|
|
27
|
+
import { VroElTableColumnGroup as oo } from "./vro-el-table-column-group/index.js";
|
|
28
|
+
import { VroElTags as eo } from "./vro-el-tags/index.js";
|
|
29
|
+
import { VroElTree as mo } from "./vro-el-tree/index.js";
|
|
30
|
+
import { VroElWithConfig as to } from "./vro-el-with-config/index.js";
|
|
31
|
+
import { showVroElAsyncDialog as fo } from "./vro-el-async-dialog/function-call.js";
|
|
32
|
+
import { vroElCheckboxGroupProps as xo } from "./vro-el-checkbox-group/types.js";
|
|
33
|
+
import { provideVroElConfig as io, setVroElGlobalConfig as no, useVroElConfig as Vo, useVroElGlobalConfig as co, vroElConfigContextKey as go } from "./vro-el-config-provider/config.js";
|
|
34
|
+
import { vroElConfigProviderProps as uo } from "./vro-el-config-provider/types.js";
|
|
35
|
+
import { vroElDividerProps as Fo } from "./vro-el-divider/types.js";
|
|
36
|
+
import { vroElFileUploadProps as Po } from "./vro-el-file-upload/types.js";
|
|
37
|
+
import { getVroElFileUploadOptions as Do, setVroElFileUploadOptions as To } from "./vro-el-file-upload/utils.js";
|
|
38
|
+
import { vroElIconProps as Io } from "./vro-el-icon/types.js";
|
|
39
|
+
import { vroElImageProps as wo } from "./vro-el-image/types.js";
|
|
40
|
+
import { getVroElImageOptions as Uo, setVroElImageOptions as yo } from "./vro-el-image/utils.js";
|
|
41
|
+
import { vroElImageUploadProps as Ao } from "./vro-el-image-upload/types.js";
|
|
42
|
+
import { getVroElImageUploadOptions as Wo, setVroElImageUploadOptions as jo } from "./vro-el-image-upload/utils.js";
|
|
43
|
+
import { vroElRadioGroupProps as Mo } from "./vro-el-radio-group/types.js";
|
|
44
|
+
import { createVroElSchemaDescsDialog as Lo } from "./vro-el-schema-descs/function-call.js";
|
|
45
|
+
import { vroElSchemaDescsProps as qo } from "./vro-el-schema-descs/types.js";
|
|
46
|
+
import { vroElSchemaFilterProps as Ho } from "./vro-el-schema-filter/types.js";
|
|
47
|
+
import { defineVroElSchemaForm as Qo } from "./vro-el-schema-form/defineVroElSchemaForm.js";
|
|
48
|
+
import { defineVroElSchemaFormCreateField as Yo } from "./vro-el-schema-form/defineVroElSchemaFormCreateField.js";
|
|
49
|
+
import { defineVroElSchemaFormFieldTrigger as _o } from "./vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js";
|
|
50
|
+
import { vroElSchemaFormProps as or } from "./vro-el-schema-form/types.js";
|
|
51
|
+
import { useVroElSchemaForm as er } from "./vro-el-schema-form/useVroElSchemaForm.js";
|
|
52
|
+
import { vroElSchemaFormFieldManager as mr } from "./vro-el-schema-form/vroElSchemaFormFieldManager.js";
|
|
53
|
+
import { showVroElSchemaFormDialog as tr } from "./vro-el-schema-form-dialog/function-call.js";
|
|
54
|
+
import { useVroElSchemaFormDialogInstance as fr, vroElSchemaFormDialogInjectionKey as Er } from "./vro-el-schema-form-dialog/injection.js";
|
|
55
|
+
import { vroElSchemaFormDialogProps as sr } from "./vro-el-schema-form-dialog/types.js";
|
|
56
|
+
import { createVroElSchemaFormDialog as nr, useVroElSchemaFormDialog as Vr } from "./vro-el-schema-form-dialog/useVroElSchemaFormDialog.js";
|
|
57
|
+
import { getVroElSchemaFormDialogOptions as gr, setVroElSchemaFormDialogOptions as hr } from "./vro-el-schema-form-dialog/utils.js";
|
|
58
|
+
import { showVroElSchemaFormDrawer as vr } from "./vro-el-schema-form-drawer/function-call.js";
|
|
59
|
+
import { useVroElSchemaFormDrawerInstance as Sr, vroElSchemaFormDrawerInjectionKey as dr } from "./vro-el-schema-form-drawer/injection.js";
|
|
60
|
+
import { vroElSchemaFormDrawerProps as Cr } from "./vro-el-schema-form-drawer/types.js";
|
|
61
|
+
import { useVroElSchemaFormDrawer as Tr } from "./vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js";
|
|
62
|
+
import { vroElSelectProps as Ir } from "./vro-el-select/types.js";
|
|
63
|
+
import { vroElSkeletonProps as wr } from "./vro-el-skeleton/types.js";
|
|
64
|
+
import { vroElTableProps as Ur } from "./vro-el-table/types.js";
|
|
65
|
+
import { useVroElTable as kr } from "./vro-el-table/useVroElTable.js";
|
|
66
|
+
import { vroElTableActionsColumnProps as Kr } from "./vro-el-table-actions-column/types.js";
|
|
67
|
+
import { vroElTableColumnProps as jr } from "./vro-el-table-column/types.js";
|
|
68
|
+
import { defineVroElTableColumns as Mr } from "./vro-el-table-column-group/defineVroElTableColumns.js";
|
|
69
|
+
import { vroElTableColumnGroupProps as Lr } from "./vro-el-table-column-group/types.js";
|
|
70
|
+
import { useVroElTableColumnGroup as qr } from "./vro-el-table-column-group/useVroElTableColumnGroup.js";
|
|
71
|
+
import { vroElTableColumnGroupColumnManager as Hr } from "./vro-el-table-column-group/vroElTableColumnGroupColumnManager.js";
|
|
72
|
+
import { vroElTagsProps as Qr } from "./vro-el-tags/types.js";
|
|
73
|
+
import { vroElTreeProps as Yr } from "./vro-el-tree/types.js";
|
|
74
|
+
import { vroElWithConfigProps as _r } from "./vro-el-with-config/types.js";
|
|
72
75
|
export {
|
|
73
|
-
g as
|
|
74
|
-
|
|
75
|
-
F as
|
|
76
|
-
d as
|
|
77
|
-
C as
|
|
78
|
-
|
|
79
|
-
I as
|
|
80
|
-
w as
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
M as
|
|
86
|
-
L as
|
|
87
|
-
q as
|
|
88
|
-
H as
|
|
89
|
-
Q as
|
|
90
|
-
Y as
|
|
91
|
-
_ as
|
|
92
|
-
oo as
|
|
93
|
-
eo as
|
|
94
|
-
mo as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Qo as
|
|
100
|
-
|
|
76
|
+
g as VroElAsyncDialog,
|
|
77
|
+
u as VroElCheckboxGroup,
|
|
78
|
+
F as VroElConfigProvider,
|
|
79
|
+
d as VroElDivider,
|
|
80
|
+
C as VroElFileUpload,
|
|
81
|
+
T as VroElIcon,
|
|
82
|
+
I as VroElImage,
|
|
83
|
+
w as VroElImageUpload,
|
|
84
|
+
U as VroElRadioGroup,
|
|
85
|
+
k as VroElSchemaDescs,
|
|
86
|
+
K as VroElSchemaFilter,
|
|
87
|
+
j as VroElSchemaForm,
|
|
88
|
+
M as VroElSchemaFormDialog,
|
|
89
|
+
L as VroElSchemaFormDrawer,
|
|
90
|
+
q as VroElSelect,
|
|
91
|
+
H as VroElSkeleton,
|
|
92
|
+
Q as VroElTable,
|
|
93
|
+
Y as VroElTableActionsColumn,
|
|
94
|
+
_ as VroElTableColumn,
|
|
95
|
+
oo as VroElTableColumnGroup,
|
|
96
|
+
eo as VroElTags,
|
|
97
|
+
mo as VroElTree,
|
|
98
|
+
to as VroElWithConfig,
|
|
99
|
+
Lo as createVroElSchemaDescsDialog,
|
|
100
|
+
nr as createVroElSchemaFormDialog,
|
|
101
|
+
x as datePickerValueFormat,
|
|
102
|
+
Qo as defineVroElSchemaForm,
|
|
103
|
+
Yo as defineVroElSchemaFormCreateField,
|
|
104
|
+
_o as defineVroElSchemaFormFieldTrigger,
|
|
105
|
+
Mr as defineVroElTableColumns,
|
|
101
106
|
i as elTableColumnProps,
|
|
102
107
|
e as en,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
Do as getVroElFileUploadOptions,
|
|
109
|
+
Uo as getVroElImageOptions,
|
|
110
|
+
Wo as getVroElImageUploadOptions,
|
|
111
|
+
gr as getVroElSchemaFormDialogOptions,
|
|
106
112
|
V as parseType,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
io as provideVroElConfig,
|
|
114
|
+
To as setVroElFileUploadOptions,
|
|
115
|
+
no as setVroElGlobalConfig,
|
|
116
|
+
yo as setVroElImageOptions,
|
|
117
|
+
jo as setVroElImageUploadOptions,
|
|
118
|
+
hr as setVroElSchemaFormDialogOptions,
|
|
119
|
+
fo as showVroElAsyncDialog,
|
|
120
|
+
tr as showVroElSchemaFormDialog,
|
|
121
|
+
vr as showVroElSchemaFormDrawer,
|
|
114
122
|
f as useLocale,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
123
|
+
Vo as useVroElConfig,
|
|
124
|
+
co as useVroElGlobalConfig,
|
|
125
|
+
er as useVroElSchemaForm,
|
|
126
|
+
Vr as useVroElSchemaFormDialog,
|
|
127
|
+
fr as useVroElSchemaFormDialogInstance,
|
|
128
|
+
Tr as useVroElSchemaFormDrawer,
|
|
129
|
+
Sr as useVroElSchemaFormDrawerInstance,
|
|
130
|
+
kr as useVroElTable,
|
|
131
|
+
qr as useVroElTableColumnGroup,
|
|
132
|
+
xo as vroElCheckboxGroupProps,
|
|
133
|
+
go as vroElConfigContextKey,
|
|
134
|
+
uo as vroElConfigProviderProps,
|
|
135
|
+
Fo as vroElDividerProps,
|
|
136
|
+
Po as vroElFileUploadProps,
|
|
137
|
+
Io as vroElIconProps,
|
|
138
|
+
wo as vroElImageProps,
|
|
139
|
+
Ao as vroElImageUploadProps,
|
|
140
|
+
Mo as vroElRadioGroupProps,
|
|
141
|
+
qo as vroElSchemaDescsProps,
|
|
142
|
+
Ho as vroElSchemaFilterProps,
|
|
143
|
+
Er as vroElSchemaFormDialogInjectionKey,
|
|
144
|
+
sr as vroElSchemaFormDialogProps,
|
|
145
|
+
dr as vroElSchemaFormDrawerInjectionKey,
|
|
146
|
+
Cr as vroElSchemaFormDrawerProps,
|
|
147
|
+
mr as vroElSchemaFormFieldManager,
|
|
148
|
+
or as vroElSchemaFormProps,
|
|
149
|
+
Ir as vroElSelectProps,
|
|
150
|
+
wr as vroElSkeletonProps,
|
|
151
|
+
Kr as vroElTableActionsColumnProps,
|
|
152
|
+
Hr as vroElTableColumnGroupColumnManager,
|
|
153
|
+
Lr as vroElTableColumnGroupProps,
|
|
154
|
+
jr as vroElTableColumnProps,
|
|
155
|
+
Ur as vroElTableProps,
|
|
156
|
+
Qr as vroElTagsProps,
|
|
157
|
+
Yr as vroElTreeProps,
|
|
158
|
+
_r as vroElWithConfigProps,
|
|
151
159
|
m as zhCN,
|
|
152
160
|
t as zhTW
|
|
153
161
|
};
|
package/dist/style/deps.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { showComponent as m } from "@vrojs/base";
|
|
2
|
+
import { markRaw as n } from "vue";
|
|
3
|
+
import { VroElWithConfig as i } from "../vro-el-with-config/index.js";
|
|
4
|
+
import t from "./vro-el-async-dialog.vue.js";
|
|
5
|
+
function p(o, r = null) {
|
|
6
|
+
return m(
|
|
7
|
+
i,
|
|
8
|
+
{
|
|
9
|
+
is: n(t),
|
|
10
|
+
props: o
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
appContext: r,
|
|
14
|
+
destroyHandlers: ["onClosed"]
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
p as showVroElAsyncDialog
|
|
20
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export * from './function-call';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export declare const VroElAsyncDialog: import('@vrojs/base').WithInstall<{
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
5
|
+
onClosed?: (() => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
show: (options: import('./types').VroElAsyncDialogProps) => Promise<void>;
|
|
8
|
+
hide: () => boolean;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
closed: () => any;
|
|
11
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<{}> & Readonly<{
|
|
19
|
+
onClosed?: (() => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
show: (options: import('./types').VroElAsyncDialogProps) => Promise<void>;
|
|
22
|
+
hide: () => boolean;
|
|
23
|
+
}, {}, {}, {}, {}>;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
28
|
+
onClosed?: (() => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
show: (options: import('./types').VroElAsyncDialogProps) => Promise<void>;
|
|
31
|
+
hide: () => boolean;
|
|
32
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
33
|
+
closed: () => any;
|
|
34
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
35
|
+
$slots: {
|
|
36
|
+
default?(_: {
|
|
37
|
+
data: any;
|
|
38
|
+
hide: () => boolean;
|
|
39
|
+
}): any;
|
|
40
|
+
};
|
|
41
|
+
})>;
|
|
42
|
+
export default VroElAsyncDialog;
|
|
43
|
+
export type VroElAsyncDialogInstance = InstanceType<typeof VroElAsyncDialog>;
|
|
44
|
+
declare module 'vue' {
|
|
45
|
+
interface GlobalComponents {
|
|
46
|
+
VroElAsyncDialog: typeof VroElAsyncDialog;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { withInstall as o } from "@vrojs/base";
|
|
2
|
+
import r from "./vro-el-async-dialog.vue.js";
|
|
3
|
+
import { showVroElAsyncDialog as m } from "./function-call.js";
|
|
4
|
+
const s = o(r);
|
|
5
|
+
export {
|
|
6
|
+
s as VroElAsyncDialog,
|
|
7
|
+
s as default,
|
|
8
|
+
m as showVroElAsyncDialog
|
|
9
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../../vro-el-with-config/style/deps.js';
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DialogProps } from 'element-plus';
|
|
2
|
+
import { Raw } from 'vue';
|
|
3
|
+
import { VroElSkeletonProps } from '../vro-el-skeleton/types';
|
|
4
|
+
export interface VroElAsyncDialogProps<Data = any, ComponentProps = any> {
|
|
5
|
+
title?: string;
|
|
6
|
+
request?: () => Data | Promise<Data>;
|
|
7
|
+
dialogProps?: DialogProps;
|
|
8
|
+
is?: Raw<object>;
|
|
9
|
+
props?: ComponentProps;
|
|
10
|
+
dataProp?: string;
|
|
11
|
+
skeletonProps?: Partial<VroElSkeletonProps>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { VroElAsyncDialogProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {
|
|
6
|
+
data: any;
|
|
7
|
+
hide: () => boolean;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
15
|
+
show: (options: VroElAsyncDialogProps) => Promise<void>;
|
|
16
|
+
hide: () => boolean;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
closed: () => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
20
|
+
onClosed?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as b, ref as p, computed as w, resolveComponent as v, createBlock as c, openBlock as s, mergeProps as i, withCtx as x, createElementBlock as B, unref as t, Fragment as j, createCommentVNode as q, renderSlot as A, resolveDynamicComponent as D, normalizeProps as E } from "vue";
|
|
2
|
+
import { useAsyncTask as O } from "@vrojs/use";
|
|
3
|
+
const N = /* @__PURE__ */ b({
|
|
4
|
+
name: "VroElAsyncDialog",
|
|
5
|
+
__name: "vro-el-async-dialog",
|
|
6
|
+
emits: ["closed"],
|
|
7
|
+
setup(R, { expose: m, emit: g }) {
|
|
8
|
+
const f = g, a = p(!1), e = p(), y = w(() => {
|
|
9
|
+
const o = {};
|
|
10
|
+
if (e.value) {
|
|
11
|
+
const { dataProp: n, props: r } = e.value;
|
|
12
|
+
Object.assign(o, r), n && Object.assign(o, { [n]: l.value });
|
|
13
|
+
}
|
|
14
|
+
return o;
|
|
15
|
+
}), { loading: _, error: k, data: l, trigger: u } = O(async () => {
|
|
16
|
+
const { request: o } = e.value;
|
|
17
|
+
return await o?.();
|
|
18
|
+
}), C = async (o) => {
|
|
19
|
+
e.value = o, l.value = void 0, u(), a.value = !0;
|
|
20
|
+
}, d = () => a.value, P = () => {
|
|
21
|
+
l.value = void 0, e.value = void 0, f("closed");
|
|
22
|
+
};
|
|
23
|
+
return m({
|
|
24
|
+
show: C,
|
|
25
|
+
hide: d
|
|
26
|
+
}), (o, n) => {
|
|
27
|
+
const r = v("vro-el-skeleton"), h = v("el-dialog");
|
|
28
|
+
return s(), c(h, i({
|
|
29
|
+
class: "vro-el-async-dialog",
|
|
30
|
+
modelValue: a.value,
|
|
31
|
+
"onUpdate:modelValue": n[0] || (n[0] = (V) => a.value = V),
|
|
32
|
+
title: e.value?.title,
|
|
33
|
+
"destroy-on-close": "",
|
|
34
|
+
"append-to-body": "",
|
|
35
|
+
"close-on-click-modal": !1
|
|
36
|
+
}, e.value?.dialogProps, { onClosed: P }), {
|
|
37
|
+
default: x(() => [
|
|
38
|
+
e.value && (t(l) || !e.value?.request) ? (s(), B(j, { key: 0 }, [
|
|
39
|
+
e.value.is ? (s(), c(D(e.value.is), E(i({ key: 0 }, y.value)), null, 16)) : q("", !0),
|
|
40
|
+
A(o.$slots, "default", {
|
|
41
|
+
data: t(l),
|
|
42
|
+
hide: d
|
|
43
|
+
})
|
|
44
|
+
], 64)) : (s(), c(r, i({
|
|
45
|
+
key: 1,
|
|
46
|
+
loading: t(_),
|
|
47
|
+
error: t(k),
|
|
48
|
+
"loading-props": { type: "spinner" }
|
|
49
|
+
}, e.value?.skeletonProps, { onRefresh: t(u) }), null, 16, ["loading", "error", "onRefresh"]))
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 16, ["modelValue", "title"]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
N as default
|
|
58
|
+
};
|
|
@@ -51,6 +51,7 @@ export declare const VroElImage: import('@vrojs/base').WithInstall<{
|
|
|
51
51
|
};
|
|
52
52
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
53
53
|
src: string;
|
|
54
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
54
55
|
previewTeleported: boolean;
|
|
55
56
|
hideOnClickModal: boolean;
|
|
56
57
|
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
@@ -58,7 +59,6 @@ export declare const VroElImage: import('@vrojs/base').WithInstall<{
|
|
|
58
59
|
previewSrcList: string[];
|
|
59
60
|
initialIndex: number;
|
|
60
61
|
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
61
|
-
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
62
62
|
zoomRate: number;
|
|
63
63
|
scale: number;
|
|
64
64
|
minScale: number;
|
|
@@ -121,6 +121,7 @@ export declare const VroElImage: import('@vrojs/base').WithInstall<{
|
|
|
121
121
|
};
|
|
122
122
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
123
123
|
src: string;
|
|
124
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
124
125
|
previewTeleported: boolean;
|
|
125
126
|
hideOnClickModal: boolean;
|
|
126
127
|
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
@@ -128,7 +129,6 @@ export declare const VroElImage: import('@vrojs/base').WithInstall<{
|
|
|
128
129
|
previewSrcList: string[];
|
|
129
130
|
initialIndex: number;
|
|
130
131
|
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
131
|
-
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
132
132
|
zoomRate: number;
|
|
133
133
|
scale: number;
|
|
134
134
|
minScale: number;
|
|
@@ -188,6 +188,7 @@ export declare const VroElImage: import('@vrojs/base').WithInstall<{
|
|
|
188
188
|
};
|
|
189
189
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
190
190
|
src: string;
|
|
191
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
191
192
|
previewTeleported: boolean;
|
|
192
193
|
hideOnClickModal: boolean;
|
|
193
194
|
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
@@ -195,7 +196,6 @@ export declare const VroElImage: import('@vrojs/base').WithInstall<{
|
|
|
195
196
|
previewSrcList: string[];
|
|
196
197
|
initialIndex: number;
|
|
197
198
|
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
198
|
-
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
199
199
|
zoomRate: number;
|
|
200
200
|
scale: number;
|
|
201
201
|
minScale: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VroElImageProps } from './types';
|
|
2
|
-
export declare const setVroElImageOptions: (value: Partial<Pick<VroElImageProps, "
|
|
2
|
+
export declare const setVroElImageOptions: (value: Partial<Pick<VroElImageProps, "loadingProps" | "baseUrl" | "normalizeSrc" | "iconProps">>) => Partial<Pick<VroElImageProps, "loadingProps" | "baseUrl" | "normalizeSrc" | "iconProps">>, getVroElImageOptions: () => Partial<Pick<VroElImageProps, "loadingProps" | "baseUrl" | "normalizeSrc" | "iconProps">>;
|
|
@@ -104,6 +104,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
104
104
|
};
|
|
105
105
|
}>> & Readonly<{}>, {
|
|
106
106
|
src: string;
|
|
107
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
107
108
|
previewTeleported: boolean;
|
|
108
109
|
hideOnClickModal: boolean;
|
|
109
110
|
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
@@ -111,7 +112,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
111
112
|
previewSrcList: string[];
|
|
112
113
|
initialIndex: number;
|
|
113
114
|
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
114
|
-
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
115
115
|
zoomRate: number;
|
|
116
116
|
scale: number;
|
|
117
117
|
minScale: number;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { VroElSchemaFormSchema } from './types';
|
|
2
|
-
|
|
3
|
-
export declare function defineVroElSchemaForm<T extends VroElSchemaFormSchema = VroElSchemaFormSchema>(schema: (() => T) | T): UseVroElSchemaFormSchema<T>;
|
|
1
|
+
import { VroElSchemaFormNormalizedSchema, VroElSchemaFormSchema } from './types';
|
|
2
|
+
export declare function defineVroElSchemaForm<T extends VroElSchemaFormSchema = VroElSchemaFormSchema>(schema: (() => T) | T): VroElSchemaFormNormalizedSchema<T>;
|