@vrojs/element-plus 0.0.22 → 0.0.24
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 +142 -134
- package/dist/locale/index.d.ts +1 -0
- package/dist/locale/index.js +5 -3
- package/dist/locale/lang/en.d.ts +3 -0
- package/dist/locale/lang/en.js +3 -0
- package/dist/locale/lang/zh-cn.d.ts +3 -0
- package/dist/locale/lang/zh-cn.js +3 -0
- package/dist/locale/lang/zh-tw.d.ts +57 -0
- package/dist/locale/lang/zh-tw.js +59 -0
- package/dist/style/deps.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/vro-el-schema-descs/function-call.d.ts +10 -0
- package/dist/vro-el-schema-descs/function-call.js +41 -0
- package/dist/vro-el-schema-descs/index.d.ts +105 -0
- package/dist/vro-el-schema-descs/index.js +11 -0
- package/dist/vro-el-schema-descs/style/css.d.ts +0 -0
- package/dist/vro-el-schema-descs/style/css.js +4 -0
- package/dist/vro-el-schema-descs/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-descs/style/deps.js +4 -0
- package/dist/vro-el-schema-descs/style/index.css +1 -0
- package/dist/vro-el-schema-descs/style/index.d.ts +0 -0
- package/dist/vro-el-schema-descs/style/index.js +2 -0
- package/dist/vro-el-schema-descs/types.d.ts +122 -0
- package/dist/vro-el-schema-descs/types.js +33 -0
- package/dist/vro-el-schema-descs/vro-el-schema-descs.vue.d.ts +70 -0
- package/dist/vro-el-schema-descs/vro-el-schema-descs.vue.js +86 -0
- package/dist/vro-el-schema-descs/vro-el-schema-descs.vue2.js +4 -0
- package/dist/vro-el-schema-filter/index.d.ts +15 -15
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +20 -20
- package/dist/vro-el-schema-form/index.d.ts +7 -7
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +18 -18
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +4 -4
- package/dist/vro-el-schema-form-dialog/index.d.ts +39 -39
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +28 -28
- package/dist/vro-el-schema-form-drawer/index.d.ts +39 -39
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +28 -28
- package/dist/vro-el-table-actions-column/index.d.ts +3 -3
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +1 -1
- package/dist/vro-el-table-column/index.d.ts +3 -3
- package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './vro-el-icon';
|
|
|
7
7
|
export * from './vro-el-image';
|
|
8
8
|
export * from './vro-el-image-upload';
|
|
9
9
|
export * from './vro-el-radio-group';
|
|
10
|
+
export * from './vro-el-schema-descs';
|
|
10
11
|
export * from './vro-el-schema-filter';
|
|
11
12
|
export * from './vro-el-schema-form';
|
|
12
13
|
export * from './vro-el-schema-form-dialog';
|
package/dist/index.js
CHANGED
|
@@ -1,139 +1,147 @@
|
|
|
1
1
|
import { default as e } from "./locale/lang/en.js";
|
|
2
2
|
import { default as m } from "./locale/lang/zh-cn.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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 {
|
|
3
|
+
import { default as t } from "./locale/lang/zh-tw.js";
|
|
4
|
+
import { useLocale as f } from "./locale/useLocale.js";
|
|
5
|
+
import { datePickerValueFormat as E } from "./utils/datePickerValueFormat.js";
|
|
6
|
+
import { elTableColumnProps as i } from "./utils/elTableColumnProps.js";
|
|
7
|
+
import { parseType as V } from "@vrojs/base";
|
|
8
|
+
import { VroElCheckboxGroup as g } from "./vro-el-checkbox-group/index.js";
|
|
9
|
+
import { VroElConfigProvider as h } from "./vro-el-config-provider/index.js";
|
|
10
|
+
import { VroElFileUpload as F } from "./vro-el-file-upload/index.js";
|
|
11
|
+
import { VroElIcon as C } from "./vro-el-icon/index.js";
|
|
12
|
+
import { VroElImage as d } from "./vro-el-image/index.js";
|
|
13
|
+
import { VroElImageUpload as b } from "./vro-el-image-upload/index.js";
|
|
14
|
+
import { VroElRadioGroup as I } from "./vro-el-radio-group/index.js";
|
|
15
|
+
import { VroElSchemaDescs as w } from "./vro-el-schema-descs/index.js";
|
|
16
|
+
import { VroElSchemaFilter as O } from "./vro-el-schema-filter/index.js";
|
|
17
|
+
import { VroElSchemaForm as y } from "./vro-el-schema-form/index.js";
|
|
18
|
+
import { VroElSchemaFormDialog as W } from "./vro-el-schema-form-dialog/index.js";
|
|
19
|
+
import { VroElSchemaFormDrawer as z } from "./vro-el-schema-form-drawer/index.js";
|
|
20
|
+
import { VroElSelect as M } from "./vro-el-select/index.js";
|
|
21
|
+
import { VroElSkeleton as L } from "./vro-el-skeleton/index.js";
|
|
22
|
+
import { VroElTable as q } from "./vro-el-table/index.js";
|
|
23
|
+
import { VroElTableActionsColumn as H } from "./vro-el-table-actions-column/index.js";
|
|
24
|
+
import { VroElTableColumn as Q } from "./vro-el-table-column/index.js";
|
|
25
|
+
import { VroElTableColumnGroup as Y } from "./vro-el-table-column-group/index.js";
|
|
26
|
+
import { VroElTags as _ } from "./vro-el-tags/index.js";
|
|
27
|
+
import { VroElTree as oo } from "./vro-el-tree/index.js";
|
|
28
|
+
import { VroElWithConfig as eo } from "./vro-el-with-config/index.js";
|
|
29
|
+
import { vroElCheckboxGroupProps as mo } from "./vro-el-checkbox-group/types.js";
|
|
30
|
+
import { provideVroElConfig as to, setVroElGlobalConfig as ao, useVroElConfig as fo, useVroElGlobalConfig as xo, vroElConfigContextKey as Eo } from "./vro-el-config-provider/config.js";
|
|
31
|
+
import { vroElConfigProviderProps as io } from "./vro-el-config-provider/types.js";
|
|
32
|
+
import { vroElFileUploadProps as Vo } from "./vro-el-file-upload/types.js";
|
|
33
|
+
import { getVroElFileUploadOptions as go, setVroElFileUploadOptions as uo } from "./vro-el-file-upload/utils.js";
|
|
34
|
+
import { vroElIconProps as vo } from "./vro-el-icon/types.js";
|
|
35
|
+
import { vroElImageProps as So } from "./vro-el-image/types.js";
|
|
36
|
+
import { getVroElImageOptions as Po, setVroElImageOptions as To } from "./vro-el-image/utils.js";
|
|
37
|
+
import { vroElImageUploadProps as Do } from "./vro-el-image-upload/types.js";
|
|
38
|
+
import { getVroElImageUploadOptions as Go, setVroElImageUploadOptions as wo } from "./vro-el-image-upload/utils.js";
|
|
39
|
+
import { vroElRadioGroupProps as Oo } from "./vro-el-radio-group/types.js";
|
|
40
|
+
import { createVroElSchemaDescsDialog as yo } from "./vro-el-schema-descs/function-call.js";
|
|
41
|
+
import { vroElSchemaDescsProps as Wo } from "./vro-el-schema-descs/types.js";
|
|
42
|
+
import { vroElSchemaFilterProps as zo } from "./vro-el-schema-filter/types.js";
|
|
43
|
+
import { defineVroElSchemaFormCreateField as Mo } from "./vro-el-schema-form/defineVroElSchemaFormCreateField.js";
|
|
44
|
+
import { defineVroElSchemaFormFieldTrigger as Lo } from "./vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js";
|
|
45
|
+
import { vroElSchemaFormProps as qo } from "./vro-el-schema-form/types.js";
|
|
46
|
+
import { useVroElSchemaForm as Ho } from "./vro-el-schema-form/useVroElSchemaForm.js";
|
|
47
|
+
import { vroElSchemaFormFieldManager as Qo } from "./vro-el-schema-form/vroElSchemaFormFieldManager.js";
|
|
48
|
+
import { showVroElSchemaFormDialog as Yo } from "./vro-el-schema-form-dialog/function-call.js";
|
|
49
|
+
import { useVroElSchemaFormDialogInstance as _o, vroElSchemaFormDialogInjectionKey as $o } from "./vro-el-schema-form-dialog/injection.js";
|
|
50
|
+
import { vroElSchemaFormDialogProps as rr } from "./vro-el-schema-form-dialog/types.js";
|
|
51
|
+
import { useVroElSchemaFormDialog as lr } from "./vro-el-schema-form-dialog/useVroElSchemaFormDialog.js";
|
|
52
|
+
import { showVroElSchemaFormDrawer as pr } from "./vro-el-schema-form-drawer/function-call.js";
|
|
53
|
+
import { useVroElSchemaFormDrawerInstance as ar, vroElSchemaFormDrawerInjectionKey as fr } from "./vro-el-schema-form-drawer/injection.js";
|
|
54
|
+
import { vroElSchemaFormDrawerProps as Er } from "./vro-el-schema-form-drawer/types.js";
|
|
55
|
+
import { useVroElSchemaFormDrawer as ir } from "./vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js";
|
|
56
|
+
import { vroElSelectProps as Vr } from "./vro-el-select/types.js";
|
|
57
|
+
import { vroElSkeletonProps as gr } from "./vro-el-skeleton/types.js";
|
|
58
|
+
import { vroElTableProps as hr } from "./vro-el-table/types.js";
|
|
59
|
+
import { useVroElTable as Fr } from "./vro-el-table/useVroElTable.js";
|
|
60
|
+
import { vroElTableActionsColumnProps as Cr } from "./vro-el-table-actions-column/types.js";
|
|
61
|
+
import { vroElTableColumnProps as dr } from "./vro-el-table-column/types.js";
|
|
62
|
+
import { defineVroElTableColumns as br } from "./vro-el-table-column-group/defineVroElTableColumns.js";
|
|
63
|
+
import { vroElTableColumnGroupProps as Ir } from "./vro-el-table-column-group/types.js";
|
|
64
|
+
import { useVroElTableColumnGroup as wr } from "./vro-el-table-column-group/useVroElTableColumnGroup.js";
|
|
65
|
+
import { vroElTableColumnGroupColumnManager as Or } from "./vro-el-table-column-group/vroElTableColumnGroupColumnManager.js";
|
|
66
|
+
import { vroElTagsProps as yr } from "./vro-el-tags/types.js";
|
|
67
|
+
import { vroElTreeProps as Wr } from "./vro-el-tree/types.js";
|
|
68
|
+
import { vroElWithConfigProps as zr } from "./vro-el-with-config/types.js";
|
|
65
69
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
M as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
g as VroElCheckboxGroup,
|
|
71
|
+
h as VroElConfigProvider,
|
|
72
|
+
F as VroElFileUpload,
|
|
73
|
+
C as VroElIcon,
|
|
74
|
+
d as VroElImage,
|
|
75
|
+
b as VroElImageUpload,
|
|
76
|
+
I as VroElRadioGroup,
|
|
77
|
+
w as VroElSchemaDescs,
|
|
78
|
+
O as VroElSchemaFilter,
|
|
79
|
+
y as VroElSchemaForm,
|
|
80
|
+
W as VroElSchemaFormDialog,
|
|
81
|
+
z as VroElSchemaFormDrawer,
|
|
82
|
+
M as VroElSelect,
|
|
83
|
+
L as VroElSkeleton,
|
|
84
|
+
q as VroElTable,
|
|
85
|
+
H as VroElTableActionsColumn,
|
|
86
|
+
Q as VroElTableColumn,
|
|
87
|
+
Y as VroElTableColumnGroup,
|
|
88
|
+
_ as VroElTags,
|
|
89
|
+
oo as VroElTree,
|
|
90
|
+
eo as VroElWithConfig,
|
|
91
|
+
yo as createVroElSchemaDescsDialog,
|
|
92
|
+
E as datePickerValueFormat,
|
|
93
|
+
Mo as defineVroElSchemaFormCreateField,
|
|
94
|
+
Lo as defineVroElSchemaFormFieldTrigger,
|
|
95
|
+
br as defineVroElTableColumns,
|
|
96
|
+
i as elTableColumnProps,
|
|
91
97
|
e as en,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
98
|
+
go as getVroElFileUploadOptions,
|
|
99
|
+
Po as getVroElImageOptions,
|
|
100
|
+
Go as getVroElImageUploadOptions,
|
|
101
|
+
V as parseType,
|
|
102
|
+
to as provideVroElConfig,
|
|
103
|
+
uo as setVroElFileUploadOptions,
|
|
104
|
+
ao as setVroElGlobalConfig,
|
|
105
|
+
To as setVroElImageOptions,
|
|
106
|
+
wo as setVroElImageUploadOptions,
|
|
107
|
+
Yo as showVroElSchemaFormDialog,
|
|
108
|
+
pr as showVroElSchemaFormDrawer,
|
|
109
|
+
f as useLocale,
|
|
110
|
+
fo as useVroElConfig,
|
|
111
|
+
xo as useVroElGlobalConfig,
|
|
112
|
+
Ho as useVroElSchemaForm,
|
|
113
|
+
lr as useVroElSchemaFormDialog,
|
|
114
|
+
_o as useVroElSchemaFormDialogInstance,
|
|
115
|
+
ir as useVroElSchemaFormDrawer,
|
|
116
|
+
ar as useVroElSchemaFormDrawerInstance,
|
|
117
|
+
Fr as useVroElTable,
|
|
118
|
+
wr as useVroElTableColumnGroup,
|
|
119
|
+
mo as vroElCheckboxGroupProps,
|
|
120
|
+
Eo as vroElConfigContextKey,
|
|
121
|
+
io as vroElConfigProviderProps,
|
|
122
|
+
Vo as vroElFileUploadProps,
|
|
123
|
+
vo as vroElIconProps,
|
|
124
|
+
So as vroElImageProps,
|
|
125
|
+
Do as vroElImageUploadProps,
|
|
126
|
+
Oo as vroElRadioGroupProps,
|
|
127
|
+
Wo as vroElSchemaDescsProps,
|
|
128
|
+
zo as vroElSchemaFilterProps,
|
|
129
|
+
$o as vroElSchemaFormDialogInjectionKey,
|
|
130
|
+
rr as vroElSchemaFormDialogProps,
|
|
131
|
+
fr as vroElSchemaFormDrawerInjectionKey,
|
|
132
|
+
Er as vroElSchemaFormDrawerProps,
|
|
133
|
+
Qo as vroElSchemaFormFieldManager,
|
|
134
|
+
qo as vroElSchemaFormProps,
|
|
135
|
+
Vr as vroElSelectProps,
|
|
136
|
+
gr as vroElSkeletonProps,
|
|
137
|
+
Cr as vroElTableActionsColumnProps,
|
|
138
|
+
Or as vroElTableColumnGroupColumnManager,
|
|
139
|
+
Ir as vroElTableColumnGroupProps,
|
|
140
|
+
dr as vroElTableColumnProps,
|
|
141
|
+
hr as vroElTableProps,
|
|
142
|
+
yr as vroElTagsProps,
|
|
143
|
+
Wr as vroElTreeProps,
|
|
144
|
+
zr as vroElWithConfigProps,
|
|
145
|
+
m as zhCN,
|
|
146
|
+
t as zhTW
|
|
139
147
|
};
|
package/dist/locale/index.d.ts
CHANGED
package/dist/locale/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { default as r } from "./lang/en.js";
|
|
2
2
|
import { default as f } from "./lang/zh-cn.js";
|
|
3
|
-
import {
|
|
3
|
+
import { default as l } from "./lang/zh-tw.js";
|
|
4
|
+
import { useLocale as p } from "./useLocale.js";
|
|
4
5
|
export {
|
|
5
6
|
r as en,
|
|
6
|
-
|
|
7
|
-
f as zhCN
|
|
7
|
+
p as useLocale,
|
|
8
|
+
f as zhCN,
|
|
9
|
+
l as zhTW
|
|
8
10
|
};
|
package/dist/locale/lang/en.d.ts
CHANGED
package/dist/locale/lang/en.js
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
el: {
|
|
4
|
+
table: {
|
|
5
|
+
refresh: string;
|
|
6
|
+
};
|
|
7
|
+
tableActionsColumn: {
|
|
8
|
+
label: string;
|
|
9
|
+
moreText: string;
|
|
10
|
+
};
|
|
11
|
+
skeleton: {
|
|
12
|
+
loadingDescription: string;
|
|
13
|
+
emptyDescription: string;
|
|
14
|
+
emptyBtnText: string;
|
|
15
|
+
errorTitle: string;
|
|
16
|
+
errorBtnText: string;
|
|
17
|
+
};
|
|
18
|
+
fileUpload: {
|
|
19
|
+
btnText: string;
|
|
20
|
+
};
|
|
21
|
+
imageUpload: {
|
|
22
|
+
compressText: string;
|
|
23
|
+
};
|
|
24
|
+
tags: {
|
|
25
|
+
addText: string;
|
|
26
|
+
};
|
|
27
|
+
schemaForm: {
|
|
28
|
+
ElInput: {
|
|
29
|
+
placeholder: string;
|
|
30
|
+
};
|
|
31
|
+
ElSelect: {
|
|
32
|
+
placeholder: string;
|
|
33
|
+
};
|
|
34
|
+
ElDatePicker: {
|
|
35
|
+
placeholder: string;
|
|
36
|
+
startPlaceholder: string;
|
|
37
|
+
endPlaceholder: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
schemaDescs: {
|
|
41
|
+
closeText: string;
|
|
42
|
+
};
|
|
43
|
+
schemaFilter: {
|
|
44
|
+
searchText: string;
|
|
45
|
+
resetText: string;
|
|
46
|
+
};
|
|
47
|
+
schemaFormDialog: {
|
|
48
|
+
cancelText: string;
|
|
49
|
+
confirmText: string;
|
|
50
|
+
};
|
|
51
|
+
schemaFormDrawer: {
|
|
52
|
+
cancelText: string;
|
|
53
|
+
confirmText: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
name: "zh-tw",
|
|
3
|
+
el: {
|
|
4
|
+
table: {
|
|
5
|
+
refresh: "重新整理"
|
|
6
|
+
},
|
|
7
|
+
tableActionsColumn: {
|
|
8
|
+
label: "操作",
|
|
9
|
+
moreText: "更多"
|
|
10
|
+
},
|
|
11
|
+
skeleton: {
|
|
12
|
+
loadingDescription: "正在載入資料...",
|
|
13
|
+
emptyDescription: "暫無資料",
|
|
14
|
+
emptyBtnText: "重新整理",
|
|
15
|
+
errorTitle: "哎呀!發生錯誤了~",
|
|
16
|
+
errorBtnText: "重新整理"
|
|
17
|
+
},
|
|
18
|
+
fileUpload: {
|
|
19
|
+
btnText: "上傳"
|
|
20
|
+
},
|
|
21
|
+
imageUpload: {
|
|
22
|
+
compressText: "是否壓縮"
|
|
23
|
+
},
|
|
24
|
+
tags: {
|
|
25
|
+
addText: "新增"
|
|
26
|
+
},
|
|
27
|
+
schemaForm: {
|
|
28
|
+
ElInput: {
|
|
29
|
+
placeholder: "請填寫"
|
|
30
|
+
},
|
|
31
|
+
ElSelect: {
|
|
32
|
+
placeholder: "請選擇"
|
|
33
|
+
},
|
|
34
|
+
ElDatePicker: {
|
|
35
|
+
placeholder: "請選擇",
|
|
36
|
+
startPlaceholder: "請選擇",
|
|
37
|
+
endPlaceholder: "請選擇"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
schemaDescs: {
|
|
41
|
+
closeText: "關閉"
|
|
42
|
+
},
|
|
43
|
+
schemaFilter: {
|
|
44
|
+
searchText: "搜尋",
|
|
45
|
+
resetText: "重設"
|
|
46
|
+
},
|
|
47
|
+
schemaFormDialog: {
|
|
48
|
+
cancelText: "取消",
|
|
49
|
+
confirmText: "確認"
|
|
50
|
+
},
|
|
51
|
+
schemaFormDrawer: {
|
|
52
|
+
cancelText: "取消",
|
|
53
|
+
confirmText: "確認"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
e as default
|
|
59
|
+
};
|
package/dist/style/deps.js
CHANGED
|
@@ -5,6 +5,7 @@ import '../vro-el-icon/style/deps.js';
|
|
|
5
5
|
import '../vro-el-image/style/deps.js';
|
|
6
6
|
import '../vro-el-image-upload/style/deps.js';
|
|
7
7
|
import '../vro-el-radio-group/style/deps.js';
|
|
8
|
+
import '../vro-el-schema-descs/style/deps.js';
|
|
8
9
|
import '../vro-el-schema-filter/style/deps.js';
|
|
9
10
|
import '../vro-el-schema-form/style/deps.js';
|
|
10
11
|
import '../vro-el-schema-form-dialog/style/deps.js';
|
package/dist/style/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";:root,:host{--vro-el-file-upload-gap: 8px;--vro-el-file-upload-item-font-size: 14px;--vro-el-file-upload-item-line-height: 1.5;--vro-el-file-upload-link-color: var(--el-color-primary);--vro-el-file-upload-clear-gap: 10px;--vro-el-file-upload-clear-color: var(--el-color-danger);--vro-el-file-upload-clear-background: var(--el-fill-color-light)}.vro-el-file-upload-btn{position:relative}.vro-el-file-upload-btn input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.vro-el-file-upload-content{padding:0;margin:var(--vro-el-file-upload-gap) 0 0;list-style:none}.vro-el-file-upload-item{position:relative;box-sizing:border-box;display:flex;align-items:center;margin-top:var(--vro-el-file-upload-gap);font-size:var(--vro-el-file-upload-item-font-size);line-height:var(--vro-el-file-upload-item-line-height)}.vro-el-file-upload-item a{min-width:0;margin-right:var(--vro-el-file-upload-clear-gap);color:var(--vro-el-file-upload-link-color);text-decoration:underline;word-break:break-all}.vro-el-file-upload-clear{flex:none;color:var(--vro-el-file-upload-clear-color);background-color:var(--vro-el-file-upload-clear-background);cursor:pointer}:root,:host{--vro-el-image-placeholder-background: var(--el-fill-color-light);--vro-el-image-loading-color: var(--el-text-color-placeholder);--vro-el-image-loading-size: 16px;--vro-el-image-error-background: var(--el-fill-color-light);--vro-el-image-error-color: var(--el-text-color-placeholder);--vro-el-image-error-icon-size: 24px}.vro-el-image-placeholder,.vro-el-image-error{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.vro-el-image-placeholder{--vro-loading-color: var(--vro-el-image-loading-color);--vro-loading-size: var(--vro-el-image-loading-size);background-color:var(--vro-el-image-placeholder-background)}.vro-el-image-error{color:var(--vro-el-image-error-color);background-color:var(--vro-el-image-error-background)}.vro-el-image-error-icon{font-size:var(--vro-el-image-error-icon-size)}:root,:host{--vro-el-image-upload-gap: 10px;--vro-el-image-upload-item-size: 100px;--vro-el-image-upload-item-radius: 4px;--vro-el-image-upload-item-border-color: var(--el-border-color);--vro-el-image-upload-item-icon-size: 24px;--vro-el-image-upload-checkerboard-size: 8px;--vro-el-image-upload-clear-size: 20px;--vro-el-image-upload-clear-color: #fff;--vro-el-image-upload-clear-background: var(--el-color-danger)}.vro-el-image-upload-content{display:flex;flex-wrap:wrap;margin-top:calc(var(--vro-el-image-upload-gap) * -1)}.vro-el-image-upload-item{cursor:pointer;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--vro-el-image-upload-item-size);height:var(--vro-el-image-upload-item-size);margin-top:var(--vro-el-image-upload-gap);margin-right:var(--vro-el-image-upload-gap);font-size:var(--vro-el-image-upload-item-icon-size);border:1px dashed var(--vro-el-image-upload-item-border-color);border-radius:var(--vro-el-image-upload-item-radius)}.vro-el-image-upload-item .vro-el-image-upload-image,.vro-el-image-upload-item img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFyMjI////1tbWF77ztQAAABZJREFUeJxjYGAIDWUggggNbWAgggAA918Ooanz2WEAAAAASUVORK5CYII=) center!important;background-size:var(--vro-el-image-upload-checkerboard-size)!important;border-radius:var(--vro-el-image-upload-item-radius);transform:translateZ(0)}.vro-el-image-upload-item input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--vro-el-image-upload-item-radius);opacity:0}.vro-el-image-upload-clear{position:absolute;top:-6px;right:-6px;color:var(--vro-el-image-upload-clear-color);font-size:var(--vro-el-image-upload-clear-size);background:var(--vro-el-image-upload-clear-background);border-radius:50%;cursor:pointer}:root,:host{--vro-el-schema-filter-padding: 0 16px 16px;--vro-el-schema-filter-background: var(--el-bg-color);--vro-el-schema-filter-col-margin-top: 16px}.vro-el-schema-filter{display:block;box-sizing:border-box;overflow:hidden;padding:var(--vro-el-schema-filter-padding);background-color:var(--vro-el-schema-filter-background)}.vro-el-schema-filter .el-form-item__label{display:flex;align-items:center;text-align:right;line-height:1.1;margin-bottom:0}.vro-el-schema-filter .el-form-item{margin-bottom:0}.vro-el-schema-filter .el-col{margin-top:var(--vro-el-schema-filter-col-margin-top)}.vro-el-schema-form{display:block;width:100%}.vro-el-schema-form .el-date-editor{--el-date-editor-width: 100%}.vro-el-schema-form .el-cascader,.vro-el-schema-form .el-input-number.is-controls-right{width:100%}:root,:host{--vro-el-schema-form-dialog-width: 520px}.vro-el-schema-form-dialog{--el-dialog-width: var(--vro-el-schema-form-dialog-width);width:var(--el-dialog-width)}:root,:host{--vro-el-schema-form-drawer-padding: 20px;--vro-el-schema-form-drawer-border-color: var(--el-border-color);--vro-el-schema-form-drawer-size: 520px}.vro-el-schema-form-drawer .el-drawer__header{margin-bottom:0;border-bottom:1px solid var(--vro-el-schema-form-drawer-border-color);padding:var(--vro-el-schema-form-drawer-padding)}.vro-el-schema-form-drawer .el-drawer__body{min-width:0;overflow-y:auto}.vro-el-schema-form-drawer .el-drawer__footer{padding:var(--vro-el-schema-form-drawer-padding);border-top:1px solid var(--vro-el-schema-form-drawer-border-color)}.vro-el-schema-form-drawer-footer{display:flex;justify-content:flex-end}:root,:host{--vro-el-skeleton-min-height: 240px;--vro-el-skeleton-color: var(--el-text-color-secondary);--vro-el-skeleton-description-margin-top: 16px;--vro-el-skeleton-description-color: var(--el-text-color-secondary);--vro-el-skeleton-description-font-size: var(--el-font-size-base);--vro-el-skeleton-description-line-height: 1.5}.vro-el-skeleton{width:100%;min-height:var(--vro-el-skeleton-min-height)}.vro-el-skeleton-state{display:flex;align-items:center;justify-content:center;width:100%;min-height:inherit}.vro-el-skeleton-loading{flex-direction:column;color:var(--vro-el-skeleton-color)}.vro-el-skeleton-description{margin:var(--vro-el-skeleton-description-margin-top) 0 0;color:var(--vro-el-skeleton-description-color);font-size:var(--vro-el-skeleton-description-font-size);line-height:var(--vro-el-skeleton-description-line-height);text-align:center}:root,:host{--vro-el-table-gap: 16px;--vro-el-table-padding: 16px;--vro-el-table-inner-gap: var(--vro-el-table-gap)}.vro-el-table{display:flex;flex-direction:column;width:100%;box-sizing:border-box;gap:var(--vro-el-table-gap)}.vro-el-table .el-table-column--selection{line-height:normal}.vro-el-table .el-table__expand-icon{display:flex;align-items:center;justify-content:center}.vro-el-table-inner{flex:1;position:relative;background-color:var(--el-bg-color);padding:var(--vro-el-table-padding);display:flex;flex-direction:column;gap:var(--vro-el-table-inner-gap)}.vro-el-table-header{display:flex;align-items:center;flex-wrap:wrap}.vro-el-table-header h2{font-size:16px}.vro-el-table-actions{flex-shrink:0;margin-left:auto}.vro-el-table-content{flex:1}.vro-el-table-content .el-table{width:100%;--el-table-bg-color: transparent}.vro-el-table-content .el-table__header{--el-table-header-bg-color: var(--el-bg-color-page);--el-table-header-text-color: var(--el-text-color-primary)}.vro-el-table-content .el-table__body-wrapper .cell{line-height:1.4}.vro-el-table-content .el-table__body-wrapper strong{font-weight:700;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt{font-weight:700;margin-bottom:8px;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt:last-child{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper dl dd{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper dl dd:last-of-type{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper ul li{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper ul li:last-of-type{margin-bottom:0}.vro-el-table-pagination{justify-content:flex-end}:root,:host{--vro-el-table-actions-column-row-gap: 4px;--vro-el-table-actions-column-column-gap: 12px}.vro-el-table-actions-column-cell .cell{display:flex;flex-wrap:wrap;row-gap:var(--vro-el-table-actions-column-row-gap);column-gap:var(--vro-el-table-actions-column-column-gap)}.vro-el-table-actions-column-cell .cell>.el-button+.el-button{margin-left:0}.vro-el-table-actions-column-dropdown-action.is-primary{color:var(--el-color-primary)}.vro-el-table-actions-column-dropdown-action.is-success{color:var(--el-color-success)}.vro-el-table-actions-column-dropdown-action.is-warning{color:var(--el-color-warning)}.vro-el-table-actions-column-dropdown-action.is-danger{color:var(--el-color-danger)}.vro-el-table-actions-column-dropdown-action.is-info{color:var(--el-color-info)}:root,:host{--vro-el-table-column-gap: 4px;--vro-el-table-column-icon-size: 14px;--vro-el-table-column-line-clamp: 1}.vro-el-table-column-content{display:inline-flex;width:100%;max-width:100%;min-width:0;align-items:center;gap:var(--vro-el-table-column-gap);vertical-align:middle}.vro-el-table-column-content.is-left{justify-content:flex-start}.vro-el-table-column-content.is-center{justify-content:center}.vro-el-table-column-content.is-right{justify-content:flex-end}.vro-el-table-column-content .vro-el-icon{flex:none;font-size:var(--vro-el-table-column-icon-size)}.vro-el-table-column-prefix,.vro-el-table-column-suffix{display:inline-flex;flex:none;min-width:0;align-items:center}.vro-el-table-column-text{flex:0 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vro-el-table-column-text.is-line-clamp{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vro-el-table-column-line-clamp)}:root,:host{--vro-el-tags-gap: 8px;--vro-el-tags-input-width: 120px}.vro-el-tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vro-el-tags-gap)}.vro-el-tags-tag,.vro-el-tags-button{flex:none}.vro-el-tags-input{width:var(--vro-el-tags-input-width)}.vro-el-tree{width:100%;min-width:0;box-sizing:border-box;-webkit-user-select:none;user-select:none}
|
|
1
|
+
@charset "UTF-8";:root,:host{--vro-el-file-upload-gap: 8px;--vro-el-file-upload-item-font-size: 14px;--vro-el-file-upload-item-line-height: 1.5;--vro-el-file-upload-link-color: var(--el-color-primary);--vro-el-file-upload-clear-gap: 10px;--vro-el-file-upload-clear-color: var(--el-color-danger);--vro-el-file-upload-clear-background: var(--el-fill-color-light)}.vro-el-file-upload-btn{position:relative}.vro-el-file-upload-btn input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.vro-el-file-upload-content{padding:0;margin:var(--vro-el-file-upload-gap) 0 0;list-style:none}.vro-el-file-upload-item{position:relative;box-sizing:border-box;display:flex;align-items:center;margin-top:var(--vro-el-file-upload-gap);font-size:var(--vro-el-file-upload-item-font-size);line-height:var(--vro-el-file-upload-item-line-height)}.vro-el-file-upload-item a{min-width:0;margin-right:var(--vro-el-file-upload-clear-gap);color:var(--vro-el-file-upload-link-color);text-decoration:underline;word-break:break-all}.vro-el-file-upload-clear{flex:none;color:var(--vro-el-file-upload-clear-color);background-color:var(--vro-el-file-upload-clear-background);cursor:pointer}:root,:host{--vro-el-image-placeholder-background: var(--el-fill-color-light);--vro-el-image-loading-color: var(--el-text-color-placeholder);--vro-el-image-loading-size: 16px;--vro-el-image-error-background: var(--el-fill-color-light);--vro-el-image-error-color: var(--el-text-color-placeholder);--vro-el-image-error-icon-size: 24px}.vro-el-image-placeholder,.vro-el-image-error{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.vro-el-image-placeholder{--vro-loading-color: var(--vro-el-image-loading-color);--vro-loading-size: var(--vro-el-image-loading-size);background-color:var(--vro-el-image-placeholder-background)}.vro-el-image-error{color:var(--vro-el-image-error-color);background-color:var(--vro-el-image-error-background)}.vro-el-image-error-icon{font-size:var(--vro-el-image-error-icon-size)}:root,:host{--vro-el-image-upload-gap: 10px;--vro-el-image-upload-item-size: 100px;--vro-el-image-upload-item-radius: 4px;--vro-el-image-upload-item-border-color: var(--el-border-color);--vro-el-image-upload-item-icon-size: 24px;--vro-el-image-upload-checkerboard-size: 8px;--vro-el-image-upload-clear-size: 20px;--vro-el-image-upload-clear-color: #fff;--vro-el-image-upload-clear-background: var(--el-color-danger)}.vro-el-image-upload-content{display:flex;flex-wrap:wrap;margin-top:calc(var(--vro-el-image-upload-gap) * -1)}.vro-el-image-upload-item{cursor:pointer;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--vro-el-image-upload-item-size);height:var(--vro-el-image-upload-item-size);margin-top:var(--vro-el-image-upload-gap);margin-right:var(--vro-el-image-upload-gap);font-size:var(--vro-el-image-upload-item-icon-size);border:1px dashed var(--vro-el-image-upload-item-border-color);border-radius:var(--vro-el-image-upload-item-radius)}.vro-el-image-upload-item .vro-el-image-upload-image,.vro-el-image-upload-item img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFyMjI////1tbWF77ztQAAABZJREFUeJxjYGAIDWUggggNbWAgggAA918Ooanz2WEAAAAASUVORK5CYII=) center!important;background-size:var(--vro-el-image-upload-checkerboard-size)!important;border-radius:var(--vro-el-image-upload-item-radius);transform:translateZ(0)}.vro-el-image-upload-item input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--vro-el-image-upload-item-radius);opacity:0}.vro-el-image-upload-clear{position:absolute;top:-6px;right:-6px;color:var(--vro-el-image-upload-clear-color);font-size:var(--vro-el-image-upload-clear-size);background:var(--vro-el-image-upload-clear-background);border-radius:50%;cursor:pointer}:root,:host{--vro-el-schema-descs-label-color: var(--el-text-color-regular);--vro-el-schema-descs-content-color: var(--el-text-color-primary)}.vro-el-schema-descs{width:100%}.vro-el-schema-descs .el-descriptions__label{color:var(--vro-el-schema-descs-label-color)}.vro-el-schema-descs .el-descriptions__content{color:var(--vro-el-schema-descs-content-color);white-space:pre-wrap;word-break:break-word}:root,:host{--vro-el-schema-filter-padding: 0 16px 16px;--vro-el-schema-filter-background: var(--el-bg-color);--vro-el-schema-filter-col-margin-top: 16px}.vro-el-schema-filter{display:block;box-sizing:border-box;overflow:hidden;padding:var(--vro-el-schema-filter-padding);background-color:var(--vro-el-schema-filter-background)}.vro-el-schema-filter .el-form-item__label{display:flex;align-items:center;text-align:right;line-height:1.1;margin-bottom:0}.vro-el-schema-filter .el-form-item{margin-bottom:0}.vro-el-schema-filter .el-col{margin-top:var(--vro-el-schema-filter-col-margin-top)}.vro-el-schema-form{display:block;width:100%}.vro-el-schema-form .el-date-editor{--el-date-editor-width: 100%}.vro-el-schema-form .el-cascader,.vro-el-schema-form .el-input-number.is-controls-right{width:100%}:root,:host{--vro-el-schema-form-dialog-width: 520px}.vro-el-schema-form-dialog{--el-dialog-width: var(--vro-el-schema-form-dialog-width);width:var(--el-dialog-width)}:root,:host{--vro-el-schema-form-drawer-padding: 20px;--vro-el-schema-form-drawer-border-color: var(--el-border-color);--vro-el-schema-form-drawer-size: 520px}.vro-el-schema-form-drawer .el-drawer__header{margin-bottom:0;border-bottom:1px solid var(--vro-el-schema-form-drawer-border-color);padding:var(--vro-el-schema-form-drawer-padding)}.vro-el-schema-form-drawer .el-drawer__body{min-width:0;overflow-y:auto}.vro-el-schema-form-drawer .el-drawer__footer{padding:var(--vro-el-schema-form-drawer-padding);border-top:1px solid var(--vro-el-schema-form-drawer-border-color)}.vro-el-schema-form-drawer-footer{display:flex;justify-content:flex-end}:root,:host{--vro-el-skeleton-min-height: 240px;--vro-el-skeleton-color: var(--el-text-color-secondary);--vro-el-skeleton-description-margin-top: 16px;--vro-el-skeleton-description-color: var(--el-text-color-secondary);--vro-el-skeleton-description-font-size: var(--el-font-size-base);--vro-el-skeleton-description-line-height: 1.5}.vro-el-skeleton{width:100%;min-height:var(--vro-el-skeleton-min-height)}.vro-el-skeleton-state{display:flex;align-items:center;justify-content:center;width:100%;min-height:inherit}.vro-el-skeleton-loading{flex-direction:column;color:var(--vro-el-skeleton-color)}.vro-el-skeleton-description{margin:var(--vro-el-skeleton-description-margin-top) 0 0;color:var(--vro-el-skeleton-description-color);font-size:var(--vro-el-skeleton-description-font-size);line-height:var(--vro-el-skeleton-description-line-height);text-align:center}:root,:host{--vro-el-table-gap: 16px;--vro-el-table-padding: 16px;--vro-el-table-inner-gap: var(--vro-el-table-gap)}.vro-el-table{display:flex;flex-direction:column;width:100%;box-sizing:border-box;gap:var(--vro-el-table-gap)}.vro-el-table .el-table-column--selection{line-height:normal}.vro-el-table .el-table__expand-icon{display:flex;align-items:center;justify-content:center}.vro-el-table-inner{flex:1;position:relative;background-color:var(--el-bg-color);padding:var(--vro-el-table-padding);display:flex;flex-direction:column;gap:var(--vro-el-table-inner-gap)}.vro-el-table-header{display:flex;align-items:center;flex-wrap:wrap}.vro-el-table-header h2{font-size:16px}.vro-el-table-actions{flex-shrink:0;margin-left:auto}.vro-el-table-content{flex:1}.vro-el-table-content .el-table{width:100%;--el-table-bg-color: transparent}.vro-el-table-content .el-table__header{--el-table-header-bg-color: var(--el-bg-color-page);--el-table-header-text-color: var(--el-text-color-primary)}.vro-el-table-content .el-table__body-wrapper .cell{line-height:1.4}.vro-el-table-content .el-table__body-wrapper strong{font-weight:700;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt{font-weight:700;margin-bottom:8px;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt:last-child{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper dl dd{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper dl dd:last-of-type{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper ul li{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper ul li:last-of-type{margin-bottom:0}.vro-el-table-pagination{justify-content:flex-end}:root,:host{--vro-el-table-actions-column-row-gap: 4px;--vro-el-table-actions-column-column-gap: 12px}.vro-el-table-actions-column-cell .cell{display:flex;flex-wrap:wrap;row-gap:var(--vro-el-table-actions-column-row-gap);column-gap:var(--vro-el-table-actions-column-column-gap)}.vro-el-table-actions-column-cell .cell>.el-button+.el-button{margin-left:0}.vro-el-table-actions-column-dropdown-action.is-primary{color:var(--el-color-primary)}.vro-el-table-actions-column-dropdown-action.is-success{color:var(--el-color-success)}.vro-el-table-actions-column-dropdown-action.is-warning{color:var(--el-color-warning)}.vro-el-table-actions-column-dropdown-action.is-danger{color:var(--el-color-danger)}.vro-el-table-actions-column-dropdown-action.is-info{color:var(--el-color-info)}:root,:host{--vro-el-table-column-gap: 4px;--vro-el-table-column-icon-size: 14px;--vro-el-table-column-line-clamp: 1}.vro-el-table-column-content{display:inline-flex;width:100%;max-width:100%;min-width:0;align-items:center;gap:var(--vro-el-table-column-gap);vertical-align:middle}.vro-el-table-column-content.is-left{justify-content:flex-start}.vro-el-table-column-content.is-center{justify-content:center}.vro-el-table-column-content.is-right{justify-content:flex-end}.vro-el-table-column-content .vro-el-icon{flex:none;font-size:var(--vro-el-table-column-icon-size)}.vro-el-table-column-prefix,.vro-el-table-column-suffix{display:inline-flex;flex:none;min-width:0;align-items:center}.vro-el-table-column-text{flex:0 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vro-el-table-column-text.is-line-clamp{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vro-el-table-column-line-clamp)}:root,:host{--vro-el-tags-gap: 8px;--vro-el-tags-input-width: 120px}.vro-el-tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vro-el-tags-gap)}.vro-el-tags-tag,.vro-el-tags-button{flex:none}.vro-el-tags-input{width:var(--vro-el-tags-input-width)}.vro-el-tree{width:100%;min-width:0;box-sizing:border-box;-webkit-user-select:none;user-select:none}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VroElSchemaFormDialogProps } from '../vro-el-schema-form-dialog';
|
|
2
|
+
import { VroElSchemaDescsProps, VroElSchemaDescsSchema } from './types';
|
|
3
|
+
export interface VroElSchemaDescsDialogOptions extends Partial<Omit<VroElSchemaDescsProps, 'schema' | 'data'>> {
|
|
4
|
+
/**
|
|
5
|
+
* 透传给 VroElSchemaFormDialog 的属性,不包含 schema。
|
|
6
|
+
*/
|
|
7
|
+
dialogProps?: Partial<Omit<VroElSchemaFormDialogProps, 'schema'>>;
|
|
8
|
+
}
|
|
9
|
+
export type VroElSchemaDescsDialog<T = any> = (data: T, options?: VroElSchemaDescsDialogOptions) => Promise<any>;
|
|
10
|
+
export declare function createVroElSchemaDescsDialog<T = any>(schema: VroElSchemaDescsSchema<T> | ((data: T) => VroElSchemaDescsSchema<T>), options?: VroElSchemaDescsDialogOptions): VroElSchemaDescsDialog<T>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { markRaw as i } from "vue";
|
|
2
|
+
import "../vro-el-config-provider/index.js";
|
|
3
|
+
import "../vro-el-schema-form-dialog/index.js";
|
|
4
|
+
import l from "./vro-el-schema-descs.vue.js";
|
|
5
|
+
import { showVroElSchemaFormDialog as p } from "../vro-el-schema-form-dialog/function-call.js";
|
|
6
|
+
import { useVroElGlobalConfig as n } from "../vro-el-config-provider/config.js";
|
|
7
|
+
const P = i(l), d = () => {
|
|
8
|
+
const { el: e } = n().value.locale, o = e.schemaDescs?.closeText;
|
|
9
|
+
return typeof o == "string" ? o : void 0;
|
|
10
|
+
};
|
|
11
|
+
function w(e, o = {}) {
|
|
12
|
+
return (s, r = {}) => {
|
|
13
|
+
const { dialogProps: t, descProps: c, itemProps: a, ...m } = Object.assign({}, o, r, {
|
|
14
|
+
dialogProps: { ...o.dialogProps, ...r.dialogProps },
|
|
15
|
+
descProps: { ...o.descProps, ...r.descProps },
|
|
16
|
+
itemProps: { ...o.itemProps, ...r.itemProps }
|
|
17
|
+
});
|
|
18
|
+
return p({
|
|
19
|
+
// 详情场景默认只读,需要确认按钮时通过 dialogProps 打开
|
|
20
|
+
showConfirmButton: !1,
|
|
21
|
+
cancelButtonText: d(),
|
|
22
|
+
...t,
|
|
23
|
+
// 内部 schema 放在最后,避免被 dialogProps 覆盖
|
|
24
|
+
schema: {
|
|
25
|
+
details: {
|
|
26
|
+
is: P,
|
|
27
|
+
props: {
|
|
28
|
+
...m,
|
|
29
|
+
data: s,
|
|
30
|
+
schema: e,
|
|
31
|
+
descProps: c,
|
|
32
|
+
itemProps: a
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
w as createVroElSchemaDescsDialog
|
|
41
|
+
};
|