@core-pilot/client-vue 0.0.2 → 0.0.4
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/cjs/client-vue.css +1 -1
- package/dist/cjs/components/bubble-list/index.js +1 -1
- package/dist/cjs/components/bubble-list/index.js.map +1 -1
- package/dist/cjs/components/core-table/index.js +2 -0
- package/dist/cjs/components/core-table/index.js.map +1 -0
- package/dist/cjs/components/core-tips/index.js.map +1 -1
- package/dist/cjs/components/editor-sender/index.js +1 -1
- package/dist/cjs/components/editor-sender/index.js.map +1 -1
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/components/x-markdown/index.js +1 -1
- package/dist/cjs/components/x-markdown/index.js.map +1 -1
- package/dist/cjs/components/x-markdown/utils/parseCorePilotSchema.js +1 -1
- package/dist/cjs/components/x-markdown/utils/parseCorePilotSchema.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/es/locale/lang/zh-cn.js +2 -0
- package/dist/cjs/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/es/locale/lang/zh-cn.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/theme-chalk/src/config-provider.scss.js +2 -0
- package/dist/cjs/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/theme-chalk/src/config-provider.scss.js.map +1 -0
- package/dist/es/client-vue.css +1 -1
- package/dist/es/components/bubble-list/index.js +1 -0
- package/dist/es/components/bubble-list/index.js.map +1 -1
- package/dist/es/components/core-table/index.js +107 -0
- package/dist/es/components/core-table/index.js.map +1 -0
- package/dist/es/components/core-tips/index.js.map +1 -1
- package/dist/es/components/editor-sender/index.js +34 -3
- package/dist/es/components/editor-sender/index.js.map +1 -1
- package/dist/es/components/index.js +2 -0
- package/dist/es/components/index.js.map +1 -1
- package/dist/es/components/x-markdown/index.js +48 -25
- package/dist/es/components/x-markdown/index.js.map +1 -1
- package/dist/es/components/x-markdown/utils/parseCorePilotSchema.js +65 -54
- package/dist/es/components/x-markdown/utils/parseCorePilotSchema.js.map +1 -1
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/es/locale/lang/zh-cn.js +189 -0
- package/dist/es/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/es/locale/lang/zh-cn.js.map +1 -0
- package/dist/es/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/theme-chalk/src/config-provider.scss.js +2 -0
- package/dist/es/node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/theme-chalk/src/config-provider.scss.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
const parseSchema = (schema,
|
|
1
|
+
const parseSchema = (schema, type) => {
|
|
2
2
|
switch (schema.type) {
|
|
3
3
|
case "view":
|
|
4
4
|
return parseView(schema);
|
|
5
5
|
case "form":
|
|
6
6
|
return parseForm(schema);
|
|
7
|
-
case "input":
|
|
8
|
-
return parseInput(schema);
|
|
9
|
-
case "select":
|
|
10
|
-
return parseSelect(schema);
|
|
11
|
-
case "dateTimePicker":
|
|
12
|
-
return parseDate(schema);
|
|
13
7
|
case "card":
|
|
14
8
|
return parseCard(schema);
|
|
15
|
-
case "button":
|
|
16
|
-
return parseButton(schema, parentScope);
|
|
17
9
|
case "table":
|
|
18
10
|
return parseTable(schema);
|
|
11
|
+
case "input":
|
|
12
|
+
return parseInput(schema, type);
|
|
13
|
+
case "select":
|
|
14
|
+
return parseSelect(schema, type);
|
|
15
|
+
case "dateTimePicker":
|
|
16
|
+
return parseDate(schema, type);
|
|
17
|
+
case "button":
|
|
18
|
+
return parseButton(schema, type);
|
|
19
19
|
case "tips":
|
|
20
|
-
return parseTips(schema);
|
|
20
|
+
return parseTips(schema, type);
|
|
21
21
|
case "text":
|
|
22
|
-
return parseText(schema);
|
|
22
|
+
return parseText(schema, type);
|
|
23
23
|
case "formfield":
|
|
24
|
-
return parseFormItem(schema);
|
|
24
|
+
return parseFormItem(schema, type);
|
|
25
25
|
case "column":
|
|
26
|
-
return parseTableColumn(schema);
|
|
26
|
+
return parseTableColumn(schema, type);
|
|
27
27
|
case "row":
|
|
28
|
-
return parseRow(schema);
|
|
28
|
+
return parseRow(schema, type);
|
|
29
29
|
case "col":
|
|
30
|
-
return parseCol(schema);
|
|
30
|
+
return parseCol(schema, type);
|
|
31
31
|
case "result":
|
|
32
|
-
return parseResult(schema);
|
|
32
|
+
return parseResult(schema, type);
|
|
33
33
|
case "tag":
|
|
34
|
-
return parseTag(schema,
|
|
34
|
+
return parseTag(schema, type);
|
|
35
35
|
case "radioGroup":
|
|
36
|
-
return parseRadioGroup(schema);
|
|
36
|
+
return parseRadioGroup(schema, type);
|
|
37
37
|
case "radio":
|
|
38
|
-
return parseRadio(schema);
|
|
38
|
+
return parseRadio(schema, type);
|
|
39
39
|
default:
|
|
40
40
|
const _ = schema;
|
|
41
41
|
console.error(_);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
const parseResult = (schema) => {
|
|
44
|
+
const parseResult = (schema, parentType) => {
|
|
45
45
|
return {
|
|
46
46
|
tagName: "CoreResult",
|
|
47
47
|
type: "element",
|
|
48
|
-
properties: schema.properties
|
|
48
|
+
properties: schema.properties,
|
|
49
|
+
parentScope: parentType
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
52
|
const parseView = (schema) => {
|
|
@@ -63,7 +64,7 @@ const parseView = (schema) => {
|
|
|
63
64
|
const parseForm = (schema) => {
|
|
64
65
|
const children = [];
|
|
65
66
|
schema.fields.forEach((item) => {
|
|
66
|
-
children.push(parseSchema(item));
|
|
67
|
+
children.push(parseSchema(item, "form"));
|
|
67
68
|
});
|
|
68
69
|
const actionChild = {
|
|
69
70
|
tagName: "div",
|
|
@@ -72,7 +73,7 @@ const parseForm = (schema) => {
|
|
|
72
73
|
class: "hitl-btn-list"
|
|
73
74
|
},
|
|
74
75
|
children: schema.actions.map((item) => {
|
|
75
|
-
return parseSchema(item);
|
|
76
|
+
return parseSchema(item, "form");
|
|
76
77
|
})
|
|
77
78
|
};
|
|
78
79
|
children.push(actionChild);
|
|
@@ -86,28 +87,31 @@ const parseForm = (schema) => {
|
|
|
86
87
|
children
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
|
-
const parseInput = (schema) => {
|
|
90
|
+
const parseInput = (schema, type) => {
|
|
90
91
|
return {
|
|
91
92
|
tagName: "ElInput",
|
|
92
93
|
type: "element",
|
|
93
|
-
properties: schema.properties
|
|
94
|
+
properties: schema.properties,
|
|
95
|
+
parentScope: type
|
|
94
96
|
};
|
|
95
97
|
};
|
|
96
|
-
const parseSelect = (schema) => {
|
|
98
|
+
const parseSelect = (schema, type) => {
|
|
97
99
|
return {
|
|
98
100
|
tagName: "ElSelect",
|
|
99
101
|
type: "element",
|
|
100
|
-
properties: schema.properties
|
|
102
|
+
properties: schema.properties,
|
|
103
|
+
parentScope: type
|
|
101
104
|
};
|
|
102
105
|
};
|
|
103
|
-
const parseDate = (schema) => {
|
|
106
|
+
const parseDate = (schema, type) => {
|
|
104
107
|
return {
|
|
105
108
|
tagName: "ElDatePicker",
|
|
106
109
|
type: "element",
|
|
107
|
-
properties: schema.properties
|
|
110
|
+
properties: schema.properties,
|
|
111
|
+
parentScope: type
|
|
108
112
|
};
|
|
109
113
|
};
|
|
110
|
-
const parseButton = (schema,
|
|
114
|
+
const parseButton = (schema, type) => {
|
|
111
115
|
var _a, _b;
|
|
112
116
|
return {
|
|
113
117
|
tagName: "ElButton",
|
|
@@ -117,10 +121,10 @@ const parseButton = (schema, parentScope) => {
|
|
|
117
121
|
action: schema.action,
|
|
118
122
|
payload: schema.payload
|
|
119
123
|
},
|
|
120
|
-
// TODO
|
|
121
|
-
parentScope,
|
|
124
|
+
// TODO 记录父级作用域,用于在form、table 组件中使用
|
|
125
|
+
parentScope: type,
|
|
122
126
|
children: (_b = (_a = schema.children) == null ? void 0 : _a.map) == null ? void 0 : _b.call(_a, (item) => {
|
|
123
|
-
return parseSchema(item);
|
|
127
|
+
return parseSchema(item, type);
|
|
124
128
|
})
|
|
125
129
|
};
|
|
126
130
|
};
|
|
@@ -134,14 +138,15 @@ const parseCard = (schema) => {
|
|
|
134
138
|
})
|
|
135
139
|
};
|
|
136
140
|
};
|
|
137
|
-
const parseTableColumn = (schema) => {
|
|
141
|
+
const parseTableColumn = (schema, parentType) => {
|
|
138
142
|
var _a;
|
|
139
143
|
return {
|
|
140
144
|
tagName: "ElTableColumn",
|
|
141
145
|
type: "element",
|
|
142
146
|
properties: schema.properties,
|
|
147
|
+
parentScope: parentType,
|
|
143
148
|
children: (_a = schema.children) == null ? void 0 : _a.map((item) => {
|
|
144
|
-
return parseSchema(item,
|
|
149
|
+
return parseSchema(item, parentType);
|
|
145
150
|
})
|
|
146
151
|
};
|
|
147
152
|
};
|
|
@@ -151,22 +156,24 @@ const parseTable = (schema) => {
|
|
|
151
156
|
type: "element",
|
|
152
157
|
properties: schema.properties,
|
|
153
158
|
children: schema.children.map((item) => {
|
|
154
|
-
return parseSchema(item);
|
|
159
|
+
return parseSchema(item, "table");
|
|
155
160
|
})
|
|
156
161
|
};
|
|
157
162
|
};
|
|
158
|
-
const parseTips = (schema) => {
|
|
163
|
+
const parseTips = (schema, parentType) => {
|
|
159
164
|
return {
|
|
160
165
|
tagName: "CoreTips",
|
|
161
166
|
type: "element",
|
|
162
|
-
properties: schema.properties
|
|
167
|
+
properties: schema.properties,
|
|
168
|
+
parentScope: parentType
|
|
163
169
|
};
|
|
164
170
|
};
|
|
165
|
-
const parseText = (schema) => {
|
|
171
|
+
const parseText = (schema, parentType) => {
|
|
166
172
|
return {
|
|
167
173
|
tagName: "CoreText",
|
|
168
174
|
type: "element",
|
|
169
|
-
properties: schema.properties
|
|
175
|
+
properties: schema.properties,
|
|
176
|
+
parentScope: parentType
|
|
170
177
|
};
|
|
171
178
|
};
|
|
172
179
|
const injectFormProp = (schema, prop) => {
|
|
@@ -180,7 +187,7 @@ const injectFormProp = (schema, prop) => {
|
|
|
180
187
|
};
|
|
181
188
|
});
|
|
182
189
|
};
|
|
183
|
-
const parseFormItem = (schema) => {
|
|
190
|
+
const parseFormItem = (schema, parentType) => {
|
|
184
191
|
const prop = schema.properties.prop;
|
|
185
192
|
const children = injectFormProp(schema.children, prop);
|
|
186
193
|
const formatRules = (rules) => {
|
|
@@ -202,63 +209,67 @@ const parseFormItem = (schema) => {
|
|
|
202
209
|
...schema.properties,
|
|
203
210
|
rules: formatRules(schema.properties.rules)
|
|
204
211
|
},
|
|
212
|
+
parentScope: parentType,
|
|
205
213
|
children: [
|
|
206
|
-
parseSchema(children[0])
|
|
214
|
+
parseSchema(children[0], parentType)
|
|
207
215
|
]
|
|
208
216
|
};
|
|
209
217
|
};
|
|
210
|
-
const parseRow = (schema) => {
|
|
218
|
+
const parseRow = (schema, parentType) => {
|
|
211
219
|
return {
|
|
212
220
|
tagName: "ElRow",
|
|
213
221
|
type: "element",
|
|
214
222
|
properties: schema.properties,
|
|
215
223
|
children: schema.children.map((item) => {
|
|
216
|
-
return parseSchema(item);
|
|
224
|
+
return parseSchema(item, parentType);
|
|
217
225
|
})
|
|
218
226
|
};
|
|
219
227
|
};
|
|
220
|
-
const parseCol = (schema) => {
|
|
228
|
+
const parseCol = (schema, parentType) => {
|
|
221
229
|
return {
|
|
222
230
|
tagName: "ElCol",
|
|
223
231
|
type: "element",
|
|
224
232
|
properties: schema.properties,
|
|
233
|
+
parentScope: parentType,
|
|
225
234
|
children: schema.children.map((item) => {
|
|
226
|
-
return parseSchema(item);
|
|
235
|
+
return parseSchema(item, parentType);
|
|
227
236
|
})
|
|
228
237
|
};
|
|
229
238
|
};
|
|
230
|
-
const parseRadioGroup = (schema) => {
|
|
239
|
+
const parseRadioGroup = (schema, parentType) => {
|
|
231
240
|
var _a;
|
|
232
241
|
return {
|
|
233
242
|
tagName: "ElRadioGroup",
|
|
234
243
|
type: "element",
|
|
235
244
|
properties: schema.properties,
|
|
245
|
+
parentScope: parentType,
|
|
236
246
|
children: (_a = schema.properties.options) == null ? void 0 : _a.map((item) => {
|
|
237
247
|
return parseSchema({
|
|
238
248
|
type: "radio",
|
|
239
249
|
properties: item
|
|
240
|
-
});
|
|
250
|
+
}, parentType);
|
|
241
251
|
})
|
|
242
252
|
};
|
|
243
253
|
};
|
|
244
|
-
const parseRadio = (schema) => {
|
|
254
|
+
const parseRadio = (schema, parentType) => {
|
|
245
255
|
return {
|
|
246
256
|
tagName: "ElRadio",
|
|
247
257
|
type: "element",
|
|
248
|
-
properties: schema.properties
|
|
258
|
+
properties: schema.properties,
|
|
259
|
+
parentScope: parentType
|
|
249
260
|
};
|
|
250
261
|
};
|
|
251
|
-
const parseTag = (schema,
|
|
262
|
+
const parseTag = (schema, parentType) => {
|
|
252
263
|
const formatSchema = {
|
|
253
264
|
tagName: "ElTag",
|
|
254
265
|
type: "element",
|
|
255
|
-
value: null,
|
|
256
266
|
properties: schema.properties,
|
|
267
|
+
parentScope: parentType,
|
|
257
268
|
children: schema.children.map((item) => {
|
|
258
|
-
return parseSchema(item);
|
|
269
|
+
return parseSchema(item, parentType);
|
|
259
270
|
})
|
|
260
271
|
};
|
|
261
|
-
if (
|
|
272
|
+
if (parentType === "table") {
|
|
262
273
|
formatSchema.value = schema.value;
|
|
263
274
|
}
|
|
264
275
|
return formatSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseCorePilotSchema.js","sources":["../../../../../src/components/x-markdown/utils/parseCorePilotSchema.ts"],"sourcesContent":["import { \n FormSchema, \n ViewSchema,\n FormFieldSchema, \n CardSchema, \n ButtonSchema, \n TableSchema, \n TipsSchema, \n TextSchema, \n InputSchema, \n SelectSchema, \n DateTimePickerSchema, \n TableColumnSchema, \n RowSchema, \n ColSchema, \n ResultSchema, \n TagSchema,\n RadioGroupSchema,\n RadioSchema\n} from '@/types/index';\n\ntype ElementSchema = ViewSchema<any> | FormSchema | FormFieldSchema | CardSchema | ButtonSchema | TableSchema | TipsSchema | TextSchema | InputSchema | SelectSchema | DateTimePickerSchema | TableColumnSchema | RowSchema | ColSchema | ResultSchema | TagSchema | RadioGroupSchema | RadioSchema;\n\nconst parseSchema = (schema: ElementSchema, parentScope?: string) => {\n switch (schema.type) {\n case 'view':\n return parseView(schema);\n case 'form':\n return parseForm(schema);\n case 'input':\n return parseInput(schema);\n case 'select':\n return parseSelect(schema);\n case 'dateTimePicker':\n return parseDate(schema);\n case 'card':\n return parseCard(schema);\n case 'button':\n return parseButton(schema, parentScope);\n case 'table':\n return parseTable(schema);\n case 'tips':\n return parseTips(schema);\n case 'text':\n return parseText(schema);\n case 'formfield':\n return parseFormItem(schema);\n case 'column':\n return parseTableColumn(schema);\n case 'row':\n return parseRow(schema);\n case 'col':\n return parseCol(schema);\n case 'result':\n return parseResult(schema);\n case 'tag':\n return parseTag(schema, parentScope);\n case 'radioGroup':\n return parseRadioGroup(schema);\n case 'radio':\n return parseRadio(schema);\n default:\n const _: never = schema;\n console.error(_);\n }\n}\n\n// result组件解析\nconst parseResult = (schema: ResultSchema) => {\n return {\n tagName: 'CoreResult',\n type: 'element',\n properties: schema.properties,\n }\n}\n\n// view组件解析\nconst parseView = (schema: ViewSchema<any>) => {\n return {\n tagName: 'view',\n type: 'element',\n properties: {\n title: schema.title,\n },\n children: schema.children.map((item) => {\n return parseSchema(item);\n })\n }\n}\n\n// form组件解析\nconst parseForm = (schema: FormSchema) => {\n const children: any[] = [] \n schema.fields.forEach((item) => {\n children.push(parseSchema(item));\n });\n const actionChild = {\n tagName: 'div',\n type: 'element',\n properties: {\n class: 'hitl-btn-list',\n },\n children: schema.actions.map((item) => {\n return parseSchema(item);\n })\n }\n children.push(actionChild);\n return {\n tagName: 'ElForm',\n type: 'element',\n properties: {\n labelPosition: 'right',\n ...schema.properties,\n },\n children,\n }\n}\n\nconst parseInput = (schema: InputSchema) => {\n return {\n tagName: 'ElInput',\n type: 'element',\n properties: schema.properties,\n }\n}\n\nconst parseSelect = (schema: SelectSchema) => {\n return {\n tagName: 'ElSelect',\n type: 'element',\n properties: schema.properties,\n }\n}\n\nconst parseDate = (schema: DateTimePickerSchema) => {\n return {\n tagName: 'ElDatePicker',\n type: 'element',\n properties: schema.properties,\n }\n}\n\nconst parseButton = (schema: ButtonSchema, parentScope?: string) => {\n return {\n tagName: 'ElButton',\n type: 'element',\n properties: {\n ...schema.properties,\n action: schema.action,\n payload: schema.payload,\n },\n // TODO 记录父级作用域,用于在表格中渲染按钮\n parentScope,\n children: schema.children?.map?.((item) => {\n return parseSchema(item);\n })\n }\n}\n\nconst parseCard = (schema: CardSchema) => {\n return {\n tagName: 'ElCard',\n type: 'element',\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item);\n })\n }\n}\n\nconst parseTableColumn = (schema: TableColumnSchema) => {\n return {\n tagName: 'ElTableColumn',\n type: 'element',\n properties: schema.properties,\n children: schema.children?.map((item) => {\n return parseSchema(item, 'table');\n })\n }\n}\n\nconst parseTable = (schema: TableSchema) => {\n return {\n tagName: 'ElTable',\n type: 'element',\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item);\n })\n }\n}\n\n\nconst parseTips = (schema: TipsSchema) => {\n return {\n tagName: 'CoreTips',\n type: 'element',\n properties: schema.properties\n }\n}\n\nconst parseText = (schema: TextSchema) => {\n return {\n tagName: 'CoreText',\n type: 'element',\n properties: schema.properties\n }\n}\nconst injectFormProp = (schema: FormFieldSchema['children'], prop: string) => {\n return schema.map((item) => {\n return {\n ...item,\n properties: {\n ...item.properties,\n formProp: prop,\n }\n }\n })\n}\nconst parseFormItem = (schema: FormFieldSchema) => {\n const prop = schema.properties.prop;\n const children = injectFormProp(schema.children, prop);\n const formatRules = (rules: FormFieldSchema['properties']['rules']) => {\n return rules?.map((item) => {\n if ('pattern' in item && item.pattern) {\n return {\n pattern: new RegExp(item.pattern),\n message: item.message,\n trigger: item.trigger,\n }\n }\n return item;\n })\n }\n return {\n tagName: 'ElFormItem',\n type: 'element',\n properties: {\n ...schema.properties,\n rules: formatRules(schema.properties.rules),\n },\n children: [\n parseSchema(children[0] as InputSchema),\n ]\n }\n}\n\nconst parseRow = (schema: RowSchema) => {\n return {\n tagName: 'ElRow',\n type: 'element',\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item);\n })\n }\n}\n\nconst parseCol = (schema: ColSchema) => {\n return {\n tagName: 'ElCol',\n type: 'element',\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item as ElementSchema);\n })\n }\n}\n\nconst parseRadioGroup = (schema: RadioGroupSchema) => {\n return {\n tagName: 'ElRadioGroup',\n type: 'element',\n properties: schema.properties,\n children: schema.properties.options?.map((item) => {\n return parseSchema({\n type: 'radio',\n properties: item,\n } as RadioSchema);\n })\n }\n}\n\nconst parseRadio = (schema: RadioSchema) => {\n return {\n tagName: 'ElRadio',\n type: 'element',\n properties: schema.properties\n }\n}\n\nconst parseTag = (schema: TagSchema, parentScope?: string) => {\n const formatSchema = {\n tagName: 'ElTag',\n type: 'element',\n value: null,\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item as TextSchema);\n })\n }\n if (parentScope === 'table') {\n formatSchema.value = schema.value;\n }\n return formatSchema;\n}\n\nexport const parseCorePilot = (schema: ViewSchema<any>) => {\n // return parseSchema(mockSchema);\n return parseSchema(schema);\n}"],"names":[],"mappings":"AAuBA,MAAM,cAAc,CAAC,QAAuB,gBAAyB;AACnE,UAAQ,OAAO,MAAA;AAAA,IACb,KAAK;AACH,aAAO,UAAU,MAAM;AAAA,IACzB,KAA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AAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,YAAY,OAAO;AAAA,IACnB,UAAU,OAAO,SAAS,IAAI,CAAC,SAAS;AACtC,aAAO,YAAY,IAAkB;AAAA,IACvC,CAAC;AAAA,EAAA;AAEH,MAAI,gBAAgB,SAAS;AAC3B,iBAAa,QAAQ,OAAO;AAAA,EAC9B;AACA,SAAO;AACT;AAEO,MAAM,iBAAiB,CAAC,WAA4B;AAEzD,SAAO,YAAY,MAAM;AAC3B;"}
|
|
1
|
+
{"version":3,"file":"parseCorePilotSchema.js","sources":["../../../../../src/components/x-markdown/utils/parseCorePilotSchema.ts"],"sourcesContent":["import { \n FormSchema, \n ViewSchema,\n FormFieldSchema, \n CardSchema, \n ButtonSchema, \n TableSchema, \n TipsSchema, \n TextSchema, \n InputSchema, \n SelectSchema, \n DateTimePickerSchema, \n TableColumnSchema, \n RowSchema, \n ColSchema, \n ResultSchema, \n TagSchema,\n RadioGroupSchema,\n RadioSchema\n} from '@/types/index';\n\ntype ElementSchema = ViewSchema<any> | FormSchema | FormFieldSchema | CardSchema | ButtonSchema | TableSchema | TipsSchema | TextSchema | InputSchema | SelectSchema | DateTimePickerSchema | TableColumnSchema | RowSchema | ColSchema | ResultSchema | TagSchema | RadioGroupSchema | RadioSchema;\n\ntype ParentScopeType = 'form' | 'table';\n\nconst parseSchema = (schema: ElementSchema, type?: ParentScopeType) => {\n switch (schema.type) {\n case 'view':\n return parseView(schema);\n case 'form':\n return parseForm(schema);\n case 'card':\n return parseCard(schema);\n case 'table':\n return parseTable(schema);\n case 'input':\n return parseInput(schema, type);\n case 'select':\n return parseSelect(schema, type);\n case 'dateTimePicker':\n return parseDate(schema, type);\n case 'button':\n return parseButton(schema, type);\n case 'tips':\n return parseTips(schema, type);\n case 'text':\n return parseText(schema, type);\n case 'formfield':\n return parseFormItem(schema, type);\n case 'column':\n return parseTableColumn(schema, type);\n case 'row':\n return parseRow(schema, type);\n case 'col':\n return parseCol(schema, type);\n case 'result':\n return parseResult(schema, type);\n case 'tag':\n return parseTag(schema, type);\n case 'radioGroup':\n return parseRadioGroup(schema, type);\n case 'radio':\n return parseRadio(schema, type);\n default:\n const _: never = schema;\n console.error(_);\n }\n}\n\n// result组件解析\nconst parseResult = (schema: ResultSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'CoreResult',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n }\n}\n\n// view组件解析\nconst parseView = (schema: ViewSchema<any>) => {\n return {\n tagName: 'view',\n type: 'element',\n properties: {\n title: schema.title,\n },\n children: schema.children.map((item) => {\n return parseSchema(item);\n })\n }\n}\n\n// form组件解析\nconst parseForm = (schema: FormSchema) => {\n const children: any[] = [] \n schema.fields.forEach((item) => {\n children.push(parseSchema(item, 'form'));\n });\n const actionChild = {\n tagName: 'div',\n type: 'element',\n properties: {\n class: 'hitl-btn-list',\n },\n children: schema.actions.map((item) => {\n return parseSchema(item, 'form');\n })\n }\n children.push(actionChild);\n return {\n tagName: 'ElForm',\n type: 'element',\n properties: {\n labelPosition: 'right',\n ...schema.properties,\n },\n children,\n }\n}\n\nconst parseInput = (schema: InputSchema, type?: ParentScopeType) => {\n return {\n tagName: 'ElInput',\n type: 'element',\n properties: schema.properties,\n parentScope: type,\n }\n}\n\nconst parseSelect = (schema: SelectSchema, type?: ParentScopeType) => {\n return {\n tagName: 'ElSelect',\n type: 'element',\n properties: schema.properties,\n parentScope: type,\n }\n}\n\nconst parseDate = (schema: DateTimePickerSchema, type?: ParentScopeType) => {\n return {\n tagName: 'ElDatePicker',\n type: 'element',\n properties: schema.properties,\n parentScope: type,\n }\n}\n\nconst parseButton = (schema: ButtonSchema, type?: ParentScopeType) => {\n return {\n tagName: 'ElButton',\n type: 'element',\n properties: {\n ...schema.properties,\n action: schema.action,\n payload: schema.payload,\n },\n // TODO 记录父级作用域,用于在form、table 组件中使用\n parentScope: type,\n children: schema.children?.map?.((item) => {\n return parseSchema(item, type);\n })\n }\n}\n\nconst parseCard = (schema: CardSchema) => {\n return {\n tagName: 'ElCard',\n type: 'element',\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item);\n })\n }\n}\n\nconst parseTableColumn = (schema: TableColumnSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'ElTableColumn',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n children: schema.children?.map((item) => {\n return parseSchema(item, parentType);\n })\n }\n}\n\nconst parseTable = (schema: TableSchema) => {\n return {\n tagName: 'ElTable',\n type: 'element',\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item, 'table');\n })\n }\n}\n\n\nconst parseTips = (schema: TipsSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'CoreTips',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n }\n}\n\nconst parseText = (schema: TextSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'CoreText',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n }\n}\nconst injectFormProp = (schema: FormFieldSchema['children'], prop: string) => {\n return schema.map((item) => {\n return {\n ...item,\n properties: {\n ...item.properties,\n formProp: prop,\n },\n }\n })\n}\nconst parseFormItem = (schema: FormFieldSchema, parentType?: ParentScopeType) => {\n const prop = schema.properties.prop;\n const children = injectFormProp(schema.children, prop);\n const formatRules = (rules: FormFieldSchema['properties']['rules']) => {\n return rules?.map((item) => {\n if ('pattern' in item && item.pattern) {\n return {\n pattern: new RegExp(item.pattern),\n message: item.message,\n trigger: item.trigger,\n }\n }\n return item;\n })\n }\n return {\n tagName: 'ElFormItem',\n type: 'element',\n properties: {\n ...schema.properties,\n rules: formatRules(schema.properties.rules),\n },\n parentScope: parentType,\n children: [\n parseSchema(children[0] as InputSchema, parentType),\n ]\n }\n}\n\nconst parseRow = (schema: RowSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'ElRow',\n type: 'element',\n properties: schema.properties,\n children: schema.children.map((item) => {\n return parseSchema(item, parentType);\n })\n }\n}\n\nconst parseCol = (schema: ColSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'ElCol',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n children: schema.children.map((item) => {\n return parseSchema(item as ElementSchema, parentType);\n })\n }\n}\n\nconst parseRadioGroup = (schema: RadioGroupSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'ElRadioGroup',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n children: schema.properties.options?.map((item) => {\n return parseSchema({\n type: 'radio',\n properties: item,\n } as RadioSchema, parentType);\n })\n }\n}\n\nconst parseRadio = (schema: RadioSchema, parentType?: ParentScopeType) => {\n return {\n tagName: 'ElRadio',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n }\n}\n\nconst parseTag = (schema: TagSchema, parentType?: ParentScopeType) => {\n const formatSchema = {\n tagName: 'ElTag',\n type: 'element',\n properties: schema.properties,\n parentScope: parentType,\n children: schema.children.map((item) => {\n return parseSchema(item as TextSchema, parentType);\n })\n }\n if (parentType === 'table') {\n formatSchema.value = schema.value;\n }\n return formatSchema;\n}\n\nexport const parseCorePilot = (schema: ViewSchema<any>) => {\n return parseSchema(schema);\n}"],"names":[],"mappings":"AAyBA,MAAM,cAAc,CAAC,QAAuB,SAA2B;AACrE,UAAQ,OAAO,MAAA;AAAA,IACb,KAAK;AACH,aAAO,UAAU,MAAM;AAAA,IACzB,KAAK;AACH,aAAO,UAAU,MAAM;AAAA,IACzB,KAAK;AACH,aAAO,UAAU,MAAM;AAAA,IACzB,KAAK;AACH,aAAO,WAAW,MAAM;AAAA,IAC1B,KAAK;AACH,aAAO,WAAW,QAAQ,IAAI;AAAA,IAChC,KAAK;AACH,aAAO,YAAY,QAAQ,IAAI;AAAA,IACjC,KAAK;AACH,aAAO,UAAU,QAAQ,IAAI;AAAA,IAC/B,KAAK;AACH,aAAO,YAAY,QAAQ,IAAI;AAAA,IACjC,KAAK;AACH,aAAO,UAAU,QAAQ,IAAI;AAAA,IAC/B,KAAK;AACH,aAAO,UAAU,QAAQ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,QAAM,eAAe;AAAA,IACnB,SAAS;AAAA,IACT,MAAM;AAAA,IACN,YAAY,OAAO;AAAA,IACnB,aAAa;AAAA,IACb,UAAU,OAAO,SAAS,IAAI,CAAC,SAAS;AACtC,aAAO,YAAY,MAAoB,UAAU;AAAA,IACnD,CAAC;AAAA,EAAA;AAEH,MAAI,eAAe,SAAS;AAC1B,iBAAa,QAAQ,OAAO;AAAA,EAC9B;AACA,SAAO;AACT;AAEO,MAAM,iBAAiB,CAAC,WAA4B;AACzD,SAAO,YAAY,MAAM;AAC3B;"}
|
package/dist/es/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { default as default6 } from "./components/file-card/index.js";
|
|
|
7
7
|
import { default as default7 } from "./components/core-text/index.js";
|
|
8
8
|
import { default as default8 } from "./components/core-tips/index.js";
|
|
9
9
|
import { default as default9 } from "./components/core-result/index.js";
|
|
10
|
+
import { default as default10 } from "./components/core-table/index.js";
|
|
10
11
|
const install = (app, options) => {
|
|
11
12
|
Object.keys(index$1).forEach((name) => {
|
|
12
13
|
app.component(name, index$1[name]);
|
|
@@ -18,6 +19,7 @@ const index = {
|
|
|
18
19
|
export {
|
|
19
20
|
default2 as BubbleList,
|
|
20
21
|
default9 as CoreResult,
|
|
22
|
+
default10 as CoreTable,
|
|
21
23
|
default7 as CoreText,
|
|
22
24
|
default8 as CoreTips,
|
|
23
25
|
default5 as EditorSender,
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { type Plugin } from 'vue';\nimport * as Components from './components';\n\nexport * from './components';\n\nexport const install: Plugin = (app, options) => {\n Object.keys(Components).forEach((name) => {\n app.component(name, Components[name]);\n });\n};\n\nexport default {\n install,\n} as Plugin;\n"],"names":["Components"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { type Plugin } from 'vue';\nimport * as Components from './components';\n\nexport * from './components';\n\nexport const install: Plugin = (app, options) => {\n Object.keys(Components).forEach((name) => {\n app.component(name, Components[name]);\n });\n};\n\nexport default {\n install,\n} as Plugin;\n"],"names":["Components"],"mappings":";;;;;;;;;;AAKO,MAAM,UAAkB,CAAC,KAAK,YAAY;AAC/C,SAAO,KAAKA,OAAU,EAAE,QAAQ,CAAC,SAAS;AACxC,QAAI,UAAU,MAAMA,QAAW,IAAI,CAAC;AAAA,EACtC,CAAC;AACH;AAEA,MAAA,QAAe;AAAA,EACb;AACF;"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
var zhCn = {
|
|
2
|
+
name: "zh-cn",
|
|
3
|
+
el: {
|
|
4
|
+
breadcrumb: {
|
|
5
|
+
label: "面包屑"
|
|
6
|
+
},
|
|
7
|
+
colorpicker: {
|
|
8
|
+
confirm: "确定",
|
|
9
|
+
clear: "清空",
|
|
10
|
+
defaultLabel: "颜色选择器",
|
|
11
|
+
description: "当前颜色 {color},按 Enter 键选择新颜色",
|
|
12
|
+
alphaLabel: "选择透明度的值",
|
|
13
|
+
alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
|
|
14
|
+
hueLabel: "选择色相值",
|
|
15
|
+
hueDescription: "色相 {hue}, 当前颜色 {color}",
|
|
16
|
+
svLabel: "选择饱和度与明度的值",
|
|
17
|
+
svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
|
|
18
|
+
predefineDescription: "选择 {value} 作为颜色"
|
|
19
|
+
},
|
|
20
|
+
datepicker: {
|
|
21
|
+
now: "此刻",
|
|
22
|
+
today: "今天",
|
|
23
|
+
cancel: "取消",
|
|
24
|
+
clear: "清空",
|
|
25
|
+
confirm: "确定",
|
|
26
|
+
dateTablePrompt: "使用方向键与 Enter 键可选择日期",
|
|
27
|
+
monthTablePrompt: "使用方向键与 Enter 键可选择月份",
|
|
28
|
+
yearTablePrompt: "使用方向键与 Enter 键可选择年份",
|
|
29
|
+
selectedDate: "已选日期",
|
|
30
|
+
selectDate: "选择日期",
|
|
31
|
+
selectTime: "选择时间",
|
|
32
|
+
startDate: "开始日期",
|
|
33
|
+
startTime: "开始时间",
|
|
34
|
+
endDate: "结束日期",
|
|
35
|
+
endTime: "结束时间",
|
|
36
|
+
prevYear: "前一年",
|
|
37
|
+
nextYear: "后一年",
|
|
38
|
+
prevMonth: "上个月",
|
|
39
|
+
nextMonth: "下个月",
|
|
40
|
+
year: "年",
|
|
41
|
+
month1: "1 月",
|
|
42
|
+
month2: "2 月",
|
|
43
|
+
month3: "3 月",
|
|
44
|
+
month4: "4 月",
|
|
45
|
+
month5: "5 月",
|
|
46
|
+
month6: "6 月",
|
|
47
|
+
month7: "7 月",
|
|
48
|
+
month8: "8 月",
|
|
49
|
+
month9: "9 月",
|
|
50
|
+
month10: "10 月",
|
|
51
|
+
month11: "11 月",
|
|
52
|
+
month12: "12 月",
|
|
53
|
+
weeks: {
|
|
54
|
+
sun: "日",
|
|
55
|
+
mon: "一",
|
|
56
|
+
tue: "二",
|
|
57
|
+
wed: "三",
|
|
58
|
+
thu: "四",
|
|
59
|
+
fri: "五",
|
|
60
|
+
sat: "六"
|
|
61
|
+
},
|
|
62
|
+
weeksFull: {
|
|
63
|
+
sun: "星期日",
|
|
64
|
+
mon: "星期一",
|
|
65
|
+
tue: "星期二",
|
|
66
|
+
wed: "星期三",
|
|
67
|
+
thu: "星期四",
|
|
68
|
+
fri: "星期五",
|
|
69
|
+
sat: "星期六"
|
|
70
|
+
},
|
|
71
|
+
months: {
|
|
72
|
+
jan: "一月",
|
|
73
|
+
feb: "二月",
|
|
74
|
+
mar: "三月",
|
|
75
|
+
apr: "四月",
|
|
76
|
+
may: "五月",
|
|
77
|
+
jun: "六月",
|
|
78
|
+
jul: "七月",
|
|
79
|
+
aug: "八月",
|
|
80
|
+
sep: "九月",
|
|
81
|
+
oct: "十月",
|
|
82
|
+
nov: "十一月",
|
|
83
|
+
dec: "十二月"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
inputNumber: {
|
|
87
|
+
decrease: "减少数值",
|
|
88
|
+
increase: "增加数值"
|
|
89
|
+
},
|
|
90
|
+
select: {
|
|
91
|
+
loading: "加载中",
|
|
92
|
+
noMatch: "无匹配数据",
|
|
93
|
+
noData: "无数据",
|
|
94
|
+
placeholder: "请选择"
|
|
95
|
+
},
|
|
96
|
+
mention: {
|
|
97
|
+
loading: "加载中"
|
|
98
|
+
},
|
|
99
|
+
dropdown: {
|
|
100
|
+
toggleDropdown: "切换下拉选项"
|
|
101
|
+
},
|
|
102
|
+
cascader: {
|
|
103
|
+
noMatch: "无匹配数据",
|
|
104
|
+
loading: "加载中",
|
|
105
|
+
placeholder: "请选择",
|
|
106
|
+
noData: "暂无数据"
|
|
107
|
+
},
|
|
108
|
+
pagination: {
|
|
109
|
+
goto: "前往",
|
|
110
|
+
pagesize: "条/页",
|
|
111
|
+
total: "共 {total} 条",
|
|
112
|
+
pageClassifier: "页",
|
|
113
|
+
page: "页",
|
|
114
|
+
prev: "上一页",
|
|
115
|
+
next: "下一页",
|
|
116
|
+
currentPage: "第 {pager} 页",
|
|
117
|
+
prevPages: "向前 {pager} 页",
|
|
118
|
+
nextPages: "向后 {pager} 页",
|
|
119
|
+
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
120
|
+
},
|
|
121
|
+
dialog: {
|
|
122
|
+
close: "关闭此对话框"
|
|
123
|
+
},
|
|
124
|
+
drawer: {
|
|
125
|
+
close: "关闭此对话框"
|
|
126
|
+
},
|
|
127
|
+
messagebox: {
|
|
128
|
+
title: "提示",
|
|
129
|
+
confirm: "确定",
|
|
130
|
+
cancel: "取消",
|
|
131
|
+
error: "输入的数据不合法!",
|
|
132
|
+
close: "关闭此对话框"
|
|
133
|
+
},
|
|
134
|
+
upload: {
|
|
135
|
+
deleteTip: "按 Delete 键可删除",
|
|
136
|
+
delete: "删除",
|
|
137
|
+
preview: "查看图片",
|
|
138
|
+
continue: "继续上传"
|
|
139
|
+
},
|
|
140
|
+
slider: {
|
|
141
|
+
defaultLabel: "滑块介于 {min} 至 {max}",
|
|
142
|
+
defaultRangeStartLabel: "选择起始值",
|
|
143
|
+
defaultRangeEndLabel: "选择结束值"
|
|
144
|
+
},
|
|
145
|
+
table: {
|
|
146
|
+
emptyText: "暂无数据",
|
|
147
|
+
confirmFilter: "筛选",
|
|
148
|
+
resetFilter: "重置",
|
|
149
|
+
clearFilter: "全部",
|
|
150
|
+
sumText: "合计"
|
|
151
|
+
},
|
|
152
|
+
tour: {
|
|
153
|
+
next: "下一步",
|
|
154
|
+
previous: "上一步",
|
|
155
|
+
finish: "结束导览",
|
|
156
|
+
close: "关闭此对话框"
|
|
157
|
+
},
|
|
158
|
+
tree: {
|
|
159
|
+
emptyText: "暂无数据"
|
|
160
|
+
},
|
|
161
|
+
transfer: {
|
|
162
|
+
noMatch: "无匹配数据",
|
|
163
|
+
noData: "无数据",
|
|
164
|
+
titles: ["列表 1", "列表 2"],
|
|
165
|
+
filterPlaceholder: "请输入搜索内容",
|
|
166
|
+
noCheckedFormat: "共 {total} 项",
|
|
167
|
+
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
168
|
+
},
|
|
169
|
+
image: {
|
|
170
|
+
error: "加载失败"
|
|
171
|
+
},
|
|
172
|
+
pageHeader: {
|
|
173
|
+
title: "返回"
|
|
174
|
+
},
|
|
175
|
+
popconfirm: {
|
|
176
|
+
confirmButtonText: "确定",
|
|
177
|
+
cancelButtonText: "取消"
|
|
178
|
+
},
|
|
179
|
+
carousel: {
|
|
180
|
+
leftArrow: "上一张幻灯片",
|
|
181
|
+
rightArrow: "下一张幻灯片",
|
|
182
|
+
indicator: "幻灯片切换至索引 {index}"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
export {
|
|
187
|
+
zhCn as default
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=zh-cn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-cn.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/element-plus@2.11.8_vue@3.5.24_typescript@5.6.3_/node_modules/element-plus/es/locale/lang/zh-cn.mjs"],"sourcesContent":["var zhCn = {\n name: \"zh-cn\",\n el: {\n breadcrumb: {\n label: \"\\u9762\\u5305\\u5C51\"\n },\n colorpicker: {\n confirm: \"\\u786E\\u5B9A\",\n clear: \"\\u6E05\\u7A7A\",\n defaultLabel: \"\\u989C\\u8272\\u9009\\u62E9\\u5668\",\n description: \"\\u5F53\\u524D\\u989C\\u8272 {color}\\uFF0C\\u6309 Enter \\u952E\\u9009\\u62E9\\u65B0\\u989C\\u8272\",\n alphaLabel: \"\\u9009\\u62E9\\u900F\\u660E\\u5EA6\\u7684\\u503C\",\n alphaDescription: \"\\u900F\\u660E\\u5EA6 {alpha}, \\u5F53\\u524D\\u989C\\u8272 {color}\",\n hueLabel: \"\\u9009\\u62E9\\u8272\\u76F8\\u503C\",\n hueDescription: \"\\u8272\\u76F8 {hue}, \\u5F53\\u524D\\u989C\\u8272 {color}\",\n svLabel: \"\\u9009\\u62E9\\u9971\\u548C\\u5EA6\\u4E0E\\u660E\\u5EA6\\u7684\\u503C\",\n svDescription: \"\\u9971\\u548C\\u5EA6 {saturation}, \\u660E\\u5EA6 {brightness}, \\u5F53\\u524D\\u989C\\u8272 {color}\",\n predefineDescription: \"\\u9009\\u62E9 {value} \\u4F5C\\u4E3A\\u989C\\u8272\"\n },\n datepicker: {\n now: \"\\u6B64\\u523B\",\n today: \"\\u4ECA\\u5929\",\n cancel: \"\\u53D6\\u6D88\",\n clear: \"\\u6E05\\u7A7A\",\n confirm: \"\\u786E\\u5B9A\",\n dateTablePrompt: \"\\u4F7F\\u7528\\u65B9\\u5411\\u952E\\u4E0E Enter \\u952E\\u53EF\\u9009\\u62E9\\u65E5\\u671F\",\n monthTablePrompt: \"\\u4F7F\\u7528\\u65B9\\u5411\\u952E\\u4E0E Enter \\u952E\\u53EF\\u9009\\u62E9\\u6708\\u4EFD\",\n yearTablePrompt: \"\\u4F7F\\u7528\\u65B9\\u5411\\u952E\\u4E0E Enter \\u952E\\u53EF\\u9009\\u62E9\\u5E74\\u4EFD\",\n selectedDate: \"\\u5DF2\\u9009\\u65E5\\u671F\",\n selectDate: \"\\u9009\\u62E9\\u65E5\\u671F\",\n selectTime: \"\\u9009\\u62E9\\u65F6\\u95F4\",\n startDate: \"\\u5F00\\u59CB\\u65E5\\u671F\",\n startTime: \"\\u5F00\\u59CB\\u65F6\\u95F4\",\n endDate: \"\\u7ED3\\u675F\\u65E5\\u671F\",\n endTime: \"\\u7ED3\\u675F\\u65F6\\u95F4\",\n prevYear: \"\\u524D\\u4E00\\u5E74\",\n nextYear: \"\\u540E\\u4E00\\u5E74\",\n prevMonth: \"\\u4E0A\\u4E2A\\u6708\",\n nextMonth: \"\\u4E0B\\u4E2A\\u6708\",\n year: \"\\u5E74\",\n month1: \"1 \\u6708\",\n month2: \"2 \\u6708\",\n month3: \"3 \\u6708\",\n month4: \"4 \\u6708\",\n month5: \"5 \\u6708\",\n month6: \"6 \\u6708\",\n month7: \"7 \\u6708\",\n month8: \"8 \\u6708\",\n month9: \"9 \\u6708\",\n month10: \"10 \\u6708\",\n month11: \"11 \\u6708\",\n month12: \"12 \\u6708\",\n weeks: {\n sun: \"\\u65E5\",\n mon: \"\\u4E00\",\n tue: \"\\u4E8C\",\n wed: \"\\u4E09\",\n thu: \"\\u56DB\",\n fri: \"\\u4E94\",\n sat: \"\\u516D\"\n },\n weeksFull: {\n sun: \"\\u661F\\u671F\\u65E5\",\n mon: \"\\u661F\\u671F\\u4E00\",\n tue: \"\\u661F\\u671F\\u4E8C\",\n wed: \"\\u661F\\u671F\\u4E09\",\n thu: \"\\u661F\\u671F\\u56DB\",\n fri: \"\\u661F\\u671F\\u4E94\",\n sat: \"\\u661F\\u671F\\u516D\"\n },\n months: {\n jan: \"\\u4E00\\u6708\",\n feb: \"\\u4E8C\\u6708\",\n mar: \"\\u4E09\\u6708\",\n apr: \"\\u56DB\\u6708\",\n may: \"\\u4E94\\u6708\",\n jun: \"\\u516D\\u6708\",\n jul: \"\\u4E03\\u6708\",\n aug: \"\\u516B\\u6708\",\n sep: \"\\u4E5D\\u6708\",\n oct: \"\\u5341\\u6708\",\n nov: \"\\u5341\\u4E00\\u6708\",\n dec: \"\\u5341\\u4E8C\\u6708\"\n }\n },\n inputNumber: {\n decrease: \"\\u51CF\\u5C11\\u6570\\u503C\",\n increase: \"\\u589E\\u52A0\\u6570\\u503C\"\n },\n select: {\n loading: \"\\u52A0\\u8F7D\\u4E2D\",\n noMatch: \"\\u65E0\\u5339\\u914D\\u6570\\u636E\",\n noData: \"\\u65E0\\u6570\\u636E\",\n placeholder: \"\\u8BF7\\u9009\\u62E9\"\n },\n mention: {\n loading: \"\\u52A0\\u8F7D\\u4E2D\"\n },\n dropdown: {\n toggleDropdown: \"\\u5207\\u6362\\u4E0B\\u62C9\\u9009\\u9879\"\n },\n cascader: {\n noMatch: \"\\u65E0\\u5339\\u914D\\u6570\\u636E\",\n loading: \"\\u52A0\\u8F7D\\u4E2D\",\n placeholder: \"\\u8BF7\\u9009\\u62E9\",\n noData: \"\\u6682\\u65E0\\u6570\\u636E\"\n },\n pagination: {\n goto: \"\\u524D\\u5F80\",\n pagesize: \"\\u6761/\\u9875\",\n total: \"\\u5171 {total} \\u6761\",\n pageClassifier: \"\\u9875\",\n page: \"\\u9875\",\n prev: \"\\u4E0A\\u4E00\\u9875\",\n next: \"\\u4E0B\\u4E00\\u9875\",\n currentPage: \"\\u7B2C {pager} \\u9875\",\n prevPages: \"\\u5411\\u524D {pager} \\u9875\",\n nextPages: \"\\u5411\\u540E {pager} \\u9875\",\n deprecationWarning: \"\\u4F60\\u4F7F\\u7528\\u4E86\\u4E00\\u4E9B\\u5DF2\\u88AB\\u5E9F\\u5F03\\u7684\\u7528\\u6CD5\\uFF0C\\u8BF7\\u53C2\\u8003 el-pagination \\u7684\\u5B98\\u65B9\\u6587\\u6863\"\n },\n dialog: {\n close: \"\\u5173\\u95ED\\u6B64\\u5BF9\\u8BDD\\u6846\"\n },\n drawer: {\n close: \"\\u5173\\u95ED\\u6B64\\u5BF9\\u8BDD\\u6846\"\n },\n messagebox: {\n title: \"\\u63D0\\u793A\",\n confirm: \"\\u786E\\u5B9A\",\n cancel: \"\\u53D6\\u6D88\",\n error: \"\\u8F93\\u5165\\u7684\\u6570\\u636E\\u4E0D\\u5408\\u6CD5!\",\n close: \"\\u5173\\u95ED\\u6B64\\u5BF9\\u8BDD\\u6846\"\n },\n upload: {\n deleteTip: \"\\u6309 Delete \\u952E\\u53EF\\u5220\\u9664\",\n delete: \"\\u5220\\u9664\",\n preview: \"\\u67E5\\u770B\\u56FE\\u7247\",\n continue: \"\\u7EE7\\u7EED\\u4E0A\\u4F20\"\n },\n slider: {\n defaultLabel: \"\\u6ED1\\u5757\\u4ECB\\u4E8E {min} \\u81F3 {max}\",\n defaultRangeStartLabel: \"\\u9009\\u62E9\\u8D77\\u59CB\\u503C\",\n defaultRangeEndLabel: \"\\u9009\\u62E9\\u7ED3\\u675F\\u503C\"\n },\n table: {\n emptyText: \"\\u6682\\u65E0\\u6570\\u636E\",\n confirmFilter: \"\\u7B5B\\u9009\",\n resetFilter: \"\\u91CD\\u7F6E\",\n clearFilter: \"\\u5168\\u90E8\",\n sumText: \"\\u5408\\u8BA1\"\n },\n tour: {\n next: \"\\u4E0B\\u4E00\\u6B65\",\n previous: \"\\u4E0A\\u4E00\\u6B65\",\n finish: \"\\u7ED3\\u675F\\u5BFC\\u89C8\",\n close: \"\\u5173\\u95ED\\u6B64\\u5BF9\\u8BDD\\u6846\"\n },\n tree: {\n emptyText: \"\\u6682\\u65E0\\u6570\\u636E\"\n },\n transfer: {\n noMatch: \"\\u65E0\\u5339\\u914D\\u6570\\u636E\",\n noData: \"\\u65E0\\u6570\\u636E\",\n titles: [\"\\u5217\\u8868 1\", \"\\u5217\\u8868 2\"],\n filterPlaceholder: \"\\u8BF7\\u8F93\\u5165\\u641C\\u7D22\\u5185\\u5BB9\",\n noCheckedFormat: \"\\u5171 {total} \\u9879\",\n hasCheckedFormat: \"\\u5DF2\\u9009 {checked}/{total} \\u9879\"\n },\n image: {\n error: \"\\u52A0\\u8F7D\\u5931\\u8D25\"\n },\n pageHeader: {\n title: \"\\u8FD4\\u56DE\"\n },\n popconfirm: {\n confirmButtonText: \"\\u786E\\u5B9A\",\n cancelButtonText: \"\\u53D6\\u6D88\"\n },\n carousel: {\n leftArrow: \"\\u4E0A\\u4E00\\u5F20\\u5E7B\\u706F\\u7247\",\n rightArrow: \"\\u4E0B\\u4E00\\u5F20\\u5E7B\\u706F\\u7247\",\n indicator: \"\\u5E7B\\u706F\\u7247\\u5207\\u6362\\u81F3\\u7D22\\u5F15 {index}\"\n }\n }\n};\n\nexport { zhCn as default };\n//# sourceMappingURL=zh-cn.mjs.map\n"],"names":[],"mappings":"AAAG,IAAC,OAAO;AAAA,EACT,MAAM;AAAA,EACN,IAAI;AAAA,IACF,YAAY;AAAA,MACV,OAAO;AAAA,IACb;AAAA,IACI,aAAa;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,MACP,cAAc;AAAA,MACd,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,kBAAkB;AAAA,MAClB,UAAU;AAAA,MACV,gBAAgB;AAAA,MAChB,SAAS;AAAA,MACT,eAAe;AAAA,MACf,sBAAsB;AAAA,IAC5B;AAAA,IACI,YAAY;AAAA,MACV,KAAK;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,SAAS;AAAA,MACT,iBAAiB;AAAA,MACjB,kBAAkB;AAAA,MAClB,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,WAAW;AAAA,MACX,WAAW;AAAA,MACX,SAAS;AAAA,MACT,SAAS;AAAA,MACT,UAAU;AAAA,MACV,UAAU;AAAA,MACV,WAAW;AAAA,MACX,WAAW;AAAA,MACX,MA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js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|