fl-web-component 0.1.0 → 0.1.1

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.
Files changed (33) hide show
  1. package/README.md +35 -24
  2. package/dist/fl-web-component.common.js +67035 -54
  3. package/dist/fl-web-component.common.js.map +1 -1
  4. package/dist/fl-web-component.css +1 -1
  5. package/dist/fl-web-component.umd.js +67035 -54
  6. package/dist/fl-web-component.umd.js.map +1 -1
  7. package/dist/fl-web-component.umd.min.js +13 -1
  8. package/dist/fl-web-component.umd.min.js.map +1 -1
  9. package/package.json +59 -47
  10. package/packages/components/button/index.vue +6 -3
  11. package/packages/components/com-card/card-page.vue +100 -0
  12. package/packages/components/com-card/index.vue +54 -0
  13. package/packages/components/com-dialogWrapper/Readme.md +53 -0
  14. package/packages/components/com-dialogWrapper/index.vue +101 -0
  15. package/packages/components/com-formDialog/Readme.md +409 -0
  16. package/packages/components/com-formDialog/index.vue +470 -0
  17. package/packages/components/com-graphics/index.vue +240 -0
  18. package/packages/components/com-page/index.vue +101 -0
  19. package/packages/components/com-selectTree/Readme.md +17 -0
  20. package/packages/components/com-selectTree/index.vue +238 -0
  21. package/packages/components/com-table/column-default.vue +76 -0
  22. package/packages/components/com-table/column-dynamic.vue +40 -0
  23. package/packages/components/com-table/column-menu.vue +71 -0
  24. package/packages/components/com-table/column-slot.vue +53 -0
  25. package/packages/components/com-table/column.vue +49 -0
  26. package/packages/components/com-table/config.js +21 -0
  27. package/packages/components/com-table/index.vue +281 -0
  28. package/packages/components/com-table/table-page.vue +106 -0
  29. package/packages/components/com-tabs/index.vue +50 -0
  30. package/packages/components/com-treeDynamic/Readme.md +271 -0
  31. package/packages/components/com-treeDynamic/index.vue +207 -0
  32. package/patches/camera-controls+2.9.0.patch +63 -0
  33. package/{packages/index.js → src/main.js} +5 -5
@@ -0,0 +1,409 @@
1
+ <!-- 使用方法 样例 -->
2
+ <template>
3
+ <div class="trigger_dialog">
4
+ <!-- 弹窗 -->
5
+ <el-button type="primary" @click="dialogVisible = true">触发对话框</el-button>
6
+ <DialogWrapper
7
+ v-if="dialogVisible"
8
+ dialog-title="触发对话框"
9
+ :visible.sync="dialogVisible"
10
+ :popup-width="'35%'"
11
+ @handleClose="handleClose"
12
+ @submitDialogData="submitDialogData"
13
+ >
14
+ <FormDialog
15
+ ref="formDialog"
16
+ :form-item-config-arr="formItemConfigArr"
17
+ @handleInputValue="handleInputValue"
18
+ />
19
+ </DialogWrapper>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ name: 'TriggerDialog',
26
+ components: {
27
+ DialogWrapper: () => import('./components/DialogWrapper.vue'),
28
+ FormDialog: () => import('./form-dialog.vue')
29
+
30
+ },
31
+ props: {},
32
+ data() {
33
+ return {
34
+ dialogVisible: false, // 弹框状态
35
+ // 表单项配置
36
+ formItemConfigArr: [{
37
+ label: '选择器: 单选',
38
+ prop: 'SelectorSingleSelection',
39
+ id: 'SelectorSingleSelection',
40
+ itemType: 'SelectorSingleSelection',
41
+ deliveryLevel: '',
42
+ optionArr: [
43
+ { optionValue: '黄金糕', optionLabel: '黄金糕' },
44
+ { optionValue: '双皮奶', optionLabel: '双皮奶' },
45
+ { optionValue: '蚵仔煎', optionLabel: '蚵仔煎' },
46
+ { optionValue: '龙须面', optionLabel: '龙须面' },
47
+ { optionValue: '北京烤鸭', optionLabel: '北京烤鸭' }
48
+ ]
49
+ }, {
50
+ label: '选择器: 多选',
51
+ prop: 'SelectorMultipleSelection',
52
+ id: 'SelectorMultipleSelection',
53
+ itemType: 'SelectorMultipleSelection',
54
+ deliveryLevel: '',
55
+ optionArr: [
56
+ { optionValue: '东南', optionLabel: '东南', children: [
57
+ { optionValue: '上海', optionLabel: '上海', children: [
58
+ { optionValue: '普陀', optionLabel: '普陀' },
59
+ { optionValue: '黄埔', optionLabel: '黄埔' },
60
+ { optionValue: '徐汇', optionLabel: '徐汇' }]
61
+ },
62
+ { optionValue: '江苏', optionLabel: '江苏', children: [
63
+ { optionValue: '南京', optionLabel: '南京' },
64
+ { optionValue: '苏州', optionLabel: '苏州' },
65
+ { optionValue: '无锡', optionLabel: '无锡' }]
66
+ },
67
+ { optionValue: '浙江', optionLabel: '浙江', children: [
68
+ { optionValue: '杭州', optionLabel: '杭州' },
69
+ { optionValue: '宁波', optionLabel: '宁波' },
70
+ { optionValue: '嘉兴', optionLabel: '嘉兴' }]
71
+ }]
72
+ },
73
+ { optionValue: '西北', optionLabel: '西北', children: [
74
+ { optionValue: '陕西', optionLabel: '陕西', children: [
75
+ { optionValue: '西安', optionLabel: '西安' },
76
+ { optionValue: '延安', optionLabel: '延安' }]
77
+ },
78
+ { optionValue: '新疆维吾尔族自治区', optionLabel: '新疆维吾尔族自治区', children: [
79
+ { optionValue: '乌鲁木齐', optionLabel: '乌鲁木齐' },
80
+ { optionValue: '克拉玛依', optionLabel: '克拉玛依' }]
81
+ }]
82
+ }
83
+ ]
84
+ }, {
85
+ label: '选择器: 树结构',
86
+ prop: 'SelectorTreeStructure',
87
+ id: 'SelectorTreeStructure',
88
+ itemType: 'SelectorTreeStructure',
89
+ deliveryLevel: '',
90
+ optionArr: [
91
+ {
92
+ 'id': 16610387558572,
93
+ 'deptId': 100,
94
+ 'parentId': 0,
95
+ 'ancestors': null,
96
+ 'deptName': '中科辅龙',
97
+ 'parentName': null,
98
+ 'children': [
99
+ {
100
+ 'id': 16610389432685,
101
+ 'deptId': 101,
102
+ 'parentId': 100,
103
+ 'ancestors': null,
104
+ 'deptName': '北京总公司',
105
+ 'parentName': null,
106
+ 'children': [
107
+ {
108
+ 'id': 16610388531515,
109
+ 'deptId': 103,
110
+ 'parentId': 101,
111
+ 'ancestors': null,
112
+ 'deptName': '研发部门',
113
+ 'parentName': null,
114
+ 'children': [
115
+ {
116
+ 'id': 16610387615239,
117
+ 'deptId': 16610387615239,
118
+ 'parentId': 103,
119
+ 'ancestors': null,
120
+ 'deptName': '系统管理员',
121
+ 'parentName': null,
122
+ 'children': [],
123
+ 'userId': 1,
124
+ 'nickName': null
125
+ }
126
+ ],
127
+ 'userId': null,
128
+ 'nickName': null
129
+ },
130
+ {
131
+ 'id': 16610388036783,
132
+ 'deptId': 104,
133
+ 'parentId': 101,
134
+ 'ancestors': null,
135
+ 'deptName': '市场部门',
136
+ 'parentName': null,
137
+ 'children': [],
138
+ 'userId': null,
139
+ 'nickName': null
140
+ },
141
+ {
142
+ 'id': 16610388740710,
143
+ 'deptId': 105,
144
+ 'parentId': 101,
145
+ 'ancestors': null,
146
+ 'deptName': '测试部门',
147
+ 'parentName': null,
148
+ 'children': [
149
+ {
150
+ 'id': 16610388604617,
151
+ 'deptId': 121,
152
+ 'parentId': 105,
153
+ 'ancestors': null,
154
+ 'deptName': '测试部',
155
+ 'parentName': null,
156
+ 'children': [],
157
+ 'userId': null,
158
+ 'nickName': null
159
+ },
160
+ {
161
+ 'id': 16610387802667,
162
+ 'deptId': 16610387802667,
163
+ 'parentId': 105,
164
+ 'ancestors': null,
165
+ 'deptName': '若依',
166
+ 'parentName': null,
167
+ 'children': [],
168
+ 'userId': 2,
169
+ 'nickName': null
170
+ },
171
+ {
172
+ 'id': 16610388008178,
173
+ 'deptId': 16610388008178,
174
+ 'parentId': 105,
175
+ 'ancestors': null,
176
+ 'deptName': '赵文莉',
177
+ 'parentName': null,
178
+ 'children': [],
179
+ 'userId': 738512,
180
+ 'nickName': null
181
+ }
182
+ ],
183
+ 'userId': null,
184
+ 'nickName': null
185
+ },
186
+ {
187
+ 'id': 16610389553740,
188
+ 'deptId': 106,
189
+ 'parentId': 101,
190
+ 'ancestors': null,
191
+ 'deptName': '财务部门',
192
+ 'parentName': null,
193
+ 'children': [],
194
+ 'userId': null,
195
+ 'nickName': null
196
+ },
197
+ {
198
+ 'id': 16610389178321,
199
+ 'deptId': 107,
200
+ 'parentId': 101,
201
+ 'ancestors': null,
202
+ 'deptName': '运维部门',
203
+ 'parentName': null,
204
+ 'children': [],
205
+ 'userId': null,
206
+ 'nickName': null
207
+ }
208
+ ],
209
+ 'userId': null,
210
+ 'nickName': null
211
+ },
212
+ {
213
+ 'id': 16610388755966,
214
+ 'deptId': 102,
215
+ 'parentId': 100,
216
+ 'ancestors': null,
217
+ 'deptName': '长沙分公司',
218
+ 'parentName': null,
219
+ 'children': [
220
+ {
221
+ 'id': 16610389179839,
222
+ 'deptId': 108,
223
+ 'parentId': 102,
224
+ 'ancestors': null,
225
+ 'deptName': '市场部门',
226
+ 'parentName': null,
227
+ 'children': [],
228
+ 'userId': null,
229
+ 'nickName': null
230
+ },
231
+ {
232
+ 'id': 16610389330898,
233
+ 'deptId': 109,
234
+ 'parentId': 102,
235
+ 'ancestors': null,
236
+ 'deptName': '财务部门',
237
+ 'parentName': null,
238
+ 'children': [],
239
+ 'userId': null,
240
+ 'nickName': null
241
+ }
242
+ ],
243
+ 'userId': null,
244
+ 'nickName': null
245
+ },
246
+ {
247
+ 'id': 16610388015679,
248
+ 'deptId': 110,
249
+ 'parentId': 100,
250
+ 'ancestors': null,
251
+ 'deptName': '监理单位',
252
+ 'parentName': null,
253
+ 'children': [],
254
+ 'userId': null,
255
+ 'nickName': null
256
+ },
257
+ {
258
+ 'id': 16610388258734,
259
+ 'deptId': 16610388258734,
260
+ 'parentId': 100,
261
+ 'ancestors': null,
262
+ 'deptName': '咩咩',
263
+ 'parentName': null,
264
+ 'children': [],
265
+ 'userId': 4,
266
+ 'nickName': null
267
+ }
268
+ ],
269
+ 'userId': null,
270
+ 'nickName': null
271
+ }
272
+ ]
273
+ }, {
274
+ label: '选择器: 单时间',
275
+ prop: 'SelectorSingleTime',
276
+ id: 'SelectorSingleTime',
277
+ itemType: 'SelectorSingleTime',
278
+ deliveryLevel: '',
279
+ optionArr: []
280
+ }, {
281
+ label: '选择器: 单日期',
282
+ prop: 'SelectorSingleDate',
283
+ id: 'SelectorSingleDate',
284
+ itemType: 'SelectorSingleDate',
285
+ deliveryLevel: '',
286
+ optionArr: []
287
+ }, {
288
+ label: '选择器: 日期范围长度测试',
289
+ prop: 'SelectorDateRange',
290
+ id: 'SelectorDateRange',
291
+ itemType: 'SelectorDateRange',
292
+ deliveryLevel: 'ESS',
293
+ optionArr: []
294
+ }, {
295
+ label: '多行文本',
296
+ prop: 'MultilineText',
297
+ id: 'MultilineText',
298
+ itemType: 'MultilineText',
299
+ deliveryLevel: '',
300
+ optionArr: []
301
+ }, {
302
+ label: '单选框',
303
+ prop: 'RadioBox',
304
+ id: 'RadioBox',
305
+ itemType: 'RadioBox',
306
+ deliveryLevel: '',
307
+ optionArr: [
308
+ { optionValue: '单选一', optionLabel: '单选一' },
309
+ { optionValue: '单选二', optionLabel: '单选二' },
310
+ { optionValue: '单选三', optionLabel: '单选三' },
311
+ { optionValue: '单选四', optionLabel: '单选四' },
312
+ { optionValue: '单选五', optionLabel: '单选五' }
313
+ ]
314
+ }, {
315
+ label: '多选框',
316
+ prop: 'MultipleCheckbox',
317
+ id: 'MultipleCheckbox',
318
+ itemType: 'MultipleCheckbox',
319
+ deliveryLevel: 'ESS',
320
+ optionArr: [
321
+ { optionValue: '复选框A', optionLabel: '复选框A' },
322
+ { optionValue: '复选框B', optionLabel: '复选框B' },
323
+ { optionValue: '复选框C', optionLabel: '复选框C' },
324
+ { optionValue: '复选框D', optionLabel: '复选框D' },
325
+ { optionValue: '复选框F', optionLabel: '复选框F' }
326
+ ]
327
+ }, {
328
+ label: '字符串输入框',
329
+ prop: 'InputString',
330
+ id: 'InputString',
331
+ itemType: 'InputString',
332
+ deliveryLevel: 'ESS',
333
+ optionArr: []
334
+ }, {
335
+ label: '整数输入框',
336
+ prop: 'InputInteger',
337
+ id: 'InputInteger',
338
+ itemType: 'InputInteger',
339
+ deliveryLevel: '',
340
+ optionArr: []
341
+ }, {
342
+ label: '小数输入框',
343
+ prop: 'InputDecimals',
344
+ id: 'InputDecimals',
345
+ itemType: 'InputDecimals',
346
+ deliveryLevel: '',
347
+ optionArr: []
348
+ }, {
349
+ label: '计数器',
350
+ prop: 'CounterFrame',
351
+ id: 'CounterFrame',
352
+ itemType: 'CounterFrame',
353
+ deliveryLevel: '',
354
+ optionArr: []
355
+ }, {
356
+ label: '文件上传',
357
+ prop: 'FileUpload',
358
+ id: 'FileUpload',
359
+ itemType: 'FileUpload',
360
+ deliveryLevel: '',
361
+ optionArr: []
362
+ }, {
363
+ label: '富文本',
364
+ prop: 'RichText',
365
+ id: 'RichText',
366
+ itemType: 'RichText',
367
+ deliveryLevel: '',
368
+ optionArr: []
369
+ }]
370
+ }
371
+ },
372
+ computed: { },
373
+ watch: {},
374
+ created() {},
375
+ mounted() {},
376
+ methods: {
377
+ /* 弹窗 修改是否让页面显示与隐藏的事件 */
378
+ updateVisible(val) {
379
+ this.dialogVisible = val
380
+ },
381
+ /* 弹窗 确认 操作 */
382
+ submitDialogData() {
383
+ // this.dialogVisible = false
384
+ const formData = this.$refs.formDialog.formInline
385
+ console.log(formData)
386
+ },
387
+ /* 弹窗 关闭 操作 */
388
+ handleClose() {
389
+ this.dialogVisible = false
390
+ },
391
+
392
+ /* 表单操作 */
393
+ handleInputValue(data) {
394
+ console.log(data)
395
+ }
396
+ }
397
+ }
398
+ </script>
399
+ <style lang="scss" scoped>
400
+ .trigger_dialog {
401
+ box-sizing: border-box;
402
+ width: calc(100% - 32px);
403
+ height: calc(100% - 72px);
404
+ margin: 16px;
405
+ padding: 16px;
406
+ border-radius: 4px;
407
+ background-color: #ccc;
408
+ }
409
+ </style>