@idooel/components 0.0.1-beta.6 → 0.0.1-beta.8
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/@idooel/components.esm.js +560 -416
- package/dist/@idooel/components.umd.js +567 -423
- package/package.json +1 -1
- package/packages/composite-components/search-area/src/index.vue +19 -0
- package/packages/date-range/index.js +5 -0
- package/packages/date-range/src/index.vue +42 -0
- package/packages/form/src/index.vue +5 -0
- package/packages/index.js +2 -0
|
@@ -20,7 +20,7 @@ import FileUpload from 'vue-upload-component';
|
|
|
20
20
|
//
|
|
21
21
|
//
|
|
22
22
|
|
|
23
|
-
var script$
|
|
23
|
+
var script$o = {
|
|
24
24
|
name: 'ele-button',
|
|
25
25
|
props: {
|
|
26
26
|
record: {
|
|
@@ -138,10 +138,10 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/* script */
|
|
141
|
-
const __vue_script__$
|
|
141
|
+
const __vue_script__$o = script$o;
|
|
142
142
|
|
|
143
143
|
/* template */
|
|
144
|
-
var __vue_render__$
|
|
144
|
+
var __vue_render__$o = function () {
|
|
145
145
|
var _vm = this;
|
|
146
146
|
var _h = _vm.$createElement;
|
|
147
147
|
var _c = _vm._self._c || _h;
|
|
@@ -187,17 +187,17 @@ var __vue_render__$n = function () {
|
|
|
187
187
|
2
|
|
188
188
|
)
|
|
189
189
|
};
|
|
190
|
-
var __vue_staticRenderFns__$
|
|
191
|
-
__vue_render__$
|
|
190
|
+
var __vue_staticRenderFns__$o = [];
|
|
191
|
+
__vue_render__$o._withStripped = true;
|
|
192
192
|
|
|
193
193
|
/* style */
|
|
194
|
-
const __vue_inject_styles__$
|
|
194
|
+
const __vue_inject_styles__$o = undefined;
|
|
195
195
|
/* scoped */
|
|
196
|
-
const __vue_scope_id__$
|
|
196
|
+
const __vue_scope_id__$o = undefined;
|
|
197
197
|
/* module identifier */
|
|
198
|
-
const __vue_module_identifier__$
|
|
198
|
+
const __vue_module_identifier__$o = undefined;
|
|
199
199
|
/* functional template */
|
|
200
|
-
const __vue_is_functional_template__$
|
|
200
|
+
const __vue_is_functional_template__$o = false;
|
|
201
201
|
/* style inject */
|
|
202
202
|
|
|
203
203
|
/* style inject SSR */
|
|
@@ -206,20 +206,20 @@ __vue_render__$n._withStripped = true;
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
const __vue_component__$
|
|
210
|
-
{ render: __vue_render__$
|
|
211
|
-
__vue_inject_styles__$
|
|
212
|
-
__vue_script__$
|
|
213
|
-
__vue_scope_id__$
|
|
214
|
-
__vue_is_functional_template__$
|
|
215
|
-
__vue_module_identifier__$
|
|
209
|
+
const __vue_component__$o = /*#__PURE__*/normalizeComponent(
|
|
210
|
+
{ render: __vue_render__$o, staticRenderFns: __vue_staticRenderFns__$o },
|
|
211
|
+
__vue_inject_styles__$o,
|
|
212
|
+
__vue_script__$o,
|
|
213
|
+
__vue_scope_id__$o,
|
|
214
|
+
__vue_is_functional_template__$o,
|
|
215
|
+
__vue_module_identifier__$o,
|
|
216
216
|
false,
|
|
217
217
|
undefined,
|
|
218
218
|
undefined,
|
|
219
219
|
undefined
|
|
220
220
|
);
|
|
221
221
|
|
|
222
|
-
__vue_component__$
|
|
222
|
+
__vue_component__$o.install = Vue => Vue.component(__vue_component__$o.name, __vue_component__$o);
|
|
223
223
|
|
|
224
224
|
//
|
|
225
225
|
//
|
|
@@ -234,7 +234,7 @@ __vue_component__$n.install = Vue => Vue.component(__vue_component__$n.name, __v
|
|
|
234
234
|
//
|
|
235
235
|
//
|
|
236
236
|
|
|
237
|
-
var script$
|
|
237
|
+
var script$n = {
|
|
238
238
|
name: 'ele-date',
|
|
239
239
|
props: {
|
|
240
240
|
value: {
|
|
@@ -262,10 +262,10 @@ var script$m = {
|
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
/* script */
|
|
265
|
-
const __vue_script__$
|
|
265
|
+
const __vue_script__$n = script$n;
|
|
266
266
|
|
|
267
267
|
/* template */
|
|
268
|
-
var __vue_render__$
|
|
268
|
+
var __vue_render__$n = function () {
|
|
269
269
|
var _vm = this;
|
|
270
270
|
var _h = _vm.$createElement;
|
|
271
271
|
var _c = _vm._self._c || _h;
|
|
@@ -280,17 +280,17 @@ var __vue_render__$m = function () {
|
|
|
280
280
|
on: { focus: _vm.onFocus, panelChange: _vm.onPanelChange },
|
|
281
281
|
})
|
|
282
282
|
};
|
|
283
|
-
var __vue_staticRenderFns__$
|
|
284
|
-
__vue_render__$
|
|
283
|
+
var __vue_staticRenderFns__$n = [];
|
|
284
|
+
__vue_render__$n._withStripped = true;
|
|
285
285
|
|
|
286
286
|
/* style */
|
|
287
|
-
const __vue_inject_styles__$
|
|
287
|
+
const __vue_inject_styles__$n = undefined;
|
|
288
288
|
/* scoped */
|
|
289
|
-
const __vue_scope_id__$
|
|
289
|
+
const __vue_scope_id__$n = undefined;
|
|
290
290
|
/* module identifier */
|
|
291
|
-
const __vue_module_identifier__$
|
|
291
|
+
const __vue_module_identifier__$n = undefined;
|
|
292
292
|
/* functional template */
|
|
293
|
-
const __vue_is_functional_template__$
|
|
293
|
+
const __vue_is_functional_template__$n = false;
|
|
294
294
|
/* style inject */
|
|
295
295
|
|
|
296
296
|
/* style inject SSR */
|
|
@@ -299,27 +299,27 @@ __vue_render__$m._withStripped = true;
|
|
|
299
299
|
|
|
300
300
|
|
|
301
301
|
|
|
302
|
-
const __vue_component__$
|
|
303
|
-
{ render: __vue_render__$
|
|
304
|
-
__vue_inject_styles__$
|
|
305
|
-
__vue_script__$
|
|
306
|
-
__vue_scope_id__$
|
|
307
|
-
__vue_is_functional_template__$
|
|
308
|
-
__vue_module_identifier__$
|
|
302
|
+
const __vue_component__$n = /*#__PURE__*/normalizeComponent(
|
|
303
|
+
{ render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
|
|
304
|
+
__vue_inject_styles__$n,
|
|
305
|
+
__vue_script__$n,
|
|
306
|
+
__vue_scope_id__$n,
|
|
307
|
+
__vue_is_functional_template__$n,
|
|
308
|
+
__vue_module_identifier__$n,
|
|
309
309
|
false,
|
|
310
310
|
undefined,
|
|
311
311
|
undefined,
|
|
312
312
|
undefined
|
|
313
313
|
);
|
|
314
314
|
|
|
315
|
-
__vue_component__$
|
|
315
|
+
__vue_component__$n.install = Vue => Vue.component(__vue_component__$n.name, __vue_component__$n);
|
|
316
316
|
|
|
317
317
|
//
|
|
318
318
|
//
|
|
319
319
|
//
|
|
320
320
|
//
|
|
321
321
|
|
|
322
|
-
var script$
|
|
322
|
+
var script$m = {
|
|
323
323
|
name: 'ele-input',
|
|
324
324
|
props: {
|
|
325
325
|
maxLength: {
|
|
@@ -383,10 +383,10 @@ function addStyle(id, css) {
|
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
/* script */
|
|
386
|
-
const __vue_script__$
|
|
386
|
+
const __vue_script__$m = script$m;
|
|
387
387
|
|
|
388
388
|
/* template */
|
|
389
|
-
var __vue_render__$
|
|
389
|
+
var __vue_render__$m = function () {
|
|
390
390
|
var _vm = this;
|
|
391
391
|
var _h = _vm.$createElement;
|
|
392
392
|
var _c = _vm._self._c || _h;
|
|
@@ -395,41 +395,41 @@ var __vue_render__$l = function () {
|
|
|
395
395
|
on: { change: _vm.onChange },
|
|
396
396
|
})
|
|
397
397
|
};
|
|
398
|
-
var __vue_staticRenderFns__$
|
|
399
|
-
__vue_render__$
|
|
398
|
+
var __vue_staticRenderFns__$m = [];
|
|
399
|
+
__vue_render__$m._withStripped = true;
|
|
400
400
|
|
|
401
401
|
/* style */
|
|
402
|
-
const __vue_inject_styles__$
|
|
402
|
+
const __vue_inject_styles__$m = function (inject) {
|
|
403
403
|
if (!inject) return
|
|
404
404
|
inject("data-v-468d0810_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"index.vue"}, media: undefined });
|
|
405
405
|
|
|
406
406
|
};
|
|
407
407
|
/* scoped */
|
|
408
|
-
const __vue_scope_id__$
|
|
408
|
+
const __vue_scope_id__$m = "data-v-468d0810";
|
|
409
409
|
/* module identifier */
|
|
410
|
-
const __vue_module_identifier__$
|
|
410
|
+
const __vue_module_identifier__$m = undefined;
|
|
411
411
|
/* functional template */
|
|
412
|
-
const __vue_is_functional_template__$
|
|
412
|
+
const __vue_is_functional_template__$m = false;
|
|
413
413
|
/* style inject SSR */
|
|
414
414
|
|
|
415
415
|
/* style inject shadow dom */
|
|
416
416
|
|
|
417
417
|
|
|
418
418
|
|
|
419
|
-
const __vue_component__$
|
|
420
|
-
{ render: __vue_render__$
|
|
421
|
-
__vue_inject_styles__$
|
|
422
|
-
__vue_script__$
|
|
423
|
-
__vue_scope_id__$
|
|
424
|
-
__vue_is_functional_template__$
|
|
425
|
-
__vue_module_identifier__$
|
|
419
|
+
const __vue_component__$m = /*#__PURE__*/normalizeComponent(
|
|
420
|
+
{ render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
|
|
421
|
+
__vue_inject_styles__$m,
|
|
422
|
+
__vue_script__$m,
|
|
423
|
+
__vue_scope_id__$m,
|
|
424
|
+
__vue_is_functional_template__$m,
|
|
425
|
+
__vue_module_identifier__$m,
|
|
426
426
|
false,
|
|
427
427
|
createInjector,
|
|
428
428
|
undefined,
|
|
429
429
|
undefined
|
|
430
430
|
);
|
|
431
431
|
|
|
432
|
-
__vue_component__$
|
|
432
|
+
__vue_component__$m.install = Vue => Vue.component(__vue_component__$m.name, __vue_component__$m);
|
|
433
433
|
|
|
434
434
|
//
|
|
435
435
|
//
|
|
@@ -440,7 +440,7 @@ __vue_component__$l.install = Vue => Vue.component(__vue_component__$l.name, __v
|
|
|
440
440
|
//
|
|
441
441
|
//
|
|
442
442
|
|
|
443
|
-
var script$
|
|
443
|
+
var script$l = {
|
|
444
444
|
name: 'ele-select',
|
|
445
445
|
props: {
|
|
446
446
|
value: {
|
|
@@ -463,10 +463,10 @@ var script$k = {
|
|
|
463
463
|
};
|
|
464
464
|
|
|
465
465
|
/* script */
|
|
466
|
-
const __vue_script__$
|
|
466
|
+
const __vue_script__$l = script$l;
|
|
467
467
|
|
|
468
468
|
/* template */
|
|
469
|
-
var __vue_render__$
|
|
469
|
+
var __vue_render__$l = function () {
|
|
470
470
|
var _vm = this;
|
|
471
471
|
var _h = _vm.$createElement;
|
|
472
472
|
var _c = _vm._self._c || _h;
|
|
@@ -487,41 +487,41 @@ var __vue_render__$k = function () {
|
|
|
487
487
|
1
|
|
488
488
|
)
|
|
489
489
|
};
|
|
490
|
-
var __vue_staticRenderFns__$
|
|
491
|
-
__vue_render__$
|
|
490
|
+
var __vue_staticRenderFns__$l = [];
|
|
491
|
+
__vue_render__$l._withStripped = true;
|
|
492
492
|
|
|
493
493
|
/* style */
|
|
494
|
-
const __vue_inject_styles__$
|
|
494
|
+
const __vue_inject_styles__$l = function (inject) {
|
|
495
495
|
if (!inject) return
|
|
496
496
|
inject("data-v-499435e8_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue"}, media: undefined });
|
|
497
497
|
|
|
498
498
|
};
|
|
499
499
|
/* scoped */
|
|
500
|
-
const __vue_scope_id__$
|
|
500
|
+
const __vue_scope_id__$l = "data-v-499435e8";
|
|
501
501
|
/* module identifier */
|
|
502
|
-
const __vue_module_identifier__$
|
|
502
|
+
const __vue_module_identifier__$l = undefined;
|
|
503
503
|
/* functional template */
|
|
504
|
-
const __vue_is_functional_template__$
|
|
504
|
+
const __vue_is_functional_template__$l = false;
|
|
505
505
|
/* style inject SSR */
|
|
506
506
|
|
|
507
507
|
/* style inject shadow dom */
|
|
508
508
|
|
|
509
509
|
|
|
510
510
|
|
|
511
|
-
const __vue_component__$
|
|
512
|
-
{ render: __vue_render__$
|
|
513
|
-
__vue_inject_styles__$
|
|
514
|
-
__vue_script__$
|
|
515
|
-
__vue_scope_id__$
|
|
516
|
-
__vue_is_functional_template__$
|
|
517
|
-
__vue_module_identifier__$
|
|
511
|
+
const __vue_component__$l = /*#__PURE__*/normalizeComponent(
|
|
512
|
+
{ render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
|
|
513
|
+
__vue_inject_styles__$l,
|
|
514
|
+
__vue_script__$l,
|
|
515
|
+
__vue_scope_id__$l,
|
|
516
|
+
__vue_is_functional_template__$l,
|
|
517
|
+
__vue_module_identifier__$l,
|
|
518
518
|
false,
|
|
519
519
|
createInjector,
|
|
520
520
|
undefined,
|
|
521
521
|
undefined
|
|
522
522
|
);
|
|
523
523
|
|
|
524
|
-
__vue_component__$
|
|
524
|
+
__vue_component__$l.install = Vue => Vue.component(__vue_component__$l.name, __vue_component__$l);
|
|
525
525
|
|
|
526
526
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
527
527
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
@@ -1155,7 +1155,7 @@ const parse = (expression, props = {}) => {
|
|
|
1155
1155
|
|
|
1156
1156
|
//
|
|
1157
1157
|
const MENU_KEY_NAMESPACE = 'f7b3b8b0-1b7b-11ec-9621-0242ac130002';
|
|
1158
|
-
var script$
|
|
1158
|
+
var script$k = {
|
|
1159
1159
|
props: {
|
|
1160
1160
|
record: {
|
|
1161
1161
|
type: Object
|
|
@@ -1253,10 +1253,10 @@ var script$j = {
|
|
|
1253
1253
|
};
|
|
1254
1254
|
|
|
1255
1255
|
/* script */
|
|
1256
|
-
const __vue_script__$
|
|
1256
|
+
const __vue_script__$k = script$k;
|
|
1257
1257
|
|
|
1258
1258
|
/* template */
|
|
1259
|
-
var __vue_render__$
|
|
1259
|
+
var __vue_render__$k = function () {
|
|
1260
1260
|
var _vm = this;
|
|
1261
1261
|
var _h = _vm.$createElement;
|
|
1262
1262
|
var _c = _vm._self._c || _h;
|
|
@@ -1356,34 +1356,34 @@ var __vue_render__$j = function () {
|
|
|
1356
1356
|
0
|
|
1357
1357
|
)
|
|
1358
1358
|
};
|
|
1359
|
-
var __vue_staticRenderFns__$
|
|
1360
|
-
__vue_render__$
|
|
1359
|
+
var __vue_staticRenderFns__$k = [];
|
|
1360
|
+
__vue_render__$k._withStripped = true;
|
|
1361
1361
|
|
|
1362
1362
|
/* style */
|
|
1363
|
-
const __vue_inject_styles__$
|
|
1363
|
+
const __vue_inject_styles__$k = function (inject) {
|
|
1364
1364
|
if (!inject) return
|
|
1365
1365
|
inject("data-v-572820bc_0", { source: ".g-table__action[data-v-572820bc] {\n display: flex;\n flex-direction: row;\n}\n.g-table__action .table-action__item[data-v-572820bc] {\n font-size: 14px;\n color: #409EFF;\n margin-left: 16px;\n cursor: pointer;\n}\n.g-table__action .table-action__item[data-v-572820bc]:first-child {\n margin-left: 0;\n}\n\n/*# sourceMappingURL=action.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\table\\src\\action.vue","action.vue"],"names":[],"mappings":"AAsHA;EACA,aAAA;EACA,mBAAA;ACrHA;ADsHA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;ACpHA;ADqHA;EACA,cAAA;ACnHA;;AAEA,qCAAqC","file":"action.vue","sourcesContent":["<template>\r\n <div class=\"g-table__action\">\r\n <div class=\"table-action__item\" v-for=\"(item, idx) in execOperationExpression(dataSource)\" :key=\"idx\">\r\n <template v-if=\"item.type == 'text'\">\r\n <span @click=\"handleClickText(item)\">{{ item.label }}</span>\r\n </template>\r\n <template v-else-if=\"item.type == 'dropdown'\">\r\n <a-dropdown>\r\n <a-menu slot=\"overlay\" @click=\"handleDropdownClick\">\r\n <a-menu-item :key=\"`${item.key || ''}${menuKeyDelimiter}${opt.value || ''}`\" v-for=\"opt in execOperationExpression(item.optionList)\">\r\n <template v-if=\"opt.type == 'confirm'\">\r\n <a-popconfirm :title=\"opt.message\" @confirm=\"handleClickConfirm(opt)\">\r\n {{ opt.label }}\r\n </a-popconfirm>\r\n </template>\r\n <template v-else>\r\n {{ opt.label }}\r\n </template>\r\n </a-menu-item>\r\n </a-menu>\r\n <span>{{ item.label }}</span>\r\n </a-dropdown>\r\n </template>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { v5 as uuidv5 } from 'uuid'\r\nimport { type, route } from '@idooel/shared'\r\nimport { parse } from '@idooel/expression'\r\nconst MENU_KEY_NAMESPACE = 'f7b3b8b0-1b7b-11ec-9621-0242ac130002'\r\nexport default {\r\n props: {\r\n record: {\r\n type: Object\r\n },\r\n dataSource: {\r\n type: Array,\r\n default: () => []\r\n }\r\n },\r\n inject: {\r\n requestTreeData: {\r\n default: void 0\r\n },\r\n requestTableData: {\r\n default: void 0\r\n }\r\n },\r\n computed: {\r\n menuKeyDelimiter () {\r\n return uuidv5('_', MENU_KEY_NAMESPACE)\r\n },\r\n builtInMethods () {\r\n return { \r\n requestTreeData: this.requestTreeData, \r\n requestTableData: this.requestTableData \r\n }\r\n }\r\n },\r\n methods: {\r\n execOperationExpression (dataSource = []) {\r\n const ret = dataSource.map(item => {\r\n const { show } = item\r\n if (type.isUndefined(show)) {\r\n return item\r\n } else if (type.isBool(show)) {\r\n if (show) return item\r\n } else if (type.isStr(show)) {\r\n const parseRet = parse(show, { \r\n ...this.record, \r\n _route: route.searchToQueryParams(window.location.search) \r\n })\r\n if (parseRet) return item\r\n }\r\n }).filter(item => item)\r\n return ret\r\n },\r\n handleClickConfirm (props) {\r\n //TODO generate event by special rule\r\n const { eventName, value } = props\r\n this.$emit(eventName, { \r\n key: value, \r\n record: this.record,\r\n builtInMethods: this.builtInMethods \r\n })\r\n },\r\n handleDropdownClick (props) {\r\n const { key } = props\r\n const [parent, child] = key.split(this.menuKeyDelimiter)\r\n if (!parent || !child) {\r\n throw new Error('key is required')\r\n }\r\n const currentDropdown = this.dataSource.find(item => item.key === parent)\r\n const currentClickTarget = currentDropdown.optionList.find(item => item.value === child)\r\n const { eventName, type } = currentClickTarget\r\n //TODO generate event by special rule\r\n if (type === 'confirm') return\r\n this.$emit(eventName, { \r\n key: child, \r\n record: this.record, \r\n builtInMethods: this.builtInMethods \r\n })\r\n },\r\n handleClickText (props) {\r\n const { eventName, key } = props\r\n this.$emit(eventName, { \r\n key, \r\n record: this.record, \r\n builtInMethods: this.builtInMethods \r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.g-table__action {\r\n display: flex;\r\n flex-direction: row;\r\n .table-action__item {\r\n font-size: 14px;\r\n color: #409EFF;\r\n margin-left: 16px;\r\n cursor: pointer;\r\n &:first-child {\r\n margin-left: 0;\r\n }\r\n }\r\n}\r\n</style>",".g-table__action {\n display: flex;\n flex-direction: row;\n}\n.g-table__action .table-action__item {\n font-size: 14px;\n color: #409EFF;\n margin-left: 16px;\n cursor: pointer;\n}\n.g-table__action .table-action__item:first-child {\n margin-left: 0;\n}\n\n/*# sourceMappingURL=action.vue.map */"]}, media: undefined });
|
|
1366
1366
|
|
|
1367
1367
|
};
|
|
1368
1368
|
/* scoped */
|
|
1369
|
-
const __vue_scope_id__$
|
|
1369
|
+
const __vue_scope_id__$k = "data-v-572820bc";
|
|
1370
1370
|
/* module identifier */
|
|
1371
|
-
const __vue_module_identifier__$
|
|
1371
|
+
const __vue_module_identifier__$k = undefined;
|
|
1372
1372
|
/* functional template */
|
|
1373
|
-
const __vue_is_functional_template__$
|
|
1373
|
+
const __vue_is_functional_template__$k = false;
|
|
1374
1374
|
/* style inject SSR */
|
|
1375
1375
|
|
|
1376
1376
|
/* style inject shadow dom */
|
|
1377
1377
|
|
|
1378
1378
|
|
|
1379
1379
|
|
|
1380
|
-
const __vue_component__$
|
|
1381
|
-
{ render: __vue_render__$
|
|
1382
|
-
__vue_inject_styles__$
|
|
1383
|
-
__vue_script__$
|
|
1384
|
-
__vue_scope_id__$
|
|
1385
|
-
__vue_is_functional_template__$
|
|
1386
|
-
__vue_module_identifier__$
|
|
1380
|
+
const __vue_component__$k = /*#__PURE__*/normalizeComponent(
|
|
1381
|
+
{ render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
|
|
1382
|
+
__vue_inject_styles__$k,
|
|
1383
|
+
__vue_script__$k,
|
|
1384
|
+
__vue_scope_id__$k,
|
|
1385
|
+
__vue_is_functional_template__$k,
|
|
1386
|
+
__vue_module_identifier__$k,
|
|
1387
1387
|
false,
|
|
1388
1388
|
createInjector,
|
|
1389
1389
|
undefined,
|
|
@@ -1391,10 +1391,10 @@ __vue_render__$j._withStripped = true;
|
|
|
1391
1391
|
);
|
|
1392
1392
|
|
|
1393
1393
|
//
|
|
1394
|
-
var script$
|
|
1394
|
+
var script$j = {
|
|
1395
1395
|
name: 'ele-table',
|
|
1396
1396
|
components: {
|
|
1397
|
-
Actions: __vue_component__$
|
|
1397
|
+
Actions: __vue_component__$k
|
|
1398
1398
|
},
|
|
1399
1399
|
props: {
|
|
1400
1400
|
actions: {
|
|
@@ -1437,10 +1437,10 @@ var script$i = {
|
|
|
1437
1437
|
};
|
|
1438
1438
|
|
|
1439
1439
|
/* script */
|
|
1440
|
-
const __vue_script__$
|
|
1440
|
+
const __vue_script__$j = script$j;
|
|
1441
1441
|
|
|
1442
1442
|
/* template */
|
|
1443
|
-
var __vue_render__$
|
|
1443
|
+
var __vue_render__$j = function () {
|
|
1444
1444
|
var _vm = this;
|
|
1445
1445
|
var _h = _vm.$createElement;
|
|
1446
1446
|
var _c = _vm._self._c || _h;
|
|
@@ -1499,41 +1499,41 @@ var __vue_render__$i = function () {
|
|
|
1499
1499
|
1
|
|
1500
1500
|
)
|
|
1501
1501
|
};
|
|
1502
|
-
var __vue_staticRenderFns__$
|
|
1503
|
-
__vue_render__$
|
|
1502
|
+
var __vue_staticRenderFns__$j = [];
|
|
1503
|
+
__vue_render__$j._withStripped = true;
|
|
1504
1504
|
|
|
1505
1505
|
/* style */
|
|
1506
|
-
const __vue_inject_styles__$
|
|
1506
|
+
const __vue_inject_styles__$j = function (inject) {
|
|
1507
1507
|
if (!inject) return
|
|
1508
1508
|
inject("data-v-6f3faf52_0", { source: ".g-table__wrapper[data-v-6f3faf52] {\n padding: 16px;\n padding-top: unset;\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table {\n border-width: calc(var(--idooel-border-width) * 1px);\n border-style: solid;\n border-color: var(--idooel-border-color);\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-header .ant-table-fixed {\n /* border-bottom: 2px solid #53a8ff !important; */\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-tbody tr td {\n border-color: var(--idooel-column-border-color);\n border-width: calc(var(--idooel-column-border-width) * 1px);\n border-style: solid;\n border-top: unset;\n border-left: unset;\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-body {\n border-top-width: calc(var(--idooel-border-width) * 1px);\n border-top-style: solid;\n border-top-color: var(--idooel-border-color);\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-fixed-left {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-style: solid;\n border-bottom-color: var(--idooel-border-color);\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-fixed-left .ant-table-header {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-style: solid;\n border-bottom-color: var(--idooel-border-color);\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-fixed-left .ant-table-body-inner {\n border-right-width: calc(var(--idooel-border-width) * 1px);\n border-right-style: solid;\n border-right-color: var(--idooel-border-color);\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-fixed-left .ant-table-fixed {\n border-right-width: calc(var(--idooel-border-width) * 1px);\n border-right-color: var(--idooel-border-color);\n border-right-style: solid;\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-fixed-right {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-style: solid;\n border-bottom-color: var(--idooel-border-color);\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-fixed-right .ant-table-header {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-color: var(--idooel-border-color);\n border-bottom-style: solid;\n}\n.g-table__wrapper[data-v-6f3faf52] .ant-table-wrapper .ant-table-fixed-right .ant-table-fixed {\n border-left-width: calc(var(--idooel-border-width) * 1px);\n border-left-style: solid;\n border-left-color: var(--idooel-border-color);\n}\n.g-table__wrapper .g-table__pagination[data-v-6f3faf52] {\n /* margin-top: 8px; */\n display: flex;\n flex-direction: row;\n justify-content: end;\n border-width: calc(var(--idooel-border-width) * 1px);\n border-color: var(--idooel-border-color);\n border-style: solid;\n border-top: unset;\n padding-top: 8px;\n padding-bottom: 8px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\table\\src\\index.vue","index.vue"],"names":[],"mappings":"AA4EA;EAgEA,aAAA;EACA,kBAAA;AC1IA;AD2EA;EACA,oDAAA;EACA,mBAAA;EACA,wCAAA;ACzEA;AD4EA;EACA,iDAAA;AC1EA;AD+EA;EACA,+CAAA;EACA,2DAAA;EACA,mBAAA;EACA,iBAAA;EACA,kBAAA;AC7EA;ADiFA;EACA,wDAAA;EACA,uBAAA;EACA,4CAAA;AC/EA;ADiFA;EACA,2DAAA;EACA,0BAAA;EACA,+CAAA;AC/EA;ADgFA;EACA,2DAAA;EACA,0BAAA;EACA,+CAAA;AC9EA;ADgFA;EACA,0DAAA;EACA,yBAAA;EACA,8CAAA;AC9EA;ADgFA;EACA,0DAAA;EACA,8CAAA;EACA,yBAAA;AC9EA;ADiFA;EAMA,2DAAA;EACA,0BAAA;EACA,+CAAA;ACpFA;AD6EA;EACA,2DAAA;EACA,+CAAA;EACA,0BAAA;AC3EA;ADgFA;EACA,yDAAA;EACA,wBAAA;EACA,6CAAA;AC9EA;ADsFA;EACA,qBAAA;EACA,aAAA;EACA,mBAAA;EACA,oBAAA;EACA,oDAAA;EACA,wCAAA;EACA,mBAAA;EACA,iBAAA;EACA,gBAAA;EACA,mBAAA;ACpFA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <div class=\"g-table__wrapper\">\r\n <a-table\r\n :pagination=\"false\"\r\n :loading=\"loading\"\r\n :columns=\"columns\"\r\n :row-class-name=\"setRowClassName\"\r\n :data-source=\"dataSource\"\r\n :scroll=\"{ x: 1500, y: 500 }\">\r\n <template slot=\"action\" slot-scope=\"record\">\r\n <Actions v-on=\"$listeners\" :data-source=\"actions\" :record=\"record\"></Actions>\r\n </template>\r\n </a-table>\r\n <div class=\"g-table__pagination\">\r\n <a-pagination\r\n :show-total=\"total => `共 ${total} 条数据`\"\r\n show-size-changer \r\n show-quick-jumper\r\n :pageSize=\"pageSize\"\r\n :pageSizeOptions=\"pageSizeOptions\"\r\n @change=\"onChangePagination\" \r\n :total=\"total\">\r\n </a-pagination>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Actions from './action.vue'\r\nexport default {\r\n name: 'ele-table',\r\n components: {\r\n Actions\r\n },\r\n props: {\r\n actions: {\r\n type: Array,\r\n default: () => []\r\n },\r\n total: {\r\n type: Number,\r\n default: 0\r\n },\r\n loading: {\r\n type: Boolean,\r\n default: false\r\n },\r\n columns: {\r\n type: Array,\r\n default: () => []\r\n },\r\n dataSource: {\r\n type: Array,\r\n default: () => []\r\n },\r\n pageSize: {\r\n type: Number,\r\n default: 10\r\n },\r\n pageSizeOptions: {\r\n type: Array,\r\n default: () => ['10', '20', '30', '40']\r\n }\r\n },\r\n methods: {\r\n setRowClassName (record, idx) {\r\n return idx % 2 === 0 ? 'g-table__row--even' : 'g-table__row--odd'\r\n },\r\n onChangePagination (page, pagrSize) {\r\n this.$emit('change-page', page, pagrSize)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.g-table__wrapper {\r\n ::v-deep .ant-table-wrapper {\r\n .ant-table {\r\n border-width: calc(var(--idooel-border-width) * 1px);\r\n border-style: solid;\r\n border-color: var(--idooel-border-color);\r\n }\r\n .ant-table-header {\r\n .ant-table-fixed {\r\n /* border-bottom: 2px solid #53a8ff !important; */\r\n }\r\n }\r\n .ant-table-tbody {\r\n tr {\r\n td {\r\n border-color: var(--idooel-column-border-color);\r\n border-width: calc(var(--idooel-column-border-width) * 1px);;\r\n border-style: solid;\r\n border-top: unset;\r\n border-left: unset;\r\n }\r\n }\r\n }\r\n .ant-table-body {\r\n border-top-width: calc(var(--idooel-border-width) * 1px);\r\n border-top-style: solid;\r\n border-top-color: var(--idooel-border-color);\r\n }\r\n .ant-table-fixed-left {\r\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\r\n border-bottom-style: solid;\r\n border-bottom-color: var(--idooel-border-color);\r\n .ant-table-header {\r\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\r\n border-bottom-style: solid;\r\n border-bottom-color: var(--idooel-border-color);\r\n }\r\n .ant-table-body-inner {\r\n border-right-width: calc(var(--idooel-border-width) * 1px);\r\n border-right-style: solid;\r\n border-right-color: var(--idooel-border-color);\r\n }\r\n .ant-table-fixed {\r\n border-right-width: calc(var(--idooel-border-width) * 1px);\r\n border-right-color: var(--idooel-border-color);\r\n border-right-style: solid;\r\n }\r\n }\r\n .ant-table-fixed-right {\r\n .ant-table-header {\r\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\r\n border-bottom-color: var(--idooel-border-color);\r\n border-bottom-style: solid;\r\n }\r\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\r\n border-bottom-style: solid;\r\n border-bottom-color: var(--idooel-border-color);\r\n .ant-table-fixed {\r\n border-left-width: calc(var(--idooel-border-width) * 1px);\r\n border-left-style: solid;\r\n border-left-color: var(--idooel-border-color);\r\n }\r\n }\r\n }\r\n padding: 16px;\r\n padding-top: unset;\r\n .g-table__row--even {}\r\n .g-table__row--odd {}\r\n .g-table__pagination {\r\n /* margin-top: 8px; */\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: end;\r\n border-width: calc(var(--idooel-border-width) * 1px);\r\n border-color: var(--idooel-border-color);\r\n border-style: solid;\r\n border-top: unset;\r\n padding-top: 8px;\r\n padding-bottom: 8px;\r\n }\r\n}\r\n</style>",".g-table__wrapper {\n padding: 16px;\n padding-top: unset;\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table {\n border-width: calc(var(--idooel-border-width) * 1px);\n border-style: solid;\n border-color: var(--idooel-border-color);\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-header .ant-table-fixed {\n /* border-bottom: 2px solid #53a8ff !important; */\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-tbody tr td {\n border-color: var(--idooel-column-border-color);\n border-width: calc(var(--idooel-column-border-width) * 1px);\n border-style: solid;\n border-top: unset;\n border-left: unset;\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-body {\n border-top-width: calc(var(--idooel-border-width) * 1px);\n border-top-style: solid;\n border-top-color: var(--idooel-border-color);\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-fixed-left {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-style: solid;\n border-bottom-color: var(--idooel-border-color);\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-fixed-left .ant-table-header {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-style: solid;\n border-bottom-color: var(--idooel-border-color);\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-fixed-left .ant-table-body-inner {\n border-right-width: calc(var(--idooel-border-width) * 1px);\n border-right-style: solid;\n border-right-color: var(--idooel-border-color);\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-fixed-left .ant-table-fixed {\n border-right-width: calc(var(--idooel-border-width) * 1px);\n border-right-color: var(--idooel-border-color);\n border-right-style: solid;\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-fixed-right {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-style: solid;\n border-bottom-color: var(--idooel-border-color);\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-fixed-right .ant-table-header {\n border-bottom-width: calc(var(--idooel-border-width) * 1px);\n border-bottom-color: var(--idooel-border-color);\n border-bottom-style: solid;\n}\n.g-table__wrapper ::v-deep .ant-table-wrapper .ant-table-fixed-right .ant-table-fixed {\n border-left-width: calc(var(--idooel-border-width) * 1px);\n border-left-style: solid;\n border-left-color: var(--idooel-border-color);\n}\n.g-table__wrapper .g-table__pagination {\n /* margin-top: 8px; */\n display: flex;\n flex-direction: row;\n justify-content: end;\n border-width: calc(var(--idooel-border-width) * 1px);\n border-color: var(--idooel-border-color);\n border-style: solid;\n border-top: unset;\n padding-top: 8px;\n padding-bottom: 8px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
1509
1509
|
|
|
1510
1510
|
};
|
|
1511
1511
|
/* scoped */
|
|
1512
|
-
const __vue_scope_id__$
|
|
1512
|
+
const __vue_scope_id__$j = "data-v-6f3faf52";
|
|
1513
1513
|
/* module identifier */
|
|
1514
|
-
const __vue_module_identifier__$
|
|
1514
|
+
const __vue_module_identifier__$j = undefined;
|
|
1515
1515
|
/* functional template */
|
|
1516
|
-
const __vue_is_functional_template__$
|
|
1516
|
+
const __vue_is_functional_template__$j = false;
|
|
1517
1517
|
/* style inject SSR */
|
|
1518
1518
|
|
|
1519
1519
|
/* style inject shadow dom */
|
|
1520
1520
|
|
|
1521
1521
|
|
|
1522
1522
|
|
|
1523
|
-
const __vue_component__$
|
|
1524
|
-
{ render: __vue_render__$
|
|
1525
|
-
__vue_inject_styles__$
|
|
1526
|
-
__vue_script__$
|
|
1527
|
-
__vue_scope_id__$
|
|
1528
|
-
__vue_is_functional_template__$
|
|
1529
|
-
__vue_module_identifier__$
|
|
1523
|
+
const __vue_component__$j = /*#__PURE__*/normalizeComponent(
|
|
1524
|
+
{ render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
|
|
1525
|
+
__vue_inject_styles__$j,
|
|
1526
|
+
__vue_script__$j,
|
|
1527
|
+
__vue_scope_id__$j,
|
|
1528
|
+
__vue_is_functional_template__$j,
|
|
1529
|
+
__vue_module_identifier__$j,
|
|
1530
1530
|
false,
|
|
1531
1531
|
createInjector,
|
|
1532
1532
|
undefined,
|
|
1533
1533
|
undefined
|
|
1534
1534
|
);
|
|
1535
1535
|
|
|
1536
|
-
__vue_component__$
|
|
1536
|
+
__vue_component__$j.install = Vue => Vue.component(__vue_component__$j.name, __vue_component__$j);
|
|
1537
1537
|
|
|
1538
1538
|
//
|
|
1539
1539
|
//
|
|
@@ -1559,7 +1559,7 @@ __vue_component__$i.install = Vue => Vue.component(__vue_component__$i.name, __v
|
|
|
1559
1559
|
//
|
|
1560
1560
|
//
|
|
1561
1561
|
|
|
1562
|
-
var script$
|
|
1562
|
+
var script$i = {
|
|
1563
1563
|
name: 'ele-tree',
|
|
1564
1564
|
props: {
|
|
1565
1565
|
treeData: {
|
|
@@ -1622,10 +1622,10 @@ var script$h = {
|
|
|
1622
1622
|
};
|
|
1623
1623
|
|
|
1624
1624
|
/* script */
|
|
1625
|
-
const __vue_script__$
|
|
1625
|
+
const __vue_script__$i = script$i;
|
|
1626
1626
|
|
|
1627
1627
|
/* template */
|
|
1628
|
-
var __vue_render__$
|
|
1628
|
+
var __vue_render__$i = function () {
|
|
1629
1629
|
var _vm = this;
|
|
1630
1630
|
var _h = _vm.$createElement;
|
|
1631
1631
|
var _c = _vm._self._c || _h;
|
|
@@ -1682,41 +1682,41 @@ var __vue_render__$h = function () {
|
|
|
1682
1682
|
1
|
|
1683
1683
|
)
|
|
1684
1684
|
};
|
|
1685
|
-
var __vue_staticRenderFns__$
|
|
1686
|
-
__vue_render__$
|
|
1685
|
+
var __vue_staticRenderFns__$i = [];
|
|
1686
|
+
__vue_render__$i._withStripped = true;
|
|
1687
1687
|
|
|
1688
1688
|
/* style */
|
|
1689
|
-
const __vue_inject_styles__$
|
|
1689
|
+
const __vue_inject_styles__$i = function (inject) {
|
|
1690
1690
|
if (!inject) return
|
|
1691
1691
|
inject("data-v-cc99bbf0_0", { source: ".g-tree__wrapper[data-v-cc99bbf0] {\n overflow: hidden;\n}\n.g-tree__wrapper[data-v-cc99bbf0] .ant-tree .ant-tree-node-content-wrapper {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.g-tree__wrapper[data-v-cc99bbf0] .ant-tree .ant-tree-node-selected {\n color: #fff;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\tree\\src\\index.vue","index.vue"],"names":[],"mappings":"AAwFA;EACA,gBAAA;ACvFA;ADyFA;EACA,uBAAA;EACA,gBAAA;EACA,mBAAA;ACvFA;ADyFA;EACA,WAAA;ACvFA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <div class=\"g-tree__wrapper\">\r\n <a-tree\r\n v-if=\"innerTreeData.length\"\r\n :tree-data=\"innerTreeData\"\r\n @select=\"selectTreeNode\"\r\n :replaceFields=\"replaceFields\"\r\n :default-expanded-keys=\"defaultExpandedKeys\"\r\n :default-selected-keys=\"defaultSelectedKeys\"\r\n blockNode \r\n :show-icon=\"showIcon\">\r\n <template #title=\"{ title }\">\r\n <span :title=\"title\" class=\"tree-node__title\">\r\n {{ title }}\r\n </span>\r\n </template>\r\n <template slot=\"custom\" slot-scope=\"{ scopedSlots }\">\r\n <a-icon :type=\"scopedSlots.iconName\"></a-icon>\r\n </template>\r\n </a-tree>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'ele-tree',\r\n props: {\r\n treeData: {\r\n type: Array,\r\n default: () => []\r\n },\r\n replaceFields: {\r\n type: Object,\r\n default: () => ({\r\n title: 'title',\r\n key: 'id',\r\n children: 'children'\r\n })\r\n },\r\n defaultExpandedKeys: {\r\n type: Array\r\n },\r\n defaultSelectedKeys: {\r\n type: Array\r\n },\r\n showIcon: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data () {\r\n return {}\r\n },\r\n computed: {\r\n innerTreeData () {\r\n return this.treeData\r\n // return [\r\n // {\r\n // title: 'parent 1',\r\n // key: 1,\r\n // scopedSlots: {\r\n // icon: 'custom',\r\n // iconName: 'smile-o'\r\n // },\r\n // children: [\r\n // {\r\n // title: '2',\r\n // key: 2,\r\n // scopedSlots: {\r\n // icon: 'custom',\r\n // iconName: 'frown-o'\r\n // }\r\n // }\r\n // ]\r\n // }\r\n // ]\r\n }\r\n },\r\n methods: {\r\n refreshTreeStatus (props = {}) {},\r\n selectTreeNode (selectedKeys, e) {\r\n this.$emit('select', selectedKeys, e)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.g-tree__wrapper {\r\n overflow: hidden;\r\n ::v-deep .ant-tree {\r\n .ant-tree-node-content-wrapper {\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n }\r\n .ant-tree-node-selected {\r\n color: #fff;\r\n }\r\n }\r\n}\r\n</style>",".g-tree__wrapper {\n overflow: hidden;\n}\n.g-tree__wrapper ::v-deep .ant-tree .ant-tree-node-content-wrapper {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.g-tree__wrapper ::v-deep .ant-tree .ant-tree-node-selected {\n color: #fff;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
1692
1692
|
|
|
1693
1693
|
};
|
|
1694
1694
|
/* scoped */
|
|
1695
|
-
const __vue_scope_id__$
|
|
1695
|
+
const __vue_scope_id__$i = "data-v-cc99bbf0";
|
|
1696
1696
|
/* module identifier */
|
|
1697
|
-
const __vue_module_identifier__$
|
|
1697
|
+
const __vue_module_identifier__$i = undefined;
|
|
1698
1698
|
/* functional template */
|
|
1699
|
-
const __vue_is_functional_template__$
|
|
1699
|
+
const __vue_is_functional_template__$i = false;
|
|
1700
1700
|
/* style inject SSR */
|
|
1701
1701
|
|
|
1702
1702
|
/* style inject shadow dom */
|
|
1703
1703
|
|
|
1704
1704
|
|
|
1705
1705
|
|
|
1706
|
-
const __vue_component__$
|
|
1707
|
-
{ render: __vue_render__$
|
|
1708
|
-
__vue_inject_styles__$
|
|
1709
|
-
__vue_script__$
|
|
1710
|
-
__vue_scope_id__$
|
|
1711
|
-
__vue_is_functional_template__$
|
|
1712
|
-
__vue_module_identifier__$
|
|
1706
|
+
const __vue_component__$i = /*#__PURE__*/normalizeComponent(
|
|
1707
|
+
{ render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
|
|
1708
|
+
__vue_inject_styles__$i,
|
|
1709
|
+
__vue_script__$i,
|
|
1710
|
+
__vue_scope_id__$i,
|
|
1711
|
+
__vue_is_functional_template__$i,
|
|
1712
|
+
__vue_module_identifier__$i,
|
|
1713
1713
|
false,
|
|
1714
1714
|
createInjector,
|
|
1715
1715
|
undefined,
|
|
1716
1716
|
undefined
|
|
1717
1717
|
);
|
|
1718
1718
|
|
|
1719
|
-
__vue_component__$
|
|
1719
|
+
__vue_component__$i.install = Vue => Vue.component(__vue_component__$i.name, __vue_component__$i);
|
|
1720
1720
|
|
|
1721
1721
|
//
|
|
1722
1722
|
//
|
|
@@ -1726,7 +1726,7 @@ __vue_component__$h.install = Vue => Vue.component(__vue_component__$h.name, __v
|
|
|
1726
1726
|
//
|
|
1727
1727
|
//
|
|
1728
1728
|
|
|
1729
|
-
var script$
|
|
1729
|
+
var script$h = {
|
|
1730
1730
|
props: {
|
|
1731
1731
|
label: {
|
|
1732
1732
|
type: String
|
|
@@ -1735,10 +1735,10 @@ var script$g = {
|
|
|
1735
1735
|
};
|
|
1736
1736
|
|
|
1737
1737
|
/* script */
|
|
1738
|
-
const __vue_script__$
|
|
1738
|
+
const __vue_script__$h = script$h;
|
|
1739
1739
|
|
|
1740
1740
|
/* template */
|
|
1741
|
-
var __vue_render__$
|
|
1741
|
+
var __vue_render__$h = function () {
|
|
1742
1742
|
var _vm = this;
|
|
1743
1743
|
var _h = _vm.$createElement;
|
|
1744
1744
|
var _c = _vm._self._c || _h;
|
|
@@ -1748,34 +1748,34 @@ var __vue_render__$g = function () {
|
|
|
1748
1748
|
_c("span", { staticClass: "label__suffix" }, [_vm._v(":")]),
|
|
1749
1749
|
])
|
|
1750
1750
|
};
|
|
1751
|
-
var __vue_staticRenderFns__$
|
|
1752
|
-
__vue_render__$
|
|
1751
|
+
var __vue_staticRenderFns__$h = [];
|
|
1752
|
+
__vue_render__$h._withStripped = true;
|
|
1753
1753
|
|
|
1754
1754
|
/* style */
|
|
1755
|
-
const __vue_inject_styles__$
|
|
1755
|
+
const __vue_inject_styles__$h = function (inject) {
|
|
1756
1756
|
if (!inject) return
|
|
1757
1757
|
inject("data-v-40e71716_0", { source: ".g-search__label[data-v-40e71716] {\n /* width: 69px; */\n flex-basis: 69px;\n height: 32px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n.g-search__label .label__title[data-v-40e71716], .g-search__label .label__suffix[data-v-40e71716] {\n font-size: 14px;\n color: rgba(0, 0, 0, 0.88);\n white-space: nowrap;\n}\n.g-search__label .label__suffix[data-v-40e71716] {\n margin-left: 4px;\n}\n\n/*# sourceMappingURL=label.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\composite-components\\search-area\\src\\label.vue","label.vue"],"names":[],"mappings":"AAkBA;EACA,iBAAA;EACA,gBAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,8BAAA;ACjBA;ADkBA;EACA,eAAA;EACA,0BAAA;EACA,mBAAA;AChBA;ADkBA;EACA,gBAAA;AChBA;;AAEA,oCAAoC","file":"label.vue","sourcesContent":["<template>\r\n <div class=\"g-search__label\">\r\n <span class=\"label__title\">{{ label }}</span>\r\n <span class=\"label__suffix\">:</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n label: {\r\n type: String\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.g-search__label {\r\n /* width: 69px; */\r\n flex-basis: 69px;\r\n height: 32px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n .label__title, .label__suffix {\r\n font-size: 14px;\r\n color: rgba(0, 0, 0, 0.88);\r\n white-space: nowrap;\r\n }\r\n .label__suffix {\r\n margin-left: 4px;\r\n }\r\n}\r\n</style>",".g-search__label {\n /* width: 69px; */\n flex-basis: 69px;\n height: 32px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n.g-search__label .label__title, .g-search__label .label__suffix {\n font-size: 14px;\n color: rgba(0, 0, 0, 0.88);\n white-space: nowrap;\n}\n.g-search__label .label__suffix {\n margin-left: 4px;\n}\n\n/*# sourceMappingURL=label.vue.map */"]}, media: undefined });
|
|
1758
1758
|
|
|
1759
1759
|
};
|
|
1760
1760
|
/* scoped */
|
|
1761
|
-
const __vue_scope_id__$
|
|
1761
|
+
const __vue_scope_id__$h = "data-v-40e71716";
|
|
1762
1762
|
/* module identifier */
|
|
1763
|
-
const __vue_module_identifier__$
|
|
1763
|
+
const __vue_module_identifier__$h = undefined;
|
|
1764
1764
|
/* functional template */
|
|
1765
|
-
const __vue_is_functional_template__$
|
|
1765
|
+
const __vue_is_functional_template__$h = false;
|
|
1766
1766
|
/* style inject SSR */
|
|
1767
1767
|
|
|
1768
1768
|
/* style inject shadow dom */
|
|
1769
1769
|
|
|
1770
1770
|
|
|
1771
1771
|
|
|
1772
|
-
const __vue_component__$
|
|
1773
|
-
{ render: __vue_render__$
|
|
1774
|
-
__vue_inject_styles__$
|
|
1775
|
-
__vue_script__$
|
|
1776
|
-
__vue_scope_id__$
|
|
1777
|
-
__vue_is_functional_template__$
|
|
1778
|
-
__vue_module_identifier__$
|
|
1772
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent(
|
|
1773
|
+
{ render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
|
|
1774
|
+
__vue_inject_styles__$h,
|
|
1775
|
+
__vue_script__$h,
|
|
1776
|
+
__vue_scope_id__$h,
|
|
1777
|
+
__vue_is_functional_template__$h,
|
|
1778
|
+
__vue_module_identifier__$h,
|
|
1779
1779
|
false,
|
|
1780
1780
|
createInjector,
|
|
1781
1781
|
undefined,
|
|
@@ -1783,14 +1783,14 @@ __vue_render__$g._withStripped = true;
|
|
|
1783
1783
|
);
|
|
1784
1784
|
|
|
1785
1785
|
//
|
|
1786
|
-
var script$
|
|
1786
|
+
var script$g = {
|
|
1787
1787
|
name: 'ele-search-area',
|
|
1788
1788
|
components: {
|
|
1789
|
-
EleInput: __vue_component__$
|
|
1790
|
-
EleSelect: __vue_component__$
|
|
1791
|
-
ELeButton: __vue_component__$
|
|
1792
|
-
Label: __vue_component__$
|
|
1793
|
-
EleDate: __vue_component__$
|
|
1789
|
+
EleInput: __vue_component__$m,
|
|
1790
|
+
EleSelect: __vue_component__$l,
|
|
1791
|
+
ELeButton: __vue_component__$o,
|
|
1792
|
+
Label: __vue_component__$h,
|
|
1793
|
+
EleDate: __vue_component__$n
|
|
1794
1794
|
},
|
|
1795
1795
|
props: {
|
|
1796
1796
|
gutter: {
|
|
@@ -1865,6 +1865,14 @@ var script$f = {
|
|
|
1865
1865
|
const querys = this.extractValues();
|
|
1866
1866
|
this.$emit('search', querys);
|
|
1867
1867
|
},
|
|
1868
|
+
buildMapto(mapTo = [], dataSource) {
|
|
1869
|
+
const [startField, endField] = mapTo;
|
|
1870
|
+
const [startValue, endValue] = dataSource || [null, null];
|
|
1871
|
+
return {
|
|
1872
|
+
[startField]: startValue,
|
|
1873
|
+
[endField]: endValue
|
|
1874
|
+
};
|
|
1875
|
+
},
|
|
1868
1876
|
extractValues() {
|
|
1869
1877
|
let ret = {};
|
|
1870
1878
|
this.innerDataSource.filter(item => item.type !== '_action').forEach(item => {
|
|
@@ -1872,6 +1880,9 @@ var script$f = {
|
|
|
1872
1880
|
case 'DatePicker':
|
|
1873
1881
|
ret[item.name] = typeof item._value == 'undefined' ? undefined : moment(item._value).format(item.format);
|
|
1874
1882
|
break;
|
|
1883
|
+
case 'ele-date-range':
|
|
1884
|
+
Object.assign(ret, this.buildMapto(item.mapTo, item._value));
|
|
1885
|
+
break;
|
|
1875
1886
|
default:
|
|
1876
1887
|
ret[item.name] = item._value;
|
|
1877
1888
|
break;
|
|
@@ -1893,6 +1904,10 @@ var script$f = {
|
|
|
1893
1904
|
defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue));
|
|
1894
1905
|
!defaultValue && this.$set(item, '_value', undefined);
|
|
1895
1906
|
break;
|
|
1907
|
+
case 'ele-date-picker':
|
|
1908
|
+
defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue));
|
|
1909
|
+
!defaultValue && this.$set(item, '_value', []);
|
|
1910
|
+
break;
|
|
1896
1911
|
default:
|
|
1897
1912
|
defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue));
|
|
1898
1913
|
!defaultValue && this.$set(item, '_value', null);
|
|
@@ -1910,10 +1925,10 @@ var script$f = {
|
|
|
1910
1925
|
};
|
|
1911
1926
|
|
|
1912
1927
|
/* script */
|
|
1913
|
-
const __vue_script__$
|
|
1928
|
+
const __vue_script__$g = script$g;
|
|
1914
1929
|
|
|
1915
1930
|
/* template */
|
|
1916
|
-
var __vue_render__$
|
|
1931
|
+
var __vue_render__$g = function () {
|
|
1917
1932
|
var _vm = this;
|
|
1918
1933
|
var _h = _vm.$createElement;
|
|
1919
1934
|
var _c = _vm._self._c || _h;
|
|
@@ -2049,50 +2064,70 @@ var __vue_render__$f = function () {
|
|
|
2049
2064
|
},
|
|
2050
2065
|
}),
|
|
2051
2066
|
]
|
|
2052
|
-
:
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2067
|
+
: item.type == "ele-date-range"
|
|
2068
|
+
? [
|
|
2069
|
+
_c("Label", {
|
|
2070
|
+
attrs: { label: item.label },
|
|
2071
|
+
}),
|
|
2072
|
+
_vm._v(" "),
|
|
2073
|
+
_c("ele-date-range", {
|
|
2074
|
+
attrs: {
|
|
2075
|
+
format: item.format,
|
|
2076
|
+
"show-time": item.showTime,
|
|
2077
|
+
},
|
|
2078
|
+
model: {
|
|
2079
|
+
value: item._value,
|
|
2080
|
+
callback: function ($$v) {
|
|
2081
|
+
_vm.$set(item, "_value", $$v);
|
|
2082
|
+
},
|
|
2083
|
+
expression: "item._value",
|
|
2084
|
+
},
|
|
2085
|
+
}),
|
|
2086
|
+
]
|
|
2087
|
+
: _vm._e(),
|
|
2088
|
+
],
|
|
2089
|
+
2
|
|
2090
|
+
),
|
|
2091
|
+
]
|
|
2092
|
+
)
|
|
2093
|
+
: _vm._e(),
|
|
2094
|
+
]
|
|
2095
|
+
}),
|
|
2096
|
+
],
|
|
2097
|
+
2
|
|
2063
2098
|
),
|
|
2064
2099
|
],
|
|
2065
2100
|
1
|
|
2066
2101
|
)
|
|
2067
2102
|
};
|
|
2068
|
-
var __vue_staticRenderFns__$
|
|
2069
|
-
__vue_render__$
|
|
2103
|
+
var __vue_staticRenderFns__$g = [];
|
|
2104
|
+
__vue_render__$g._withStripped = true;
|
|
2070
2105
|
|
|
2071
2106
|
/* style */
|
|
2072
|
-
const __vue_inject_styles__$
|
|
2107
|
+
const __vue_inject_styles__$g = function (inject) {
|
|
2073
2108
|
if (!inject) return
|
|
2074
|
-
inject("data-v-5a224358_0", { source: ".search-area__wrapper[data-v-5a224358] {\n padding-top: 16px;\n padding-left: 16px;\n padding-right: 16px;\n}\n.search-area__wrapper[data-v-5a224358] .ant-col:last-child {\n float: right;\n}\n.search-area__wrapper .search-area__item[data-v-5a224358] {\n height: 32px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.search-area__wrapper .search-area__item.search-area--action[data-v-5a224358] {\n justify-content: end;\n}\n.search-area__wrapper .search-area__item .expand-collapse[data-v-5a224358] {\n margin-left: 8px;\n height: 32px;\n padding: 4px 16px;\n color: var(--idooel-primary-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__text[data-v-5a224358] {\n font-size: 14px;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__icon[data-v-5a224358] {\n font-size: 16px;\n margin-left: 8px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\composite-components\\search-area\\src\\index.vue","index.vue"],"names":[],"mappings":"AAyKA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;ACxKA;AD0KA;EACA,YAAA;ACxKA;AD2KA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;ACzKA;AD0KA;EACA,oBAAA;ACxKA;AD0KA;EACA,gBAAA;EACA,YAAA;EACA,iBAAA;EACA,kCAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,uBAAA;EACA,eAAA;ACxKA;ADyKA;EACA,eAAA;ACvKA;ADyKA;EACA,eAAA;EACA,gBAAA;ACvKA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <div class=\"search-area__wrapper\">\r\n <a-row :gutter=\"gutter\">\r\n <template v-for=\"(item, idx) in innerDataSource\">\r\n <a-col v-if=\"item._show\" :span=\"item.span || span\" :key=\"idx\">\r\n <div v-if=\"item.type == '_action'\" class=\"search-area__item search-area--action\">\r\n <ele-button icon=\"search\" type=\"primary\" @click=\"handleClickSearch\">查询</ele-button>\r\n <ele-button style=\"margin-left:8px;\" icon=\"reload\" @click=\"handleClickReset\">重置</ele-button>\r\n <div class=\"expand-collapse\" @click=\"handleClickExpandCollapse\">\r\n <span class=\"expand-collapse__text\">{{ isExpand ? '收起' : '展开' }}</span>\r\n <span class=\"expand-collapse__icon\">\r\n <a-icon v-if=\"isExpand\" type=\"up\" />\r\n <a-icon v-else type=\"down\" />\r\n </span>\r\n </div>\r\n </div>\r\n <div v-else class=\"search-area__item\">\r\n <template v-if=\"item.type == 'Input'\">\r\n <Label :label=\"item.label\"></Label>\r\n <ele-input v-model=\"item._value\"></ele-input>\r\n </template>\r\n <template v-else-if=\"item.type == 'Select'\">\r\n <Label :label=\"item.label\"></Label>\r\n <ele-select v-model=\"item._value\" :data-source=\"item.optionList\"></ele-select>\r\n </template>\r\n <template v-else-if=\"item.type == 'DatePicker'\">\r\n <Label :label=\"item.label\"></Label>\r\n <ele-date v-model=\"item._value\" :format=\"item.format\"></ele-date>\r\n </template>\r\n </div>\r\n </a-col>\r\n </template>\r\n </a-row>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport EleInput from '../../../input/src/index.vue'\r\nimport EleSelect from '../../../select/src/index.vue'\r\nimport ELeButton from '../../../button/src/index.vue'\r\nimport EleDate from '../../../date/src/index.vue'\r\nimport Label from './label.vue'\r\nimport moment from 'moment'\r\nimport { parse } from '@idooel/expression'\r\nexport default {\r\n name: 'ele-search-area',\r\n components: {\r\n EleInput,\r\n EleSelect,\r\n ELeButton,\r\n Label,\r\n EleDate\r\n },\r\n props: {\r\n gutter: {\r\n type: [Number, Array, Object],\r\n default: () => ([\r\n 16, 8\r\n ])\r\n },\r\n span: {\r\n type: Number,\r\n default: 8\r\n },\r\n dataSource: {\r\n type: Array,\r\n required: true\r\n }\r\n },\r\n data() {\r\n return {\r\n isExpand: false\r\n }\r\n },\r\n computed: {\r\n cuttingFormula () {\r\n return (24 / this.span - 1)\r\n },\r\n buildDataSource () {\r\n return this.controlDisplayByFormula(this.mapDefaultValueToValue())\r\n },\r\n innerDataSource () {\r\n return [ ...this.buildDataSource, { type: '_action', _show: true }]\r\n }\r\n },\r\n created() {},\r\n methods: {\r\n controlDisplayByFormula (dataSource = []) {\r\n if (this.isExpand) {\r\n dataSource.forEach(item => {\r\n this.$set(item, '_show', true)\r\n })\r\n } else {\r\n dataSource.forEach((item, idx) => {\r\n if (idx < this.cuttingFormula) {\r\n this.$set(item, '_show', true)\r\n } else {\r\n this.$set(item, '_show', false)\r\n }\r\n })\r\n }\r\n return dataSource\r\n },\r\n buildDefaultValue (arg) {\r\n if (!arg || arg.charAt(0) !== '_') return arg\r\n return parse(arg, {\r\n _route: this.$route.query\r\n })\r\n },\r\n mapDefaultValueToValue () {\r\n this.dataSource.forEach(props => {\r\n this.$set(props, '_show', this.isExpand)\r\n if (props.defaultValue) {\r\n this.$set(props, '_value', this.buildDefaultValue(props.defaultValue))\r\n }\r\n })\r\n return this.dataSource\r\n },\r\n handleClickExpandCollapse () {\r\n this.isExpand = !this.isExpand\r\n },\r\n handleClickSearch () {\r\n const querys = this.extractValues()\r\n this.$emit('search', querys)\r\n },\r\n extractValues () {\r\n let ret = {}\r\n this.innerDataSource.filter(item => item.type !== '_action').forEach(item => {\r\n switch (item.type) {\r\n case 'DatePicker':\r\n ret[item.name] = typeof item._value == 'undefined' ? undefined : moment(item._value).format(item.format)\r\n break\r\n default:\r\n ret[item.name] = item._value\r\n break\r\n }\r\n })\r\n return ret\r\n },\r\n handleClickReset () {\r\n this.innerDataSource.filter(item => item.type !== '_action').forEach(item => {\r\n const { defaultValue } = item\r\n switch (item.type) {\r\n case 'Select':\r\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\r\n !defaultValue && this.$set(item, '_value', null)\r\n break\r\n case 'DatePicker':\r\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\r\n !defaultValue && this.$set(item, '_value', undefined)\r\n break\r\n default:\r\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\r\n !defaultValue && this.$set(item, '_value', null)\r\n break\r\n }\r\n })\r\n //TODO defaultValue\r\n const querys = this.extractValues()\r\n this.$emit('search', querys)\r\n },\r\n onChangeSelect (value, props) {\r\n this.$set(props, '_value', value)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.search-area__wrapper {\r\n padding-top: 16px;\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n ::v-deep .ant-col {\r\n &:last-child {\r\n float: right;\r\n }\r\n }\r\n .search-area__item {\r\n height: 32px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n &.search-area--action {\r\n justify-content: end;\r\n }\r\n .expand-collapse {\r\n margin-left: 8px;\r\n height: 32px;\r\n padding: 4px 16px;\r\n color: var(--idooel-primary-color);\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: center;\r\n cursor: pointer;\r\n .expand-collapse__text {\r\n font-size: 14px;\r\n }\r\n .expand-collapse__icon {\r\n font-size: 16px;\r\n margin-left: 8px;\r\n }\r\n }\r\n }\r\n}\r\n</style>",".search-area__wrapper {\n padding-top: 16px;\n padding-left: 16px;\n padding-right: 16px;\n}\n.search-area__wrapper ::v-deep .ant-col:last-child {\n float: right;\n}\n.search-area__wrapper .search-area__item {\n height: 32px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.search-area__wrapper .search-area__item.search-area--action {\n justify-content: end;\n}\n.search-area__wrapper .search-area__item .expand-collapse {\n margin-left: 8px;\n height: 32px;\n padding: 4px 16px;\n color: var(--idooel-primary-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__text {\n font-size: 14px;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__icon {\n font-size: 16px;\n margin-left: 8px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
2109
|
+
inject("data-v-4cecf96f_0", { source: ".search-area__wrapper[data-v-4cecf96f] {\n padding-top: 16px;\n padding-left: 16px;\n padding-right: 16px;\n}\n.search-area__wrapper[data-v-4cecf96f] .ant-col:last-child {\n float: right;\n}\n.search-area__wrapper .search-area__item[data-v-4cecf96f] {\n height: 32px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.search-area__wrapper .search-area__item.search-area--action[data-v-4cecf96f] {\n justify-content: end;\n}\n.search-area__wrapper .search-area__item .expand-collapse[data-v-4cecf96f] {\n margin-left: 8px;\n height: 32px;\n padding: 4px 16px;\n color: var(--idooel-primary-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__text[data-v-4cecf96f] {\n font-size: 14px;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__icon[data-v-4cecf96f] {\n font-size: 16px;\n margin-left: 8px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\composite-components\\search-area\\src\\index.vue","index.vue"],"names":[],"mappings":"AA4LA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;AC3LA;AD6LA;EACA,YAAA;AC3LA;AD8LA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;AC5LA;AD6LA;EACA,oBAAA;AC3LA;AD6LA;EACA,gBAAA;EACA,YAAA;EACA,iBAAA;EACA,kCAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,uBAAA;EACA,eAAA;AC3LA;AD4LA;EACA,eAAA;AC1LA;AD4LA;EACA,eAAA;EACA,gBAAA;AC1LA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <div class=\"search-area__wrapper\">\r\n <a-row :gutter=\"gutter\">\r\n <template v-for=\"(item, idx) in innerDataSource\">\r\n <a-col v-if=\"item._show\" :span=\"item.span || span\" :key=\"idx\">\r\n <div v-if=\"item.type == '_action'\" class=\"search-area__item search-area--action\">\r\n <ele-button icon=\"search\" type=\"primary\" @click=\"handleClickSearch\">查询</ele-button>\r\n <ele-button style=\"margin-left:8px;\" icon=\"reload\" @click=\"handleClickReset\">重置</ele-button>\r\n <div class=\"expand-collapse\" @click=\"handleClickExpandCollapse\">\r\n <span class=\"expand-collapse__text\">{{ isExpand ? '收起' : '展开' }}</span>\r\n <span class=\"expand-collapse__icon\">\r\n <a-icon v-if=\"isExpand\" type=\"up\" />\r\n <a-icon v-else type=\"down\" />\r\n </span>\r\n </div>\r\n </div>\r\n <div v-else class=\"search-area__item\">\r\n <template v-if=\"item.type == 'Input'\">\r\n <Label :label=\"item.label\"></Label>\r\n <ele-input v-model=\"item._value\"></ele-input>\r\n </template>\r\n <template v-else-if=\"item.type == 'Select'\">\r\n <Label :label=\"item.label\"></Label>\r\n <ele-select v-model=\"item._value\" :data-source=\"item.optionList\"></ele-select>\r\n </template>\r\n <template v-else-if=\"item.type == 'DatePicker'\">\r\n <Label :label=\"item.label\"></Label>\r\n <ele-date v-model=\"item._value\" :format=\"item.format\"></ele-date>\r\n </template>\r\n <template v-else-if=\"item.type == 'ele-date-range'\">\r\n <Label :label=\"item.label\"></Label>\r\n <ele-date-range v-model=\"item._value\" :format=\"item.format\" :show-time=\"item.showTime\"></ele-date-range>\r\n </template>\r\n </div>\r\n </a-col>\r\n </template>\r\n </a-row>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport EleInput from '../../../input/src/index.vue'\r\nimport EleSelect from '../../../select/src/index.vue'\r\nimport ELeButton from '../../../button/src/index.vue'\r\nimport EleDate from '../../../date/src/index.vue'\r\nimport Label from './label.vue'\r\nimport moment from 'moment'\r\nimport { parse } from '@idooel/expression'\r\nexport default {\r\n name: 'ele-search-area',\r\n components: {\r\n EleInput,\r\n EleSelect,\r\n ELeButton,\r\n Label,\r\n EleDate\r\n },\r\n props: {\r\n gutter: {\r\n type: [Number, Array, Object],\r\n default: () => ([\r\n 16, 8\r\n ])\r\n },\r\n span: {\r\n type: Number,\r\n default: 8\r\n },\r\n dataSource: {\r\n type: Array,\r\n required: true\r\n }\r\n },\r\n data() {\r\n return {\r\n isExpand: false\r\n }\r\n },\r\n computed: {\r\n cuttingFormula () {\r\n return (24 / this.span - 1)\r\n },\r\n buildDataSource () {\r\n return this.controlDisplayByFormula(this.mapDefaultValueToValue())\r\n },\r\n innerDataSource () {\r\n return [ ...this.buildDataSource, { type: '_action', _show: true }]\r\n }\r\n },\r\n created() {},\r\n methods: {\r\n controlDisplayByFormula (dataSource = []) {\r\n if (this.isExpand) {\r\n dataSource.forEach(item => {\r\n this.$set(item, '_show', true)\r\n })\r\n } else {\r\n dataSource.forEach((item, idx) => {\r\n if (idx < this.cuttingFormula) {\r\n this.$set(item, '_show', true)\r\n } else {\r\n this.$set(item, '_show', false)\r\n }\r\n })\r\n }\r\n return dataSource\r\n },\r\n buildDefaultValue (arg) {\r\n if (!arg || arg.charAt(0) !== '_') return arg\r\n return parse(arg, {\r\n _route: this.$route.query\r\n })\r\n },\r\n mapDefaultValueToValue () {\r\n this.dataSource.forEach(props => {\r\n this.$set(props, '_show', this.isExpand)\r\n if (props.defaultValue) {\r\n this.$set(props, '_value', this.buildDefaultValue(props.defaultValue))\r\n }\r\n })\r\n return this.dataSource\r\n },\r\n handleClickExpandCollapse () {\r\n this.isExpand = !this.isExpand\r\n },\r\n handleClickSearch () {\r\n const querys = this.extractValues()\r\n this.$emit('search', querys)\r\n },\r\n buildMapto (mapTo = [], dataSource) {\r\n const [ startField, endField ] = mapTo\r\n const [ startValue, endValue ] = dataSource || [null, null]\r\n return {\r\n [startField]: startValue,\r\n [endField]: endValue\r\n }\r\n },\r\n extractValues () {\r\n let ret = {}\r\n this.innerDataSource.filter(item => item.type !== '_action').forEach(item => {\r\n switch (item.type) {\r\n case 'DatePicker':\r\n ret[item.name] = typeof item._value == 'undefined' ? undefined : moment(item._value).format(item.format)\r\n break\r\n case 'ele-date-range':\r\n Object.assign(ret, this.buildMapto(item.mapTo, item._value))\r\n break\r\n default:\r\n ret[item.name] = item._value\r\n break\r\n }\r\n })\r\n return ret\r\n },\r\n handleClickReset () {\r\n this.innerDataSource.filter(item => item.type !== '_action').forEach(item => {\r\n const { defaultValue } = item\r\n switch (item.type) {\r\n case 'Select':\r\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\r\n !defaultValue && this.$set(item, '_value', null)\r\n break\r\n case 'DatePicker':\r\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\r\n !defaultValue && this.$set(item, '_value', undefined)\r\n break\r\n case 'ele-date-picker':\r\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\r\n !defaultValue && this.$set(item, '_value', [])\r\n break\r\n default:\r\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\r\n !defaultValue && this.$set(item, '_value', null)\r\n break\r\n }\r\n })\r\n //TODO defaultValue\r\n const querys = this.extractValues()\r\n this.$emit('search', querys)\r\n },\r\n onChangeSelect (value, props) {\r\n this.$set(props, '_value', value)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.search-area__wrapper {\r\n padding-top: 16px;\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n ::v-deep .ant-col {\r\n &:last-child {\r\n float: right;\r\n }\r\n }\r\n .search-area__item {\r\n height: 32px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n &.search-area--action {\r\n justify-content: end;\r\n }\r\n .expand-collapse {\r\n margin-left: 8px;\r\n height: 32px;\r\n padding: 4px 16px;\r\n color: var(--idooel-primary-color);\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: center;\r\n cursor: pointer;\r\n .expand-collapse__text {\r\n font-size: 14px;\r\n }\r\n .expand-collapse__icon {\r\n font-size: 16px;\r\n margin-left: 8px;\r\n }\r\n }\r\n }\r\n}\r\n</style>",".search-area__wrapper {\n padding-top: 16px;\n padding-left: 16px;\n padding-right: 16px;\n}\n.search-area__wrapper ::v-deep .ant-col:last-child {\n float: right;\n}\n.search-area__wrapper .search-area__item {\n height: 32px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.search-area__wrapper .search-area__item.search-area--action {\n justify-content: end;\n}\n.search-area__wrapper .search-area__item .expand-collapse {\n margin-left: 8px;\n height: 32px;\n padding: 4px 16px;\n color: var(--idooel-primary-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__text {\n font-size: 14px;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__icon {\n font-size: 16px;\n margin-left: 8px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
2075
2110
|
|
|
2076
2111
|
};
|
|
2077
2112
|
/* scoped */
|
|
2078
|
-
const __vue_scope_id__$
|
|
2113
|
+
const __vue_scope_id__$g = "data-v-4cecf96f";
|
|
2079
2114
|
/* module identifier */
|
|
2080
|
-
const __vue_module_identifier__$
|
|
2115
|
+
const __vue_module_identifier__$g = undefined;
|
|
2081
2116
|
/* functional template */
|
|
2082
|
-
const __vue_is_functional_template__$
|
|
2117
|
+
const __vue_is_functional_template__$g = false;
|
|
2083
2118
|
/* style inject SSR */
|
|
2084
2119
|
|
|
2085
2120
|
/* style inject shadow dom */
|
|
2086
2121
|
|
|
2087
2122
|
|
|
2088
2123
|
|
|
2089
|
-
const __vue_component__$
|
|
2090
|
-
{ render: __vue_render__$
|
|
2091
|
-
__vue_inject_styles__$
|
|
2092
|
-
__vue_script__$
|
|
2093
|
-
__vue_scope_id__$
|
|
2094
|
-
__vue_is_functional_template__$
|
|
2095
|
-
__vue_module_identifier__$
|
|
2124
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent(
|
|
2125
|
+
{ render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
|
|
2126
|
+
__vue_inject_styles__$g,
|
|
2127
|
+
__vue_script__$g,
|
|
2128
|
+
__vue_scope_id__$g,
|
|
2129
|
+
__vue_is_functional_template__$g,
|
|
2130
|
+
__vue_module_identifier__$g,
|
|
2096
2131
|
false,
|
|
2097
2132
|
createInjector,
|
|
2098
2133
|
undefined,
|
|
@@ -2100,10 +2135,10 @@ __vue_render__$f._withStripped = true;
|
|
|
2100
2135
|
);
|
|
2101
2136
|
|
|
2102
2137
|
//
|
|
2103
|
-
var script$
|
|
2138
|
+
var script$f = {
|
|
2104
2139
|
name: 'ele-button-group',
|
|
2105
2140
|
components: {
|
|
2106
|
-
EleButton: __vue_component__$
|
|
2141
|
+
EleButton: __vue_component__$o
|
|
2107
2142
|
},
|
|
2108
2143
|
props: {
|
|
2109
2144
|
dataSource: {
|
|
@@ -2114,10 +2149,10 @@ var script$e = {
|
|
|
2114
2149
|
};
|
|
2115
2150
|
|
|
2116
2151
|
/* script */
|
|
2117
|
-
const __vue_script__$
|
|
2152
|
+
const __vue_script__$f = script$f;
|
|
2118
2153
|
|
|
2119
2154
|
/* template */
|
|
2120
|
-
var __vue_render__$
|
|
2155
|
+
var __vue_render__$f = function () {
|
|
2121
2156
|
var _vm = this;
|
|
2122
2157
|
var _h = _vm.$createElement;
|
|
2123
2158
|
var _c = _vm._self._c || _h;
|
|
@@ -2147,34 +2182,34 @@ var __vue_render__$e = function () {
|
|
|
2147
2182
|
1
|
|
2148
2183
|
)
|
|
2149
2184
|
};
|
|
2150
|
-
var __vue_staticRenderFns__$
|
|
2151
|
-
__vue_render__$
|
|
2185
|
+
var __vue_staticRenderFns__$f = [];
|
|
2186
|
+
__vue_render__$f._withStripped = true;
|
|
2152
2187
|
|
|
2153
2188
|
/* style */
|
|
2154
|
-
const __vue_inject_styles__$
|
|
2189
|
+
const __vue_inject_styles__$f = function (inject) {
|
|
2155
2190
|
if (!inject) return
|
|
2156
2191
|
inject("data-v-de67e2d2_0", { source: ".button-group__wrapper[data-v-de67e2d2] {\n display: flex;\n padding-left: 16px;\n padding-right: 16px;\n}\n.button-group__wrapper .ant-btn[data-v-de67e2d2] {\n margin-left: 8px;\n}\n.button-group__wrapper .ant-btn[data-v-de67e2d2]:first-child {\n margin-left: 0;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\composite-components\\button-group\\src\\index.vue","index.vue"],"names":[],"mappings":"AAkCA;EACA,aAAA;EACA,kBAAA;EACA,mBAAA;ACjCA;ADkCA;EACA,gBAAA;AChCA;ADiCA;EACA,cAAA;AC/BA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <div class=\"button-group__wrapper\">\r\n <ele-button \r\n v-for=\"(item, idx) in dataSource\" \r\n :type=\"item.type\"\r\n :icon=\"item.icon\"\r\n :mode=\"item.mode\"\r\n :data-source=\"item.optionList\"\r\n :event-name=\"item.eventName\"\r\n :record=\"item\"\r\n v-on=\"$listeners\"\r\n :key=\"idx\">\r\n {{ item.label }}\r\n </ele-button>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport EleButton from '../../../button/src/index.vue'\r\nexport default {\r\n name: 'ele-button-group',\r\n components: {\r\n EleButton\r\n },\r\n props: {\r\n dataSource: {\r\n type: Array,\r\n default: () => []\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.button-group__wrapper {\r\n display: flex;\r\n padding-left: 16px;\r\n padding-right: 16px;\r\n .ant-btn {\r\n margin-left: 8px;\r\n &:first-child {\r\n margin-left: 0;\r\n }\r\n }\r\n}\r\n</style>",".button-group__wrapper {\n display: flex;\n padding-left: 16px;\n padding-right: 16px;\n}\n.button-group__wrapper .ant-btn {\n margin-left: 8px;\n}\n.button-group__wrapper .ant-btn:first-child {\n margin-left: 0;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
2157
2192
|
|
|
2158
2193
|
};
|
|
2159
2194
|
/* scoped */
|
|
2160
|
-
const __vue_scope_id__$
|
|
2195
|
+
const __vue_scope_id__$f = "data-v-de67e2d2";
|
|
2161
2196
|
/* module identifier */
|
|
2162
|
-
const __vue_module_identifier__$
|
|
2197
|
+
const __vue_module_identifier__$f = undefined;
|
|
2163
2198
|
/* functional template */
|
|
2164
|
-
const __vue_is_functional_template__$
|
|
2199
|
+
const __vue_is_functional_template__$f = false;
|
|
2165
2200
|
/* style inject SSR */
|
|
2166
2201
|
|
|
2167
2202
|
/* style inject shadow dom */
|
|
2168
2203
|
|
|
2169
2204
|
|
|
2170
2205
|
|
|
2171
|
-
const __vue_component__$
|
|
2172
|
-
{ render: __vue_render__$
|
|
2173
|
-
__vue_inject_styles__$
|
|
2174
|
-
__vue_script__$
|
|
2175
|
-
__vue_scope_id__$
|
|
2176
|
-
__vue_is_functional_template__$
|
|
2177
|
-
__vue_module_identifier__$
|
|
2206
|
+
const __vue_component__$f = /*#__PURE__*/normalizeComponent(
|
|
2207
|
+
{ render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
|
|
2208
|
+
__vue_inject_styles__$f,
|
|
2209
|
+
__vue_script__$f,
|
|
2210
|
+
__vue_scope_id__$f,
|
|
2211
|
+
__vue_is_functional_template__$f,
|
|
2212
|
+
__vue_module_identifier__$f,
|
|
2178
2213
|
false,
|
|
2179
2214
|
createInjector,
|
|
2180
2215
|
undefined,
|
|
@@ -2182,13 +2217,13 @@ __vue_render__$e._withStripped = true;
|
|
|
2182
2217
|
);
|
|
2183
2218
|
|
|
2184
2219
|
//
|
|
2185
|
-
var script$
|
|
2220
|
+
var script$e = {
|
|
2186
2221
|
name: 'ele-tree-table-model',
|
|
2187
2222
|
components: {
|
|
2188
|
-
EleTree: __vue_component__$
|
|
2189
|
-
EleTable: __vue_component__$
|
|
2190
|
-
EleSearchArea: __vue_component__$
|
|
2191
|
-
EleButtonGroup: __vue_component__$
|
|
2223
|
+
EleTree: __vue_component__$i,
|
|
2224
|
+
EleTable: __vue_component__$j,
|
|
2225
|
+
EleSearchArea: __vue_component__$g,
|
|
2226
|
+
EleButtonGroup: __vue_component__$f
|
|
2192
2227
|
},
|
|
2193
2228
|
props: {
|
|
2194
2229
|
treeMeta: {
|
|
@@ -2467,10 +2502,10 @@ var script$d = {
|
|
|
2467
2502
|
};
|
|
2468
2503
|
|
|
2469
2504
|
/* script */
|
|
2470
|
-
const __vue_script__$
|
|
2505
|
+
const __vue_script__$e = script$e;
|
|
2471
2506
|
|
|
2472
2507
|
/* template */
|
|
2473
|
-
var __vue_render__$
|
|
2508
|
+
var __vue_render__$e = function () {
|
|
2474
2509
|
var _vm = this;
|
|
2475
2510
|
var _h = _vm.$createElement;
|
|
2476
2511
|
var _c = _vm._self._c || _h;
|
|
@@ -2550,34 +2585,34 @@ var __vue_render__$d = function () {
|
|
|
2550
2585
|
]),
|
|
2551
2586
|
])
|
|
2552
2587
|
};
|
|
2553
|
-
var __vue_staticRenderFns__$
|
|
2554
|
-
__vue_render__$
|
|
2588
|
+
var __vue_staticRenderFns__$e = [];
|
|
2589
|
+
__vue_render__$e._withStripped = true;
|
|
2555
2590
|
|
|
2556
2591
|
/* style */
|
|
2557
|
-
const __vue_inject_styles__$
|
|
2592
|
+
const __vue_inject_styles__$e = function (inject) {
|
|
2558
2593
|
if (!inject) return
|
|
2559
2594
|
inject("data-v-fe2ee33e_0", { source: ".ele.model__tree-table[data-v-fe2ee33e] {\n background: transparent;\n display: flex;\n flex-direction: row;\n width: 100%;\n}\n.ele.model__tree-table .model__tree-table--container .model__tree--wrapper[data-v-fe2ee33e] {\n width: 240px;\n background: #fff;\n flex-shrink: 0;\n padding: 16px;\n box-sizing: border-box;\n margin-right: 16px;\n overflow-y: auto;\n}\n.ele.model__tree-table .model__table--container[data-v-fe2ee33e] {\n width: 100%;\n min-width: 0;\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper[data-v-fe2ee33e] {\n background: #fff;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\tree-table-model\\src\\index.vue","index.vue"],"names":[],"mappings":"AAgSA;EACA,uBAAA;EACA,aAAA;EACA,mBAAA;EACA,WAAA;AC/RA;ADiSA;EACA,YAAA;EACA,gBAAA;EACA,cAAA;EACA,aAAA;EACA,sBAAA;EACA,kBAAA;EACA,gBAAA;AC/RA;ADkSA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;AChSA;ADiSA;EACA,gBAAA;AC/RA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <section class=\"ele model__tree-table\">\r\n <section class=\"model__tree-table--container\" v-if=\"showTree\">\r\n <div class=\"model__tree--title\"></div>\r\n <section :ref=\"modelTreeWrapper\" class=\"model__tree--wrapper\">\r\n <ele-tree \r\n :tree-data=\"treeData\"\r\n :defaultExpandedKeys=\"defaultExpandedKeys\"\r\n :defaultSelectedKeys=\"defaultSelectedKeys\"\r\n @select=\"selectTreeNode\"\r\n :replace-fields=\"treeMeta.replaceFields || replaceFields\">\r\n </ele-tree>\r\n </section>\r\n </section>\r\n <section class=\"model__table--container\">\r\n <div class=\"model__table--title\"></div>\r\n <section :ref=\"modelTableWrapper\" class=\"model__table--wrapper\">\r\n <ele-search-area :ref=\"searchArea\" @search=\"onSearch\" :data-source=\"searchMeta.elements\"></ele-search-area>\r\n <ele-button-group v-on=\"$listeners\" :ref=\"buttonGroup\" @click=\"handleClickButtonGroup\" style=\"margin-top: 16px\" :data-source=\"getButtonGroupElements\"></ele-button-group>\r\n <ele-table\r\n v-on=\"$listeners\"\r\n :loading=\"loading\" \r\n :columns=\"columns\"\r\n :total=\"total\"\r\n :actions=\"actions\"\r\n :pageSize=\"pageSize\"\r\n :pageSizeOptions=\"pageSizeOptions\"\r\n :data-source=\"tableData\"\r\n @change-page=\"onChangePage\" \r\n style=\"margin-top: 8px;\"\r\n ></ele-table>\r\n </section>\r\n </section>\r\n </section>\r\n</template>\r\n\r\n<script>\r\nimport EleTree from '../../tree/src/index.vue'\r\nimport EleTable from '../../table/src/index.vue'\r\nimport EleSearchArea from '../../composite-components/search-area/src/index.vue'\r\nimport EleButtonGroup from '../../composite-components/button-group/src/index.vue'\r\nimport { type, net } from '@idooel/shared'\r\nimport { v4 as uuidv4 } from 'uuid'\r\nexport default {\r\n name: 'ele-tree-table-model',\r\n components: {\r\n EleTree,\r\n EleTable,\r\n EleSearchArea,\r\n EleButtonGroup\r\n },\r\n props: {\r\n treeMeta: {\r\n type: Object,\r\n default: () => ({})\r\n },\r\n searchMeta: {\r\n type: Object,\r\n default: () => ({})\r\n },\r\n buttonGroupMeta: {\r\n typeof: Object,\r\n default: () => ({})\r\n },\r\n tableMeta: {\r\n type: Object,\r\n default: () => ({})\r\n }\r\n },\r\n provide () {\r\n return {\r\n requestTreeData: this.requestTreeData,\r\n requestTableData: this.requestTableData\r\n }\r\n },\r\n data () {\r\n return {\r\n treeData: [],\r\n tableData: [],\r\n defaultExpandedKeys: [],\r\n defaultSelectedKeys: [],\r\n replaceFields: {\r\n title: 'title',\r\n children: 'children',\r\n key: 'id'\r\n },\r\n loading: false,\r\n total: 0,\r\n tableQuerys: {},\r\n resizeObserverModelTableWrapper: null,\r\n modelTableWrapperHeight: 0,\r\n currentTreeNodeData: {}\r\n }\r\n },\r\n computed: {\r\n showTree () {\r\n return !!Object.keys(this.treeMeta).length\r\n },\r\n buttonGroup () {\r\n return uuidv4()\r\n },\r\n searchArea () {\r\n return uuidv4()\r\n },\r\n modelTreeWrapper () {\r\n return uuidv4()\r\n },\r\n modelTableWrapper () {\r\n return uuidv4()\r\n },\r\n actions () {\r\n const { operations } = this.tableMeta\r\n return operations.elements\r\n },\r\n pageSize () {\r\n const { page = {} } = this.tableMeta\r\n return page.pageSize || 10\r\n },\r\n pageSizeOptions () {\r\n const { page = {} } = this.tableMeta\r\n return page.pageSizeOptions || ['10', '20', '30', '40']\r\n },\r\n columns () {\r\n const { columns, operations } = this.tableMeta\r\n if (type.get(columns) === 'array') {\r\n const columnsOptions = columns.map(item => {\r\n if (item.render) {\r\n return {\r\n title: item.title,\r\n dataIndex: item.dataIndex,\r\n width: item.width,\r\n align: item.align,\r\n fixed: item.fixed,\r\n customRender: (text, record, index) => {\r\n const { $createElement } = this\r\n return item.render.call(this, { h: $createElement, ctx: this }, typeof text == 'string' ? text : text[item.dataIndex], record, index)\r\n }\r\n }\r\n }\r\n return {\r\n title: item.title,\r\n dataIndex: item.dataIndex,\r\n width: item.width,\r\n align: item.align,\r\n fixed: item.fixed\r\n }\r\n })\r\n if (operations) {\r\n return [\r\n ...columnsOptions,\r\n {\r\n title: '操作',\r\n width: operations.width,\r\n key: 'action',\r\n fixed: 'right',\r\n scopedSlots: { customRender: 'action' }\r\n }\r\n ]\r\n }\r\n return columnsOptions\r\n } else {\r\n console.error('Error: columns is invalid, please check it')\r\n return []\r\n }\r\n },\r\n getButtonGroupElements () {\r\n const { elements } = this.buttonGroupMeta\r\n if (type.get(elements) === 'function') {\r\n return elements.call(this)\r\n } else if (type.get(elements) === 'array') {\r\n return elements\r\n } else {\r\n return []\r\n }\r\n }\r\n },\r\n async created () {\r\n if (this.showTree) {\r\n this.treeData = await this.requestTreeData()\r\n const [defaultTreeNode = {}] = this.treeData\r\n this.defaultExpandedKeys = [defaultTreeNode[this.replaceFields.key]]\r\n this.defaultSelectedKeys = [defaultTreeNode[this.replaceFields.key]]\r\n this.currentTreeNodeData = defaultTreeNode\r\n }\r\n const { fieldMap } = this.tableMeta\r\n this.tableData = await this.requestTableData(this.execTableFieldMap(fieldMap, this.currentTreeNodeData))\r\n },\r\n methods: {\r\n handleClickButtonGroup (props) {\r\n const { eventName } = props\r\n this.$emit(eventName, { currentTreeNode: this.currentTreeNodeData })\r\n },\r\n watchViewPort () {\r\n const modelTableWrapper = this.$refs[this.modelTableWrapper]\r\n console.log(modelTableWrapper.getBoundingClientRect())\r\n const { top } = modelTableWrapper.getBoundingClientRect()\r\n this.$refs[this.modelTreeWrapper].style.height = `calc(100vh - ${top}px)`\r\n },\r\n async onSearch (props) {\r\n this.tableQuerys = Object.assign(this.tableQuerys, props)\r\n this.tableData = await this.requestTableData()\r\n },\r\n execTableFieldMap (fieldMap = {}, props) {\r\n let ret = {}\r\n const keys = Object.keys(fieldMap)\r\n keys.forEach(key => {\r\n const field = fieldMap[key]\r\n ret[field] = props[key]\r\n })\r\n return ret\r\n },\r\n async selectTreeNode (selectedKeys, e) {\r\n const { fieldMap } = this.tableMeta\r\n this.currentTreeNodeData = e.node.$vnode.data.props.dataRef\r\n const execFieldMapRet = this.execTableFieldMap(fieldMap, e.node.$vnode.data.props.dataRef)\r\n this.tableData = await this.requestTableData(execFieldMapRet)\r\n },\r\n async requestTreeData () {\r\n const { url, requestType } = this.treeMeta\r\n const ret = await net.get(\r\n url\r\n ).then(resp => {\r\n const { data } = resp || {}\r\n return data\r\n })\r\n return ret\r\n },\r\n async onChangePage (page, pageSize) {\r\n this.tableData = await this.requestTableData({ currentPage: page, pageSize })\r\n },\r\n async requestTableData (props = {}) {\r\n const { url, requestType, page = {} } = this.tableMeta\r\n const { pageSize = 10 } = page\r\n this.tableQuerys = Object.assign(this.tableQuerys, { currentPage: 1, pageSize }, props)\r\n const ret = await net.get(\r\n url,\r\n this.tableQuerys\r\n ).then(resp => {\r\n const { data = [], count } = resp || {}\r\n this.total = count\r\n return data.map(item => {\r\n return {\r\n key: uuidv4(),\r\n ...item\r\n }\r\n })\r\n })\r\n return ret\r\n },\r\n refreshTreeStatus (props = {}) {},\r\n refreshTableStatus (props = {}) {},\r\n getModelTableWrapperHeight () {},\r\n setModelTreeWrapperHeight (height) {\r\n this.$refs[this.modelTreeWrapper].style.height = height\r\n },\r\n setModelTableWrapperHeight () {\r\n const { top } = this.$refs[this.modelTableWrapper].getBoundingClientRect()\r\n const height = `calc(100vh - ${top}px)`\r\n this.$refs[this.modelTableWrapper].style.height = height\r\n this.setModelTreeWrapperHeight(height)\r\n },\r\n getSearchAreaHeight () {\r\n return this.$refs[this.searchArea].$el.clientHeight\r\n },\r\n getButtonGroupHeight () {\r\n return this.$refs[this.buttonGroup].$el.clientHeight\r\n }\r\n },\r\n mounted () {\r\n //TODO\r\n // this.setModelTableWrapperHeight()\r\n // this.resizeObserverModelTableWrapper = new ResizeObserver(entries => {\r\n // for (let entry of entries) {\r\n // this.modelTableWrapperHeight = entry.contentRect.height\r\n // console.log('this.modelTableWrapperHeight:', this.modelTableWrapperHeight)\r\n // console.log('getSearchAreaHeight', this.getSearchAreaHeight())\r\n // console.log('getButtonGroupHeight', this.getButtonGroupHeight())\r\n // const tableHeight = this.modelTableWrapperHeight - this.getSearchAreaHeight() - this.getButtonGroupHeight()\r\n // console.log('tableHeight', tableHeight)\r\n // }\r\n // })\r\n // this.resizeObserverModelTableWrapper.observe(this.$refs[this.modelTableWrapper])\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.ele {\r\n &.model__tree-table {\r\n background: transparent; \r\n display: flex;\r\n flex-direction: row;\r\n width: 100%;\r\n .model__tree-table--container {\r\n .model__tree--wrapper {\r\n width: 240px;\r\n background: #fff;\r\n flex-shrink: 0;\r\n padding: 16px;\r\n box-sizing: border-box;\r\n margin-right: 16px;\r\n overflow-y: auto;\r\n }\r\n }\r\n .model__table--container {\r\n width: 100%;\r\n min-width: 0;\r\n background: #fff;\r\n .model__table--wrapper {\r\n background: #fff;\r\n }\r\n }\r\n }\r\n}\r\n</style>",".ele.model__tree-table {\n background: transparent;\n display: flex;\n flex-direction: row;\n width: 100%;\n}\n.ele.model__tree-table .model__tree-table--container .model__tree--wrapper {\n width: 240px;\n background: #fff;\n flex-shrink: 0;\n padding: 16px;\n box-sizing: border-box;\n margin-right: 16px;\n overflow-y: auto;\n}\n.ele.model__tree-table .model__table--container {\n width: 100%;\n min-width: 0;\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper {\n background: #fff;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
2560
2595
|
|
|
2561
2596
|
};
|
|
2562
2597
|
/* scoped */
|
|
2563
|
-
const __vue_scope_id__$
|
|
2598
|
+
const __vue_scope_id__$e = "data-v-fe2ee33e";
|
|
2564
2599
|
/* module identifier */
|
|
2565
|
-
const __vue_module_identifier__$
|
|
2600
|
+
const __vue_module_identifier__$e = undefined;
|
|
2566
2601
|
/* functional template */
|
|
2567
|
-
const __vue_is_functional_template__$
|
|
2602
|
+
const __vue_is_functional_template__$e = false;
|
|
2568
2603
|
/* style inject SSR */
|
|
2569
2604
|
|
|
2570
2605
|
/* style inject shadow dom */
|
|
2571
2606
|
|
|
2572
2607
|
|
|
2573
2608
|
|
|
2574
|
-
const __vue_component__$
|
|
2575
|
-
{ render: __vue_render__$
|
|
2576
|
-
__vue_inject_styles__$
|
|
2577
|
-
__vue_script__$
|
|
2578
|
-
__vue_scope_id__$
|
|
2579
|
-
__vue_is_functional_template__$
|
|
2580
|
-
__vue_module_identifier__$
|
|
2609
|
+
const __vue_component__$e = /*#__PURE__*/normalizeComponent(
|
|
2610
|
+
{ render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
|
|
2611
|
+
__vue_inject_styles__$e,
|
|
2612
|
+
__vue_script__$e,
|
|
2613
|
+
__vue_scope_id__$e,
|
|
2614
|
+
__vue_is_functional_template__$e,
|
|
2615
|
+
__vue_module_identifier__$e,
|
|
2581
2616
|
false,
|
|
2582
2617
|
createInjector,
|
|
2583
2618
|
undefined,
|
|
@@ -2585,7 +2620,7 @@ __vue_render__$d._withStripped = true;
|
|
|
2585
2620
|
);
|
|
2586
2621
|
|
|
2587
2622
|
//
|
|
2588
|
-
var script$
|
|
2623
|
+
var script$d = {
|
|
2589
2624
|
name: 'ele-tpl',
|
|
2590
2625
|
props: {
|
|
2591
2626
|
modelName: {
|
|
@@ -2593,7 +2628,7 @@ var script$c = {
|
|
|
2593
2628
|
}
|
|
2594
2629
|
},
|
|
2595
2630
|
components: {
|
|
2596
|
-
[__vue_component__$
|
|
2631
|
+
[__vue_component__$e.name]: __vue_component__$e
|
|
2597
2632
|
},
|
|
2598
2633
|
computed: {
|
|
2599
2634
|
modelNameValidator() {
|
|
@@ -2615,10 +2650,10 @@ var script$c = {
|
|
|
2615
2650
|
};
|
|
2616
2651
|
|
|
2617
2652
|
/* script */
|
|
2618
|
-
const __vue_script__$
|
|
2653
|
+
const __vue_script__$d = script$d;
|
|
2619
2654
|
|
|
2620
2655
|
/* template */
|
|
2621
|
-
var __vue_render__$
|
|
2656
|
+
var __vue_render__$d = function () {
|
|
2622
2657
|
var _vm = this;
|
|
2623
2658
|
var _h = _vm.$createElement;
|
|
2624
2659
|
var _c = _vm._self._c || _h;
|
|
@@ -2656,41 +2691,41 @@ var __vue_render__$c = function () {
|
|
|
2656
2691
|
domProps: { innerHTML: _vm._s(_vm.modelNameValidator.message) },
|
|
2657
2692
|
})
|
|
2658
2693
|
};
|
|
2659
|
-
var __vue_staticRenderFns__$
|
|
2660
|
-
__vue_render__$
|
|
2694
|
+
var __vue_staticRenderFns__$d = [];
|
|
2695
|
+
__vue_render__$d._withStripped = true;
|
|
2661
2696
|
|
|
2662
2697
|
/* style */
|
|
2663
|
-
const __vue_inject_styles__$
|
|
2698
|
+
const __vue_inject_styles__$d = function (inject) {
|
|
2664
2699
|
if (!inject) return
|
|
2665
2700
|
inject("data-v-7b13873a_0", { source: ".has-error .ele-upload__wrapper .file-uploads label {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .file-uploads .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .file-uploads .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .file-uploads .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n:root {\n --idooel-primary-color: #1890FF;\n --idoole-black-02: rgba(0, 0, 0, 0.04);\n --idoole-black-06: rgba(0, 0, 0, 0.44);\n --idoole-black-07: rgba(0, 0, 0, 0.64);\n --idoole-black-008: rgba(0, 0, 0, 0.88);\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-form-title-border-color: rgba(0, 0, 0, 0.16);\n --idooel-form-upload-bg-color: rgba(0, 0, 0, 0.02);\n --idooel-form-upload-border-hover-color: #40A9FF;\n --idooel-form-border-radius: 2px;\n --idooel-form-border-err-color: #F5222D;\n --idooel-link-06: #1890FF;\n --idooel-link-03: #91D5FF;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":"AAAA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AAEA;EACE,+BAA+B;EAC/B,sCAAsC;EACtC,sCAAsC;EACtC,sCAAsC;EACtC,uCAAuC;EACvC,wBAAwB;EACxB,8BAA8B;EAC9B,+BAA+B;EAC/B,qCAAqC;EACrC,qDAAqD;EACrD,kDAAkD;EAClD,gDAAgD;EAChD,gCAAgC;EAChC,uCAAuC;EACvC,yBAAyB;EACzB,yBAAyB;AAC3B;;AAEA,oCAAoC","file":"index.vue","sourcesContent":[".has-error .ele-upload__wrapper .file-uploads label {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .file-uploads .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .file-uploads .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .file-uploads .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n\n:root {\n --idooel-primary-color: #1890FF;\n --idoole-black-02: rgba(0, 0, 0, 0.04);\n --idoole-black-06: rgba(0, 0, 0, 0.44);\n --idoole-black-07: rgba(0, 0, 0, 0.64);\n --idoole-black-008: rgba(0, 0, 0, 0.88);\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-form-title-border-color: rgba(0, 0, 0, 0.16);\n --idooel-form-upload-bg-color: rgba(0, 0, 0, 0.02);\n --idooel-form-upload-border-hover-color: #40A9FF;\n --idooel-form-border-radius: 2px;\n --idooel-form-border-err-color: #F5222D;\n --idooel-link-06: #1890FF;\n --idooel-link-03: #91D5FF;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
2666
2701
|
|
|
2667
2702
|
};
|
|
2668
2703
|
/* scoped */
|
|
2669
|
-
const __vue_scope_id__$
|
|
2704
|
+
const __vue_scope_id__$d = undefined;
|
|
2670
2705
|
/* module identifier */
|
|
2671
|
-
const __vue_module_identifier__$
|
|
2706
|
+
const __vue_module_identifier__$d = undefined;
|
|
2672
2707
|
/* functional template */
|
|
2673
|
-
const __vue_is_functional_template__$
|
|
2708
|
+
const __vue_is_functional_template__$d = false;
|
|
2674
2709
|
/* style inject SSR */
|
|
2675
2710
|
|
|
2676
2711
|
/* style inject shadow dom */
|
|
2677
2712
|
|
|
2678
2713
|
|
|
2679
2714
|
|
|
2680
|
-
const __vue_component__$
|
|
2681
|
-
{ render: __vue_render__$
|
|
2682
|
-
__vue_inject_styles__$
|
|
2683
|
-
__vue_script__$
|
|
2684
|
-
__vue_scope_id__$
|
|
2685
|
-
__vue_is_functional_template__$
|
|
2686
|
-
__vue_module_identifier__$
|
|
2715
|
+
const __vue_component__$d = /*#__PURE__*/normalizeComponent(
|
|
2716
|
+
{ render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
|
|
2717
|
+
__vue_inject_styles__$d,
|
|
2718
|
+
__vue_script__$d,
|
|
2719
|
+
__vue_scope_id__$d,
|
|
2720
|
+
__vue_is_functional_template__$d,
|
|
2721
|
+
__vue_module_identifier__$d,
|
|
2687
2722
|
false,
|
|
2688
2723
|
createInjector,
|
|
2689
2724
|
undefined,
|
|
2690
2725
|
undefined
|
|
2691
2726
|
);
|
|
2692
2727
|
|
|
2693
|
-
__vue_component__$
|
|
2728
|
+
__vue_component__$d.install = Vue => Vue.component(__vue_component__$d.name, __vue_component__$d);
|
|
2694
2729
|
|
|
2695
2730
|
//
|
|
2696
2731
|
//
|
|
@@ -2704,7 +2739,7 @@ __vue_component__$c.install = Vue => Vue.component(__vue_component__$c.name, __v
|
|
|
2704
2739
|
//
|
|
2705
2740
|
//
|
|
2706
2741
|
|
|
2707
|
-
var script$
|
|
2742
|
+
var script$c = {
|
|
2708
2743
|
name: 'ele-textarea',
|
|
2709
2744
|
props: {
|
|
2710
2745
|
maxLength: {
|
|
@@ -2738,10 +2773,10 @@ var script$b = {
|
|
|
2738
2773
|
};
|
|
2739
2774
|
|
|
2740
2775
|
/* script */
|
|
2741
|
-
const __vue_script__$
|
|
2776
|
+
const __vue_script__$c = script$c;
|
|
2742
2777
|
|
|
2743
2778
|
/* template */
|
|
2744
|
-
var __vue_render__$
|
|
2779
|
+
var __vue_render__$c = function () {
|
|
2745
2780
|
var _vm = this;
|
|
2746
2781
|
var _h = _vm.$createElement;
|
|
2747
2782
|
var _c = _vm._self._c || _h;
|
|
@@ -2756,34 +2791,34 @@ var __vue_render__$b = function () {
|
|
|
2756
2791
|
on: { change: _vm.onChange },
|
|
2757
2792
|
})
|
|
2758
2793
|
};
|
|
2759
|
-
var __vue_staticRenderFns__$
|
|
2760
|
-
__vue_render__$
|
|
2794
|
+
var __vue_staticRenderFns__$c = [];
|
|
2795
|
+
__vue_render__$c._withStripped = true;
|
|
2761
2796
|
|
|
2762
2797
|
/* style */
|
|
2763
|
-
const __vue_inject_styles__$
|
|
2798
|
+
const __vue_inject_styles__$c = function (inject) {
|
|
2764
2799
|
if (!inject) return
|
|
2765
2800
|
inject("data-v-256502c2_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"index.vue"}, media: undefined });
|
|
2766
2801
|
|
|
2767
2802
|
};
|
|
2768
2803
|
/* scoped */
|
|
2769
|
-
const __vue_scope_id__$
|
|
2804
|
+
const __vue_scope_id__$c = "data-v-256502c2";
|
|
2770
2805
|
/* module identifier */
|
|
2771
|
-
const __vue_module_identifier__$
|
|
2806
|
+
const __vue_module_identifier__$c = undefined;
|
|
2772
2807
|
/* functional template */
|
|
2773
|
-
const __vue_is_functional_template__$
|
|
2808
|
+
const __vue_is_functional_template__$c = false;
|
|
2774
2809
|
/* style inject SSR */
|
|
2775
2810
|
|
|
2776
2811
|
/* style inject shadow dom */
|
|
2777
2812
|
|
|
2778
2813
|
|
|
2779
2814
|
|
|
2780
|
-
const __vue_component__$
|
|
2781
|
-
{ render: __vue_render__$
|
|
2782
|
-
__vue_inject_styles__$
|
|
2783
|
-
__vue_script__$
|
|
2784
|
-
__vue_scope_id__$
|
|
2785
|
-
__vue_is_functional_template__$
|
|
2786
|
-
__vue_module_identifier__$
|
|
2815
|
+
const __vue_component__$c = /*#__PURE__*/normalizeComponent(
|
|
2816
|
+
{ render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
|
|
2817
|
+
__vue_inject_styles__$c,
|
|
2818
|
+
__vue_script__$c,
|
|
2819
|
+
__vue_scope_id__$c,
|
|
2820
|
+
__vue_is_functional_template__$c,
|
|
2821
|
+
__vue_module_identifier__$c,
|
|
2787
2822
|
false,
|
|
2788
2823
|
createInjector,
|
|
2789
2824
|
undefined,
|
|
@@ -2800,7 +2835,7 @@ __vue_render__$b._withStripped = true;
|
|
|
2800
2835
|
//
|
|
2801
2836
|
//
|
|
2802
2837
|
|
|
2803
|
-
var script$
|
|
2838
|
+
var script$b = {
|
|
2804
2839
|
name: 'ele-icon',
|
|
2805
2840
|
props: {
|
|
2806
2841
|
type: {
|
|
@@ -2823,10 +2858,10 @@ var script$a = {
|
|
|
2823
2858
|
};
|
|
2824
2859
|
|
|
2825
2860
|
/* script */
|
|
2826
|
-
const __vue_script__$
|
|
2861
|
+
const __vue_script__$b = script$b;
|
|
2827
2862
|
|
|
2828
2863
|
/* template */
|
|
2829
|
-
var __vue_render__$
|
|
2864
|
+
var __vue_render__$b = function () {
|
|
2830
2865
|
var _vm = this;
|
|
2831
2866
|
var _h = _vm.$createElement;
|
|
2832
2867
|
var _c = _vm._self._c || _h;
|
|
@@ -2834,17 +2869,17 @@ var __vue_render__$a = function () {
|
|
|
2834
2869
|
? _c("a-icon", { attrs: { type: _vm.type, theme: _vm.theme } })
|
|
2835
2870
|
: _c("i", { class: ["iconfont", _vm.type] })
|
|
2836
2871
|
};
|
|
2837
|
-
var __vue_staticRenderFns__$
|
|
2838
|
-
__vue_render__$
|
|
2872
|
+
var __vue_staticRenderFns__$b = [];
|
|
2873
|
+
__vue_render__$b._withStripped = true;
|
|
2839
2874
|
|
|
2840
2875
|
/* style */
|
|
2841
|
-
const __vue_inject_styles__$
|
|
2876
|
+
const __vue_inject_styles__$b = undefined;
|
|
2842
2877
|
/* scoped */
|
|
2843
|
-
const __vue_scope_id__$
|
|
2878
|
+
const __vue_scope_id__$b = undefined;
|
|
2844
2879
|
/* module identifier */
|
|
2845
|
-
const __vue_module_identifier__$
|
|
2880
|
+
const __vue_module_identifier__$b = undefined;
|
|
2846
2881
|
/* functional template */
|
|
2847
|
-
const __vue_is_functional_template__$
|
|
2882
|
+
const __vue_is_functional_template__$b = false;
|
|
2848
2883
|
/* style inject */
|
|
2849
2884
|
|
|
2850
2885
|
/* style inject SSR */
|
|
@@ -2853,13 +2888,13 @@ __vue_render__$a._withStripped = true;
|
|
|
2853
2888
|
|
|
2854
2889
|
|
|
2855
2890
|
|
|
2856
|
-
const __vue_component__$
|
|
2857
|
-
{ render: __vue_render__$
|
|
2858
|
-
__vue_inject_styles__$
|
|
2859
|
-
__vue_script__$
|
|
2860
|
-
__vue_scope_id__$
|
|
2861
|
-
__vue_is_functional_template__$
|
|
2862
|
-
__vue_module_identifier__$
|
|
2891
|
+
const __vue_component__$b = /*#__PURE__*/normalizeComponent(
|
|
2892
|
+
{ render: __vue_render__$b, staticRenderFns: __vue_staticRenderFns__$b },
|
|
2893
|
+
__vue_inject_styles__$b,
|
|
2894
|
+
__vue_script__$b,
|
|
2895
|
+
__vue_scope_id__$b,
|
|
2896
|
+
__vue_is_functional_template__$b,
|
|
2897
|
+
__vue_module_identifier__$b,
|
|
2863
2898
|
false,
|
|
2864
2899
|
undefined,
|
|
2865
2900
|
undefined,
|
|
@@ -2867,11 +2902,11 @@ __vue_render__$a._withStripped = true;
|
|
|
2867
2902
|
);
|
|
2868
2903
|
|
|
2869
2904
|
//
|
|
2870
|
-
var script$
|
|
2905
|
+
var script$a = {
|
|
2871
2906
|
name: 'ele-upload',
|
|
2872
2907
|
components: {
|
|
2873
2908
|
FileUpload,
|
|
2874
|
-
EleIcon: __vue_component__$
|
|
2909
|
+
EleIcon: __vue_component__$b
|
|
2875
2910
|
},
|
|
2876
2911
|
model: {
|
|
2877
2912
|
prop: 'value',
|
|
@@ -3101,10 +3136,10 @@ var script$9 = {
|
|
|
3101
3136
|
};
|
|
3102
3137
|
|
|
3103
3138
|
/* script */
|
|
3104
|
-
const __vue_script__$
|
|
3139
|
+
const __vue_script__$a = script$a;
|
|
3105
3140
|
|
|
3106
3141
|
/* template */
|
|
3107
|
-
var __vue_render__$
|
|
3142
|
+
var __vue_render__$a = function () {
|
|
3108
3143
|
var _vm = this;
|
|
3109
3144
|
var _h = _vm.$createElement;
|
|
3110
3145
|
var _c = _vm._self._c || _h;
|
|
@@ -3242,34 +3277,34 @@ var __vue_render__$9 = function () {
|
|
|
3242
3277
|
1
|
|
3243
3278
|
)
|
|
3244
3279
|
};
|
|
3245
|
-
var __vue_staticRenderFns__$
|
|
3246
|
-
__vue_render__$
|
|
3280
|
+
var __vue_staticRenderFns__$a = [];
|
|
3281
|
+
__vue_render__$a._withStripped = true;
|
|
3247
3282
|
|
|
3248
3283
|
/* style */
|
|
3249
|
-
const __vue_inject_styles__$
|
|
3284
|
+
const __vue_inject_styles__$a = function (inject) {
|
|
3250
3285
|
if (!inject) return
|
|
3251
3286
|
inject("data-v-29bc9f58_0", { source: "[data-v-29bc9f58] .file-uploads label {\n opacity: 1 !important;\n cursor: pointer;\n border: 1px dashed var(--idooel-form-title-border-color);\n background: var(--idooel-form-upload-bg-color) !important;\n border-radius: var(--idooel-form-border-radius);\n}\n[data-v-29bc9f58] .file-uploads label:hover {\n border-color: var(--idooel-form-upload-border-hover-color);\n}\n.ele-upload__wrapper[data-v-29bc9f58] {\n width: 100%;\n}\n.ele-upload__wrapper .ele-upload__area[data-v-29bc9f58] {\n padding: 16px;\n width: 100%;\n height: 80px;\n display: flex;\n flex-direction: row;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload[data-v-29bc9f58] {\n font-size: 48px;\n color: var(--idooel-primary-color);\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text[data-v-29bc9f58] {\n margin-left: 16px;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text .ele-upload__message[data-v-29bc9f58] {\n font-size: 16px;\n color: var(--idoole-black-008);\n text-align: left;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text .ele-upload__ext[data-v-29bc9f58] {\n text-align: left;\n font-size: 14px;\n color: var(--idoole-black-06);\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item[data-v-29bc9f58] {\n width: 100%;\n margin-top: 8px;\n padding: 8px 12px;\n border-radius: var(--idooel-form-border-radius);\n background: var(--idooel-form-upload-bg-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__name[data-v-29bc9f58] {\n flex: 1;\n text-align: left;\n white-space: nowrap;\n overflow: hidden;\n font-size: 14px;\n margin-left: 8px;\n cursor: pointer;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__name .ele-file__inner[data-v-29bc9f58] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__delete[data-v-29bc9f58] {\n margin-left: 8px;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__delete .ele-file__delete--icon[data-v-29bc9f58] {\n margin-left: 8px;\n cursor: pointer;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\upload\\src\\index.vue","index.vue"],"names":[],"mappings":"AAqRA;EACA,qBAAA;EACA,eAAA;EACA,wDAAA;EACA,yDAAA;EAIA,+CAAA;ACvRA;ADoRA;EACA,0DAAA;AClRA;ADuRA;EACA,WAAA;ACpRA;ADqRA;EACA,aAAA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;ACnRA;ADqRA;EACA,eAAA;EACA,kCAAA;ACnRA;ADsRA;EACA,iBAAA;ACpRA;ADqRA;EACA,eAAA;EACA,8BAAA;EACA,gBAAA;ACnRA;ADqRA;EACA,gBAAA;EACA,eAAA;EACA,6BAAA;ACnRA;ADwRA;EACA,WAAA;EACA,eAAA;EACA,iBAAA;EACA,+CAAA;EACA,8CAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;ACtRA;ADwRA;EACA,OAAA;EACA,gBAAA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;EACA,gBAAA;EACA,eAAA;ACtRA;ADuRA;EACA,gBAAA;EACA,uBAAA;ACrRA;ADwRA;EACA,gBAAA;ACtRA;ADuRA;EACA,gBAAA;EACA,eAAA;ACrRA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <div class=\"ele-upload__wrapper\">\r\n <FileUpload\r\n class=\"ele-upload__inner\"\r\n v-show=\"isShowUploadContainer\"\r\n v-model=\"files\"\r\n :ref=\"uploadRef\"\r\n :drop=\"drop\"\r\n :chunk-enabled=\"chunkEnabled\"\r\n :chunk=\"chunkConfig\"\r\n :accept=\"accept\"\r\n :size=\"fileSizeLimit\"\r\n :post-action=\"postAction\"\r\n :multiple=\"multiple\"\r\n :maximum=\"getMaximum\"\r\n @input-file=\"onWatchInputFiles\"\r\n @input=\"onWatchFiles\"\r\n style=\"width: 100%;\">\r\n <section class=\"ele-upload__area\">\r\n <div class=\"ele-upload__area--icon\">\r\n <ele-icon type=\"cloud-upload\"></ele-icon>\r\n </div>\r\n <div class=\"ele-upload__area--text\">\r\n <div class=\"ele-upload__message\">单击或拖动文件到该区域以上传</div>\r\n <div class=\"ele-upload__ext\">文件小于{{ size }}M</div>\r\n </div>\r\n </section>\r\n </FileUpload>\r\n <section class=\"ele-files__wrapper\">\r\n <div class=\"ele-file__item\" v-for=\"(file, idx) in files\" :key=\"idx\">\r\n <div class=\"ele-file__suffix--icon\">\r\n <ele-icon type=\"icon-doc\"></ele-icon>\r\n </div>\r\n <div class=\"ele-file__name\">\r\n <div class=\"ele-file__inner\" @click=\"handleClickDownload(file)\">{{ file.name }}</div>\r\n <div v-if=\"!file.success\" class=\"ele-uplpad__progress\">\r\n <a-progress :strokeWidth=\"2\" :percent=\"Number(file.progress)\" size=\"small\" />\r\n </div>\r\n </div>\r\n <div class=\"ele-file__delete\" v-if=\"file.success || file.error\">\r\n <span class=\"ele-file__size\">{{ (file.size / byteConversion).toFixed(2) }}M</span>\r\n <span class=\"ele-file__delete--icon\" @click=\"handleClickDelete(file)\">\r\n <ele-icon type=\"delete\"></ele-icon>\r\n </span>\r\n </div>\r\n </div>\r\n </section>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport FileUpload from 'vue-upload-component'\r\nimport { v4 as uuidv4 } from 'uuid'\r\nimport { route, net } from '@idooel/shared'\r\nimport EleIcon from '../../icon/src/index.vue'\r\nexport default {\r\n name: 'ele-upload',\r\n components: {\r\n FileUpload,\r\n EleIcon\r\n },\r\n model: {\r\n prop: 'value',\r\n event: 'change'\r\n },\r\n props: {\r\n url: {\r\n type: String,\r\n default: '/zuul/api-file/workbench/file'\r\n },\r\n size: {\r\n type: Number,\r\n default: 100\r\n },\r\n accept: {\r\n type: String\r\n },\r\n maximum: {\r\n type: Number,\r\n default: 10\r\n },\r\n multiple: {\r\n type: Boolean,\r\n default: false\r\n },\r\n drop: {\r\n type: Boolean,\r\n default: true\r\n },\r\n value: {\r\n type: [String, Array]\r\n },\r\n querys: {\r\n type: Object,\r\n default: () => ({\r\n _csrf: 'c81f993f-f044-45bb-b3af-2977d335042d',\r\n _t: new Date().valueOf()\r\n })\r\n },\r\n headers: {\r\n type: Object,\r\n default: () => ({})\r\n },\r\n byteConversion: {\r\n type: Number,\r\n default: 1024 * 1024\r\n },\r\n chunkEnabled: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data() {\r\n return {\r\n files: [],\r\n saveToServerAsyncPageTimer: null\r\n }\r\n },\r\n computed: {\r\n getPayloads () {\r\n return {\r\n override: false\r\n }\r\n },\r\n chunkConfig () {\r\n const ret = route.toQueryString(this.querys)\r\n return {\r\n action: `${window.prefixPath}/zuul/api-file/workbench/file/temp/chunk/vue`,\r\n headers: {\r\n 'X-XSRF-TOKEN': localStorage.getItem('token')\r\n },\r\n minSize: 3 * this.byteConversion,\r\n maxActive: 3,\r\n maxRetries: 5,\r\n startBody: {\r\n override: true,\r\n path: '/cw'\r\n },\r\n uploadBody: {\r\n override: true,\r\n path: '/cw'\r\n },\r\n finishBody: {\r\n override: true,\r\n path: '/cw'\r\n }\r\n }\r\n },\r\n isFileUploadSuccessed () {\r\n return this.files.every(file => file.success)\r\n },\r\n isShowUploadContainer () {\r\n if (this.multiple) {\r\n if (this.isFileUploadSuccessed && this.files.length >= this.maximum) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n } else {\r\n if (this.isFileUploadSuccessed && this.files.length >= 1) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n }\r\n },\r\n getMaximum () {\r\n return this.multiple ? this.maximum : 1\r\n },\r\n fileSizeLimit () {\r\n return this.size * this.byteConversion\r\n },\r\n postAction () {\r\n const ret = route.toQueryString(this.querys)\r\n return `${window.prefixPath}${this.url}?${ret}`\r\n },\r\n uploadRef () {\r\n return uuidv4()\r\n },\r\n fileSuffixIcon () {\r\n return {\r\n 'doc': { name: 'icon-doc' },\r\n }\r\n },\r\n fileIds () {\r\n const fileIds = this.files.map(file => {\r\n return file.response.data.fileID\r\n })\r\n return this.multiple ? fileIds : fileIds[0]\r\n }\r\n },\r\n methods: {\r\n handleClickDownload (file) {\r\n console.log('download file', file)\r\n },\r\n handleClickDelete (file) {\r\n this.$refs[this.uploadRef].remove(file)\r\n this.$emit('change', this.fileIds)\r\n },\r\n onWatchFiles (files) {\r\n this.files = files\r\n if (this.isFileUploadSuccessed) {\r\n this.$emit('change', this.fileIds)\r\n }\r\n },\r\n async saveToServerAsyncPage (payloads = {}) {\r\n net.post('zuul/api-file/workbench/file/temp/saveToServerAsyncPage', payloads, { \r\n headers: {\r\n 'Content-Type': 'multipart/form-data'\r\n }\r\n }).then(resp =>{\r\n const { data } = resp\r\n if (data !== 'saveToServerAsyncPage') {\r\n clearInterval(this.saveToServerAsyncPageTimer)\r\n }\r\n })\r\n // const ret = await net.post({\r\n // url: 'zuul/api-file/workbench/file/temp/saveToServerAsyncPage',\r\n // method: 'POST',\r\n // data: { ...payloads }\r\n // }).then(resp => {\r\n // const { data: { data, code, message } } = resp\r\n // if (code !== '2000') {\r\n // this.$Message.error(message)\r\n // return\r\n // }\r\n // if (data !== 'saveToServerAsyncPage') {\r\n // clearInterval(timer)\r\n // const { fileID, size } = data\r\n // this.$emit('on-success', { ...data, fileId: fileID })\r\n // this.$Message.success('同步成功')\r\n // return { fileId: fileID, size }\r\n // }\r\n // })\r\n // return ret\r\n },\r\n onWatchInputFiles (newFile, oldFile) {\r\n if (newFile && !oldFile) {\r\n // add file\r\n console.log('add', newFile)\r\n }\r\n if (newFile && oldFile) {\r\n // update file\r\n console.log('update', newFile)\r\n const { success, active, chunk, response } = newFile\r\n if (chunk && success && !active) {\r\n console.log('chunk end')\r\n const { data: { file, type } } = response\r\n const payloads = {\r\n filePath: file.match(/\\/cw(.*)/)[0],\r\n asyncID: uuidv4(),\r\n isDeleteOrigin: false,\r\n toImage: type === 'pdf' ? true : false,\r\n unzip: type === 'zip' ? true : false,\r\n _csrf: localStorage.getItem('token')\r\n }\r\n this.saveToServerAsyncPageTimer = setInterval(() => {\r\n this.saveToServerAsyncPage(payloads)\r\n }, 2000)\r\n }\r\n }\r\n if (!newFile && oldFile) {\r\n // delete file\r\n console.log('delete')\r\n }\r\n if (Boolean(newFile) !== Boolean(oldFile) || oldFile.error !== newFile.error) {\r\n if (!this.$refs[this.uploadRef].active) {\r\n this.$refs[this.uploadRef].active = true\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n::v-deep .file-uploads {\r\n label {\r\n opacity: 1 !important;\r\n cursor: pointer;\r\n border: 1px dashed var(--idooel-form-title-border-color);\r\n background: var(--idooel-form-upload-bg-color) !important;\r\n &:hover {\r\n border-color: var(--idooel-form-upload-border-hover-color);\r\n }\r\n border-radius: var(--idooel-form-border-radius);\r\n }\r\n}\r\n.ele-upload__wrapper {\r\n width: 100%;\r\n .ele-upload__area {\r\n padding: 16px;\r\n width: 100%;\r\n height: 80px;\r\n display: flex;\r\n flex-direction: row;\r\n .ele-upload__area--icon {\r\n .anticon-cloud-upload {\r\n font-size: 48px;\r\n color: var(--idooel-primary-color);\r\n }\r\n }\r\n .ele-upload__area--text {\r\n margin-left: 16px;\r\n .ele-upload__message {\r\n font-size: 16px;\r\n color: var(--idoole-black-008);\r\n text-align: left;\r\n }\r\n .ele-upload__ext {\r\n text-align: left;\r\n font-size: 14px;\r\n color: var(--idoole-black-06);\r\n }\r\n }\r\n }\r\n .ele-files__wrapper {\r\n .ele-file__item {\r\n width: 100%;\r\n margin-top: 8px;\r\n padding: 8px 12px;\r\n border-radius: var(--idooel-form-border-radius);\r\n background: var(--idooel-form-upload-bg-color);\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n .ele-file__suffix--icon {}\r\n .ele-file__name {\r\n flex: 1;\r\n text-align: left;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n font-size: 14px;\r\n margin-left: 8px;\r\n cursor: pointer;\r\n .ele-file__inner {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n }\r\n }\r\n .ele-file__delete {\r\n margin-left: 8px;\r\n .ele-file__delete--icon {\r\n margin-left: 8px;\r\n cursor: pointer;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</style>","::v-deep .file-uploads label {\n opacity: 1 !important;\n cursor: pointer;\n border: 1px dashed var(--idooel-form-title-border-color);\n background: var(--idooel-form-upload-bg-color) !important;\n border-radius: var(--idooel-form-border-radius);\n}\n::v-deep .file-uploads label:hover {\n border-color: var(--idooel-form-upload-border-hover-color);\n}\n\n.ele-upload__wrapper {\n width: 100%;\n}\n.ele-upload__wrapper .ele-upload__area {\n padding: 16px;\n width: 100%;\n height: 80px;\n display: flex;\n flex-direction: row;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n font-size: 48px;\n color: var(--idooel-primary-color);\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text {\n margin-left: 16px;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text .ele-upload__message {\n font-size: 16px;\n color: var(--idoole-black-008);\n text-align: left;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n text-align: left;\n font-size: 14px;\n color: var(--idoole-black-06);\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item {\n width: 100%;\n margin-top: 8px;\n padding: 8px 12px;\n border-radius: var(--idooel-form-border-radius);\n background: var(--idooel-form-upload-bg-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__name {\n flex: 1;\n text-align: left;\n white-space: nowrap;\n overflow: hidden;\n font-size: 14px;\n margin-left: 8px;\n cursor: pointer;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__name .ele-file__inner {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__delete {\n margin-left: 8px;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__delete .ele-file__delete--icon {\n margin-left: 8px;\n cursor: pointer;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3252
3287
|
|
|
3253
3288
|
};
|
|
3254
3289
|
/* scoped */
|
|
3255
|
-
const __vue_scope_id__$
|
|
3290
|
+
const __vue_scope_id__$a = "data-v-29bc9f58";
|
|
3256
3291
|
/* module identifier */
|
|
3257
|
-
const __vue_module_identifier__$
|
|
3292
|
+
const __vue_module_identifier__$a = undefined;
|
|
3258
3293
|
/* functional template */
|
|
3259
|
-
const __vue_is_functional_template__$
|
|
3294
|
+
const __vue_is_functional_template__$a = false;
|
|
3260
3295
|
/* style inject SSR */
|
|
3261
3296
|
|
|
3262
3297
|
/* style inject shadow dom */
|
|
3263
3298
|
|
|
3264
3299
|
|
|
3265
3300
|
|
|
3266
|
-
const __vue_component__$
|
|
3267
|
-
{ render: __vue_render__$
|
|
3268
|
-
__vue_inject_styles__$
|
|
3269
|
-
__vue_script__$
|
|
3270
|
-
__vue_scope_id__$
|
|
3271
|
-
__vue_is_functional_template__$
|
|
3272
|
-
__vue_module_identifier__$
|
|
3301
|
+
const __vue_component__$a = /*#__PURE__*/normalizeComponent(
|
|
3302
|
+
{ render: __vue_render__$a, staticRenderFns: __vue_staticRenderFns__$a },
|
|
3303
|
+
__vue_inject_styles__$a,
|
|
3304
|
+
__vue_script__$a,
|
|
3305
|
+
__vue_scope_id__$a,
|
|
3306
|
+
__vue_is_functional_template__$a,
|
|
3307
|
+
__vue_module_identifier__$a,
|
|
3273
3308
|
false,
|
|
3274
3309
|
createInjector,
|
|
3275
3310
|
undefined,
|
|
@@ -3295,7 +3330,7 @@ __vue_render__$9._withStripped = true;
|
|
|
3295
3330
|
//
|
|
3296
3331
|
//
|
|
3297
3332
|
|
|
3298
|
-
var script$
|
|
3333
|
+
var script$9 = {
|
|
3299
3334
|
name: 'ele-select-entity',
|
|
3300
3335
|
props: {
|
|
3301
3336
|
value: {
|
|
@@ -3352,10 +3387,10 @@ var script$8 = {
|
|
|
3352
3387
|
};
|
|
3353
3388
|
|
|
3354
3389
|
/* script */
|
|
3355
|
-
const __vue_script__$
|
|
3390
|
+
const __vue_script__$9 = script$9;
|
|
3356
3391
|
|
|
3357
3392
|
/* template */
|
|
3358
|
-
var __vue_render__$
|
|
3393
|
+
var __vue_render__$9 = function () {
|
|
3359
3394
|
var _vm = this;
|
|
3360
3395
|
var _h = _vm.$createElement;
|
|
3361
3396
|
var _c = _vm._self._c || _h;
|
|
@@ -3405,34 +3440,34 @@ var __vue_render__$8 = function () {
|
|
|
3405
3440
|
2
|
|
3406
3441
|
)
|
|
3407
3442
|
};
|
|
3408
|
-
var __vue_staticRenderFns__$
|
|
3409
|
-
__vue_render__$
|
|
3443
|
+
var __vue_staticRenderFns__$9 = [];
|
|
3444
|
+
__vue_render__$9._withStripped = true;
|
|
3410
3445
|
|
|
3411
3446
|
/* style */
|
|
3412
|
-
const __vue_inject_styles__$
|
|
3447
|
+
const __vue_inject_styles__$9 = function (inject) {
|
|
3413
3448
|
if (!inject) return
|
|
3414
3449
|
inject("data-v-328544bb_0", { source: ".g-select-entity__wrapper[data-v-328544bb] {\n font-size: 14px;\n line-height: 30px;\n position: relative;\n width: 100%;\n display: flex;\n color: var(--idoole-black-07);\n border-radius: 4px;\n border: 1px solid var(--idooel-form-title-border-color);\n}\n.g-select-entity__wrapper[data-v-328544bb]:hover {\n border-color: var(--idooel-primary-color);\n}\n.g-select-entity__wrapper .select-entity__input[data-v-328544bb] {\n padding: 0 11px;\n background-color: #fff;\n border-radius: 4px;\n flex-grow: 1;\n min-height: 30px;\n text-align: left;\n}\n.g-select-entity__wrapper .select-entity__addon[data-v-328544bb] {\n padding: 0 11px;\n color: var(--idoole-black-07);\n background-color: var(--idoole-black-02);\n border-left: 1px solid var(--idooel-form-title-border-color);\n cursor: pointer;\n min-height: 30px;\n white-space: nowrap;\n}\n.has-error .g-select-entity__wrapper[data-v-328544bb] {\n border-color: var(--idooel-form-border-err-color);\n}\n.g-select-entity__disabled .select-entity__input[data-v-328544bb] {\n background-color: var(--idoole-black-02);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\select-entity\\src\\index.vue","index.vue"],"names":[],"mappings":"AA6EA;EACA,eAAA;EACA,iBAAA;EACA,kBAAA;EACA,WAAA;EACA,aAAA;EACA,6BAAA;EACA,kBAAA;EACA,uDAAA;AC5EA;AD6EA;EACA,yCAAA;AC3EA;AD6EA;EACA,eAAA;EACA,sBAAA;EACA,kBAAA;EACA,YAAA;EACA,gBAAA;EACA,gBAAA;AC3EA;AD6EA;EACA,eAAA;EACA,6BAAA;EACA,wCAAA;EACA,4DAAA;EACA,eAAA;EACA,gBAAA;EACA,mBAAA;AC3EA;AD8EA;EACA,iDAAA;AC3EA;AD6EA;EACA,wCAAA;AC1EA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <div class=\"g-select-entity__wrapper\" :class=\"disabled ? 'g-select-entity__disabled' : ''\">\r\n <span class=\"select-entity__input\">\r\n <a-tag\r\n v-for=\"(item, inx) in getValueList()\"\r\n :key=\"item.value\"\r\n :closable=\"!disabled && !getIsMaxCount()\"\r\n @close=\"onClose(...arguments, inx)\"\r\n >\r\n {{ item.label }}\r\n </a-tag>\r\n <a-tag v-if=\"getIsMaxCount()\">......</a-tag>\r\n </span>\r\n <span class=\"select-entity__addon\" @click=\"onChange\">{{ addonAfter }}</span>\r\n <slot></slot>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'ele-select-entity',\r\n props: {\r\n value: {\r\n type: [Array, Object]\r\n },\r\n multiple: {\r\n type: Boolean,\r\n default: true\r\n },\r\n maxCount: {\r\n type: Number,\r\n default: 7\r\n },\r\n disabled: {\r\n type: Boolean,\r\n default: false\r\n },\r\n addonAfter: {\r\n type: String,\r\n default: '选择'\r\n }\r\n },\r\n methods: {\r\n getValueList () {\r\n if (this.value) {\r\n if (this.multiple) {\r\n return this.getIsMaxCount() ? this.value.slice(0, this.maxCount) : this.value\r\n }\r\n return [this.value]\r\n }\r\n return []\r\n },\r\n getIsMaxCount () {\r\n if (this.value && this.multiple) {\r\n return this.value.length >= this.maxCount\r\n }\r\n return false\r\n },\r\n onChange () {\r\n if (this.disabled) return\r\n this.$emit('change', this.value)\r\n },\r\n onClose (e, inx) {\r\n e = window.event || e\r\n e.preventDefault()\r\n if (!this.multiple) {\r\n this.$emit('change', null)\r\n return\r\n }\r\n this.value.splice(inx, 1)\r\n this.$emit('change', this.value)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.g-select-entity__wrapper {\r\n font-size: 14px;\r\n line-height: 30px;\r\n position: relative;\r\n width: 100%;\r\n display: flex;\r\n color: var(--idoole-black-07);\r\n border-radius: 4px;\r\n border: 1px solid var(--idooel-form-title-border-color);\r\n &:hover {\r\n border-color: var(--idooel-primary-color);\r\n }\r\n .select-entity__input {\r\n padding: 0 11px;\r\n background-color: #fff;\r\n border-radius: 4px;\r\n flex-grow: 1;\r\n min-height: 30px;\r\n text-align: left;\r\n }\r\n .select-entity__addon {\r\n padding: 0 11px;\r\n color: var(--idoole-black-07);\r\n background-color: var(--idoole-black-02);\r\n border-left: 1px solid var(--idooel-form-title-border-color);\r\n cursor: pointer;\r\n min-height: 30px;\r\n white-space: nowrap;\r\n }\r\n}\r\n.has-error .g-select-entity__wrapper {\r\n border-color: var(--idooel-form-border-err-color);\r\n}\r\n.g-select-entity__disabled .select-entity__input {\r\n background-color: var(--idoole-black-02);\r\n}\r\n</style>",".g-select-entity__wrapper {\n font-size: 14px;\n line-height: 30px;\n position: relative;\n width: 100%;\n display: flex;\n color: var(--idoole-black-07);\n border-radius: 4px;\n border: 1px solid var(--idooel-form-title-border-color);\n}\n.g-select-entity__wrapper:hover {\n border-color: var(--idooel-primary-color);\n}\n.g-select-entity__wrapper .select-entity__input {\n padding: 0 11px;\n background-color: #fff;\n border-radius: 4px;\n flex-grow: 1;\n min-height: 30px;\n text-align: left;\n}\n.g-select-entity__wrapper .select-entity__addon {\n padding: 0 11px;\n color: var(--idoole-black-07);\n background-color: var(--idoole-black-02);\n border-left: 1px solid var(--idooel-form-title-border-color);\n cursor: pointer;\n min-height: 30px;\n white-space: nowrap;\n}\n\n.has-error .g-select-entity__wrapper {\n border-color: var(--idooel-form-border-err-color);\n}\n\n.g-select-entity__disabled .select-entity__input {\n background-color: var(--idoole-black-02);\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3415
3450
|
|
|
3416
3451
|
};
|
|
3417
3452
|
/* scoped */
|
|
3418
|
-
const __vue_scope_id__$
|
|
3453
|
+
const __vue_scope_id__$9 = "data-v-328544bb";
|
|
3419
3454
|
/* module identifier */
|
|
3420
|
-
const __vue_module_identifier__$
|
|
3455
|
+
const __vue_module_identifier__$9 = undefined;
|
|
3421
3456
|
/* functional template */
|
|
3422
|
-
const __vue_is_functional_template__$
|
|
3457
|
+
const __vue_is_functional_template__$9 = false;
|
|
3423
3458
|
/* style inject SSR */
|
|
3424
3459
|
|
|
3425
3460
|
/* style inject shadow dom */
|
|
3426
3461
|
|
|
3427
3462
|
|
|
3428
3463
|
|
|
3429
|
-
const __vue_component__$
|
|
3430
|
-
{ render: __vue_render__$
|
|
3431
|
-
__vue_inject_styles__$
|
|
3432
|
-
__vue_script__$
|
|
3433
|
-
__vue_scope_id__$
|
|
3434
|
-
__vue_is_functional_template__$
|
|
3435
|
-
__vue_module_identifier__$
|
|
3464
|
+
const __vue_component__$9 = /*#__PURE__*/normalizeComponent(
|
|
3465
|
+
{ render: __vue_render__$9, staticRenderFns: __vue_staticRenderFns__$9 },
|
|
3466
|
+
__vue_inject_styles__$9,
|
|
3467
|
+
__vue_script__$9,
|
|
3468
|
+
__vue_scope_id__$9,
|
|
3469
|
+
__vue_is_functional_template__$9,
|
|
3470
|
+
__vue_module_identifier__$9,
|
|
3436
3471
|
false,
|
|
3437
3472
|
createInjector,
|
|
3438
3473
|
undefined,
|
|
@@ -3446,7 +3481,7 @@ __vue_render__$8._withStripped = true;
|
|
|
3446
3481
|
//
|
|
3447
3482
|
//
|
|
3448
3483
|
|
|
3449
|
-
var script$
|
|
3484
|
+
var script$8 = {
|
|
3450
3485
|
name: 'ele-input-number',
|
|
3451
3486
|
props: {
|
|
3452
3487
|
precision: {
|
|
@@ -3464,10 +3499,10 @@ var script$7 = {
|
|
|
3464
3499
|
};
|
|
3465
3500
|
|
|
3466
3501
|
/* script */
|
|
3467
|
-
const __vue_script__$
|
|
3502
|
+
const __vue_script__$8 = script$8;
|
|
3468
3503
|
|
|
3469
3504
|
/* template */
|
|
3470
|
-
var __vue_render__$
|
|
3505
|
+
var __vue_render__$8 = function () {
|
|
3471
3506
|
var _vm = this;
|
|
3472
3507
|
var _h = _vm.$createElement;
|
|
3473
3508
|
var _c = _vm._self._c || _h;
|
|
@@ -3491,17 +3526,17 @@ var __vue_render__$7 = function () {
|
|
|
3491
3526
|
1
|
|
3492
3527
|
)
|
|
3493
3528
|
};
|
|
3494
|
-
var __vue_staticRenderFns__$
|
|
3495
|
-
__vue_render__$
|
|
3529
|
+
var __vue_staticRenderFns__$8 = [];
|
|
3530
|
+
__vue_render__$8._withStripped = true;
|
|
3496
3531
|
|
|
3497
3532
|
/* style */
|
|
3498
|
-
const __vue_inject_styles__$
|
|
3533
|
+
const __vue_inject_styles__$8 = undefined;
|
|
3499
3534
|
/* scoped */
|
|
3500
|
-
const __vue_scope_id__$
|
|
3535
|
+
const __vue_scope_id__$8 = undefined;
|
|
3501
3536
|
/* module identifier */
|
|
3502
|
-
const __vue_module_identifier__$
|
|
3537
|
+
const __vue_module_identifier__$8 = undefined;
|
|
3503
3538
|
/* functional template */
|
|
3504
|
-
const __vue_is_functional_template__$
|
|
3539
|
+
const __vue_is_functional_template__$8 = false;
|
|
3505
3540
|
/* style inject */
|
|
3506
3541
|
|
|
3507
3542
|
/* style inject SSR */
|
|
@@ -3510,13 +3545,13 @@ __vue_render__$7._withStripped = true;
|
|
|
3510
3545
|
|
|
3511
3546
|
|
|
3512
3547
|
|
|
3513
|
-
const __vue_component__$
|
|
3514
|
-
{ render: __vue_render__$
|
|
3515
|
-
__vue_inject_styles__$
|
|
3516
|
-
__vue_script__$
|
|
3517
|
-
__vue_scope_id__$
|
|
3518
|
-
__vue_is_functional_template__$
|
|
3519
|
-
__vue_module_identifier__$
|
|
3548
|
+
const __vue_component__$8 = /*#__PURE__*/normalizeComponent(
|
|
3549
|
+
{ render: __vue_render__$8, staticRenderFns: __vue_staticRenderFns__$8 },
|
|
3550
|
+
__vue_inject_styles__$8,
|
|
3551
|
+
__vue_script__$8,
|
|
3552
|
+
__vue_scope_id__$8,
|
|
3553
|
+
__vue_is_functional_template__$8,
|
|
3554
|
+
__vue_module_identifier__$8,
|
|
3520
3555
|
false,
|
|
3521
3556
|
undefined,
|
|
3522
3557
|
undefined,
|
|
@@ -3528,7 +3563,7 @@ __vue_render__$7._withStripped = true;
|
|
|
3528
3563
|
//
|
|
3529
3564
|
//
|
|
3530
3565
|
|
|
3531
|
-
var script$
|
|
3566
|
+
var script$7 = {
|
|
3532
3567
|
name: 'ele-checkbox',
|
|
3533
3568
|
props: {
|
|
3534
3569
|
value: {
|
|
@@ -3552,10 +3587,10 @@ var script$6 = {
|
|
|
3552
3587
|
};
|
|
3553
3588
|
|
|
3554
3589
|
/* script */
|
|
3555
|
-
const __vue_script__$
|
|
3590
|
+
const __vue_script__$7 = script$7;
|
|
3556
3591
|
|
|
3557
3592
|
/* template */
|
|
3558
|
-
var __vue_render__$
|
|
3593
|
+
var __vue_render__$7 = function () {
|
|
3559
3594
|
var _vm = this;
|
|
3560
3595
|
var _h = _vm.$createElement;
|
|
3561
3596
|
var _c = _vm._self._c || _h;
|
|
@@ -3568,34 +3603,34 @@ var __vue_render__$6 = function () {
|
|
|
3568
3603
|
on: { change: _vm.onChange },
|
|
3569
3604
|
})
|
|
3570
3605
|
};
|
|
3571
|
-
var __vue_staticRenderFns__$
|
|
3572
|
-
__vue_render__$
|
|
3606
|
+
var __vue_staticRenderFns__$7 = [];
|
|
3607
|
+
__vue_render__$7._withStripped = true;
|
|
3573
3608
|
|
|
3574
3609
|
/* style */
|
|
3575
|
-
const __vue_inject_styles__$
|
|
3610
|
+
const __vue_inject_styles__$7 = function (inject) {
|
|
3576
3611
|
if (!inject) return
|
|
3577
3612
|
inject("data-v-63b1b120_0", { source: ".ant-checkbox-group[data-v-63b1b120] {\n text-align: left;\n line-height: 32px;\n}\n.has-error .ant-checkbox-group[data-v-63b1b120] .ant-checkbox-wrapper {\n color: var(--idooel-form-border-err-color);\n}\n.has-error .ant-checkbox-group[data-v-63b1b120] .ant-checkbox-inner {\n border-color: var(--idooel-form-border-err-color);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\checkbox\\src\\index.vue","index.vue"],"names":[],"mappings":"AA6BA;EACA,gBAAA;EACA,iBAAA;AC5BA;ADgCA;EACA,0CAAA;AC7BA;AD+BA;EACA,iDAAA;AC7BA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <a-checkbox-group :options=\"dataSource\" :disabled=\"disabled\" :defaultValue=\"value\" @change=\"onChange\"></a-checkbox-group>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'ele-checkbox',\r\n props: {\r\n value: {\r\n type: Array\r\n },\r\n dataSource: {\r\n type: Array,\r\n default: () => []\r\n },\r\n disabled: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n methods: {\r\n onChange (value) {\r\n this.$emit('change', value)\r\n this.$emit('input', value)\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.ant-checkbox-group {\r\n text-align: left;\r\n line-height: 32px;\r\n}\r\n.has-error {\r\n .ant-checkbox-group {\r\n ::v-deep .ant-checkbox-wrapper {\r\n color: var(--idooel-form-border-err-color);\r\n }\r\n ::v-deep .ant-checkbox-inner {\r\n border-color: var(--idooel-form-border-err-color);\r\n }\r\n }\r\n}\r\n</style>",".ant-checkbox-group {\n text-align: left;\n line-height: 32px;\n}\n\n.has-error .ant-checkbox-group ::v-deep .ant-checkbox-wrapper {\n color: var(--idooel-form-border-err-color);\n}\n.has-error .ant-checkbox-group ::v-deep .ant-checkbox-inner {\n border-color: var(--idooel-form-border-err-color);\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3578
3613
|
|
|
3579
3614
|
};
|
|
3580
3615
|
/* scoped */
|
|
3581
|
-
const __vue_scope_id__$
|
|
3616
|
+
const __vue_scope_id__$7 = "data-v-63b1b120";
|
|
3582
3617
|
/* module identifier */
|
|
3583
|
-
const __vue_module_identifier__$
|
|
3618
|
+
const __vue_module_identifier__$7 = undefined;
|
|
3584
3619
|
/* functional template */
|
|
3585
|
-
const __vue_is_functional_template__$
|
|
3620
|
+
const __vue_is_functional_template__$7 = false;
|
|
3586
3621
|
/* style inject SSR */
|
|
3587
3622
|
|
|
3588
3623
|
/* style inject shadow dom */
|
|
3589
3624
|
|
|
3590
3625
|
|
|
3591
3626
|
|
|
3592
|
-
const __vue_component__$
|
|
3593
|
-
{ render: __vue_render__$
|
|
3594
|
-
__vue_inject_styles__$
|
|
3595
|
-
__vue_script__$
|
|
3596
|
-
__vue_scope_id__$
|
|
3597
|
-
__vue_is_functional_template__$
|
|
3598
|
-
__vue_module_identifier__$
|
|
3627
|
+
const __vue_component__$7 = /*#__PURE__*/normalizeComponent(
|
|
3628
|
+
{ render: __vue_render__$7, staticRenderFns: __vue_staticRenderFns__$7 },
|
|
3629
|
+
__vue_inject_styles__$7,
|
|
3630
|
+
__vue_script__$7,
|
|
3631
|
+
__vue_scope_id__$7,
|
|
3632
|
+
__vue_is_functional_template__$7,
|
|
3633
|
+
__vue_module_identifier__$7,
|
|
3599
3634
|
false,
|
|
3600
3635
|
createInjector,
|
|
3601
3636
|
undefined,
|
|
@@ -3611,7 +3646,7 @@ __vue_render__$6._withStripped = true;
|
|
|
3611
3646
|
//
|
|
3612
3647
|
//
|
|
3613
3648
|
|
|
3614
|
-
var script$
|
|
3649
|
+
var script$6 = {
|
|
3615
3650
|
name: 'ele-radio',
|
|
3616
3651
|
props: {
|
|
3617
3652
|
value: {
|
|
@@ -3635,10 +3670,10 @@ var script$5 = {
|
|
|
3635
3670
|
};
|
|
3636
3671
|
|
|
3637
3672
|
/* script */
|
|
3638
|
-
const __vue_script__$
|
|
3673
|
+
const __vue_script__$6 = script$6;
|
|
3639
3674
|
|
|
3640
3675
|
/* template */
|
|
3641
|
-
var __vue_render__$
|
|
3676
|
+
var __vue_render__$6 = function () {
|
|
3642
3677
|
var _vm = this;
|
|
3643
3678
|
var _h = _vm.$createElement;
|
|
3644
3679
|
var _c = _vm._self._c || _h;
|
|
@@ -3656,34 +3691,34 @@ var __vue_render__$5 = function () {
|
|
|
3656
3691
|
1
|
|
3657
3692
|
)
|
|
3658
3693
|
};
|
|
3659
|
-
var __vue_staticRenderFns__$
|
|
3660
|
-
__vue_render__$
|
|
3694
|
+
var __vue_staticRenderFns__$6 = [];
|
|
3695
|
+
__vue_render__$6._withStripped = true;
|
|
3661
3696
|
|
|
3662
3697
|
/* style */
|
|
3663
|
-
const __vue_inject_styles__$
|
|
3698
|
+
const __vue_inject_styles__$6 = function (inject) {
|
|
3664
3699
|
if (!inject) return
|
|
3665
3700
|
inject("data-v-66c5cdf2_0", { source: ".ant-radio-group[data-v-66c5cdf2] {\n text-align: left;\n line-height: 32px;\n}\n.has-error .ant-radio-group[data-v-66c5cdf2] .ant-radio-wrapper {\n color: var(--idooel-form-border-err-color);\n}\n.has-error .ant-radio-group[data-v-66c5cdf2] .ant-radio-inner {\n border-color: var(--idooel-form-border-err-color);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\radio\\src\\index.vue","index.vue"],"names":[],"mappings":"AAiCA;EACA,gBAAA;EACA,iBAAA;AChCA;ADoCA;EACA,0CAAA;ACjCA;ADmCA;EACA,iDAAA;ACjCA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <a-radio-group :defaultValue=\"value\" @change=\"onChange\" :disabled=\"disabled\">\r\n <a-radio v-for=\"item in dataSource\" :key=\"item.value\" :value=\"item.value\">\r\n {{ item.label }}\r\n </a-radio>\r\n </a-radio-group>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'ele-radio',\r\n props: {\r\n value: {\r\n type: [String, Array, Number]\r\n },\r\n dataSource: {\r\n type: Array,\r\n default: () => []\r\n },\r\n disabled: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n methods: {\r\n onChange (e) {\r\n this.$emit('change', e.target.value)\r\n this.$emit('input', e.target.value)\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.ant-radio-group {\r\n text-align: left;\r\n line-height: 32px;\r\n}\r\n.has-error {\r\n .ant-radio-group {\r\n ::v-deep .ant-radio-wrapper {\r\n color: var(--idooel-form-border-err-color);\r\n }\r\n ::v-deep .ant-radio-inner {\r\n border-color: var(--idooel-form-border-err-color);\r\n }\r\n }\r\n}\r\n</style>",".ant-radio-group {\n text-align: left;\n line-height: 32px;\n}\n\n.has-error .ant-radio-group ::v-deep .ant-radio-wrapper {\n color: var(--idooel-form-border-err-color);\n}\n.has-error .ant-radio-group ::v-deep .ant-radio-inner {\n border-color: var(--idooel-form-border-err-color);\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3666
3701
|
|
|
3667
3702
|
};
|
|
3668
3703
|
/* scoped */
|
|
3669
|
-
const __vue_scope_id__$
|
|
3704
|
+
const __vue_scope_id__$6 = "data-v-66c5cdf2";
|
|
3670
3705
|
/* module identifier */
|
|
3671
|
-
const __vue_module_identifier__$
|
|
3706
|
+
const __vue_module_identifier__$6 = undefined;
|
|
3672
3707
|
/* functional template */
|
|
3673
|
-
const __vue_is_functional_template__$
|
|
3708
|
+
const __vue_is_functional_template__$6 = false;
|
|
3674
3709
|
/* style inject SSR */
|
|
3675
3710
|
|
|
3676
3711
|
/* style inject shadow dom */
|
|
3677
3712
|
|
|
3678
3713
|
|
|
3679
3714
|
|
|
3680
|
-
const __vue_component__$
|
|
3681
|
-
{ render: __vue_render__$
|
|
3682
|
-
__vue_inject_styles__$
|
|
3683
|
-
__vue_script__$
|
|
3684
|
-
__vue_scope_id__$
|
|
3685
|
-
__vue_is_functional_template__$
|
|
3686
|
-
__vue_module_identifier__$
|
|
3715
|
+
const __vue_component__$6 = /*#__PURE__*/normalizeComponent(
|
|
3716
|
+
{ render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
|
|
3717
|
+
__vue_inject_styles__$6,
|
|
3718
|
+
__vue_script__$6,
|
|
3719
|
+
__vue_scope_id__$6,
|
|
3720
|
+
__vue_is_functional_template__$6,
|
|
3721
|
+
__vue_module_identifier__$6,
|
|
3687
3722
|
false,
|
|
3688
3723
|
createInjector,
|
|
3689
3724
|
undefined,
|
|
@@ -3691,17 +3726,17 @@ __vue_render__$5._withStripped = true;
|
|
|
3691
3726
|
);
|
|
3692
3727
|
|
|
3693
3728
|
//
|
|
3694
|
-
var script$
|
|
3729
|
+
var script$5 = {
|
|
3695
3730
|
name: 'ele-form',
|
|
3696
3731
|
components: {
|
|
3697
|
-
EleSelect: __vue_component__$
|
|
3698
|
-
EleInput: __vue_component__$
|
|
3699
|
-
EleTextarea: __vue_component__$
|
|
3700
|
-
EleUpload: __vue_component__$
|
|
3701
|
-
EleSelectEntity: __vue_component__$
|
|
3702
|
-
EleInputNumber: __vue_component__$
|
|
3703
|
-
EleCheckbox: __vue_component__$
|
|
3704
|
-
EleRadio: __vue_component__$
|
|
3732
|
+
EleSelect: __vue_component__$l,
|
|
3733
|
+
EleInput: __vue_component__$m,
|
|
3734
|
+
EleTextarea: __vue_component__$c,
|
|
3735
|
+
EleUpload: __vue_component__$a,
|
|
3736
|
+
EleSelectEntity: __vue_component__$9,
|
|
3737
|
+
EleInputNumber: __vue_component__$8,
|
|
3738
|
+
EleCheckbox: __vue_component__$7,
|
|
3739
|
+
EleRadio: __vue_component__$6
|
|
3705
3740
|
},
|
|
3706
3741
|
props: {
|
|
3707
3742
|
elements: {
|
|
@@ -3740,10 +3775,10 @@ var script$4 = {
|
|
|
3740
3775
|
};
|
|
3741
3776
|
|
|
3742
3777
|
/* script */
|
|
3743
|
-
const __vue_script__$
|
|
3778
|
+
const __vue_script__$5 = script$5;
|
|
3744
3779
|
|
|
3745
3780
|
/* template */
|
|
3746
|
-
var __vue_render__$
|
|
3781
|
+
var __vue_render__$5 = function () {
|
|
3747
3782
|
var _vm = this;
|
|
3748
3783
|
var _h = _vm.$createElement;
|
|
3749
3784
|
var _c = _vm._self._c || _h;
|
|
@@ -3867,6 +3902,28 @@ var __vue_render__$4 = function () {
|
|
|
3867
3902
|
1
|
|
3868
3903
|
),
|
|
3869
3904
|
]
|
|
3905
|
+
: ele.type == "ele-date-range"
|
|
3906
|
+
? [
|
|
3907
|
+
_c(
|
|
3908
|
+
"a-form-item",
|
|
3909
|
+
{ attrs: { label: ele.label + ":" } },
|
|
3910
|
+
[
|
|
3911
|
+
_c("ele-date-range", {
|
|
3912
|
+
directives: [
|
|
3913
|
+
{
|
|
3914
|
+
name: "decorator",
|
|
3915
|
+
rawName: "v-decorator",
|
|
3916
|
+
value: [ele.name, { rules: ele.rules }],
|
|
3917
|
+
expression:
|
|
3918
|
+
"[ele.name, { rules: ele.rules }]",
|
|
3919
|
+
},
|
|
3920
|
+
],
|
|
3921
|
+
staticStyle: { width: "100%" },
|
|
3922
|
+
}),
|
|
3923
|
+
],
|
|
3924
|
+
1
|
|
3925
|
+
),
|
|
3926
|
+
]
|
|
3870
3927
|
: ele.type == "SelectEntity"
|
|
3871
3928
|
? [
|
|
3872
3929
|
_c(
|
|
@@ -3980,41 +4037,41 @@ var __vue_render__$4 = function () {
|
|
|
3980
4037
|
1
|
|
3981
4038
|
)
|
|
3982
4039
|
};
|
|
3983
|
-
var __vue_staticRenderFns__$
|
|
3984
|
-
__vue_render__$
|
|
4040
|
+
var __vue_staticRenderFns__$5 = [];
|
|
4041
|
+
__vue_render__$5._withStripped = true;
|
|
3985
4042
|
|
|
3986
4043
|
/* style */
|
|
3987
|
-
const __vue_inject_styles__$
|
|
4044
|
+
const __vue_inject_styles__$5 = function (inject) {
|
|
3988
4045
|
if (!inject) return
|
|
3989
|
-
inject("data-v-
|
|
4046
|
+
inject("data-v-77a77c38_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue","sourcesContent":["\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3990
4047
|
|
|
3991
4048
|
};
|
|
3992
4049
|
/* scoped */
|
|
3993
|
-
const __vue_scope_id__$
|
|
4050
|
+
const __vue_scope_id__$5 = "data-v-77a77c38";
|
|
3994
4051
|
/* module identifier */
|
|
3995
|
-
const __vue_module_identifier__$
|
|
4052
|
+
const __vue_module_identifier__$5 = undefined;
|
|
3996
4053
|
/* functional template */
|
|
3997
|
-
const __vue_is_functional_template__$
|
|
4054
|
+
const __vue_is_functional_template__$5 = false;
|
|
3998
4055
|
/* style inject SSR */
|
|
3999
4056
|
|
|
4000
4057
|
/* style inject shadow dom */
|
|
4001
4058
|
|
|
4002
4059
|
|
|
4003
4060
|
|
|
4004
|
-
const __vue_component__$
|
|
4005
|
-
{ render: __vue_render__$
|
|
4006
|
-
__vue_inject_styles__$
|
|
4007
|
-
__vue_script__$
|
|
4008
|
-
__vue_scope_id__$
|
|
4009
|
-
__vue_is_functional_template__$
|
|
4010
|
-
__vue_module_identifier__$
|
|
4061
|
+
const __vue_component__$5 = /*#__PURE__*/normalizeComponent(
|
|
4062
|
+
{ render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
|
|
4063
|
+
__vue_inject_styles__$5,
|
|
4064
|
+
__vue_script__$5,
|
|
4065
|
+
__vue_scope_id__$5,
|
|
4066
|
+
__vue_is_functional_template__$5,
|
|
4067
|
+
__vue_module_identifier__$5,
|
|
4011
4068
|
false,
|
|
4012
4069
|
createInjector,
|
|
4013
4070
|
undefined,
|
|
4014
4071
|
undefined
|
|
4015
4072
|
);
|
|
4016
4073
|
|
|
4017
|
-
__vue_component__$
|
|
4074
|
+
__vue_component__$5.install = Vue => Vue.component(__vue_component__$5.name, __vue_component__$5);
|
|
4018
4075
|
|
|
4019
4076
|
//
|
|
4020
4077
|
//
|
|
@@ -4023,63 +4080,63 @@ __vue_component__$4.install = Vue => Vue.component(__vue_component__$4.name, __v
|
|
|
4023
4080
|
//
|
|
4024
4081
|
//
|
|
4025
4082
|
|
|
4026
|
-
var script$
|
|
4083
|
+
var script$4 = {
|
|
4027
4084
|
name: 'g-text'
|
|
4028
4085
|
};
|
|
4029
4086
|
|
|
4030
4087
|
/* script */
|
|
4031
|
-
const __vue_script__$
|
|
4088
|
+
const __vue_script__$4 = script$4;
|
|
4032
4089
|
|
|
4033
4090
|
/* template */
|
|
4034
|
-
var __vue_render__$
|
|
4091
|
+
var __vue_render__$4 = function () {
|
|
4035
4092
|
var _vm = this;
|
|
4036
4093
|
var _h = _vm.$createElement;
|
|
4037
4094
|
var _c = _vm._self._c || _h;
|
|
4038
4095
|
return _c("div", [_vm._v("\n text\n")])
|
|
4039
4096
|
};
|
|
4040
|
-
var __vue_staticRenderFns__$
|
|
4041
|
-
__vue_render__$
|
|
4097
|
+
var __vue_staticRenderFns__$4 = [];
|
|
4098
|
+
__vue_render__$4._withStripped = true;
|
|
4042
4099
|
|
|
4043
4100
|
/* style */
|
|
4044
|
-
const __vue_inject_styles__$
|
|
4101
|
+
const __vue_inject_styles__$4 = function (inject) {
|
|
4045
4102
|
if (!inject) return
|
|
4046
4103
|
inject("data-v-d41a0ce6_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"index.vue"}, media: undefined });
|
|
4047
4104
|
|
|
4048
4105
|
};
|
|
4049
4106
|
/* scoped */
|
|
4050
|
-
const __vue_scope_id__$
|
|
4107
|
+
const __vue_scope_id__$4 = "data-v-d41a0ce6";
|
|
4051
4108
|
/* module identifier */
|
|
4052
|
-
const __vue_module_identifier__$
|
|
4109
|
+
const __vue_module_identifier__$4 = undefined;
|
|
4053
4110
|
/* functional template */
|
|
4054
|
-
const __vue_is_functional_template__$
|
|
4111
|
+
const __vue_is_functional_template__$4 = false;
|
|
4055
4112
|
/* style inject SSR */
|
|
4056
4113
|
|
|
4057
4114
|
/* style inject shadow dom */
|
|
4058
4115
|
|
|
4059
4116
|
|
|
4060
4117
|
|
|
4061
|
-
const __vue_component__$
|
|
4062
|
-
{ render: __vue_render__$
|
|
4063
|
-
__vue_inject_styles__$
|
|
4064
|
-
__vue_script__$
|
|
4065
|
-
__vue_scope_id__$
|
|
4066
|
-
__vue_is_functional_template__$
|
|
4067
|
-
__vue_module_identifier__$
|
|
4118
|
+
const __vue_component__$4 = /*#__PURE__*/normalizeComponent(
|
|
4119
|
+
{ render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
|
|
4120
|
+
__vue_inject_styles__$4,
|
|
4121
|
+
__vue_script__$4,
|
|
4122
|
+
__vue_scope_id__$4,
|
|
4123
|
+
__vue_is_functional_template__$4,
|
|
4124
|
+
__vue_module_identifier__$4,
|
|
4068
4125
|
false,
|
|
4069
4126
|
createInjector,
|
|
4070
4127
|
undefined,
|
|
4071
4128
|
undefined
|
|
4072
4129
|
);
|
|
4073
4130
|
|
|
4074
|
-
__vue_component__$
|
|
4131
|
+
__vue_component__$4.install = Vue => Vue.component(__vue_component__$4.name, __vue_component__$4);
|
|
4075
4132
|
|
|
4076
|
-
__vue_component__$
|
|
4133
|
+
__vue_component__$a.install = Vue => Vue.component(__vue_component__$a.name, __vue_component__$a);
|
|
4077
4134
|
|
|
4078
|
-
__vue_component__$
|
|
4135
|
+
__vue_component__$9.install = Vue => Vue.component(__vue_component__$9.name, __vue_component__$9);
|
|
4079
4136
|
|
|
4080
|
-
__vue_component__$
|
|
4137
|
+
__vue_component__$b.install = Vue => Vue.component(__vue_component__$b.name, __vue_component__$b);
|
|
4081
4138
|
|
|
4082
|
-
__vue_component__$
|
|
4139
|
+
__vue_component__$8.install = Vue => Vue.component(__vue_component__$8.name, __vue_component__$8);
|
|
4083
4140
|
|
|
4084
4141
|
//
|
|
4085
4142
|
//
|
|
@@ -4113,7 +4170,7 @@ __vue_component__$7.install = Vue => Vue.component(__vue_component__$7.name, __v
|
|
|
4113
4170
|
//
|
|
4114
4171
|
//
|
|
4115
4172
|
|
|
4116
|
-
var script$
|
|
4173
|
+
var script$3 = {
|
|
4117
4174
|
name: 'ele-modal',
|
|
4118
4175
|
props: {
|
|
4119
4176
|
value: {
|
|
@@ -4224,10 +4281,10 @@ var script$2 = {
|
|
|
4224
4281
|
};
|
|
4225
4282
|
|
|
4226
4283
|
/* script */
|
|
4227
|
-
const __vue_script__$
|
|
4284
|
+
const __vue_script__$3 = script$3;
|
|
4228
4285
|
|
|
4229
4286
|
/* template */
|
|
4230
|
-
var __vue_render__$
|
|
4287
|
+
var __vue_render__$3 = function () {
|
|
4231
4288
|
var _vm = this;
|
|
4232
4289
|
var _h = _vm.$createElement;
|
|
4233
4290
|
var _c = _vm._self._c || _h;
|
|
@@ -4282,17 +4339,17 @@ var __vue_render__$2 = function () {
|
|
|
4282
4339
|
2
|
|
4283
4340
|
)
|
|
4284
4341
|
};
|
|
4285
|
-
var __vue_staticRenderFns__$
|
|
4286
|
-
__vue_render__$
|
|
4342
|
+
var __vue_staticRenderFns__$3 = [];
|
|
4343
|
+
__vue_render__$3._withStripped = true;
|
|
4287
4344
|
|
|
4288
4345
|
/* style */
|
|
4289
|
-
const __vue_inject_styles__$
|
|
4346
|
+
const __vue_inject_styles__$3 = undefined;
|
|
4290
4347
|
/* scoped */
|
|
4291
|
-
const __vue_scope_id__$
|
|
4348
|
+
const __vue_scope_id__$3 = undefined;
|
|
4292
4349
|
/* module identifier */
|
|
4293
|
-
const __vue_module_identifier__$
|
|
4350
|
+
const __vue_module_identifier__$3 = undefined;
|
|
4294
4351
|
/* functional template */
|
|
4295
|
-
const __vue_is_functional_template__$
|
|
4352
|
+
const __vue_is_functional_template__$3 = false;
|
|
4296
4353
|
/* style inject */
|
|
4297
4354
|
|
|
4298
4355
|
/* style inject SSR */
|
|
@@ -4301,30 +4358,30 @@ __vue_render__$2._withStripped = true;
|
|
|
4301
4358
|
|
|
4302
4359
|
|
|
4303
4360
|
|
|
4304
|
-
const __vue_component__$
|
|
4305
|
-
{ render: __vue_render__$
|
|
4306
|
-
__vue_inject_styles__$
|
|
4307
|
-
__vue_script__$
|
|
4308
|
-
__vue_scope_id__$
|
|
4309
|
-
__vue_is_functional_template__$
|
|
4310
|
-
__vue_module_identifier__$
|
|
4361
|
+
const __vue_component__$3 = /*#__PURE__*/normalizeComponent(
|
|
4362
|
+
{ render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
|
|
4363
|
+
__vue_inject_styles__$3,
|
|
4364
|
+
__vue_script__$3,
|
|
4365
|
+
__vue_scope_id__$3,
|
|
4366
|
+
__vue_is_functional_template__$3,
|
|
4367
|
+
__vue_module_identifier__$3,
|
|
4311
4368
|
false,
|
|
4312
4369
|
undefined,
|
|
4313
4370
|
undefined,
|
|
4314
4371
|
undefined
|
|
4315
4372
|
);
|
|
4316
4373
|
|
|
4317
|
-
__vue_component__$
|
|
4374
|
+
__vue_component__$3.install = Vue => Vue.component(__vue_component__$3.name, __vue_component__$3);
|
|
4318
4375
|
|
|
4319
|
-
__vue_component__$
|
|
4376
|
+
__vue_component__$7.install = Vue => Vue.component(__vue_component__$7.name, __vue_component__$7);
|
|
4320
4377
|
|
|
4321
|
-
__vue_component__$
|
|
4378
|
+
__vue_component__$6.install = Vue => Vue.component(__vue_component__$6.name, __vue_component__$6);
|
|
4322
4379
|
|
|
4323
4380
|
//
|
|
4324
|
-
var script$
|
|
4381
|
+
var script$2 = {
|
|
4325
4382
|
name: 'ele-batch-export',
|
|
4326
4383
|
components: {
|
|
4327
|
-
EleIcon: __vue_component__$
|
|
4384
|
+
EleIcon: __vue_component__$b
|
|
4328
4385
|
},
|
|
4329
4386
|
props: {
|
|
4330
4387
|
value: {
|
|
@@ -4368,10 +4425,10 @@ var script$1 = {
|
|
|
4368
4425
|
};
|
|
4369
4426
|
|
|
4370
4427
|
/* script */
|
|
4371
|
-
const __vue_script__$
|
|
4428
|
+
const __vue_script__$2 = script$2;
|
|
4372
4429
|
|
|
4373
4430
|
/* template */
|
|
4374
|
-
var __vue_render__$
|
|
4431
|
+
var __vue_render__$2 = function () {
|
|
4375
4432
|
var _vm = this;
|
|
4376
4433
|
var _h = _vm.$createElement;
|
|
4377
4434
|
var _c = _vm._self._c || _h;
|
|
@@ -4430,17 +4487,104 @@ var __vue_render__$1 = function () {
|
|
|
4430
4487
|
]
|
|
4431
4488
|
)
|
|
4432
4489
|
};
|
|
4490
|
+
var __vue_staticRenderFns__$2 = [];
|
|
4491
|
+
__vue_render__$2._withStripped = true;
|
|
4492
|
+
|
|
4493
|
+
/* style */
|
|
4494
|
+
const __vue_inject_styles__$2 = function (inject) {
|
|
4495
|
+
if (!inject) return
|
|
4496
|
+
inject("data-v-8734c1a2_0", { source: ".ele-batch-export__content[data-v-8734c1a2] {\n height: 106px;\n}\n.ele-batch-export__content .ele-batch-export__container[data-v-8734c1a2] {\n border-width: 1px;\n border-style: dashed;\n height: 80px;\n border-color: var(--idooel-link-06);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0 16px;\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__icon[data-v-8734c1a2] {\n font-size: 48px;\n color: var(--idooel-link-06);\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__handle[data-v-8734c1a2] {\n margin-left: 16px;\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__handle .ele-batch-export__btn[data-v-8734c1a2] {\n color: var(--idooel-link-06);\n font-size: 16px;\n cursor: pointer;\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__handle .ele-batch-export__btn--hint[data-v-8734c1a2] {\n color: var(--idooel-link-03);\n font-size: 14px;\n}\n.ele-batch-export__content .ele-batch-export__message[data-v-8734c1a2] {\n color: var(--idooel-link-06);\n font-size: 14px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["E:\\work\\code\\ganjiao\\ganjian-monorepo\\packages\\components\\packages\\batch-export\\src\\index.vue","index.vue"],"names":[],"mappings":"AAyEA;EACA,aAAA;ACxEA;ADyEA;EACA,iBAAA;EACA,oBAAA;EACA,YAAA;EACA,mCAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,eAAA;ACvEA;ADwEA;EACA,eAAA;EACA,4BAAA;ACtEA;ADwEA;EACA,iBAAA;ACtEA;ADuEA;EACA,4BAAA;EACA,eAAA;EACA,eAAA;ACrEA;ADuEA;EACA,4BAAA;EACA,eAAA;ACrEA;ADyEA;EACA,4BAAA;EACA,eAAA;ACvEA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\r\n <ele-modal \r\n v-model=\"innerValue\" \r\n v-on=\"$listeners\"\r\n :buttonGroupMeta=\"buttonGroupMeta\" \r\n title=\"批量导出\">\r\n <div class=\"ele-batch-export__content\">\r\n <div class=\"ele-batch-export__container\">\r\n <ele-icon class=\"ele-batch-export__icon\" type=\"download\"></ele-icon>\r\n <div class=\"ele-batch-export__handle\">\r\n <div class=\"ele-batch-export__btn\" @click=\"handleClick\">导出任务处理中..... 请点击此按钮跳转到“批处理管理”菜单查看任务进度</div>\r\n <div class=\"ele-batch-export__btn--hint\">批处理任务的准备工作会在后台运行</div>\r\n </div>\r\n </div>\r\n <div class=\"ele-batch-export__message\">\r\n 您可以请点击上方按钮查看任务进度或关闭弹框\r\n </div>\r\n </div>\r\n </ele-modal>\r\n</template>\r\n\r\n<script>\r\nimport EleIcon from '../../icon/src/index.vue'\r\nexport default {\r\n name: 'ele-batch-export',\r\n components: {\r\n EleIcon\r\n },\r\n props: {\r\n value: {\r\n type: Boolean,\r\n default: false\r\n },\r\n buttonGroupMeta: {\r\n type: Object,\r\n default: () => {\r\n return {\r\n elements: [\r\n {\r\n label: '关闭',\r\n key: 'close',\r\n type: 'primary',\r\n eventName: 'handleClose'\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n innerValue: false\r\n }\r\n },\r\n watch: {\r\n value: {\r\n handler (value) {\r\n this.$nextTick(() => {\r\n this.innerValue = value\r\n })\r\n },\r\n immediate: true\r\n }\r\n },\r\n methods: {\r\n handleClick () {\r\n this.$emit('on-batch-export')\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.ele-batch-export__content {\r\n height: 106px;\r\n .ele-batch-export__container {\r\n border-width: 1px;\r\n border-style: dashed;\r\n height: 80px;\r\n border-color: var(--idooel-link-06);\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: 0 16px;\r\n .ele-batch-export__icon {\r\n font-size: 48px;\r\n color: var(--idooel-link-06);\r\n }\r\n .ele-batch-export__handle {\r\n margin-left: 16px;\r\n .ele-batch-export__btn {\r\n color: var(--idooel-link-06);\r\n font-size: 16px;\r\n cursor: pointer;\r\n }\r\n .ele-batch-export__btn--hint {\r\n color: var(--idooel-link-03);\r\n font-size: 14px;\r\n }\r\n }\r\n }\r\n .ele-batch-export__message {\r\n color: var(--idooel-link-06);\r\n font-size: 14px;\r\n }\r\n}\r\n</style>",".ele-batch-export__content {\n height: 106px;\n}\n.ele-batch-export__content .ele-batch-export__container {\n border-width: 1px;\n border-style: dashed;\n height: 80px;\n border-color: var(--idooel-link-06);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0 16px;\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__icon {\n font-size: 48px;\n color: var(--idooel-link-06);\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__handle {\n margin-left: 16px;\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__handle .ele-batch-export__btn {\n color: var(--idooel-link-06);\n font-size: 16px;\n cursor: pointer;\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__handle .ele-batch-export__btn--hint {\n color: var(--idooel-link-03);\n font-size: 14px;\n}\n.ele-batch-export__content .ele-batch-export__message {\n color: var(--idooel-link-06);\n font-size: 14px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
4497
|
+
|
|
4498
|
+
};
|
|
4499
|
+
/* scoped */
|
|
4500
|
+
const __vue_scope_id__$2 = "data-v-8734c1a2";
|
|
4501
|
+
/* module identifier */
|
|
4502
|
+
const __vue_module_identifier__$2 = undefined;
|
|
4503
|
+
/* functional template */
|
|
4504
|
+
const __vue_is_functional_template__$2 = false;
|
|
4505
|
+
/* style inject SSR */
|
|
4506
|
+
|
|
4507
|
+
/* style inject shadow dom */
|
|
4508
|
+
|
|
4509
|
+
|
|
4510
|
+
|
|
4511
|
+
const __vue_component__$2 = /*#__PURE__*/normalizeComponent(
|
|
4512
|
+
{ render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
|
|
4513
|
+
__vue_inject_styles__$2,
|
|
4514
|
+
__vue_script__$2,
|
|
4515
|
+
__vue_scope_id__$2,
|
|
4516
|
+
__vue_is_functional_template__$2,
|
|
4517
|
+
__vue_module_identifier__$2,
|
|
4518
|
+
false,
|
|
4519
|
+
createInjector,
|
|
4520
|
+
undefined,
|
|
4521
|
+
undefined
|
|
4522
|
+
);
|
|
4523
|
+
|
|
4524
|
+
__vue_component__$2.install = Vue => Vue.component(__vue_component__$2.name, __vue_component__$2);
|
|
4525
|
+
|
|
4526
|
+
//
|
|
4527
|
+
//
|
|
4528
|
+
//
|
|
4529
|
+
//
|
|
4530
|
+
//
|
|
4531
|
+
//
|
|
4532
|
+
//
|
|
4533
|
+
//
|
|
4534
|
+
//
|
|
4535
|
+
//
|
|
4536
|
+
|
|
4537
|
+
var script$1 = {
|
|
4538
|
+
name: 'ele-date-range',
|
|
4539
|
+
model: {
|
|
4540
|
+
prop: 'value',
|
|
4541
|
+
event: 'change'
|
|
4542
|
+
},
|
|
4543
|
+
props: {
|
|
4544
|
+
showTime: {
|
|
4545
|
+
type: Object
|
|
4546
|
+
},
|
|
4547
|
+
format: {
|
|
4548
|
+
type: Array,
|
|
4549
|
+
default: () => ['YYYY-MM-DD', 'YYYY-MM-DD']
|
|
4550
|
+
},
|
|
4551
|
+
value: {
|
|
4552
|
+
type: Array,
|
|
4553
|
+
default: () => []
|
|
4554
|
+
}
|
|
4555
|
+
},
|
|
4556
|
+
methods: {
|
|
4557
|
+
onChange(date, dateString) {
|
|
4558
|
+
this.$emit('change', dateString);
|
|
4559
|
+
}
|
|
4560
|
+
}
|
|
4561
|
+
};
|
|
4562
|
+
|
|
4563
|
+
/* script */
|
|
4564
|
+
const __vue_script__$1 = script$1;
|
|
4565
|
+
|
|
4566
|
+
/* template */
|
|
4567
|
+
var __vue_render__$1 = function () {
|
|
4568
|
+
var _vm = this;
|
|
4569
|
+
var _h = _vm.$createElement;
|
|
4570
|
+
var _c = _vm._self._c || _h;
|
|
4571
|
+
return _c("a-range-picker", {
|
|
4572
|
+
staticStyle: { width: "100%" },
|
|
4573
|
+
attrs: { "show-time": _vm.showTime, value: _vm.value, format: _vm.format },
|
|
4574
|
+
on: { change: _vm.onChange },
|
|
4575
|
+
})
|
|
4576
|
+
};
|
|
4433
4577
|
var __vue_staticRenderFns__$1 = [];
|
|
4434
4578
|
__vue_render__$1._withStripped = true;
|
|
4435
4579
|
|
|
4436
4580
|
/* style */
|
|
4437
4581
|
const __vue_inject_styles__$1 = function (inject) {
|
|
4438
4582
|
if (!inject) return
|
|
4439
|
-
inject("data-v-
|
|
4583
|
+
inject("data-v-255d79dc_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue"}, media: undefined });
|
|
4440
4584
|
|
|
4441
4585
|
};
|
|
4442
4586
|
/* scoped */
|
|
4443
|
-
const __vue_scope_id__$1 = "data-v-
|
|
4587
|
+
const __vue_scope_id__$1 = "data-v-255d79dc";
|
|
4444
4588
|
/* module identifier */
|
|
4445
4589
|
const __vue_module_identifier__$1 = undefined;
|
|
4446
4590
|
/* functional template */
|
|
@@ -4466,11 +4610,11 @@ __vue_render__$1._withStripped = true;
|
|
|
4466
4610
|
|
|
4467
4611
|
__vue_component__$1.install = Vue => Vue.component(__vue_component__$1.name, __vue_component__$1);
|
|
4468
4612
|
|
|
4469
|
-
__vue_component__$e.install = Vue => Vue.component(__vue_component__$e.name, __vue_component__$e);
|
|
4470
|
-
|
|
4471
4613
|
__vue_component__$f.install = Vue => Vue.component(__vue_component__$f.name, __vue_component__$f);
|
|
4472
4614
|
|
|
4473
|
-
__vue_component__$
|
|
4615
|
+
__vue_component__$g.install = Vue => Vue.component(__vue_component__$g.name, __vue_component__$g);
|
|
4616
|
+
|
|
4617
|
+
__vue_component__$e.install = Vue => Vue.component(__vue_component__$e.name, __vue_component__$e);
|
|
4474
4618
|
|
|
4475
4619
|
const BUILT_IN_EVENT_NAMES = {
|
|
4476
4620
|
SUBMIT: 'submit',
|
|
@@ -4481,7 +4625,7 @@ const BUILT_IN_EVENT_NAMES = {
|
|
|
4481
4625
|
var script = {
|
|
4482
4626
|
name: 'ele-form-model',
|
|
4483
4627
|
components: {
|
|
4484
|
-
EleButtonGroup: __vue_component__$
|
|
4628
|
+
EleButtonGroup: __vue_component__$f
|
|
4485
4629
|
},
|
|
4486
4630
|
props: {
|
|
4487
4631
|
title: {
|
|
@@ -4658,9 +4802,9 @@ __vue_render__._withStripped = true;
|
|
|
4658
4802
|
|
|
4659
4803
|
__vue_component__.install = Vue => Vue.component(__vue_component__.name, __vue_component__);
|
|
4660
4804
|
|
|
4661
|
-
const compositeComponents = [__vue_component__$
|
|
4662
|
-
const models = [__vue_component__$
|
|
4663
|
-
const components = [__vue_component__$n, __vue_component__$m, __vue_component__$l, __vue_component__$
|
|
4805
|
+
const compositeComponents = [__vue_component__$f, __vue_component__$g];
|
|
4806
|
+
const models = [__vue_component__$e, __vue_component__];
|
|
4807
|
+
const components = [__vue_component__$o, __vue_component__$n, __vue_component__$m, __vue_component__$l, __vue_component__$j, __vue_component__$i, __vue_component__$d, __vue_component__$5, __vue_component__$4, __vue_component__$a, __vue_component__$9, __vue_component__$b, __vue_component__$8, __vue_component__$3, __vue_component__$7, __vue_component__$6, __vue_component__$2, __vue_component__$1, ...compositeComponents, ...models];
|
|
4664
4808
|
const install = Vue => {
|
|
4665
4809
|
if (install.installed) return;
|
|
4666
4810
|
install.installed = true;
|
|
@@ -4669,4 +4813,4 @@ const install = Vue => {
|
|
|
4669
4813
|
});
|
|
4670
4814
|
};
|
|
4671
4815
|
|
|
4672
|
-
export { __vue_component__$
|
|
4816
|
+
export { __vue_component__$o as EleButton, __vue_component__$n as EleDate, __vue_component__$m as EleInput, __vue_component__$3 as EleModal, __vue_component__$l as EleSelect, __vue_component__$j as EleTable, __vue_component__$d as EleTpl, __vue_component__$i as EleTree, install as default, models };
|