eoss-ui 0.5.81-beta14 → 0.5.81-beta16

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 (120) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +48 -46
  3. package/lib/button.js +48 -46
  4. package/lib/checkbox-group.js +48 -46
  5. package/lib/clients.js +4 -3
  6. package/lib/config/api.js +2 -1
  7. package/lib/data-table-form.js +48 -46
  8. package/lib/data-table.js +55 -54
  9. package/lib/date-picker.js +48 -46
  10. package/lib/dialog.js +48 -46
  11. package/lib/eoss-ui.common.js +429 -447
  12. package/lib/flow-group.js +48 -46
  13. package/lib/flow-list.js +49 -47
  14. package/lib/flow.js +68 -66
  15. package/lib/form.js +48 -46
  16. package/lib/handle-user.js +49 -47
  17. package/lib/handler.js +48 -46
  18. package/lib/icon.js +48 -46
  19. package/lib/index.js +1 -1
  20. package/lib/input-number.js +48 -46
  21. package/lib/input.js +48 -46
  22. package/lib/login.js +57 -50
  23. package/lib/main.js +360 -383
  24. package/lib/menu.js +1 -1
  25. package/lib/nav.js +48 -46
  26. package/lib/notify.js +53 -51
  27. package/lib/page.js +48 -46
  28. package/lib/pagination.js +48 -46
  29. package/lib/player.js +48 -46
  30. package/lib/qr-code.js +48 -46
  31. package/lib/radio-group.js +48 -46
  32. package/lib/retrial-auth.js +49 -47
  33. package/lib/select-ganged.js +48 -46
  34. package/lib/select.js +48 -46
  35. package/lib/selector-panel.js +48 -46
  36. package/lib/selector.js +48 -46
  37. package/lib/sizer.js +48 -46
  38. package/lib/steps.js +48 -46
  39. package/lib/switch.js +48 -46
  40. package/lib/table-form.js +48 -46
  41. package/lib/tabs.js +48 -46
  42. package/lib/tips.js +48 -46
  43. package/lib/tree-group.js +48 -46
  44. package/lib/tree.js +48 -46
  45. package/lib/upload.js +52 -50
  46. package/lib/wujie.js +48 -46
  47. package/lib/wxlogin.js +48 -46
  48. package/package.json +2 -2
  49. package/packages/clients/src/main.vue +2 -1
  50. package/packages/data-table/src/forms.vue +414 -0
  51. package/packages/data-table/src/sizer.vue +0 -1
  52. package/packages/login/src/main.vue +3 -2
  53. package/packages/main/src/default/index.vue +79 -162
  54. package/packages/main/src/main.vue +139 -1
  55. package/packages/main/src/simplicity/index.vue +18 -121
  56. package/packages/main/src/simplicity/menu-list.vue +1 -1
  57. package/packages/main/src/simplicity/sub-menu.vue +13 -4
  58. package/packages/menu/src/main.vue +4 -3
  59. package/packages/theme-chalk/lib/base.css +1 -0
  60. package/packages/theme-chalk/lib/button-group.css +1 -0
  61. package/packages/theme-chalk/lib/button.css +1 -0
  62. package/packages/theme-chalk/lib/calendar.css +1 -0
  63. package/packages/theme-chalk/lib/card.css +1 -0
  64. package/packages/theme-chalk/lib/cascader.css +0 -0
  65. package/packages/theme-chalk/lib/checkbox-group.css +1 -0
  66. package/packages/theme-chalk/lib/clients.css +1 -0
  67. package/packages/theme-chalk/lib/data-table-form.css +1 -0
  68. package/packages/theme-chalk/lib/data-table.css +1 -0
  69. package/packages/theme-chalk/lib/date-picker.css +1 -0
  70. package/packages/theme-chalk/lib/dialog.css +1 -0
  71. package/packages/theme-chalk/lib/enterprise.css +1 -0
  72. package/packages/theme-chalk/lib/error-page.css +1 -0
  73. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  74. package/packages/theme-chalk/lib/flow-group.css +1 -0
  75. package/packages/theme-chalk/lib/flow-list.css +1 -0
  76. package/packages/theme-chalk/lib/flow.css +1 -0
  77. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  78. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  79. package/packages/theme-chalk/lib/form.css +1 -0
  80. package/packages/theme-chalk/lib/handle-user.css +1 -0
  81. package/packages/theme-chalk/lib/handler.css +1 -0
  82. package/packages/theme-chalk/lib/icon.css +1 -0
  83. package/packages/theme-chalk/lib/icons.css +1 -0
  84. package/packages/theme-chalk/lib/index.css +1 -0
  85. package/packages/theme-chalk/lib/input-number.css +0 -0
  86. package/packages/theme-chalk/lib/input.css +1 -0
  87. package/packages/theme-chalk/lib/label.css +1 -0
  88. package/packages/theme-chalk/lib/layout.css +1 -0
  89. package/packages/theme-chalk/lib/login.css +1 -0
  90. package/packages/theme-chalk/lib/main.css +1 -0
  91. package/packages/theme-chalk/lib/menu.css +1 -0
  92. package/packages/theme-chalk/lib/nav.css +1 -0
  93. package/packages/theme-chalk/lib/notify.css +0 -0
  94. package/packages/theme-chalk/lib/page.css +1 -0
  95. package/packages/theme-chalk/lib/pagination.css +1 -0
  96. package/packages/theme-chalk/lib/player.css +1 -0
  97. package/packages/theme-chalk/lib/qr-code.css +1 -0
  98. package/packages/theme-chalk/lib/radio-group.css +1 -0
  99. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  100. package/packages/theme-chalk/lib/select-ganged.css +1 -0
  101. package/packages/theme-chalk/lib/select.css +1 -0
  102. package/packages/theme-chalk/lib/selector-panel.css +1 -0
  103. package/packages/theme-chalk/lib/selector.css +1 -0
  104. package/packages/theme-chalk/lib/simplicity.css +1 -0
  105. package/packages/theme-chalk/lib/sizer.css +1 -0
  106. package/packages/theme-chalk/lib/steps.css +1 -0
  107. package/packages/theme-chalk/lib/switch.css +1 -0
  108. package/packages/theme-chalk/lib/table-form.css +0 -0
  109. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  110. package/packages/theme-chalk/lib/tabs.css +1 -0
  111. package/packages/theme-chalk/lib/tips.css +1 -0
  112. package/packages/theme-chalk/lib/toolbar.css +1 -0
  113. package/packages/theme-chalk/lib/tree-group.css +1 -0
  114. package/packages/theme-chalk/lib/tree.css +1 -0
  115. package/packages/theme-chalk/lib/upload.css +1 -0
  116. package/packages/theme-chalk/lib/wujie.css +0 -0
  117. package/packages/theme-chalk/lib/wxlogin.css +1 -0
  118. package/src/config/api.js +2 -1
  119. package/src/index.js +157 -157
  120. package/packages/theme-chalk/gulpfile.js +0 -25
@@ -0,0 +1,414 @@
1
+ <template>
2
+ <el-form-item
3
+ v-if="!(type === 'handle' && !scope.row.hideHandle)"
4
+ :name="name"
5
+ :prop="field || prop"
6
+ :rules="isNotRule(scope) ? [] : rules"
7
+ :index="scope.$index"
8
+ >
9
+ <es-select
10
+ v-if="type == 'select'"
11
+ v-bind="formOption"
12
+ :data="option"
13
+ v-model="scope.row[field || prop]"
14
+ @blur="
15
+ (event) => {
16
+ handleBlur({
17
+ item: config,
18
+ event: event,
19
+ data: scope.row,
20
+ scope: scope
21
+ });
22
+ }
23
+ "
24
+ @focus="
25
+ (event) => {
26
+ handleFocus({
27
+ item: config,
28
+ event: event,
29
+ data: scope.row,
30
+ scope: scope
31
+ });
32
+ }
33
+ "
34
+ @change="
35
+ (value) => {
36
+ handleChange({
37
+ item: config,
38
+ name: field || prop,
39
+ value: value,
40
+ data: scope.row,
41
+ scope: scope
42
+ });
43
+ }
44
+ "
45
+ ></es-select>
46
+ <es-cascader
47
+ v-else-if="getType('cascader', scope)"
48
+ v-bind="formOption"
49
+ :data="option"
50
+ v-model="scope.row[field || prop]"
51
+ @blur="
52
+ (event) => {
53
+ handleBlur({
54
+ item: config,
55
+ event: event,
56
+ data: scope.row,
57
+ scope: scope
58
+ });
59
+ }
60
+ "
61
+ @focus="
62
+ (event) => {
63
+ handleFocus({
64
+ item: config,
65
+ event: event,
66
+ data: scope.row,
67
+ scope: scope
68
+ });
69
+ }
70
+ "
71
+ @change="
72
+ (value) => {
73
+ handleChange({
74
+ item: config,
75
+ name: field || prop,
76
+ value: value,
77
+ data: scope.row,
78
+ scope: scope
79
+ });
80
+ }
81
+ "
82
+ >
83
+ </es-cascader>
84
+ <es-select-ganged
85
+ v-else-if="getType('ganged', scope)"
86
+ v-bind="formOption"
87
+ :data="init(option, config)"
88
+ v-model="scope.row[field || prop]"
89
+ @change="
90
+ (value) => {
91
+ handleChange({
92
+ name: field || prop,
93
+ value: value,
94
+ data: scope.row,
95
+ item: item
96
+ });
97
+ }
98
+ "
99
+ ></es-select-ganged>
100
+ <es-radio-group
101
+ v-else-if="getType('radio', scope)"
102
+ v-bind="formOption"
103
+ :data="option"
104
+ v-model="scope.row[field || prop]"
105
+ @change="
106
+ (value) => {
107
+ handleChange({
108
+ item: config,
109
+ name: field || prop,
110
+ value: value,
111
+ data: scope.row
112
+ });
113
+ }
114
+ "
115
+ ></es-radio-group>
116
+ <es-checkbox-group
117
+ v-else-if="getType('checkbox', scope)"
118
+ v-bind="formOption"
119
+ :data="option"
120
+ v-model="scope.row[field || prop]"
121
+ @change="
122
+ (value) => {
123
+ handleChange({
124
+ item: config,
125
+ name: field || prop,
126
+ value: value,
127
+ data: scope.row
128
+ });
129
+ }
130
+ "
131
+ ></es-checkbox-group>
132
+ <es-switch
133
+ v-else-if="getType('switch', scope)"
134
+ v-bind="formOption"
135
+ :data="option"
136
+ v-model="scope.row[field || prop]"
137
+ @change="
138
+ (value) => {
139
+ handleChange({
140
+ item: config,
141
+ name: field || prop,
142
+ value: value,
143
+ data: scope.row
144
+ });
145
+ }
146
+ "
147
+ ></es-switch>
148
+ <es-date-picker
149
+ v-else-if="
150
+ config.date ||
151
+ getType(
152
+ type,
153
+ [
154
+ 'date',
155
+ 'year',
156
+ 'month',
157
+ 'date',
158
+ 'dates',
159
+ 'week',
160
+ 'datetime',
161
+ 'datetimerange',
162
+ 'daterange',
163
+ 'monthrange',
164
+ 'quarter',
165
+ 'halfyear'
166
+ ],
167
+ scope
168
+ )
169
+ "
170
+ v-bind="formOption"
171
+ v-model="scope.row[field || prop]"
172
+ :type="type"
173
+ @blur="
174
+ (event) => {
175
+ handleBlur({
176
+ item: config,
177
+ event: event,
178
+ data: scope.row,
179
+ scope: scope
180
+ });
181
+ }
182
+ "
183
+ @focus="
184
+ (event) => {
185
+ handleFocus({
186
+ item: config,
187
+ event: event,
188
+ data: scope.row,
189
+ scope: scope
190
+ });
191
+ }
192
+ "
193
+ @change="
194
+ (value) => {
195
+ handleChange({
196
+ item: config,
197
+ name: field || prop,
198
+ value: value,
199
+ data: scope.row,
200
+ scope: scope
201
+ });
202
+ }
203
+ "
204
+ ></es-date-picker>
205
+ <es-input-number
206
+ v-else-if="getType('number', scope)"
207
+ v-bind="formOption"
208
+ v-model="scope.row[field || prop]"
209
+ @blur="
210
+ (event) => {
211
+ handleBlur({
212
+ item: config,
213
+ event: event,
214
+ data: scope.row,
215
+ scope: scope
216
+ });
217
+ }
218
+ "
219
+ @focus="
220
+ (event) => {
221
+ handleFocus({
222
+ item: config,
223
+ event: event,
224
+ data: scope.row,
225
+ scope: scope
226
+ });
227
+ }
228
+ "
229
+ @change="
230
+ (value) => {
231
+ handleChange({
232
+ item: config,
233
+ name: field || prop,
234
+ value: value,
235
+ data: scope.row,
236
+ scope: scope
237
+ });
238
+ }
239
+ "
240
+ ></es-input-number>
241
+ <es-selector
242
+ v-else-if="getType('selector', scope)"
243
+ v-bind="formOption"
244
+ v-model="scope.row[field || prop]"
245
+ v-on="
246
+ exclAttribute({
247
+ data: events,
248
+ attrs: 'change'
249
+ })
250
+ "
251
+ @change="
252
+ (value) => {
253
+ handleChange({
254
+ item: config,
255
+ name: field || prop,
256
+ value: value,
257
+ data: scope.row
258
+ });
259
+ }
260
+ "
261
+ ></es-selector>
262
+ <template v-else-if="getType(['text', 'input', 'textarea'])">
263
+ <template v-if="config.lazy">
264
+ <input
265
+ v-if="getType(['text', 'input'], scope)"
266
+ class="el-input__inner"
267
+ v-bind="formOption"
268
+ v-model.lazy="scope.row[field]"
269
+ @blur="
270
+ (event) => {
271
+ handleBlur({
272
+ item: config,
273
+ event: event,
274
+ data: scope.row,
275
+ scope: scope
276
+ });
277
+ }
278
+ "
279
+ @focus="
280
+ (event) => {
281
+ handleFocus({
282
+ item: config,
283
+ event: event,
284
+ data: scope.row,
285
+ scope: scope
286
+ });
287
+ }
288
+ "
289
+ @change="
290
+ (value) => {
291
+ handleChange({
292
+ item: config,
293
+ name: field || prop,
294
+ value: value,
295
+ data: scope.row,
296
+ scope: scope
297
+ });
298
+ }
299
+ "
300
+ />
301
+ <textarea
302
+ v-else
303
+ class="el-textarea__inner"
304
+ v-bind="formOption"
305
+ v-model.lazy="scope.row[field]"
306
+ @blur="
307
+ (event) => {
308
+ handleBlur({
309
+ item: config,
310
+ event: event,
311
+ data: scope.row,
312
+ scope: scope
313
+ });
314
+ }
315
+ "
316
+ @focus="
317
+ (event) => {
318
+ handleFocus({
319
+ item: config,
320
+ event: event,
321
+ data: scope.row,
322
+ scope: scope
323
+ });
324
+ }
325
+ "
326
+ @change="
327
+ (value) => {
328
+ handleChange({
329
+ item: config,
330
+ name: field || prop,
331
+ value: value,
332
+ data: scope.row,
333
+ scope: scope
334
+ });
335
+ }
336
+ "
337
+ ></textarea>
338
+ </template>
339
+ <es-input
340
+ v-else
341
+ v-bind="formOption"
342
+ :type="type"
343
+ :scope="scope"
344
+ v-model="scope.row[field || prop]"
345
+ @blur="
346
+ (event) => {
347
+ handleBlur({
348
+ item: config,
349
+ event: event,
350
+ data: scope.row,
351
+ scope: scope
352
+ });
353
+ }
354
+ "
355
+ @focus="
356
+ (event) => {
357
+ handleFocus({
358
+ item: config,
359
+ event: event,
360
+ data: scope.row,
361
+ scope: scope
362
+ });
363
+ }
364
+ "
365
+ @change="
366
+ (value) => {
367
+ handleChange({
368
+ item: config,
369
+ name: field || prop,
370
+ value: value,
371
+ data: scope.row,
372
+ scope: scope
373
+ });
374
+ }
375
+ "
376
+ ></es-input>
377
+ </template>
378
+ </el-form-item>
379
+ </template>
380
+
381
+ <script>
382
+ export default {
383
+ name: '',
384
+ components: {},
385
+ props: {
386
+ type: String,
387
+ scope: {}
388
+ },
389
+ data() {
390
+ return {};
391
+ },
392
+ computed: {},
393
+ watch: {},
394
+ created() {},
395
+ mounted() {},
396
+ methods: {
397
+ getType(target, data) {
398
+ let type = this.type;
399
+ if (this.setType) {
400
+ let obj = this.setType(data);
401
+ if (util.isObject(obj)) {
402
+ type = obj.type;
403
+ this.options = obj.data;
404
+ } else {
405
+ type = obj;
406
+ }
407
+ }
408
+ return Array.isArray(target) ? target.includes(type) : type == target;
409
+ }
410
+ }
411
+ };
412
+ </script>
413
+
414
+ <style lang="scss" scoped></style>
@@ -91,7 +91,6 @@ export default {
91
91
  },
92
92
  mounted() {
93
93
  this.newThead = util.extend(true, [], this.data);
94
- console.log(this.mode, 90909);
95
94
  },
96
95
  methods: {
97
96
  show() {
@@ -352,7 +352,7 @@
352
352
  custom-class="es-clients-dialog"
353
353
  :visible.sync="showDownLoadApp"
354
354
  >
355
- <es-clients :downloads="download"></es-clients>
355
+ <es-clients :downloads="download" :showTips="showIosTips"></es-clients>
356
356
  </es-dialog>
357
357
  <slot name="calogin"></slot>
358
358
  <es-dialog
@@ -588,7 +588,8 @@ export default {
588
588
  type: Number,
589
589
  default: 1500
590
590
  },
591
- isScale: Boolean
591
+ isScale: Boolean,
592
+ showIosTips: Boolean
592
593
  },
593
594
  computed: {
594
595
  transform() {