free-fe-core-modules 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Basic/EIcon.vue +2 -4
- package/components/Basic/LeveledMenus.vue +0 -5
- package/components/Basic/SummaryHead.vue +10 -1
- package/components/Dialog/BasicDialog.vue +1 -1
- package/components/SlidingCarousel/index.vue +0 -1
- package/components/SlidingNews/index.vue +0 -1
- package/components/ThemeSwitch/index.vue +7 -5
- package/composible/useObjectData.js +69 -0
- package/free-field/Fields/AgreementCheck.js +170 -0
- package/free-field/Fields/ApiCall.js +123 -0
- package/{field-components/Fields/Boolean.vue → free-field/Fields/Boolean.js} +40 -46
- package/free-field/Fields/Category.js +28 -0
- package/free-field/Fields/Check.js +106 -0
- package/free-field/Fields/Customize.js +87 -0
- package/free-field/Fields/Date.js +133 -0
- package/free-field/Fields/DateRange.js +226 -0
- package/free-field/Fields/DynamicList.js +565 -0
- package/{field-components → free-field}/Fields/File.vue +1 -1
- package/{field-components → free-field}/Fields/FileList.vue +1 -1
- package/{field-components → free-field}/Fields/FileListCombined.vue +1 -1
- package/{field-components → free-field}/Fields/FixedList.vue +78 -83
- package/{field-components → free-field}/Fields/ImageList.vue +1 -1
- package/{field-components → free-field}/Fields/ImageListCombined.vue +1 -1
- package/free-field/Fields/InputFieldList.vue +324 -0
- package/{field-components → free-field}/Fields/Labels.vue +24 -15
- package/{field-components → free-field}/Fields/MixedTable.vue +53 -61
- package/free-field/Fields/Number.js +167 -0
- package/free-field/Fields/Password.js +81 -0
- package/{field-components → free-field}/Fields/Permission.vue +17 -13
- package/{field-components → free-field}/Fields/PermissionEditor.vue +63 -105
- package/{field-components → free-field}/Fields/QueryFilters.vue +65 -48
- package/{field-components → free-field}/Fields/RadioList.vue +36 -12
- package/{field-components → free-field}/Fields/Rich.vue +104 -114
- package/{field-components → free-field}/Fields/Search.vue +35 -26
- package/{field-components → free-field}/Fields/Select.vue +116 -87
- package/{field-components → free-field}/Fields/SelectionChain.vue +89 -67
- package/{field-components/Fields/Separator.vue → free-field/Fields/Separator.js} +11 -16
- package/{field-components → free-field}/Fields/SingleList.vue +27 -21
- package/free-field/Fields/Static.js +27 -0
- package/free-field/Fields/String.js +105 -0
- package/free-field/Fields/Text.js +80 -0
- package/{field-components → free-field}/Fields/Time.vue +59 -43
- package/{field-components → free-field}/Fields/TimeRange.vue +107 -92
- package/{field-components → free-field}/Fields/UltimateFile.vue +1 -1
- package/free-field/Fields/Year.js +137 -0
- package/{field-components → free-field}/Fields/YearRange.vue +63 -73
- package/{field-components → free-field}/Fields/index.js +16 -18
- package/free-field/composible/fieldWrapper.js +221 -0
- package/free-field/composible/freeFieldLabel.js +22 -0
- package/free-field/composible/readonlyContent.js +36 -0
- package/free-field/composible/useFileSizeUtils.js +52 -0
- package/free-field/composible/useFreeField.js +143 -0
- package/{field-components → free-field}/index.js +3 -3
- package/i18n/en-us/index.js +1 -1
- package/i18n/zh-cn/index.js +1 -1
- package/index.js +1 -4
- package/package.json +1 -1
- package/router/error/data.js +4 -1
- package/view/dict/index.vue +13 -2
- package/view/error/list.vue +22 -14
- package/view/menu/index.vue +19 -4
- package/view/system/index.vue +15 -2
- package/field-components/Fields/AgreementCheck.vue +0 -161
- package/field-components/Fields/ApiCall.vue +0 -139
- package/field-components/Fields/Category.vue +0 -33
- package/field-components/Fields/Check.vue +0 -131
- package/field-components/Fields/Customize.vue +0 -103
- package/field-components/Fields/Date.vue +0 -142
- package/field-components/Fields/DateRange.vue +0 -199
- package/field-components/Fields/DynamicList.vue +0 -575
- package/field-components/Fields/FieldEditor.vue +0 -379
- package/field-components/Fields/InputFieldList.vue +0 -299
- package/field-components/Fields/Number.vue +0 -247
- package/field-components/Fields/Password.vue +0 -79
- package/field-components/Fields/Static.vue +0 -22
- package/field-components/Fields/String.vue +0 -185
- package/field-components/Fields/Text.vue +0 -89
- package/field-components/Fields/Year.vue +0 -124
- package/field-components/Fields/components/FieldTypeOptions.vue +0 -248
- package/field-components/components/FieldComponents.vue +0 -246
- package/free-fields/AutoHide.js +0 -66
- package/free-fields/CenterContent.js +0 -15
- package/free-fields/Draggable.js +0 -30
- package/free-fields/Droppable.js +0 -114
- package/free-fields/EditableString.js +0 -63
- package/free-fields/FieldCategory.js +0 -83
- package/free-fields/FieldTypeSelect.js +0 -94
- package/free-fields/fieldEditors/arrayEditor.js +0 -3
- package/free-fields/fieldEditors/boolEditor.js +0 -22
- package/free-fields/fieldEditors/dateEditor.js +0 -23
- package/free-fields/fieldEditors/datetimeEditor.js +0 -23
- package/free-fields/fieldEditors/index.js +0 -21
- package/free-fields/fieldEditors/jsonEditor.js +0 -371
- package/free-fields/fieldEditors/labeledField.js +0 -74
- package/free-fields/fieldEditors/numberEditor.js +0 -51
- package/free-fields/fieldEditors/objectEditor.js +0 -3
- package/free-fields/fieldEditors/selectEditor.js +0 -0
- package/free-fields/fieldEditors/stringEditor.js +0 -49
- package/free-fields/fieldEditors/textEditor.js +0 -50
- package/free-fields/fieldEditors/timeEditor.js +0 -23
- package/free-fields/index.js +0 -402
- /package/{field-components → free-field}/Fields/Image.vue +0 -0
- /package/{field-components/Display → free-field/Layout}/index.js +0 -0
- /package/{field-components → free-field}/style.sass +0 -0
package/free-fields/index.js
DELETED
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
import EditableString from "./EditableString";
|
|
2
|
-
import AutoHide from "./AutoHide";
|
|
3
|
-
import FieldCategory from "./FieldCategory";
|
|
4
|
-
import FieldTypeSelect from "./FieldTypeSelect";
|
|
5
|
-
import CenterContent from "./CenterContent";
|
|
6
|
-
|
|
7
|
-
import Draggable from "./Draggable";
|
|
8
|
-
import Droppable from "./Droppable";
|
|
9
|
-
|
|
10
|
-
import FieldEditors from "./fieldEditors";
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
EditableString,
|
|
14
|
-
AutoHide,
|
|
15
|
-
FieldCategory,
|
|
16
|
-
FieldTypeSelect,
|
|
17
|
-
CenterContent,
|
|
18
|
-
Draggable,
|
|
19
|
-
Droppable,
|
|
20
|
-
|
|
21
|
-
...FieldEditors,
|
|
22
|
-
freeDialog: {
|
|
23
|
-
slots: ["default"],
|
|
24
|
-
params: {
|
|
25
|
-
visible: false,
|
|
26
|
-
wrapperStyle: "",
|
|
27
|
-
shadow: "2",
|
|
28
|
-
background: "white",
|
|
29
|
-
close: true,
|
|
30
|
-
},
|
|
31
|
-
elements: [
|
|
32
|
-
{
|
|
33
|
-
tag: "div",
|
|
34
|
-
props: {
|
|
35
|
-
class: "free-dialog-mask absolute-full",
|
|
36
|
-
style: "position: fixed; z-index: 20;background:transparent;",
|
|
37
|
-
},
|
|
38
|
-
if: [
|
|
39
|
-
{
|
|
40
|
-
s1: "{{visible}}",
|
|
41
|
-
o1: "=",
|
|
42
|
-
s2: true,
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
slots: {
|
|
46
|
-
default: [
|
|
47
|
-
{
|
|
48
|
-
tag: "div",
|
|
49
|
-
props: {
|
|
50
|
-
class:
|
|
51
|
-
"free-dialog-wrapper absolute-center column bg-{{background}} shadow-{{shadow}}",
|
|
52
|
-
style: "{{wrapperStyle}}",
|
|
53
|
-
},
|
|
54
|
-
slots: {
|
|
55
|
-
default: [
|
|
56
|
-
{
|
|
57
|
-
tag: "div",
|
|
58
|
-
if: [
|
|
59
|
-
{
|
|
60
|
-
s1: "{{close}}",
|
|
61
|
-
o1: "=",
|
|
62
|
-
s2: true,
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
props: {
|
|
66
|
-
style:
|
|
67
|
-
"position: absolute; right: -8px; top: -8px;z-index: 21;",
|
|
68
|
-
},
|
|
69
|
-
slots: {
|
|
70
|
-
default: [
|
|
71
|
-
{
|
|
72
|
-
name: "QIcon",
|
|
73
|
-
props: {
|
|
74
|
-
name: "cancel",
|
|
75
|
-
size: "sm",
|
|
76
|
-
class: "cursor-pointer",
|
|
77
|
-
onClick: [
|
|
78
|
-
{
|
|
79
|
-
type: "action",
|
|
80
|
-
name: "emit",
|
|
81
|
-
props: {
|
|
82
|
-
trigger: "closeDialog",
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
tag: "div",
|
|
93
|
-
props: {
|
|
94
|
-
class: "free-dialog-content col",
|
|
95
|
-
},
|
|
96
|
-
slots: {
|
|
97
|
-
default: [
|
|
98
|
-
{
|
|
99
|
-
tag: "slot",
|
|
100
|
-
name: "default",
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
tag: "div",
|
|
107
|
-
props: {
|
|
108
|
-
class:
|
|
109
|
-
"free-dialog-actions row no-wrap item-center justify-center q-ma-md",
|
|
110
|
-
},
|
|
111
|
-
slots: {
|
|
112
|
-
default: [
|
|
113
|
-
{
|
|
114
|
-
tag: "slot",
|
|
115
|
-
name: "actions",
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
},
|
|
128
|
-
freeAdminLayout: {
|
|
129
|
-
params: {
|
|
130
|
-
id: "",
|
|
131
|
-
logo: "",
|
|
132
|
-
logoHeight: "60px",
|
|
133
|
-
logoWidth: "100px",
|
|
134
|
-
actionsLeft: false,
|
|
135
|
-
actions: [],
|
|
136
|
-
toolbarHeight: "60px",
|
|
137
|
-
userName: "admin",
|
|
138
|
-
now: "2021-10-12",
|
|
139
|
-
},
|
|
140
|
-
props: {},
|
|
141
|
-
slots: ["default", "logo", "actions", "user"],
|
|
142
|
-
elements: [
|
|
143
|
-
{
|
|
144
|
-
name: "QLayout",
|
|
145
|
-
props: {
|
|
146
|
-
id: "{{id}}",
|
|
147
|
-
class: "free-layout",
|
|
148
|
-
},
|
|
149
|
-
slots: {
|
|
150
|
-
default: [
|
|
151
|
-
{
|
|
152
|
-
name: "QHeader",
|
|
153
|
-
props: {},
|
|
154
|
-
slots: {
|
|
155
|
-
default: [
|
|
156
|
-
{
|
|
157
|
-
name: "QToolbar",
|
|
158
|
-
props: {
|
|
159
|
-
style: "height: {{toolbarHeight}};",
|
|
160
|
-
},
|
|
161
|
-
slots: {
|
|
162
|
-
default: [
|
|
163
|
-
{
|
|
164
|
-
if: [
|
|
165
|
-
{
|
|
166
|
-
s1: "{{logo}}",
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
name: "QImg",
|
|
170
|
-
props: {
|
|
171
|
-
src: "{{logo}}",
|
|
172
|
-
fit: "scale-down",
|
|
173
|
-
height: "{{logoHeight}}",
|
|
174
|
-
width: "{{logoWidth}}",
|
|
175
|
-
alt: "{{app.config.siteName}}",
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
tag: "slot",
|
|
180
|
-
name: "logo",
|
|
181
|
-
if: [
|
|
182
|
-
{
|
|
183
|
-
s1: "{{logo}}",
|
|
184
|
-
o1: "!",
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
name: "QSpace",
|
|
190
|
-
if: [
|
|
191
|
-
{
|
|
192
|
-
s1: "{{actionsLeft}}",
|
|
193
|
-
o1: "!"
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
if: [
|
|
199
|
-
{
|
|
200
|
-
s1: "{{actions.length}}"
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
for: "{{actions}}",
|
|
204
|
-
"for-item": "action",
|
|
205
|
-
name: "QBtn",
|
|
206
|
-
props: {
|
|
207
|
-
label: "{{action.label}}",
|
|
208
|
-
to: "{{action.to}}",
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
if: [
|
|
213
|
-
{
|
|
214
|
-
s1: "{{actions.length}}",
|
|
215
|
-
o1: "<=",
|
|
216
|
-
s2: 0
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
tag: "slot",
|
|
220
|
-
name: "actions"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: "QSpace",
|
|
224
|
-
if: [
|
|
225
|
-
{
|
|
226
|
-
s1: "{{actionsLeft}}",
|
|
227
|
-
}
|
|
228
|
-
]
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
name: "QBtn",
|
|
232
|
-
if: [
|
|
233
|
-
{
|
|
234
|
-
s1: "{{app.modules.account}}",
|
|
235
|
-
o1: "exists",
|
|
236
|
-
},
|
|
237
|
-
],
|
|
238
|
-
props: {
|
|
239
|
-
flat: true,
|
|
240
|
-
class: "user-profile-btn",
|
|
241
|
-
},
|
|
242
|
-
slots: {
|
|
243
|
-
default: [
|
|
244
|
-
{
|
|
245
|
-
tag: "div",
|
|
246
|
-
props: {
|
|
247
|
-
class:
|
|
248
|
-
"row no-wrap items-center justify-center",
|
|
249
|
-
},
|
|
250
|
-
slots: {
|
|
251
|
-
default: [
|
|
252
|
-
{
|
|
253
|
-
name: "QIcon",
|
|
254
|
-
props: {
|
|
255
|
-
name: "fas fa-user-tie",
|
|
256
|
-
class: "avatar q-mr-sm",
|
|
257
|
-
size: "md",
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
tag: "span",
|
|
262
|
-
props: {
|
|
263
|
-
class:
|
|
264
|
-
"user-name ellipsis q-ml-xs q-mr-md",
|
|
265
|
-
},
|
|
266
|
-
slots: {
|
|
267
|
-
default: [
|
|
268
|
-
"{{userName}}",
|
|
269
|
-
{
|
|
270
|
-
tag: "div",
|
|
271
|
-
props: {
|
|
272
|
-
class: "date-label",
|
|
273
|
-
},
|
|
274
|
-
slots: {
|
|
275
|
-
default: ["{{now}}"],
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
],
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
name: "QIcon",
|
|
283
|
-
props: {
|
|
284
|
-
class: "user-profile-menu-icon",
|
|
285
|
-
name: "keyboard_arrow_down",
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
],
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
name: "QMenu",
|
|
293
|
-
props: {
|
|
294
|
-
"content-class": "user-profile-menu",
|
|
295
|
-
},
|
|
296
|
-
slots: {
|
|
297
|
-
default: [
|
|
298
|
-
{
|
|
299
|
-
name: "QList",
|
|
300
|
-
props: {
|
|
301
|
-
style: "min-width: 191px",
|
|
302
|
-
},
|
|
303
|
-
slots: {
|
|
304
|
-
default: [
|
|
305
|
-
{
|
|
306
|
-
name: "QItem",
|
|
307
|
-
props: {},
|
|
308
|
-
slots: {
|
|
309
|
-
default: [
|
|
310
|
-
{
|
|
311
|
-
name: "QItemSection",
|
|
312
|
-
slots: {
|
|
313
|
-
default: [
|
|
314
|
-
{
|
|
315
|
-
name: "QBtn",
|
|
316
|
-
props: {
|
|
317
|
-
label: "Logout",
|
|
318
|
-
class: "logout-btn",
|
|
319
|
-
flat: true,
|
|
320
|
-
"v-close-popup": "-1",
|
|
321
|
-
onClick: {
|
|
322
|
-
type: "action",
|
|
323
|
-
name: "logout",
|
|
324
|
-
module: "account",
|
|
325
|
-
},
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
],
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
],
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
],
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
],
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
],
|
|
344
|
-
},
|
|
345
|
-
},
|
|
346
|
-
],
|
|
347
|
-
},
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
name: "QDrawer",
|
|
351
|
-
props: {},
|
|
352
|
-
slots: {
|
|
353
|
-
default: [],
|
|
354
|
-
},
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
name: "QPageContainer",
|
|
358
|
-
props: {},
|
|
359
|
-
slots: {
|
|
360
|
-
default: [
|
|
361
|
-
{
|
|
362
|
-
name: "QPage",
|
|
363
|
-
props: {},
|
|
364
|
-
slots: {
|
|
365
|
-
default: [
|
|
366
|
-
{
|
|
367
|
-
tag: "slot",
|
|
368
|
-
name: 'default'
|
|
369
|
-
},
|
|
370
|
-
],
|
|
371
|
-
},
|
|
372
|
-
},
|
|
373
|
-
],
|
|
374
|
-
},
|
|
375
|
-
},
|
|
376
|
-
],
|
|
377
|
-
},
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
|
-
},
|
|
381
|
-
printBtn: {
|
|
382
|
-
params: {
|
|
383
|
-
data: '',
|
|
384
|
-
label: 'Print'
|
|
385
|
-
},
|
|
386
|
-
elements: [
|
|
387
|
-
{
|
|
388
|
-
name: 'QBtn',
|
|
389
|
-
props: {
|
|
390
|
-
label: "{{label}}",
|
|
391
|
-
onClick: {
|
|
392
|
-
type: 'action',
|
|
393
|
-
name: 'log',
|
|
394
|
-
props: {
|
|
395
|
-
data: "{{data}}"
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
}
|
|
402
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|