@idooel/components 0.0.1-beta.66 → 0.0.1-beta.67
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 +903 -663
- package/dist/@idooel/components.umd.js +941 -699
- package/package.json +1 -1
- package/packages/business-components/tabs-sub-center/index.js +5 -0
- package/packages/business-components/tabs-sub-center/src/index.vue +117 -0
- package/packages/composite-components/modal-table/src/index.vue +3 -0
- package/packages/index.js +8 -2
- package/packages/loading/index.js +5 -0
- package/packages/loading/src/index.vue +37 -0
- package/packages/models/tree-table-model/src/index.vue +2 -1
|
@@ -20,7 +20,7 @@ import FileUpload from 'vue-upload-component';
|
|
|
20
20
|
//
|
|
21
21
|
//
|
|
22
22
|
|
|
23
|
-
var script$
|
|
23
|
+
var script$E = {
|
|
24
24
|
name: 'ele-button',
|
|
25
25
|
props: {
|
|
26
26
|
record: {
|
|
@@ -141,10 +141,10 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/* script */
|
|
144
|
-
const __vue_script__$
|
|
144
|
+
const __vue_script__$E = script$E;
|
|
145
145
|
|
|
146
146
|
/* template */
|
|
147
|
-
var __vue_render__$
|
|
147
|
+
var __vue_render__$E = function () {
|
|
148
148
|
var _vm = this;
|
|
149
149
|
var _h = _vm.$createElement;
|
|
150
150
|
var _c = _vm._self._c || _h;
|
|
@@ -190,17 +190,17 @@ var __vue_render__$C = function () {
|
|
|
190
190
|
2
|
|
191
191
|
)
|
|
192
192
|
};
|
|
193
|
-
var __vue_staticRenderFns__$
|
|
194
|
-
__vue_render__$
|
|
193
|
+
var __vue_staticRenderFns__$E = [];
|
|
194
|
+
__vue_render__$E._withStripped = true;
|
|
195
195
|
|
|
196
196
|
/* style */
|
|
197
|
-
const __vue_inject_styles__$
|
|
197
|
+
const __vue_inject_styles__$E = undefined;
|
|
198
198
|
/* scoped */
|
|
199
|
-
const __vue_scope_id__$
|
|
199
|
+
const __vue_scope_id__$E = undefined;
|
|
200
200
|
/* module identifier */
|
|
201
|
-
const __vue_module_identifier__$
|
|
201
|
+
const __vue_module_identifier__$E = undefined;
|
|
202
202
|
/* functional template */
|
|
203
|
-
const __vue_is_functional_template__$
|
|
203
|
+
const __vue_is_functional_template__$E = false;
|
|
204
204
|
/* style inject */
|
|
205
205
|
|
|
206
206
|
/* style inject SSR */
|
|
@@ -209,23 +209,23 @@ __vue_render__$C._withStripped = true;
|
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
|
|
212
|
-
const __vue_component__$
|
|
213
|
-
{ render: __vue_render__$
|
|
214
|
-
__vue_inject_styles__$
|
|
215
|
-
__vue_script__$
|
|
216
|
-
__vue_scope_id__$
|
|
217
|
-
__vue_is_functional_template__$
|
|
218
|
-
__vue_module_identifier__$
|
|
212
|
+
const __vue_component__$E = /*#__PURE__*/normalizeComponent(
|
|
213
|
+
{ render: __vue_render__$E, staticRenderFns: __vue_staticRenderFns__$E },
|
|
214
|
+
__vue_inject_styles__$E,
|
|
215
|
+
__vue_script__$E,
|
|
216
|
+
__vue_scope_id__$E,
|
|
217
|
+
__vue_is_functional_template__$E,
|
|
218
|
+
__vue_module_identifier__$E,
|
|
219
219
|
false,
|
|
220
220
|
undefined,
|
|
221
221
|
undefined,
|
|
222
222
|
undefined
|
|
223
223
|
);
|
|
224
224
|
|
|
225
|
-
__vue_component__$
|
|
225
|
+
__vue_component__$E.install = Vue => Vue.component(__vue_component__$E.name, __vue_component__$E);
|
|
226
226
|
|
|
227
227
|
//
|
|
228
|
-
var script$
|
|
228
|
+
var script$D = {
|
|
229
229
|
name: 'ele-date',
|
|
230
230
|
model: {
|
|
231
231
|
prop: 'value',
|
|
@@ -345,10 +345,10 @@ function addStyle(id, css) {
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
/* script */
|
|
348
|
-
const __vue_script__$
|
|
348
|
+
const __vue_script__$D = script$D;
|
|
349
349
|
|
|
350
350
|
/* template */
|
|
351
|
-
var __vue_render__$
|
|
351
|
+
var __vue_render__$D = function () {
|
|
352
352
|
var _vm = this;
|
|
353
353
|
var _h = _vm.$createElement;
|
|
354
354
|
var _c = _vm._self._c || _h;
|
|
@@ -396,48 +396,48 @@ var __vue_render__$B = function () {
|
|
|
396
396
|
1
|
|
397
397
|
)
|
|
398
398
|
};
|
|
399
|
-
var __vue_staticRenderFns__$
|
|
400
|
-
__vue_render__$
|
|
399
|
+
var __vue_staticRenderFns__$D = [];
|
|
400
|
+
__vue_render__$D._withStripped = true;
|
|
401
401
|
|
|
402
402
|
/* style */
|
|
403
|
-
const __vue_inject_styles__$
|
|
403
|
+
const __vue_inject_styles__$D = function (inject) {
|
|
404
404
|
if (!inject) return
|
|
405
405
|
inject("data-v-0b54504c_0", { source: ".ele-date__wrapper[data-v-0b54504c] {\n width: 100%;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/date/src/index.vue","index.vue"],"names":[],"mappings":"AAuGA;EACA,WAAA;ACtGA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"ele-date__wrapper\">\n <a-date-picker \n style=\"width: 100%;\" \n :mode=\"modeValue\"\n v-if=\"modeValue == 'year'\"\n :open=\"open\"\n :disabled=\"disabled\"\n :value=\"value\"\n :show-time=\"showTime\"\n :show-today=\"showToday\"\n :valueFormat=\"innerValueFormat\"\n @panelChange=\"onPanelChange\"\n @openChange=\"openChange\"\n @change=\"onChange\"\n :format=\"format\">\n </a-date-picker>\n <a-date-picker \n v-else\n style=\"width: 100%;\" \n :open=\"open\"\n :disabled=\"disabled\"\n :value=\"value\"\n :show-time=\"showTime\"\n :show-today=\"showToday\"\n :valueFormat=\"innerValueFormat\"\n @panelChange=\"onPanelChange\"\n @openChange=\"openChange\"\n @change=\"onChange\"\n :format=\"format\">\n </a-date-picker>\n </div>\n</template>\n\n<script>\nimport moment from 'moment'\nexport default {\n name: 'ele-date',\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n value: {\n type: [String, Object]\n },\n disabled: {\n type: Boolean,\n default: false\n },\n format: {\n type: String,\n default: 'YYYY/MM/DD'\n },\n mode: {\n type: String\n },\n valueFormat: {\n type: String\n },\n showTime: {\n type: [Boolean, Object],\n default: true\n },\n showToday: {\n type: Boolean,\n default: true\n },\n },\n data () {\n return {\n open: false\n }\n },\n computed: {\n innerValueFormat () {\n if (this.valueFormat) return this.valueFormat\n return this.format\n },\n modeValue () {\n if (this.mode) return this.mode\n if (this.format === 'YYYY') return 'year'\n return 'date'\n }\n },\n methods: {\n onChange (_, dataString) {\n this.$emit('input', dataString)\n this.$emit('change', dataString)\n },\n onPanelChange (value, mode) {\n if (this.modeValue !== 'year') return\n this.$emit('input', moment(value).format(this.format))\n this.$emit('change', moment(value).format(this.format))\n this.open = false\n },\n openChange (open) {\n this.open = open\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.ele-date__wrapper {\n width: 100%;\n}\n</style>",".ele-date__wrapper {\n width: 100%;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
406
406
|
|
|
407
407
|
};
|
|
408
408
|
/* scoped */
|
|
409
|
-
const __vue_scope_id__$
|
|
409
|
+
const __vue_scope_id__$D = "data-v-0b54504c";
|
|
410
410
|
/* module identifier */
|
|
411
|
-
const __vue_module_identifier__$
|
|
411
|
+
const __vue_module_identifier__$D = undefined;
|
|
412
412
|
/* functional template */
|
|
413
|
-
const __vue_is_functional_template__$
|
|
413
|
+
const __vue_is_functional_template__$D = false;
|
|
414
414
|
/* style inject SSR */
|
|
415
415
|
|
|
416
416
|
/* style inject shadow dom */
|
|
417
417
|
|
|
418
418
|
|
|
419
419
|
|
|
420
|
-
const __vue_component__$
|
|
421
|
-
{ render: __vue_render__$
|
|
422
|
-
__vue_inject_styles__$
|
|
423
|
-
__vue_script__$
|
|
424
|
-
__vue_scope_id__$
|
|
425
|
-
__vue_is_functional_template__$
|
|
426
|
-
__vue_module_identifier__$
|
|
420
|
+
const __vue_component__$D = /*#__PURE__*/normalizeComponent(
|
|
421
|
+
{ render: __vue_render__$D, staticRenderFns: __vue_staticRenderFns__$D },
|
|
422
|
+
__vue_inject_styles__$D,
|
|
423
|
+
__vue_script__$D,
|
|
424
|
+
__vue_scope_id__$D,
|
|
425
|
+
__vue_is_functional_template__$D,
|
|
426
|
+
__vue_module_identifier__$D,
|
|
427
427
|
false,
|
|
428
428
|
createInjector,
|
|
429
429
|
undefined,
|
|
430
430
|
undefined
|
|
431
431
|
);
|
|
432
432
|
|
|
433
|
-
__vue_component__$
|
|
433
|
+
__vue_component__$D.install = Vue => Vue.component(__vue_component__$D.name, __vue_component__$D);
|
|
434
434
|
|
|
435
435
|
//
|
|
436
436
|
//
|
|
437
437
|
//
|
|
438
438
|
//
|
|
439
439
|
|
|
440
|
-
var script$
|
|
440
|
+
var script$C = {
|
|
441
441
|
name: 'ele-input',
|
|
442
442
|
model: {
|
|
443
443
|
prop: 'value',
|
|
@@ -465,10 +465,10 @@ var script$A = {
|
|
|
465
465
|
};
|
|
466
466
|
|
|
467
467
|
/* script */
|
|
468
|
-
const __vue_script__$
|
|
468
|
+
const __vue_script__$C = script$C;
|
|
469
469
|
|
|
470
470
|
/* template */
|
|
471
|
-
var __vue_render__$
|
|
471
|
+
var __vue_render__$C = function () {
|
|
472
472
|
var _vm = this;
|
|
473
473
|
var _h = _vm.$createElement;
|
|
474
474
|
var _c = _vm._self._c || _h;
|
|
@@ -481,44 +481,44 @@ var __vue_render__$A = function () {
|
|
|
481
481
|
on: { change: _vm.onChange },
|
|
482
482
|
})
|
|
483
483
|
};
|
|
484
|
-
var __vue_staticRenderFns__$
|
|
485
|
-
__vue_render__$
|
|
484
|
+
var __vue_staticRenderFns__$C = [];
|
|
485
|
+
__vue_render__$C._withStripped = true;
|
|
486
486
|
|
|
487
487
|
/* style */
|
|
488
|
-
const __vue_inject_styles__$
|
|
488
|
+
const __vue_inject_styles__$C = function (inject) {
|
|
489
489
|
if (!inject) return
|
|
490
490
|
inject("data-v-c04139c8_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", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"index.vue"}, media: undefined });
|
|
491
491
|
|
|
492
492
|
};
|
|
493
493
|
/* scoped */
|
|
494
|
-
const __vue_scope_id__$
|
|
494
|
+
const __vue_scope_id__$C = "data-v-c04139c8";
|
|
495
495
|
/* module identifier */
|
|
496
|
-
const __vue_module_identifier__$
|
|
496
|
+
const __vue_module_identifier__$C = undefined;
|
|
497
497
|
/* functional template */
|
|
498
|
-
const __vue_is_functional_template__$
|
|
498
|
+
const __vue_is_functional_template__$C = false;
|
|
499
499
|
/* style inject SSR */
|
|
500
500
|
|
|
501
501
|
/* style inject shadow dom */
|
|
502
502
|
|
|
503
503
|
|
|
504
504
|
|
|
505
|
-
const __vue_component__$
|
|
506
|
-
{ render: __vue_render__$
|
|
507
|
-
__vue_inject_styles__$
|
|
508
|
-
__vue_script__$
|
|
509
|
-
__vue_scope_id__$
|
|
510
|
-
__vue_is_functional_template__$
|
|
511
|
-
__vue_module_identifier__$
|
|
505
|
+
const __vue_component__$C = /*#__PURE__*/normalizeComponent(
|
|
506
|
+
{ render: __vue_render__$C, staticRenderFns: __vue_staticRenderFns__$C },
|
|
507
|
+
__vue_inject_styles__$C,
|
|
508
|
+
__vue_script__$C,
|
|
509
|
+
__vue_scope_id__$C,
|
|
510
|
+
__vue_is_functional_template__$C,
|
|
511
|
+
__vue_module_identifier__$C,
|
|
512
512
|
false,
|
|
513
513
|
createInjector,
|
|
514
514
|
undefined,
|
|
515
515
|
undefined
|
|
516
516
|
);
|
|
517
517
|
|
|
518
|
-
__vue_component__$
|
|
518
|
+
__vue_component__$C.install = Vue => Vue.component(__vue_component__$C.name, __vue_component__$C);
|
|
519
519
|
|
|
520
520
|
//
|
|
521
|
-
var script$
|
|
521
|
+
var script$B = {
|
|
522
522
|
name: 'ele-select',
|
|
523
523
|
props: {
|
|
524
524
|
disabled: {
|
|
@@ -603,10 +603,10 @@ var script$z = {
|
|
|
603
603
|
};
|
|
604
604
|
|
|
605
605
|
/* script */
|
|
606
|
-
const __vue_script__$
|
|
606
|
+
const __vue_script__$B = script$B;
|
|
607
607
|
|
|
608
608
|
/* template */
|
|
609
|
-
var __vue_render__$
|
|
609
|
+
var __vue_render__$B = function () {
|
|
610
610
|
var _vm = this;
|
|
611
611
|
var _h = _vm.$createElement;
|
|
612
612
|
var _c = _vm._self._c || _h;
|
|
@@ -627,41 +627,41 @@ var __vue_render__$z = function () {
|
|
|
627
627
|
1
|
|
628
628
|
)
|
|
629
629
|
};
|
|
630
|
-
var __vue_staticRenderFns__$
|
|
631
|
-
__vue_render__$
|
|
630
|
+
var __vue_staticRenderFns__$B = [];
|
|
631
|
+
__vue_render__$B._withStripped = true;
|
|
632
632
|
|
|
633
633
|
/* style */
|
|
634
|
-
const __vue_inject_styles__$
|
|
634
|
+
const __vue_inject_styles__$B = function (inject) {
|
|
635
635
|
if (!inject) return
|
|
636
636
|
inject("data-v-1fbed5ac_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue"}, media: undefined });
|
|
637
637
|
|
|
638
638
|
};
|
|
639
639
|
/* scoped */
|
|
640
|
-
const __vue_scope_id__$
|
|
640
|
+
const __vue_scope_id__$B = "data-v-1fbed5ac";
|
|
641
641
|
/* module identifier */
|
|
642
|
-
const __vue_module_identifier__$
|
|
642
|
+
const __vue_module_identifier__$B = undefined;
|
|
643
643
|
/* functional template */
|
|
644
|
-
const __vue_is_functional_template__$
|
|
644
|
+
const __vue_is_functional_template__$B = false;
|
|
645
645
|
/* style inject SSR */
|
|
646
646
|
|
|
647
647
|
/* style inject shadow dom */
|
|
648
648
|
|
|
649
649
|
|
|
650
650
|
|
|
651
|
-
const __vue_component__$
|
|
652
|
-
{ render: __vue_render__$
|
|
653
|
-
__vue_inject_styles__$
|
|
654
|
-
__vue_script__$
|
|
655
|
-
__vue_scope_id__$
|
|
656
|
-
__vue_is_functional_template__$
|
|
657
|
-
__vue_module_identifier__$
|
|
651
|
+
const __vue_component__$B = /*#__PURE__*/normalizeComponent(
|
|
652
|
+
{ render: __vue_render__$B, staticRenderFns: __vue_staticRenderFns__$B },
|
|
653
|
+
__vue_inject_styles__$B,
|
|
654
|
+
__vue_script__$B,
|
|
655
|
+
__vue_scope_id__$B,
|
|
656
|
+
__vue_is_functional_template__$B,
|
|
657
|
+
__vue_module_identifier__$B,
|
|
658
658
|
false,
|
|
659
659
|
createInjector,
|
|
660
660
|
undefined,
|
|
661
661
|
undefined
|
|
662
662
|
);
|
|
663
663
|
|
|
664
|
-
__vue_component__$
|
|
664
|
+
__vue_component__$B.install = Vue => Vue.component(__vue_component__$B.name, __vue_component__$B);
|
|
665
665
|
|
|
666
666
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
667
667
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
@@ -1383,7 +1383,7 @@ const parseFieldMap = (fieldMap = {}, dataSource = {}) => {
|
|
|
1383
1383
|
|
|
1384
1384
|
//
|
|
1385
1385
|
const MENU_KEY_NAMESPACE = 'f7b3b8b0-1b7b-11ec-9621-0242ac130002';
|
|
1386
|
-
var script$
|
|
1386
|
+
var script$A = {
|
|
1387
1387
|
props: {
|
|
1388
1388
|
record: {
|
|
1389
1389
|
type: Object
|
|
@@ -1510,10 +1510,10 @@ var script$y = {
|
|
|
1510
1510
|
};
|
|
1511
1511
|
|
|
1512
1512
|
/* script */
|
|
1513
|
-
const __vue_script__$
|
|
1513
|
+
const __vue_script__$A = script$A;
|
|
1514
1514
|
|
|
1515
1515
|
/* template */
|
|
1516
|
-
var __vue_render__$
|
|
1516
|
+
var __vue_render__$A = function () {
|
|
1517
1517
|
var _vm = this;
|
|
1518
1518
|
var _h = _vm.$createElement;
|
|
1519
1519
|
var _c = _vm._self._c || _h;
|
|
@@ -1678,34 +1678,34 @@ var __vue_render__$y = function () {
|
|
|
1678
1678
|
0
|
|
1679
1679
|
)
|
|
1680
1680
|
};
|
|
1681
|
-
var __vue_staticRenderFns__$
|
|
1682
|
-
__vue_render__$
|
|
1681
|
+
var __vue_staticRenderFns__$A = [];
|
|
1682
|
+
__vue_render__$A._withStripped = true;
|
|
1683
1683
|
|
|
1684
1684
|
/* style */
|
|
1685
|
-
const __vue_inject_styles__$
|
|
1685
|
+
const __vue_inject_styles__$A = function (inject) {
|
|
1686
1686
|
if (!inject) return
|
|
1687
1687
|
inject("data-v-3fafa38c_0", { source: ".g-table__action[data-v-3fafa38c] {\n display: flex;\n flex-direction: row;\n}\n.g-table__action .table-action__item[data-v-3fafa38c] {\n font-size: 14px;\n color: #409EFF;\n margin-left: 16px;\n cursor: pointer;\n}\n.g-table__action .table-action__item[data-v-3fafa38c]:first-child {\n margin-left: 0;\n}\n\n/*# sourceMappingURL=action.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/table/src/action.vue","action.vue"],"names":[],"mappings":"AA8JA;EACA,aAAA;EACA,mBAAA;AC7JA;AD8JA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;AC5JA;AD6JA;EACA,cAAA;AC3JA;;AAEA,qCAAqC","file":"action.vue","sourcesContent":["<template>\n <div class=\"g-table__action\">\n <div class=\"table-action__item\" v-for=\"(item, idx) in execOperationExpression(dataSource)\" :key=\"idx\">\n <template v-if=\"item.type == 'text'\">\n <span @click=\"handleClickText(item)\">{{ item.label }}</span>\n </template>\n <template v-else-if=\"item.type == 'confirm'\">\n <div>\n <a-popconfirm :title=\"item.message\" @confirm=\"handleClickConfirm(item)\">\n {{ item.label }}\n </a-popconfirm>\n </div>\n </template>\n <template v-else-if=\"item.type == 'dropdown'\">\n <a-dropdown>\n <a-menu slot=\"overlay\" @click=\"handleDropdownClick\">\n <a-menu-item :key=\"`${item.key || ''}${menuKeyDelimiter}${opt.value || ''}`\" v-for=\"opt in execOperationExpression(item.optionList)\">\n <template v-if=\"opt.type == 'confirm'\">\n <a-popconfirm :title=\"opt.message\" @confirm=\"handleClickConfirm(opt)\">\n {{ opt.label }}\n </a-popconfirm>\n </template>\n <template v-if=\"opt.type == 'modal-confirm'\">\n <div style=\"width: 100%\" @click=\"handleClickModalConfirm(opt)\">{{ opt.label }}</div>\n <ele-modal-confirm v-bind=\"opt.modalConfirm\" v-on=\"$listeners\" v-model=\"showModalConfirm\"></ele-modal-confirm>\n </template>\n <template v-else>\n {{ opt.label }}\n </template>\n </a-menu-item>\n </a-menu>\n <span>{{ item.label }}</span>\n </a-dropdown>\n </template>\n </div>\n </div>\n</template>\n\n<script>\nimport { v5 as uuidv5 } from 'uuid'\nimport { type, route } from '@idooel/shared'\nimport { parse } from '@idooel/expression'\nimport { CONTEXT } from '../../utils'\nconst MENU_KEY_NAMESPACE = 'f7b3b8b0-1b7b-11ec-9621-0242ac130002'\nexport default {\n props: {\n record: {\n type: Object\n },\n dataSource: {\n type: Array,\n default: () => []\n }\n },\n inject: {\n requestTreeData: {\n default: void 0\n },\n requestTableData: {\n default: void 0\n }\n },\n data() {\n return {\n showModalConfirm: false\n }\n },\n provide () {\n return {\n [CONTEXT]: () => {\n return {\n _route: this.$route.query,\n _routeMeta: this.$route.meta,\n exposed: this.builtInMethods,\n ...this.record\n }\n }\n }\n },\n computed: {\n menuKeyDelimiter () {\n return uuidv5('_', MENU_KEY_NAMESPACE)\n },\n builtInMethods () {\n return { \n requestTreeData: this.requestTreeData, \n requestTableData: this.requestTableData,\n closeModalConfirm: this.closeModalConfirm,\n showModalConfirm: this.handleClickModalConfirm\n }\n }\n },\n methods: {\n closeModalConfirm () {\n this.showModalConfirm = false\n },\n handleClickModalConfirm () {\n this.showModalConfirm = true\n },\n execOperationExpression (dataSource = []) {\n const ret = dataSource.map(item => {\n const { show } = item\n if (type.isUndefined(show)) {\n return item\n } else if (type.isBool(show)) {\n if (show) return item\n } else if (type.isStr(show)) {\n const parseRet = parse(show, { \n ...this.record, \n _route: route.searchToQueryParams(window.location.search) \n })\n if (parseRet) return item\n }\n }).filter(item => item)\n return ret\n },\n handleClickConfirm (props) {\n //TODO generate event by special rule\n const { eventName, value, key } = props\n this.$emit(eventName, { \n key: value || key, \n record: this.record,\n builtInMethods: this.builtInMethods,\n exposed: this.builtInMethods\n })\n },\n handleDropdownClick (props) {\n const { key } = props\n const [parent, child] = key.split(this.menuKeyDelimiter)\n if (!parent || !child) {\n throw new Error('key is required')\n }\n const currentDropdown = this.dataSource.find(item => item.key === parent)\n const currentClickTarget = currentDropdown.optionList.find(item => item.value === child)\n const { eventName, type } = currentClickTarget\n //TODO generate event by special rule\n if (type === 'confirm' || type === 'modal-confirm') return\n this.$emit(eventName, { \n key: child, \n record: this.record, \n builtInMethods: this.builtInMethods,\n exposed: this.builtInMethods\n })\n },\n handleClickText (props) {\n const { eventName, key } = props\n this.$emit(eventName, { \n key, \n record: this.record, \n builtInMethods: this.builtInMethods,\n exposed: this.builtInMethods\n })\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.g-table__action {\n display: flex;\n flex-direction: row;\n .table-action__item {\n font-size: 14px;\n color: #409EFF;\n margin-left: 16px;\n cursor: pointer;\n &:first-child {\n margin-left: 0;\n }\n }\n}\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 });
|
|
1688
1688
|
|
|
1689
1689
|
};
|
|
1690
1690
|
/* scoped */
|
|
1691
|
-
const __vue_scope_id__$
|
|
1691
|
+
const __vue_scope_id__$A = "data-v-3fafa38c";
|
|
1692
1692
|
/* module identifier */
|
|
1693
|
-
const __vue_module_identifier__$
|
|
1693
|
+
const __vue_module_identifier__$A = undefined;
|
|
1694
1694
|
/* functional template */
|
|
1695
|
-
const __vue_is_functional_template__$
|
|
1695
|
+
const __vue_is_functional_template__$A = false;
|
|
1696
1696
|
/* style inject SSR */
|
|
1697
1697
|
|
|
1698
1698
|
/* style inject shadow dom */
|
|
1699
1699
|
|
|
1700
1700
|
|
|
1701
1701
|
|
|
1702
|
-
const __vue_component__$
|
|
1703
|
-
{ render: __vue_render__$
|
|
1704
|
-
__vue_inject_styles__$
|
|
1705
|
-
__vue_script__$
|
|
1706
|
-
__vue_scope_id__$
|
|
1707
|
-
__vue_is_functional_template__$
|
|
1708
|
-
__vue_module_identifier__$
|
|
1702
|
+
const __vue_component__$A = /*#__PURE__*/normalizeComponent(
|
|
1703
|
+
{ render: __vue_render__$A, staticRenderFns: __vue_staticRenderFns__$A },
|
|
1704
|
+
__vue_inject_styles__$A,
|
|
1705
|
+
__vue_script__$A,
|
|
1706
|
+
__vue_scope_id__$A,
|
|
1707
|
+
__vue_is_functional_template__$A,
|
|
1708
|
+
__vue_module_identifier__$A,
|
|
1709
1709
|
false,
|
|
1710
1710
|
createInjector,
|
|
1711
1711
|
undefined,
|
|
@@ -1713,10 +1713,10 @@ __vue_render__$y._withStripped = true;
|
|
|
1713
1713
|
);
|
|
1714
1714
|
|
|
1715
1715
|
//
|
|
1716
|
-
var script$
|
|
1716
|
+
var script$z = {
|
|
1717
1717
|
name: 'ele-table',
|
|
1718
1718
|
components: {
|
|
1719
|
-
Actions: __vue_component__$
|
|
1719
|
+
Actions: __vue_component__$A
|
|
1720
1720
|
},
|
|
1721
1721
|
props: {
|
|
1722
1722
|
// ant table wrapper
|
|
@@ -1899,10 +1899,10 @@ var script$x = {
|
|
|
1899
1899
|
};
|
|
1900
1900
|
|
|
1901
1901
|
/* script */
|
|
1902
|
-
const __vue_script__$
|
|
1902
|
+
const __vue_script__$z = script$z;
|
|
1903
1903
|
|
|
1904
1904
|
/* template */
|
|
1905
|
-
var __vue_render__$
|
|
1905
|
+
var __vue_render__$z = function () {
|
|
1906
1906
|
var _vm = this;
|
|
1907
1907
|
var _h = _vm.$createElement;
|
|
1908
1908
|
var _c = _vm._self._c || _h;
|
|
@@ -1968,41 +1968,41 @@ var __vue_render__$x = function () {
|
|
|
1968
1968
|
1
|
|
1969
1969
|
)
|
|
1970
1970
|
};
|
|
1971
|
-
var __vue_staticRenderFns__$
|
|
1972
|
-
__vue_render__$
|
|
1971
|
+
var __vue_staticRenderFns__$z = [];
|
|
1972
|
+
__vue_render__$z._withStripped = true;
|
|
1973
1973
|
|
|
1974
1974
|
/* style */
|
|
1975
|
-
const __vue_inject_styles__$
|
|
1975
|
+
const __vue_inject_styles__$z = function (inject) {
|
|
1976
1976
|
if (!inject) return
|
|
1977
1977
|
inject("data-v-8cef707e_0", { source: ".g-table__wrapper[data-v-8cef707e] {\n padding: 16px;\n padding-top: unset;\n}\n.g-table__wrapper[data-v-8cef707e] .ant-spin-nested-loading {\n height: inherit;\n}\n.g-table__wrapper[data-v-8cef707e] .ant-spin-nested-loading .ant-table-fixed-header .ant-table-body-inner {\n overflow: hidden;\n}\n.g-table__wrapper[data-v-8cef707e] .ant-spin-nested-loading .ant-spin-container {\n height: inherit;\n}\n.g-table__wrapper[data-v-8cef707e] .ant-spin-nested-loading .ant-spin-container .ant-table {\n height: inherit;\n}\n.g-table__wrapper[data-v-8cef707e] .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-8cef707e] .ant-table-wrapper .ant-table-header .ant-table-fixed {\n /* border-bottom: 2px solid #53a8ff !important; */\n}\n.g-table__wrapper[data-v-8cef707e] .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-8cef707e] .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-8cef707e] .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-8cef707e] .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-8cef707e] .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-8cef707e] .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-8cef707e] .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[data-v-8cef707e] .g-table__row--even {\n background: var(--idooel-row-even-color);\n}\n.g-table__wrapper .g-table__row--odd[data-v-8cef707e] {\n background: var(--idooel-row-odd-color);\n}\n.g-table__wrapper .g-table__pagination[data-v-8cef707e] {\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 position: relative;\n z-index: 999;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/table/src/index.vue","index.vue"],"names":[],"mappings":"AAiNA;EAuFA,aAAA;EACA,kBAAA;ACtSA;AD+MA;EACA,eAAA;AC7MA;AD+MA;EACA,gBAAA;AC7MA;ADgNA;EACA,eAAA;AC9MA;AD+MA;EACA,eAAA;AC7MA;AD2NA;EACA,oDAAA;EACA,mBAAA;EACA,wCAAA;ACzNA;AD4NA;EACA,iDAAA;AC1NA;AD+NA;EACA,+CAAA;EACA,2DAAA;EACA,mBAAA;EACA,iBAAA;EACA,kBAAA;AC7NA;ADsOA;EACA,2DAAA;EACA,0BAAA;EACA,+CAAA;ACpOA;ADqOA;EACA,2DAAA;EACA,0BAAA;EACA,+CAAA;ACnOA;ADqOA;EACA,0DAAA;EACA,yBAAA;EACA,8CAAA;ACnOA;ADqOA;EACA,0DAAA;EACA,8CAAA;EACA,yBAAA;ACnOA;ADuOA;EACA,2DAAA;EACA,+CAAA;EACA,0BAAA;ACrOA;AD0OA;EACA,yDAAA;EACA,wBAAA;EACA,6CAAA;ACxOA;AD8OA;EACA,wCAAA;AC5OA;AD8OA;EACA,uCAAA;AC5OA;AD8OA;EACA,aAAA;EACA,mBAAA;EACA,oBAAA;EACA,oDAAA;EACA,wCAAA;EACA,mBAAA;EACA,iBAAA;EACA,gBAAA;EACA,mBAAA;EACA,kBAAA;EACA,YAAA;AC5OA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"g-table__wrapper\" :style=\"{ height: `${height}px` }\">\n <a-table\n :class=\"[isNoData && 'g-table__no-data']\"\n :style=\"{ height: noDataAntTableHeight }\"\n :pagination=\"false\"\n :loading=\"loading\"\n :columns=\"innerColumns\"\n :row-selection=\"rowSelection\"\n :row-class-name=\"setRowClassName\"\n :data-source=\"dataSource\"\n :scroll=\"getScroll\">\n <template slot=\"action\" slot-scope=\"record\">\n <Actions v-on=\"$listeners\" :data-source=\"actions\" :record=\"record\"></Actions>\n </template>\n </a-table>\n <div class=\"g-table__pagination\">\n <a-pagination\n :show-total=\"all => `共 ${all} 条数据`\"\n show-size-changer \n show-quick-jumper\n :pageSize=\"innerPageSize\"\n :current=\"innerCurrentPage\"\n :pageSizeOptions=\"pageSizeOptions\"\n @change=\"onChangePagination\"\n @showSizeChange=\"onShowSizeChange\"\n :total=\"total\">\n </a-pagination>\n </div>\n </div>\n</template>\n\n<script>\nimport Actions from './action.vue'\nexport default {\n name: 'ele-table',\n components: {\n Actions\n },\n props: {\n // ant table wrapper\n height: {\n type: Number\n },\n width: {\n type: Number\n },\n x: {\n type: Number,\n default: 1200\n },\n y: {\n type: Number,\n default: 200\n },\n scroll: {\n type: Object\n },\n rowSelection: {\n type: Object\n },\n actions: {\n type: Array,\n default: () => []\n },\n total: {\n type: Number,\n default: 0\n },\n loading: {\n type: Boolean,\n default: false\n },\n columns: {\n type: Array,\n default: () => []\n },\n dataSource: {\n type: Array,\n default: () => []\n },\n pageSize: {\n type: Number,\n default: 10\n },\n pageSizeOptions: {\n type: Array,\n default: () => ['10', '20', '30', '40']\n }\n },\n data() {\n return {\n tableHeaderHeight: 0,\n paginationHeight: 0,\n innerPageSize: 10,\n innerCurrentPage: 1,\n tableContentHeight: 0,\n obs: [],\n tableTbodyHeight: 0\n }\n },\n computed: {\n innerColumns () {\n return this.columns.filter(col => !Object.keys(col).includes('multiple'))\n },\n isNoData () {\n return !this.dataSource.length\n },\n noDataAntTableHeight () {\n //TODO\n if (this.dataSource.length) {\n // return 'auto'\n return `${this.height - this.paginationHeight - 16}px` \n }\n return `${this.height - this.paginationHeight - 16}px` \n },\n getScrollHeightByHeight () {\n const height = this.height - this.tableHeaderHeight - this.paginationHeight\n if (height > this.tableTbodyHeight) {\n document.querySelector('.ant-table-content') && (document.querySelector('.ant-table-content').style.height = 'inherit')\n document.querySelector('.ant-table-scroll') && (document.querySelector('.ant-table-scroll').style.height = 'inherit')\n document.querySelector('.ant-table-body') && (document.querySelector('.ant-table-body').style.height = 'inherit')\n if (this.tableTbodyHeight > height) {\n document.querySelector('.ant-table-content').style.height = 'auto'\n document.querySelector('.ant-table-scroll').style.height = 'auto'\n document.querySelector('.ant-table-body').style.height = 'auto'\n }\n return 0\n // 0的时候没有y滚动条\n }\n return this.height - this.tableHeaderHeight - this.paginationHeight\n },\n isFlexColumn () {\n return this.columns.every(col => !col.width)\n },\n getScroll () {\n if (this.scroll) {\n return this.scroll\n } else {\n if (this.height) {\n return { x: this.isFlexColumn ? 0 : this.width > this.x ? 0 : this.x, y: this.getScrollHeightByHeight }\n }\n return { x: this.isFlexColumn ? 0 : this.width > this.x ? 0 : this.x, y: this.y }\n }\n }\n },\n watch: {\n pageSize: {\n handler (pageSize) {\n this.innerPageSize = pageSize\n },\n immediate: true\n }\n },\n methods: {\n onShowSizeChange (current, pageSize) {\n this.innerCurrentPage = current\n this.innerPageSize = pageSize\n this.$emit('change-page', current, pageSize)\n },\n setPaginationHeight () {\n this.$nextTick(() => {\n const { height } = document.querySelector('.g-table__pagination').getBoundingClientRect()\n this.paginationHeight = height\n })\n },\n setTableHeaderHeight () {\n this.$nextTick(() => {\n const el = document.querySelector('.ant-table-header')\n if (!el) return\n const { height } = el.getBoundingClientRect()\n this.tableHeaderHeight = height\n })\n },\n setTableTbodyHeight () {\n const el = document.querySelector('table .ant-table-tbody')\n const ob = new ResizeObserver((entries => {\n if (this.tableHeaderHeight) return\n for (const _ of entries) {\n requestAnimationFrame(() => {\n const { height } = el.getBoundingClientRect()\n this.tableTbodyHeight = height\n this.setTableHeaderHeight()\n })\n }\n }))\n ob.observe(el)\n this.obs.push(ob)\n },\n setRowClassName (record, idx) {\n return idx % 2 === 0 ? 'g-table__row--even' : 'g-table__row--odd'\n },\n onChangePagination (page, pageSize) {\n this.innerCurrentPage = page\n this.innerPageSize = pageSize\n this.$emit('change-page', page, pageSize)\n }\n },\n mounted() {\n this.setTableTbodyHeight()\n this.setPaginationHeight()\n },\n destroyed () {\n this.obs.forEach(ob => ob.disconnect())\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.g-table__wrapper {\n ::v-deep .ant-spin-nested-loading {\n height: inherit;\n .ant-table-fixed-header {\n .ant-table-body-inner {\n overflow: hidden;\n }\n }\n .ant-spin-container {\n height: inherit;\n .ant-table {\n height: inherit;\n .ant-table-content {\n // height: inherit;\n // .ant-table-scroll {\n // height: inherit;\n // .ant-table-body {\n // height: inherit;\n // }\n // }\n }\n }\n }\n }\n ::v-deep .ant-table-wrapper {\n .ant-table {\n border-width: calc(var(--idooel-border-width) * 1px);\n border-style: solid;\n border-color: var(--idooel-border-color);\n }\n .ant-table-header {\n .ant-table-fixed {\n /* border-bottom: 2px solid #53a8ff !important; */\n }\n }\n .ant-table-tbody {\n tr {\n 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 }\n }\n .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 .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 .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 .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 .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 }\n .ant-table-fixed-right {\n .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 // border-bottom-width: calc(var(--idooel-border-width) * 1px);\n // border-bottom-style: solid;\n // border-bottom-color: var(--idooel-border-color);\n .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 }\n }\n padding: 16px;\n padding-top: unset;\n ::v-deep .g-table__row--even {\n background: var(--idooel-row-even-color);\n }\n .g-table__row--odd {\n background: var(--idooel-row-odd-color);\n }\n .g-table__pagination {\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 position: relative;\n z-index: 999;\n }\n}\n</style>",".g-table__wrapper {\n padding: 16px;\n padding-top: unset;\n}\n.g-table__wrapper ::v-deep .ant-spin-nested-loading {\n height: inherit;\n}\n.g-table__wrapper ::v-deep .ant-spin-nested-loading .ant-table-fixed-header .ant-table-body-inner {\n overflow: hidden;\n}\n.g-table__wrapper ::v-deep .ant-spin-nested-loading .ant-spin-container {\n height: inherit;\n}\n.g-table__wrapper ::v-deep .ant-spin-nested-loading .ant-spin-container .ant-table {\n height: inherit;\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-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 .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 ::v-deep .g-table__row--even {\n background: var(--idooel-row-even-color);\n}\n.g-table__wrapper .g-table__row--odd {\n background: var(--idooel-row-odd-color);\n}\n.g-table__wrapper .g-table__pagination {\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 position: relative;\n z-index: 999;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
1978
1978
|
|
|
1979
1979
|
};
|
|
1980
1980
|
/* scoped */
|
|
1981
|
-
const __vue_scope_id__$
|
|
1981
|
+
const __vue_scope_id__$z = "data-v-8cef707e";
|
|
1982
1982
|
/* module identifier */
|
|
1983
|
-
const __vue_module_identifier__$
|
|
1983
|
+
const __vue_module_identifier__$z = undefined;
|
|
1984
1984
|
/* functional template */
|
|
1985
|
-
const __vue_is_functional_template__$
|
|
1985
|
+
const __vue_is_functional_template__$z = false;
|
|
1986
1986
|
/* style inject SSR */
|
|
1987
1987
|
|
|
1988
1988
|
/* style inject shadow dom */
|
|
1989
1989
|
|
|
1990
1990
|
|
|
1991
1991
|
|
|
1992
|
-
const __vue_component__$
|
|
1993
|
-
{ render: __vue_render__$
|
|
1994
|
-
__vue_inject_styles__$
|
|
1995
|
-
__vue_script__$
|
|
1996
|
-
__vue_scope_id__$
|
|
1997
|
-
__vue_is_functional_template__$
|
|
1998
|
-
__vue_module_identifier__$
|
|
1992
|
+
const __vue_component__$z = /*#__PURE__*/normalizeComponent(
|
|
1993
|
+
{ render: __vue_render__$z, staticRenderFns: __vue_staticRenderFns__$z },
|
|
1994
|
+
__vue_inject_styles__$z,
|
|
1995
|
+
__vue_script__$z,
|
|
1996
|
+
__vue_scope_id__$z,
|
|
1997
|
+
__vue_is_functional_template__$z,
|
|
1998
|
+
__vue_module_identifier__$z,
|
|
1999
1999
|
false,
|
|
2000
2000
|
createInjector,
|
|
2001
2001
|
undefined,
|
|
2002
2002
|
undefined
|
|
2003
2003
|
);
|
|
2004
2004
|
|
|
2005
|
-
__vue_component__$
|
|
2005
|
+
__vue_component__$z.install = Vue => Vue.component(__vue_component__$z.name, __vue_component__$z);
|
|
2006
2006
|
|
|
2007
2007
|
//
|
|
2008
2008
|
//
|
|
@@ -2032,7 +2032,7 @@ __vue_component__$x.install = Vue => Vue.component(__vue_component__$x.name, __v
|
|
|
2032
2032
|
//
|
|
2033
2033
|
//
|
|
2034
2034
|
|
|
2035
|
-
var script$
|
|
2035
|
+
var script$y = {
|
|
2036
2036
|
name: 'ele-tree',
|
|
2037
2037
|
props: {
|
|
2038
2038
|
treeData: {
|
|
@@ -2093,10 +2093,10 @@ var script$w = {
|
|
|
2093
2093
|
};
|
|
2094
2094
|
|
|
2095
2095
|
/* script */
|
|
2096
|
-
const __vue_script__$
|
|
2096
|
+
const __vue_script__$y = script$y;
|
|
2097
2097
|
|
|
2098
2098
|
/* template */
|
|
2099
|
-
var __vue_render__$
|
|
2099
|
+
var __vue_render__$y = function () {
|
|
2100
2100
|
var _vm = this;
|
|
2101
2101
|
var _h = _vm.$createElement;
|
|
2102
2102
|
var _c = _vm._self._c || _h;
|
|
@@ -2167,44 +2167,44 @@ var __vue_render__$w = function () {
|
|
|
2167
2167
|
1
|
|
2168
2168
|
)
|
|
2169
2169
|
};
|
|
2170
|
-
var __vue_staticRenderFns__$
|
|
2171
|
-
__vue_render__$
|
|
2170
|
+
var __vue_staticRenderFns__$y = [];
|
|
2171
|
+
__vue_render__$y._withStripped = true;
|
|
2172
2172
|
|
|
2173
2173
|
/* style */
|
|
2174
|
-
const __vue_inject_styles__$
|
|
2174
|
+
const __vue_inject_styles__$y = function (inject) {
|
|
2175
2175
|
if (!inject) return
|
|
2176
2176
|
inject("data-v-a7a27de8_0", { source: ".g-tree__wrapper[data-v-a7a27de8] {\n overflow: hidden;\n}\n.g-tree__wrapper[data-v-a7a27de8] .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-a7a27de8] .ant-tree .ant-tree-node-selected {\n color: #fff;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/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>\n <div class=\"g-tree__wrapper\">\n <a-tree\n v-if=\"innerTreeData.length\"\n :tree-data=\"innerTreeData\"\n :checkable=\"checkable\"\n @select=\"selectTreeNode\"\n @check=\"checkTreeNode\"\n :replaceFields=\"replaceFields\"\n :default-expanded-keys=\"defaultExpandedKeys\"\n :default-selected-keys=\"defaultSelectedKeys\"\n :show-line=\"showLine\"\n blockNode \n :show-icon=\"showIcon\">\n <a-icon v-if=\"switcherIcon\" slot=\"switcherIcon\" :type=\"switcherIcon\" />\n <template #title=\"{ title }\">\n <span :title=\"title\" class=\"tree-node__title\">\n {{ title }}\n </span>\n </template>\n <template slot=\"custom\" slot-scope=\"{ scopedSlots }\">\n <a-icon :type=\"scopedSlots.iconName\"></a-icon>\n </template>\n </a-tree>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'ele-tree',\n props: {\n treeData: {\n type: Array,\n default: () => []\n },\n showLine: {\n type: Boolean,\n default: false\n },\n switcherIcon: {\n type: String\n },\n checkable: {\n type: Boolean,\n default: false\n },\n replaceFields: {\n type: Object,\n default: () => ({\n title: 'title',\n key: 'id',\n children: 'children'\n })\n },\n defaultExpandedKeys: {\n type: Array\n },\n defaultSelectedKeys: {\n type: Array\n },\n showIcon: {\n type: Boolean,\n default: true\n }\n },\n data () {\n return {}\n },\n computed: {\n innerTreeData () {\n return this.treeData\n }\n },\n methods: {\n checkTreeNode (checkedKeys, e) {\n const { checkedNodes } = e\n const nodeDatas = checkedNodes.map(item => item.data.props.dataRef)\n this.$emit('check', checkedKeys, nodeDatas)\n },\n refreshTreeStatus (props = {}) {},\n selectTreeNode (selectedKeys, e) {\n this.$emit('select', selectedKeys, e)\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.g-tree__wrapper {\n overflow: hidden;\n ::v-deep .ant-tree {\n .ant-tree-node-content-wrapper {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n .ant-tree-node-selected {\n color: #fff;\n }\n }\n}\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 });
|
|
2177
2177
|
|
|
2178
2178
|
};
|
|
2179
2179
|
/* scoped */
|
|
2180
|
-
const __vue_scope_id__$
|
|
2180
|
+
const __vue_scope_id__$y = "data-v-a7a27de8";
|
|
2181
2181
|
/* module identifier */
|
|
2182
|
-
const __vue_module_identifier__$
|
|
2182
|
+
const __vue_module_identifier__$y = undefined;
|
|
2183
2183
|
/* functional template */
|
|
2184
|
-
const __vue_is_functional_template__$
|
|
2184
|
+
const __vue_is_functional_template__$y = false;
|
|
2185
2185
|
/* style inject SSR */
|
|
2186
2186
|
|
|
2187
2187
|
/* style inject shadow dom */
|
|
2188
2188
|
|
|
2189
2189
|
|
|
2190
2190
|
|
|
2191
|
-
const __vue_component__$
|
|
2192
|
-
{ render: __vue_render__$
|
|
2193
|
-
__vue_inject_styles__$
|
|
2194
|
-
__vue_script__$
|
|
2195
|
-
__vue_scope_id__$
|
|
2196
|
-
__vue_is_functional_template__$
|
|
2197
|
-
__vue_module_identifier__$
|
|
2191
|
+
const __vue_component__$y = /*#__PURE__*/normalizeComponent(
|
|
2192
|
+
{ render: __vue_render__$y, staticRenderFns: __vue_staticRenderFns__$y },
|
|
2193
|
+
__vue_inject_styles__$y,
|
|
2194
|
+
__vue_script__$y,
|
|
2195
|
+
__vue_scope_id__$y,
|
|
2196
|
+
__vue_is_functional_template__$y,
|
|
2197
|
+
__vue_module_identifier__$y,
|
|
2198
2198
|
false,
|
|
2199
2199
|
createInjector,
|
|
2200
2200
|
undefined,
|
|
2201
2201
|
undefined
|
|
2202
2202
|
);
|
|
2203
2203
|
|
|
2204
|
-
__vue_component__$
|
|
2204
|
+
__vue_component__$y.install = Vue => Vue.component(__vue_component__$y.name, __vue_component__$y);
|
|
2205
2205
|
|
|
2206
2206
|
//
|
|
2207
|
-
var script$
|
|
2207
|
+
var script$x = {
|
|
2208
2208
|
name: 'ele-tree-table-model',
|
|
2209
2209
|
props: {
|
|
2210
2210
|
title: {
|
|
@@ -2685,7 +2685,7 @@ var script$v = {
|
|
|
2685
2685
|
} = resp || {};
|
|
2686
2686
|
this.total = count;
|
|
2687
2687
|
this.loading = false;
|
|
2688
|
-
return data.map(item => {
|
|
2688
|
+
return (data || []).map(item => {
|
|
2689
2689
|
delete item.children;
|
|
2690
2690
|
return {
|
|
2691
2691
|
key: v4(),
|
|
@@ -2737,10 +2737,10 @@ var script$v = {
|
|
|
2737
2737
|
};
|
|
2738
2738
|
|
|
2739
2739
|
/* script */
|
|
2740
|
-
const __vue_script__$
|
|
2740
|
+
const __vue_script__$x = script$x;
|
|
2741
2741
|
|
|
2742
2742
|
/* template */
|
|
2743
|
-
var __vue_render__$
|
|
2743
|
+
var __vue_render__$x = function () {
|
|
2744
2744
|
var _vm = this;
|
|
2745
2745
|
var _h = _vm.$createElement;
|
|
2746
2746
|
var _c = _vm._self._c || _h;
|
|
@@ -2835,6 +2835,8 @@ var __vue_render__$v = function () {
|
|
|
2835
2835
|
),
|
|
2836
2836
|
_vm._v(" "),
|
|
2837
2837
|
_vm._t("tags"),
|
|
2838
|
+
_vm._v(" "),
|
|
2839
|
+
_vm._t("sub-center"),
|
|
2838
2840
|
],
|
|
2839
2841
|
2
|
|
2840
2842
|
),
|
|
@@ -2901,34 +2903,34 @@ var __vue_render__$v = function () {
|
|
|
2901
2903
|
1
|
|
2902
2904
|
)
|
|
2903
2905
|
};
|
|
2904
|
-
var __vue_staticRenderFns__$
|
|
2905
|
-
__vue_render__$
|
|
2906
|
+
var __vue_staticRenderFns__$x = [];
|
|
2907
|
+
__vue_render__$x._withStripped = true;
|
|
2906
2908
|
|
|
2907
2909
|
/* style */
|
|
2908
|
-
const __vue_inject_styles__$
|
|
2910
|
+
const __vue_inject_styles__$x = function (inject) {
|
|
2909
2911
|
if (!inject) return
|
|
2910
|
-
inject("data-v-7d7f801a_0", { source: ".ele.model__tree-table[data-v-7d7f801a] {\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-7d7f801a] {\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-7d7f801a] {\n width: 100%;\n min-width: 0;\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--title .model__table-title--bar[data-v-7d7f801a] {\n width: 100%;\n height: 8px;\n background: var(--idooel-primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ele.model__tree-table .model__table--container .model__table--title .model__table-title--text[data-v-7d7f801a] {\n text-align: left;\n padding: 16px;\n font-size: 16px;\n font-weight: bold;\n background: #fff;\n border-bottom: 1px solid;\n border-color: var(--idoole-black-016);\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper[data-v-7d7f801a] {\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .button-row__area[data-v-7d7f801a] {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-top: 16px;\n padding-bottom: 8px;\n padding-right: 16px;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .g-table__wrapper .fsm[data-v-7d7f801a] {\n cursor: pointer;\n color: var(--idooel-primary-color);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/models/tree-table-model/src/index.vue","index.vue"],"names":[],"mappings":"AAueA;EACA,uBAAA;EACA,aAAA;EACA,mBAAA;EACA,WAAA;ACteA;ADweA;EACA,YAAA;EACA,gBAAA;EACA,cAAA;EACA,aAAA;EACA,sBAAA;EACA,kBAAA;EACA,gBAAA;ACteA;ADyeA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;ACveA;ADyeA;EACA,WAAA;EACA,WAAA;EACA,uCAAA;EACA,2BAAA;EACA,4BAAA;ACveA;ADyeA;EACA,gBAAA;EACA,aAAA;EACA,eAAA;EACA,iBAAA;EACA,gBAAA;EACA,wBAAA;EACA,qCAAA;ACveA;AD0eA;EACA,gBAAA;ACxeA;ADyeA;EACA,WAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,8BAAA;EACA,iBAAA;EACA,mBAAA;EACA,mBAAA;ACveA;AD0eA;EACA,eAAA;EACA,kCAAA;ACxeA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <section class=\"ele model__tree-table\">\n <section class=\"model__tree-table--container\" v-if=\"showTree\">\n <div class=\"model__tree--title\"></div>\n <section :ref=\"modelTreeWrapper\" class=\"model__tree--wrapper\" :style=\"{height: `${treeWrapperHeight}px`}\">\n <ele-tree\n :tree-data=\"treeData\"\n :defaultExpandedKeys=\"defaultExpandedKeys\"\n :defaultSelectedKeys=\"defaultSelectedKeys\"\n @select=\"selectTreeNode\"\n :replace-fields=\"treeMeta.replaceFields || replaceFields\">\n </ele-tree>\n </section>\n </section>\n <section class=\"model__table--container\" :ref=\"modelTableContainerRef\">\n <div class=\"model__table--title\" v-if=\"title\">\n <template v-if=\"titleMode\">\n <div :class=\"[`model__table-title--${titleMode}`]\"></div>\n </template>\n <template v-else>\n <div class=\"model__table-title--text\">{{ title }}</div>\n </template>\n </div>\n <section :ref=\"modelTableWrapper\" class=\"model__table--wrapper\">\n <ele-search-area :ref=\"searchArea\" @search=\"onSearch\" :data-source=\"searchMeta.elements\"></ele-search-area>\n <div class=\"button-row__area\">\n <ele-button-group class=\"model-table__button-group\" v-on=\"overrideButtonGroupEvent\" :ref=\"buttonGroup\" @click=\"handleClickButtonGroup\" :data-source=\"getButtonGroupElements\"></ele-button-group>\n <slot name=\"tags\"></slot>\n </div>\n <ele-table\n v-on=\"overrideTableEvent\"\n :ref=\"tableRef\"\n :row-selection=\"rowSelection\"\n :loading=\"loading\" \n :columns=\"columns\"\n :total=\"total\"\n :x=\"x\"\n :y=\"y\"\n :height=\"tableHeight\"\n :width=\"tableWidth\"\n :actions=\"actions\"\n :pageSize=\"pageSize\"\n :pageSizeOptions=\"pageSizeOptions\"\n :data-source=\"tableData\"\n @change-page=\"onChangePage\"\n ></ele-table>\n </section>\n </section>\n <ele-modal-form v-model=\"modalFormValue\" v-on=\"overrideModalFormEvent\" :meta=\"modalFormMeta\"></ele-modal-form>\n <ele-modal-fsm v-model=\"showFsmModal\" :contextProp=\"fsmContextProp\" :meta=\"fsmMeta\" @cancel=\"handleCloseFsmModal\"></ele-modal-fsm>\n </section>\n</template>\n\n<script>\nimport { type, net } from '@idooel/shared'\nimport { v4 as uuidv4 } from 'uuid'\nimport { BUILT_IN_EVENT_NAMES, RESERVE_EVENT_NAMES, parseFieldMap, BUILT_IN_TRIGGER, CONTEXT } from '../../../utils'\nexport default {\n name: 'ele-tree-table-model',\n props: {\n title: {\n type: [Object, String]\n },\n overHeight: {\n type: Number,\n default: 0\n },\n treeMeta: {\n type: Object,\n default: () => ({})\n },\n searchMeta: {\n type: Object,\n default: () => ({})\n },\n buttonGroupMeta: {\n typeof: Object,\n default: () => ({})\n },\n tableMeta: {\n type: Object,\n default: () => ({})\n },\n createMeta: {\n type: Object\n },\n editMeta: {\n type: Object\n }\n },\n provide () {\n return {\n requestTreeData: this.requestTreeData,\n requestTableData: this.requestTableData,\n [CONTEXT]: () => {\n return {\n exposed: { ...this.exposed }\n }\n }\n }\n },\n data () {\n return {\n tableHeight: 0,\n tableWidth: 0,\n modalFormMeta: {},\n modalFormValue: false,\n treeData: [],\n tableData: [],\n defaultExpandedKeys: [],\n defaultSelectedKeys: [],\n replaceFields: {\n title: 'title',\n children: 'children',\n key: 'id'\n },\n loading: false,\n total: 0,\n tableQuerys: {},\n resizeObserverModelTableWrapper: null,\n modelTableWrapperHeight: 0,\n currentTreeNodeData: {},\n treeWrapperHeight: 0,\n currentTableSelection: {},\n showFsmModal: false,\n fsmMeta: {},\n fsmContextProp: {}\n }\n },\n computed: {\n rowSelection () {\n if (!this.currentTableMode) return void 0\n return {\n columnTitle: this.currentSelectionColumn.columnTitle,\n fixed: true,\n type: this.currentTableMode,\n onChange: this.onChangeTableSelection\n }\n },\n currentSelectionColumn () {\n const { multiple } = this.tableMeta\n const target = this.columns.find(item => Object.keys(item).includes('multiple'))\n const isGlobalExistMultiple = Object.keys(this.tableMeta).includes('multiple')\n if (target) {\n return target\n } else if (isGlobalExistMultiple) {\n return { multiple }\n }\n return void 0\n },\n x () {\n const { x } = this.tableMeta\n return x\n },\n y () {\n const { y } = this.tableMeta\n return y\n },\n currentTableMode () {\n if (!this.currentSelectionColumn) return void 0\n const { multiple } = this.currentSelectionColumn\n if (type.isBool(multiple)) {\n if (multiple) {\n return 'checkbox'\n } else {\n return 'radio'\n }\n } else {\n return void 0\n }\n },\n modelTableContainerRef () {\n return uuidv4()\n },\n titleMode () {\n if (type.isObject(this.title)) {\n const { mode = '' } = this.title\n return mode\n }\n return void 0\n },\n tableRef () {\n return uuidv4()\n },\n exposed () {\n return {\n currentTableSelection: this.currentTableSelection,\n currentTreeNode: this.currentTreeNodeData,\n requestTableData: this.requestTableData,\n querys: this.tableQuerys\n }\n },\n overrideTableEvent () {\n const events = this.actions.reduce((ret, action) => {\n ret[action.eventName] = (e) => {\n this.$emit(action.eventName || 'click', { ...e, currentTreeNode: this.currentTreeNodeData, exposed: this.exposed })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events,\n [BUILT_IN_EVENT_NAMES.EDIT]: this[BUILT_IN_EVENT_NAMES.EDIT]\n }\n },\n overrideModalFormEvent () {\n return {\n ...this.$listeners\n }\n },\n overrideButtonGroupEvent () {\n const events = this.getButtonGroupElements.reduce((ret, ele) => {\n ret[ele.eventName] = (e) => {\n this.$emit(ele.eventName || 'click', { ...e, currentTreeNode: this.currentTreeNodeData, exposed: this.exposed })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events,\n [BUILT_IN_EVENT_NAMES.CREATE]: this[BUILT_IN_EVENT_NAMES.CREATE]\n }\n },\n showTree () {\n return !!Object.keys(this.treeMeta).length\n },\n buttonGroup () {\n return uuidv4()\n },\n searchArea () {\n return uuidv4()\n },\n modelTreeWrapper () {\n return uuidv4()\n },\n modelTableWrapper () {\n return uuidv4()\n },\n actions () {\n const { operations } = this.tableMeta\n if (operations) {\n return operations.elements\n } else {\n return []\n }\n },\n pageSize () {\n const { page = {} } = this.tableMeta\n return page.pageSize || 10\n },\n pageSizeOptions () {\n const { page = {} } = this.tableMeta\n return page.pageSizeOptions || ['10', '20', '30', '40']\n },\n columns () {\n const { columns, operations } = this.tableMeta\n if (type.get(columns) === 'array') {\n const columnsOptions = columns.map(item => {\n const { mode = 'text' } = item\n if (item.render) {\n return {\n ...item,\n customRender: (text, record, index) => {\n const { $createElement } = this\n return item.render.call(this, \n { h: $createElement, ctx: this },\n text ? typeof text == 'object' ? text[item.dataIndex] : text : '', \n record, index)\n }\n }\n } else if (mode !== BUILT_IN_TRIGGER.TEXT) {\n const { [`${mode}Meta`]: modeMeta } = item\n return {\n ...item,\n customRender: (text, record, index) => {\n return <span onClick={() => this.dispatchTrigger({ mode, record, modeMeta, index })} class={ mode }>{ text }</span>\n }\n }\n }\n return {\n ...item\n }\n })\n if (operations) {\n return [\n ...columnsOptions,\n {\n title: '操作',\n width: operations.width,\n key: 'action',\n fixed: 'right',\n scopedSlots: { customRender: 'action' }\n }\n ]\n }\n return columnsOptions\n } else {\n console.error('Error: columns is invalid, please check it')\n return []\n }\n },\n getButtonGroupElements () {\n const { elements } = this.buttonGroupMeta\n if (type.get(elements) === 'function') {\n return elements.call(this)\n } else if (type.get(elements) === 'array') {\n return elements\n } else {\n return []\n }\n }\n },\n async created () {\n if (this.showTree) {\n this.treeData = await this.requestTreeData()\n const [defaultTreeNode = {}] = this.treeData\n this.defaultExpandedKeys = [defaultTreeNode[this.replaceFields.key]]\n this.defaultSelectedKeys = [defaultTreeNode[this.replaceFields.key]]\n this.currentTreeNodeData = defaultTreeNode\n }\n const { params = {}, fieldMap = {}, overrideInit = false } = this.tableMeta\n const ctx = { ...this.currentTreeNodeData, _route: this.$route.query }\n const initQuerys = Object.assign({}, params, parseFieldMap(fieldMap, ctx))\n if (overrideInit) {\n this.$emit(RESERVE_EVENT_NAMES.INIT, { ...this.exposed })\n } else {\n this.tableData = await this.requestTableData(initQuerys)\n }\n },\n methods: {\n dispatchTrigger ({ mode, record = {}, modeMeta = { } }) {\n switch (mode) {\n case BUILT_IN_TRIGGER.FSM:\n this[`${BUILT_IN_TRIGGER.FSM}Trigger`](record, modeMeta = { \n url: 'api-fsm/workbench/fsm/auditFlow',\n requestType: 'GET',\n fieldMap: {\n modelCode: 'modelCode',\n businessId: 'businessId'\n }\n })\n break\n default:\n break\n }\n },\n handleCloseFsmModal () {\n this.showFsmModal = false\n },\n [`${BUILT_IN_TRIGGER.FSM}Trigger`] (record, meta) {\n this.fsmMeta = meta\n this.fsmContextProp = record\n this.showFsmModal = true\n },\n onChangeTableSelection (_, selectedRows) {\n if (this.currentTableMode === 'radio') {\n this.currentTableSelection = selectedRows[0]\n this.$emit('on-change-table-selection', this.currentTableSelection)\n } else {\n this.currentTableSelection = selectedRows\n this.$emit('on-change-table-selection', this.currentTableSelection)\n }\n },\n [BUILT_IN_EVENT_NAMES.EDIT] () {\n this.modalFormMeta = this.editMeta\n this.modalFormValue = true\n },\n [BUILT_IN_EVENT_NAMES.CREATE] () {\n this.modalFormMeta = this.createMeta\n this.modalFormValue = true\n },\n handleClickButtonGroup (props) {\n const { eventName } = props\n this.$emit(eventName, { currentTreeNode: this.currentTreeNodeData })\n },\n watchViewPort () {\n const modelTableWrapper = this.$refs[this.modelTableWrapper]\n console.log(modelTableWrapper.getBoundingClientRect())\n const { top } = modelTableWrapper.getBoundingClientRect()\n this.$refs[this.modelTreeWrapper].style.height = `calc(100vh - ${top}px)`\n },\n async onSearch (props) {\n const { overrideInit = false } = this.tableMeta\n this.tableQuerys = Object.assign(this.tableQuerys, props)\n if (overrideInit) {\n this.$emit(RESERVE_EVENT_NAMES.TREE_CHANGE, { ...this.exposed })\n } else {\n this.tableData = await this.requestTableData()\n }\n },\n execTableFieldMap (fieldMap = {}, props) {\n let ret = {}\n const keys = Object.keys(fieldMap)\n keys.forEach(key => {\n const field = fieldMap[key]\n ret[field] = props[key]\n })\n return ret\n },\n async selectTreeNode (selectedKeys, e) {\n const { fieldMap } = this.tableMeta\n this.currentTreeNodeData = e.node.$vnode.data.props.dataRef\n const execFieldMapRet = this.execTableFieldMap(fieldMap, e.node.$vnode.data.props.dataRef)\n const { overrideInit = false } = this.tableMeta\n if (overrideInit) {\n this.$emit(RESERVE_EVENT_NAMES.TREE_CHANGE, { ...this.exposed })\n } else {\n this.tableData = await this.requestTableData(execFieldMapRet)\n }\n },\n async requestTreeData () {\n const { url, requestType = 'GET', params = {}, fieldMap = {} } = this.treeMeta\n const fieldMapRet = parseFieldMap(fieldMap, { ...this.currentTreeNodeData, _route: this.$route.query })\n const ret = await net[requestType.toLowerCase()](\n url,\n { ...params, ...fieldMapRet }\n ).then(resp => {\n const { data } = resp || {}\n return data\n })\n return ret\n },\n async onChangePage (page, pageSize) {\n this.tableData = await this.requestTableData({ currentPage: page, pageSize })\n },\n async requestTableData (props = {}) {\n const { url, requestType = 'GET', page = {} } = this.tableMeta\n const { pageSize = 10 } = page\n this.tableQuerys = Object.assign(this.tableQuerys, { currentPage: 1, pageSize }, props)\n this.$emit(RESERVE_EVENT_NAMES.WATCH, { ...this.exposed })\n this.loading = true\n const ret = await net[requestType.toLowerCase()](\n url,\n this.tableQuerys\n ).then(resp => {\n const { data = [], count } = resp || {}\n this.total = count\n this.loading = false\n return data.map(item => {\n delete item.children\n return {\n key: uuidv4(),\n ...item\n }\n })\n })\n this.tableData = ret\n return ret\n },\n refreshTreeStatus (props = {}) {},\n refreshTableStatus (props = {}) {},\n calculateTableHeight () {\n const currentViewportHeight = window.innerHeight\n const tableRef = this.$refs[this.tableRef]\n const { top: tableToTop, width } = tableRef.$el.getBoundingClientRect()\n this.tableWidth = width\n this.tableHeight = currentViewportHeight - tableToTop - this.overHeight\n },\n calculateTreeHeight () {\n if (!this.showTree) return\n const modelTableContainerRef = this.$refs[this.modelTableContainerRef]\n const { height } = modelTableContainerRef.getBoundingClientRect()\n this.treeWrapperHeight = height\n }\n },\n mounted () {\n this.calculateTableHeight()\n this.$nextTick(() => {\n this.calculateTreeHeight()\n })\n this.resizeObserverModelTableWrapper = new ResizeObserver(entries => {\n for (const _ of entries) {\n requestAnimationFrame(() => {\n this.calculateTableHeight()\n })\n }\n })\n this.resizeObserverModelTableWrapper.observe(this.$refs[this.modelTableWrapper])\n },\n destroyed () {\n this.resizeObserverModelTableWrapper.disconnect()\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.ele {\n &.model__tree-table {\n background: transparent; \n display: flex;\n flex-direction: row;\n width: 100%;\n .model__tree-table--container {\n .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 }\n .model__table--container {\n width: 100%;\n min-width: 0;\n background: #fff;\n .model__table--title {\n .model__table-title--bar {\n width: 100%;\n height: 8px;\n background: var(--idooel-primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n .model__table-title--text {\n text-align: left;\n padding: 16px;\n font-size: 16px;\n font-weight: bold;\n background: #fff;\n border-bottom: 1px solid;\n border-color: var(--idoole-black-016);\n }\n }\n .model__table--wrapper {\n background: #fff;\n .button-row__area {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-top: 16px;\n padding-bottom: 8px;\n padding-right: 16px;\n }\n .g-table__wrapper {\n .fsm {\n cursor: pointer;\n color: var(--idooel-primary-color);\n }\n }\n }\n }\n }\n}\n</style>\n",".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--title .model__table-title--bar {\n width: 100%;\n height: 8px;\n background: var(--idooel-primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ele.model__tree-table .model__table--container .model__table--title .model__table-title--text {\n text-align: left;\n padding: 16px;\n font-size: 16px;\n font-weight: bold;\n background: #fff;\n border-bottom: 1px solid;\n border-color: var(--idoole-black-016);\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper {\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .button-row__area {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-top: 16px;\n padding-bottom: 8px;\n padding-right: 16px;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .g-table__wrapper .fsm {\n cursor: pointer;\n color: var(--idooel-primary-color);\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
2912
|
+
inject("data-v-8491f498_0", { source: ".ele.model__tree-table[data-v-8491f498] {\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-8491f498] {\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-8491f498] {\n width: 100%;\n min-width: 0;\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--title .model__table-title--bar[data-v-8491f498] {\n width: 100%;\n height: 8px;\n background: var(--idooel-primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ele.model__tree-table .model__table--container .model__table--title .model__table-title--text[data-v-8491f498] {\n text-align: left;\n padding: 16px;\n font-size: 16px;\n font-weight: bold;\n background: #fff;\n border-bottom: 1px solid;\n border-color: var(--idoole-black-016);\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper[data-v-8491f498] {\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .button-row__area[data-v-8491f498] {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-top: 16px;\n padding-bottom: 8px;\n padding-right: 16px;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .g-table__wrapper .fsm[data-v-8491f498] {\n cursor: pointer;\n color: var(--idooel-primary-color);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/models/tree-table-model/src/index.vue","index.vue"],"names":[],"mappings":"AAweA;EACA,uBAAA;EACA,aAAA;EACA,mBAAA;EACA,WAAA;ACveA;ADyeA;EACA,YAAA;EACA,gBAAA;EACA,cAAA;EACA,aAAA;EACA,sBAAA;EACA,kBAAA;EACA,gBAAA;ACveA;AD0eA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;ACxeA;AD0eA;EACA,WAAA;EACA,WAAA;EACA,uCAAA;EACA,2BAAA;EACA,4BAAA;ACxeA;AD0eA;EACA,gBAAA;EACA,aAAA;EACA,eAAA;EACA,iBAAA;EACA,gBAAA;EACA,wBAAA;EACA,qCAAA;ACxeA;AD2eA;EACA,gBAAA;ACzeA;AD0eA;EACA,WAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,8BAAA;EACA,iBAAA;EACA,mBAAA;EACA,mBAAA;ACxeA;AD2eA;EACA,eAAA;EACA,kCAAA;ACzeA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <section class=\"ele model__tree-table\">\n <section class=\"model__tree-table--container\" v-if=\"showTree\">\n <div class=\"model__tree--title\"></div>\n <section :ref=\"modelTreeWrapper\" class=\"model__tree--wrapper\" :style=\"{height: `${treeWrapperHeight}px`}\">\n <ele-tree\n :tree-data=\"treeData\"\n :defaultExpandedKeys=\"defaultExpandedKeys\"\n :defaultSelectedKeys=\"defaultSelectedKeys\"\n @select=\"selectTreeNode\"\n :replace-fields=\"treeMeta.replaceFields || replaceFields\">\n </ele-tree>\n </section>\n </section>\n <section class=\"model__table--container\" :ref=\"modelTableContainerRef\">\n <div class=\"model__table--title\" v-if=\"title\">\n <template v-if=\"titleMode\">\n <div :class=\"[`model__table-title--${titleMode}`]\"></div>\n </template>\n <template v-else>\n <div class=\"model__table-title--text\">{{ title }}</div>\n </template>\n </div>\n <section :ref=\"modelTableWrapper\" class=\"model__table--wrapper\">\n <ele-search-area :ref=\"searchArea\" @search=\"onSearch\" :data-source=\"searchMeta.elements\"></ele-search-area>\n <div class=\"button-row__area\">\n <ele-button-group class=\"model-table__button-group\" v-on=\"overrideButtonGroupEvent\" :ref=\"buttonGroup\" @click=\"handleClickButtonGroup\" :data-source=\"getButtonGroupElements\"></ele-button-group>\n <slot name=\"tags\"></slot>\n <slot name=\"sub-center\"></slot>\n </div>\n <ele-table\n v-on=\"overrideTableEvent\"\n :ref=\"tableRef\"\n :row-selection=\"rowSelection\"\n :loading=\"loading\" \n :columns=\"columns\"\n :total=\"total\"\n :x=\"x\"\n :y=\"y\"\n :height=\"tableHeight\"\n :width=\"tableWidth\"\n :actions=\"actions\"\n :pageSize=\"pageSize\"\n :pageSizeOptions=\"pageSizeOptions\"\n :data-source=\"tableData\"\n @change-page=\"onChangePage\"\n ></ele-table>\n </section>\n </section>\n <ele-modal-form v-model=\"modalFormValue\" v-on=\"overrideModalFormEvent\" :meta=\"modalFormMeta\"></ele-modal-form>\n <ele-modal-fsm v-model=\"showFsmModal\" :contextProp=\"fsmContextProp\" :meta=\"fsmMeta\" @cancel=\"handleCloseFsmModal\"></ele-modal-fsm>\n </section>\n</template>\n\n<script>\nimport { type, net } from '@idooel/shared'\nimport { v4 as uuidv4 } from 'uuid'\nimport { BUILT_IN_EVENT_NAMES, RESERVE_EVENT_NAMES, parseFieldMap, BUILT_IN_TRIGGER, CONTEXT } from '../../../utils'\nexport default {\n name: 'ele-tree-table-model',\n props: {\n title: {\n type: [Object, String]\n },\n overHeight: {\n type: Number,\n default: 0\n },\n treeMeta: {\n type: Object,\n default: () => ({})\n },\n searchMeta: {\n type: Object,\n default: () => ({})\n },\n buttonGroupMeta: {\n typeof: Object,\n default: () => ({})\n },\n tableMeta: {\n type: Object,\n default: () => ({})\n },\n createMeta: {\n type: Object\n },\n editMeta: {\n type: Object\n }\n },\n provide () {\n return {\n requestTreeData: this.requestTreeData,\n requestTableData: this.requestTableData,\n [CONTEXT]: () => {\n return {\n exposed: { ...this.exposed }\n }\n }\n }\n },\n data () {\n return {\n tableHeight: 0,\n tableWidth: 0,\n modalFormMeta: {},\n modalFormValue: false,\n treeData: [],\n tableData: [],\n defaultExpandedKeys: [],\n defaultSelectedKeys: [],\n replaceFields: {\n title: 'title',\n children: 'children',\n key: 'id'\n },\n loading: false,\n total: 0,\n tableQuerys: {},\n resizeObserverModelTableWrapper: null,\n modelTableWrapperHeight: 0,\n currentTreeNodeData: {},\n treeWrapperHeight: 0,\n currentTableSelection: {},\n showFsmModal: false,\n fsmMeta: {},\n fsmContextProp: {}\n }\n },\n computed: {\n rowSelection () {\n if (!this.currentTableMode) return void 0\n return {\n columnTitle: this.currentSelectionColumn.columnTitle,\n fixed: true,\n type: this.currentTableMode,\n onChange: this.onChangeTableSelection\n }\n },\n currentSelectionColumn () {\n const { multiple } = this.tableMeta\n const target = this.columns.find(item => Object.keys(item).includes('multiple'))\n const isGlobalExistMultiple = Object.keys(this.tableMeta).includes('multiple')\n if (target) {\n return target\n } else if (isGlobalExistMultiple) {\n return { multiple }\n }\n return void 0\n },\n x () {\n const { x } = this.tableMeta\n return x\n },\n y () {\n const { y } = this.tableMeta\n return y\n },\n currentTableMode () {\n if (!this.currentSelectionColumn) return void 0\n const { multiple } = this.currentSelectionColumn\n if (type.isBool(multiple)) {\n if (multiple) {\n return 'checkbox'\n } else {\n return 'radio'\n }\n } else {\n return void 0\n }\n },\n modelTableContainerRef () {\n return uuidv4()\n },\n titleMode () {\n if (type.isObject(this.title)) {\n const { mode = '' } = this.title\n return mode\n }\n return void 0\n },\n tableRef () {\n return uuidv4()\n },\n exposed () {\n return {\n currentTableSelection: this.currentTableSelection,\n currentTreeNode: this.currentTreeNodeData,\n requestTableData: this.requestTableData,\n querys: this.tableQuerys\n }\n },\n overrideTableEvent () {\n const events = this.actions.reduce((ret, action) => {\n ret[action.eventName] = (e) => {\n this.$emit(action.eventName || 'click', { ...e, currentTreeNode: this.currentTreeNodeData, exposed: this.exposed })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events,\n [BUILT_IN_EVENT_NAMES.EDIT]: this[BUILT_IN_EVENT_NAMES.EDIT]\n }\n },\n overrideModalFormEvent () {\n return {\n ...this.$listeners\n }\n },\n overrideButtonGroupEvent () {\n const events = this.getButtonGroupElements.reduce((ret, ele) => {\n ret[ele.eventName] = (e) => {\n this.$emit(ele.eventName || 'click', { ...e, currentTreeNode: this.currentTreeNodeData, exposed: this.exposed })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events,\n [BUILT_IN_EVENT_NAMES.CREATE]: this[BUILT_IN_EVENT_NAMES.CREATE]\n }\n },\n showTree () {\n return !!Object.keys(this.treeMeta).length\n },\n buttonGroup () {\n return uuidv4()\n },\n searchArea () {\n return uuidv4()\n },\n modelTreeWrapper () {\n return uuidv4()\n },\n modelTableWrapper () {\n return uuidv4()\n },\n actions () {\n const { operations } = this.tableMeta\n if (operations) {\n return operations.elements\n } else {\n return []\n }\n },\n pageSize () {\n const { page = {} } = this.tableMeta\n return page.pageSize || 10\n },\n pageSizeOptions () {\n const { page = {} } = this.tableMeta\n return page.pageSizeOptions || ['10', '20', '30', '40']\n },\n columns () {\n const { columns, operations } = this.tableMeta\n if (type.get(columns) === 'array') {\n const columnsOptions = columns.map(item => {\n const { mode = 'text' } = item\n if (item.render) {\n return {\n ...item,\n customRender: (text, record, index) => {\n const { $createElement } = this\n return item.render.call(this, \n { h: $createElement, ctx: this },\n text ? typeof text == 'object' ? text[item.dataIndex] : text : '', \n record, index)\n }\n }\n } else if (mode !== BUILT_IN_TRIGGER.TEXT) {\n const { [`${mode}Meta`]: modeMeta } = item\n return {\n ...item,\n customRender: (text, record, index) => {\n return <span onClick={() => this.dispatchTrigger({ mode, record, modeMeta, index })} class={ mode }>{ text }</span>\n }\n }\n }\n return {\n ...item\n }\n })\n if (operations) {\n return [\n ...columnsOptions,\n {\n title: '操作',\n width: operations.width,\n key: 'action',\n fixed: 'right',\n scopedSlots: { customRender: 'action' }\n }\n ]\n }\n return columnsOptions\n } else {\n console.error('Error: columns is invalid, please check it')\n return []\n }\n },\n getButtonGroupElements () {\n const { elements } = this.buttonGroupMeta\n if (type.get(elements) === 'function') {\n return elements.call(this)\n } else if (type.get(elements) === 'array') {\n return elements\n } else {\n return []\n }\n }\n },\n async created () {\n if (this.showTree) {\n this.treeData = await this.requestTreeData()\n const [defaultTreeNode = {}] = this.treeData\n this.defaultExpandedKeys = [defaultTreeNode[this.replaceFields.key]]\n this.defaultSelectedKeys = [defaultTreeNode[this.replaceFields.key]]\n this.currentTreeNodeData = defaultTreeNode\n }\n const { params = {}, fieldMap = {}, overrideInit = false } = this.tableMeta\n const ctx = { ...this.currentTreeNodeData, _route: this.$route.query }\n const initQuerys = Object.assign({}, params, parseFieldMap(fieldMap, ctx))\n if (overrideInit) {\n this.$emit(RESERVE_EVENT_NAMES.INIT, { ...this.exposed })\n } else {\n this.tableData = await this.requestTableData(initQuerys)\n }\n },\n methods: {\n dispatchTrigger ({ mode, record = {}, modeMeta = { } }) {\n switch (mode) {\n case BUILT_IN_TRIGGER.FSM:\n this[`${BUILT_IN_TRIGGER.FSM}Trigger`](record, modeMeta = { \n url: 'api-fsm/workbench/fsm/auditFlow',\n requestType: 'GET',\n fieldMap: {\n modelCode: 'modelCode',\n businessId: 'businessId'\n }\n })\n break\n default:\n break\n }\n },\n handleCloseFsmModal () {\n this.showFsmModal = false\n },\n [`${BUILT_IN_TRIGGER.FSM}Trigger`] (record, meta) {\n this.fsmMeta = meta\n this.fsmContextProp = record\n this.showFsmModal = true\n },\n onChangeTableSelection (_, selectedRows) {\n if (this.currentTableMode === 'radio') {\n this.currentTableSelection = selectedRows[0]\n this.$emit('on-change-table-selection', this.currentTableSelection)\n } else {\n this.currentTableSelection = selectedRows\n this.$emit('on-change-table-selection', this.currentTableSelection)\n }\n },\n [BUILT_IN_EVENT_NAMES.EDIT] () {\n this.modalFormMeta = this.editMeta\n this.modalFormValue = true\n },\n [BUILT_IN_EVENT_NAMES.CREATE] () {\n this.modalFormMeta = this.createMeta\n this.modalFormValue = true\n },\n handleClickButtonGroup (props) {\n const { eventName } = props\n this.$emit(eventName, { currentTreeNode: this.currentTreeNodeData })\n },\n watchViewPort () {\n const modelTableWrapper = this.$refs[this.modelTableWrapper]\n console.log(modelTableWrapper.getBoundingClientRect())\n const { top } = modelTableWrapper.getBoundingClientRect()\n this.$refs[this.modelTreeWrapper].style.height = `calc(100vh - ${top}px)`\n },\n async onSearch (props) {\n const { overrideInit = false } = this.tableMeta\n this.tableQuerys = Object.assign(this.tableQuerys, props)\n if (overrideInit) {\n this.$emit(RESERVE_EVENT_NAMES.TREE_CHANGE, { ...this.exposed })\n } else {\n this.tableData = await this.requestTableData()\n }\n },\n execTableFieldMap (fieldMap = {}, props) {\n let ret = {}\n const keys = Object.keys(fieldMap)\n keys.forEach(key => {\n const field = fieldMap[key]\n ret[field] = props[key]\n })\n return ret\n },\n async selectTreeNode (selectedKeys, e) {\n const { fieldMap } = this.tableMeta\n this.currentTreeNodeData = e.node.$vnode.data.props.dataRef\n const execFieldMapRet = this.execTableFieldMap(fieldMap, e.node.$vnode.data.props.dataRef)\n const { overrideInit = false } = this.tableMeta\n if (overrideInit) {\n this.$emit(RESERVE_EVENT_NAMES.TREE_CHANGE, { ...this.exposed })\n } else {\n this.tableData = await this.requestTableData(execFieldMapRet)\n }\n },\n async requestTreeData () {\n const { url, requestType = 'GET', params = {}, fieldMap = {} } = this.treeMeta\n const fieldMapRet = parseFieldMap(fieldMap, { ...this.currentTreeNodeData, _route: this.$route.query })\n const ret = await net[requestType.toLowerCase()](\n url,\n { ...params, ...fieldMapRet }\n ).then(resp => {\n const { data } = resp || {}\n return data\n })\n return ret\n },\n async onChangePage (page, pageSize) {\n this.tableData = await this.requestTableData({ currentPage: page, pageSize })\n },\n async requestTableData (props = {}) {\n const { url, requestType = 'GET', page = {} } = this.tableMeta\n const { pageSize = 10 } = page\n this.tableQuerys = Object.assign(this.tableQuerys, { currentPage: 1, pageSize }, props)\n this.$emit(RESERVE_EVENT_NAMES.WATCH, { ...this.exposed })\n this.loading = true\n const ret = await net[requestType.toLowerCase()](\n url,\n this.tableQuerys\n ).then(resp => {\n const { data = [], count } = resp || {}\n this.total = count\n this.loading = false\n return (data || []).map(item => {\n delete item.children\n return {\n key: uuidv4(),\n ...item\n }\n })\n })\n this.tableData = ret\n return ret\n },\n refreshTreeStatus (props = {}) {},\n refreshTableStatus (props = {}) {},\n calculateTableHeight () {\n const currentViewportHeight = window.innerHeight\n const tableRef = this.$refs[this.tableRef]\n const { top: tableToTop, width } = tableRef.$el.getBoundingClientRect()\n this.tableWidth = width\n this.tableHeight = currentViewportHeight - tableToTop - this.overHeight\n },\n calculateTreeHeight () {\n if (!this.showTree) return\n const modelTableContainerRef = this.$refs[this.modelTableContainerRef]\n const { height } = modelTableContainerRef.getBoundingClientRect()\n this.treeWrapperHeight = height\n }\n },\n mounted () {\n this.calculateTableHeight()\n this.$nextTick(() => {\n this.calculateTreeHeight()\n })\n this.resizeObserverModelTableWrapper = new ResizeObserver(entries => {\n for (const _ of entries) {\n requestAnimationFrame(() => {\n this.calculateTableHeight()\n })\n }\n })\n this.resizeObserverModelTableWrapper.observe(this.$refs[this.modelTableWrapper])\n },\n destroyed () {\n this.resizeObserverModelTableWrapper.disconnect()\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.ele {\n &.model__tree-table {\n background: transparent; \n display: flex;\n flex-direction: row;\n width: 100%;\n .model__tree-table--container {\n .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 }\n .model__table--container {\n width: 100%;\n min-width: 0;\n background: #fff;\n .model__table--title {\n .model__table-title--bar {\n width: 100%;\n height: 8px;\n background: var(--idooel-primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n .model__table-title--text {\n text-align: left;\n padding: 16px;\n font-size: 16px;\n font-weight: bold;\n background: #fff;\n border-bottom: 1px solid;\n border-color: var(--idoole-black-016);\n }\n }\n .model__table--wrapper {\n background: #fff;\n .button-row__area {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-top: 16px;\n padding-bottom: 8px;\n padding-right: 16px;\n }\n .g-table__wrapper {\n .fsm {\n cursor: pointer;\n color: var(--idooel-primary-color);\n }\n }\n }\n }\n }\n}\n</style>\n",".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--title .model__table-title--bar {\n width: 100%;\n height: 8px;\n background: var(--idooel-primary-color);\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ele.model__tree-table .model__table--container .model__table--title .model__table-title--text {\n text-align: left;\n padding: 16px;\n font-size: 16px;\n font-weight: bold;\n background: #fff;\n border-bottom: 1px solid;\n border-color: var(--idoole-black-016);\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper {\n background: #fff;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .button-row__area {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-top: 16px;\n padding-bottom: 8px;\n padding-right: 16px;\n}\n.ele.model__tree-table .model__table--container .model__table--wrapper .g-table__wrapper .fsm {\n cursor: pointer;\n color: var(--idooel-primary-color);\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
2911
2913
|
|
|
2912
2914
|
};
|
|
2913
2915
|
/* scoped */
|
|
2914
|
-
const __vue_scope_id__$
|
|
2916
|
+
const __vue_scope_id__$x = "data-v-8491f498";
|
|
2915
2917
|
/* module identifier */
|
|
2916
|
-
const __vue_module_identifier__$
|
|
2918
|
+
const __vue_module_identifier__$x = undefined;
|
|
2917
2919
|
/* functional template */
|
|
2918
|
-
const __vue_is_functional_template__$
|
|
2920
|
+
const __vue_is_functional_template__$x = false;
|
|
2919
2921
|
/* style inject SSR */
|
|
2920
2922
|
|
|
2921
2923
|
/* style inject shadow dom */
|
|
2922
2924
|
|
|
2923
2925
|
|
|
2924
2926
|
|
|
2925
|
-
const __vue_component__$
|
|
2926
|
-
{ render: __vue_render__$
|
|
2927
|
-
__vue_inject_styles__$
|
|
2928
|
-
__vue_script__$
|
|
2929
|
-
__vue_scope_id__$
|
|
2930
|
-
__vue_is_functional_template__$
|
|
2931
|
-
__vue_module_identifier__$
|
|
2927
|
+
const __vue_component__$x = /*#__PURE__*/normalizeComponent(
|
|
2928
|
+
{ render: __vue_render__$x, staticRenderFns: __vue_staticRenderFns__$x },
|
|
2929
|
+
__vue_inject_styles__$x,
|
|
2930
|
+
__vue_script__$x,
|
|
2931
|
+
__vue_scope_id__$x,
|
|
2932
|
+
__vue_is_functional_template__$x,
|
|
2933
|
+
__vue_module_identifier__$x,
|
|
2932
2934
|
false,
|
|
2933
2935
|
createInjector,
|
|
2934
2936
|
undefined,
|
|
@@ -2936,7 +2938,7 @@ __vue_render__$v._withStripped = true;
|
|
|
2936
2938
|
);
|
|
2937
2939
|
|
|
2938
2940
|
//
|
|
2939
|
-
var script$
|
|
2941
|
+
var script$w = {
|
|
2940
2942
|
name: 'ele-form-group-model',
|
|
2941
2943
|
props: {
|
|
2942
2944
|
mode: {
|
|
@@ -3216,10 +3218,10 @@ var script$u = {
|
|
|
3216
3218
|
};
|
|
3217
3219
|
|
|
3218
3220
|
/* script */
|
|
3219
|
-
const __vue_script__$
|
|
3221
|
+
const __vue_script__$w = script$w;
|
|
3220
3222
|
|
|
3221
3223
|
/* template */
|
|
3222
|
-
var __vue_render__$
|
|
3224
|
+
var __vue_render__$w = function () {
|
|
3223
3225
|
var _vm = this;
|
|
3224
3226
|
var _h = _vm.$createElement;
|
|
3225
3227
|
var _c = _vm._self._c || _h;
|
|
@@ -3321,34 +3323,34 @@ var __vue_render__$u = function () {
|
|
|
3321
3323
|
2
|
|
3322
3324
|
)
|
|
3323
3325
|
};
|
|
3324
|
-
var __vue_staticRenderFns__$
|
|
3325
|
-
__vue_render__$
|
|
3326
|
+
var __vue_staticRenderFns__$w = [];
|
|
3327
|
+
__vue_render__$w._withStripped = true;
|
|
3326
3328
|
|
|
3327
3329
|
/* style */
|
|
3328
|
-
const __vue_inject_styles__$
|
|
3330
|
+
const __vue_inject_styles__$w = function (inject) {
|
|
3329
3331
|
if (!inject) return
|
|
3330
3332
|
inject("data-v-770e5c93_0", { source: ".ele.form-group-model__wrapper[data-v-770e5c93] {\n background: unset;\n padding-bottom: 80px;\n}\n.ele.form-group-model__wrapper .form-group-model__from[data-v-770e5c93] {\n background: #fff;\n margin-top: 16px;\n}\n.ele.form-group-model__wrapper .form-group-model__from[data-v-770e5c93]:first-child {\n margin-top: unset;\n}\n.ele.form-group-model__wrapper .form-group-model__from .form-group-model__form--title[data-v-770e5c93] {\n width: 100%;\n height: 56px;\n padding: 0 16px;\n border-bottom: 1px solid;\n border-color: var(--idooel-form-title-border-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n.ele.form-group-model__wrapper .form-group-model__from .form-group-model__form--content[data-v-770e5c93] {\n padding: 16px;\n}\n.ele.form-group-model__wrapper .form-group-model__form--footer[data-v-770e5c93] {\n width: 100%;\n height: 64px;\n background: #fff;\n position: fixed;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/models/form-group-model/src/index.vue","index.vue"],"names":[],"mappings":"AA4OA;EACA,iBAAA;EACA,oBAAA;AC3OA;AD4OA;EACA,gBAAA;EACA,gBAAA;AC1OA;AD2OA;EACA,iBAAA;ACzOA;AD2OA;EACA,WAAA;EACA,YAAA;EACA,eAAA;EACA,wBAAA;EACA,mDAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,8BAAA;ACzOA;AD2OA;EACA,aAAA;ACzOA;AD4OA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,SAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,oBAAA;AC1OA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"ele form-group-model__wrapper\">\n <template v-for=\"(group, idx) in innerGroupMeta\">\n <div \n class=\"form-group-model__from\"\n v-if=\"!group.isGenTpl\"\n :key=\"group.key || idx\">\n <div class=\"form-group-model__form--title\">\n <div>{{ group.title }}</div>\n <div class=\"form-group-model__form--buttons\">\n <ele-button-group v-if=\"group.buttonGroupMeta\" v-on=\"assignAttrForEvents\" @delete=\"handleClickDelete($event, group, idx)\" :data-source=\"group.buttonGroupMeta.elements.call(this)\"></ele-button-group>\n </div>\n </div>\n <div class=\"form-group-model__form--content\">\n <ele-form @change=\"onChangeFormStatus($event, group.key || idx)\" :form-name=\"group.key || idx\" :ref=\"group.key || `${formRefBase}__${idx}`\" :elements=\"group.elements\"></ele-form>\n </div>\n </div>\n </template>\n <div v-if=\"showFooterMeta\" class=\"form-group-model__form--footer\">\n <ele-button-group v-on=\"assignAttrForEvents\" :data-source=\"footerElements\"></ele-button-group>\n </div>\n </div>\n</template>\n\n<script>\nimport { BUILT_IN_EVENT_NAMES, RESERVE_EVENT_NAMES, parseFieldMap, PAGE_STATUS } from '../../../utils'\nimport { v4 as uuidv4 } from 'uuid'\nimport { type, net } from '@idooel/shared'\nexport default {\n name: 'ele-form-group-model',\n props: {\n mode: {\n type: String\n },\n fieldName: {\n type: String,\n default: 'formGroup'\n },\n groupMeta: {\n type: Function,\n default: () => []\n },\n footerMeta: {\n type: Object,\n default: () => {}\n },\n preRequest: {\n type: Object,\n default: () => {}\n },\n infoRequest: {\n type: Object,\n default: () => {}\n },\n submitRequest: {\n type: Object,\n default: () => {}\n }\n },\n data () {\n return {\n increaseCount: 1,\n innerGroupMeta: []\n }\n },\n watch: {\n readOnlyGroupMeta: {\n handler (meta) {\n this.innerGroupMeta = meta\n },\n immediate: true\n }\n },\n computed: {\n routeMetaMode () {\n return this.$route.meta.mode\n },\n readOnlyGroupMeta () {\n return this.groupMeta.call(this)\n },\n showFooterMeta () {\n return !type.isEmpty(this.footerMeta)\n },\n formRefBase () {\n return uuidv4()\n },\n footerElements () {\n const { elements } = this.footerMeta\n return elements.call(this)\n },\n assignAttrForEvents () {\n const events = this.footerElements.reduce((ret, ele) => {\n ret[ele.eventName] = (e) => {\n this.$emit(ele.eventName || 'click', { ...e })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events,\n [BUILT_IN_EVENT_NAMES.SUBMIT]: this[BUILT_IN_EVENT_NAMES.SUBMIT],\n [BUILT_IN_EVENT_NAMES.CANCEL]: this[BUILT_IN_EVENT_NAMES.CANCEL],\n [BUILT_IN_EVENT_NAMES.INCREASE]: this[BUILT_IN_EVENT_NAMES.INCREASE]\n }\n },\n getFormRefs () {\n return this.innerGroupMeta.map((group, idx) => {\n if (!group.isGenTpl) {\n return this.$refs[group.key || `${this.formRefBase}__${idx}`]\n }\n return void 0\n }).filter(item => !!item).flat()\n },\n formModels () {\n if (this.mode === 'increase') {\n //TODO increase mode to return formModels\n return this.getFormRefs.map(form => {\n return form.getFieldsValue()\n })\n } else {\n return this.getFormRefs.map(form => {\n const { $vnode: { data: { ref } } } = form\n return {\n key: ref,\n value: form.getFieldsValue()\n }\n }).reduce((ret, props) => {\n ret[props.key] = props.value\n return ret\n }, {})\n }\n }\n },\n methods: {\n execFieldMap (fieldMap = {}, dataSource = {}) {\n const ret = parseFieldMap(fieldMap, { _route: this.$route.query, ...dataSource})\n return ret\n },\n onChangeFormStatus (props, key) {\n this.$emit(RESERVE_EVENT_NAMES.WATCH_FORM_STATUS, { key, ...props })\n },\n async infoRequestTrigger () {\n if (!this.infoRequest || this.routeMetaMode == PAGE_STATUS.CREATE) return\n const { url, requestType, params = {}, fieldMap = {}, headers = {} } = this.infoRequest\n if (!url) return\n net[requestType.toLowerCase()](url, { ...params, ...this.execFieldMap(fieldMap) }, { ...headers }).then(resp => {\n const { data = {} } = resp\n if (this.mode === 'increase') {\n this.renderIncreaseForm(data)\n }\n this.$emit(RESERVE_EVENT_NAMES.INIT_FORM, { ...data })\n })\n },\n async preRequestTrigger () {\n if (!this.preRequest) return\n const { url, requestType = 'GET', params = {}, fieldMap = {}, headers = {} } = this.preRequest\n if (!url) return\n net[requestType.toLowerCase()](url, { ...params, ...fieldMap }, { ...headers }).then(resp => {\n const { data = {} } = resp\n if (this.mode === 'increase') {\n this.renderIncreaseForm(data)\n }\n this.$emit(RESERVE_EVENT_NAMES.INIT_FORM, { ...data })\n })\n },\n renderIncreaseForm (data = {}) {\n const formGroupValuesLength = data[this.fieldName].length\n const genTplTarget = this.readOnlyGroupMeta.find(item => item.isGenTpl)\n const notGenTplPoolLength = this.readOnlyGroupMeta.filter(item => !item.isGenTpl).length\n const genNum = formGroupValuesLength - notGenTplPoolLength\n new Array(genNum).fill().forEach(() => {\n const form = this.genForm(genTplTarget)\n this.innerGroupMeta.push(form)\n })\n const formGroupValues = data[this.fieldName]\n this.$nextTick(() => {\n this.setFieldsValue(formGroupValues)\n })\n },\n async submitRequestTrigger (props = {}) {\n const { url, requestType, headers = {}, params = {}, fieldMap = {} } = this.submitRequest\n if (!url) return\n const ret = await net[requestType.toLowerCase()](url, { ...params, ...this.execFieldMap(fieldMap, { ...this.formModels }), [this.fieldName]: this.formModels }, { headers }).then(resp => {\n this.$emit(BUILT_IN_EVENT_NAMES.SUBMIT, { ...props, formModel: { ...this.formModels, ...resp.data || {} } })\n return resp.data\n })\n return ret\n },\n setFieldsValue (data = []) {\n this.getFormRefs.forEach((form, idx) => {\n form.setFieldsValue(data[idx])\n form.evalDisabledExpression(data[idx])\n })\n },\n [BUILT_IN_EVENT_NAMES.SUBMIT] (props = {}) {\n const status = this.getFormRefs.map(form => {\n const status = form.validateFields()\n return status\n }).every(item => item)\n if (status) {\n return this.submitRequestTrigger(props)\n } else {\n return false\n }\n },\n [BUILT_IN_EVENT_NAMES.CANCEL] (props = {}) {\n this.$emit(BUILT_IN_EVENT_NAMES.CANCEL, { ...props })\n },\n genForm (base) {\n const { elements, title, buttonGroupMeta } = base\n return {\n elements: JSON.parse(JSON.stringify(elements)),\n buttonGroupMeta,\n title: `${title}${this.increaseCount++}`,\n _gen: true\n }\n },\n handleClickDelete (props = {}, attr = {}, idx) {\n this.innerGroupMeta.splice(idx, 1)\n this.$emit(BUILT_IN_EVENT_NAMES.DELETE, { ...props })\n },\n [BUILT_IN_EVENT_NAMES.INCREASE] (props) {\n const genTplTarget = this.readOnlyGroupMeta.find(item => item.isGenTpl)\n const form = this.genForm(genTplTarget)\n this.innerGroupMeta.push(form)\n }\n },\n async mounted() {\n await this.preRequestTrigger()\n await this.infoRequestTrigger()\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.ele {\n &.form-group-model__wrapper {\n background: unset;\n padding-bottom: 80px;\n .form-group-model__from {\n background: #fff;\n margin-top: 16px;\n &:first-child {\n margin-top: unset;\n }\n .form-group-model__form--title {\n width: 100%;\n height: 56px;\n padding: 0 16px;\n border-bottom: 1px solid;\n border-color: var(--idooel-form-title-border-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n }\n .form-group-model__form--content {\n padding: 16px;\n }\n }\n .form-group-model__form--footer {\n width: 100%;\n height: 64px;\n background: #fff;\n position: fixed;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n }\n }\n}\n</style>",".ele.form-group-model__wrapper {\n background: unset;\n padding-bottom: 80px;\n}\n.ele.form-group-model__wrapper .form-group-model__from {\n background: #fff;\n margin-top: 16px;\n}\n.ele.form-group-model__wrapper .form-group-model__from:first-child {\n margin-top: unset;\n}\n.ele.form-group-model__wrapper .form-group-model__from .form-group-model__form--title {\n width: 100%;\n height: 56px;\n padding: 0 16px;\n border-bottom: 1px solid;\n border-color: var(--idooel-form-title-border-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n.ele.form-group-model__wrapper .form-group-model__from .form-group-model__form--content {\n padding: 16px;\n}\n.ele.form-group-model__wrapper .form-group-model__form--footer {\n width: 100%;\n height: 64px;\n background: #fff;\n position: fixed;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3331
3333
|
|
|
3332
3334
|
};
|
|
3333
3335
|
/* scoped */
|
|
3334
|
-
const __vue_scope_id__$
|
|
3336
|
+
const __vue_scope_id__$w = "data-v-770e5c93";
|
|
3335
3337
|
/* module identifier */
|
|
3336
|
-
const __vue_module_identifier__$
|
|
3338
|
+
const __vue_module_identifier__$w = undefined;
|
|
3337
3339
|
/* functional template */
|
|
3338
|
-
const __vue_is_functional_template__$
|
|
3340
|
+
const __vue_is_functional_template__$w = false;
|
|
3339
3341
|
/* style inject SSR */
|
|
3340
3342
|
|
|
3341
3343
|
/* style inject shadow dom */
|
|
3342
3344
|
|
|
3343
3345
|
|
|
3344
3346
|
|
|
3345
|
-
const __vue_component__$
|
|
3346
|
-
{ render: __vue_render__$
|
|
3347
|
-
__vue_inject_styles__$
|
|
3348
|
-
__vue_script__$
|
|
3349
|
-
__vue_scope_id__$
|
|
3350
|
-
__vue_is_functional_template__$
|
|
3351
|
-
__vue_module_identifier__$
|
|
3347
|
+
const __vue_component__$w = /*#__PURE__*/normalizeComponent(
|
|
3348
|
+
{ render: __vue_render__$w, staticRenderFns: __vue_staticRenderFns__$w },
|
|
3349
|
+
__vue_inject_styles__$w,
|
|
3350
|
+
__vue_script__$w,
|
|
3351
|
+
__vue_scope_id__$w,
|
|
3352
|
+
__vue_is_functional_template__$w,
|
|
3353
|
+
__vue_module_identifier__$w,
|
|
3352
3354
|
false,
|
|
3353
3355
|
createInjector,
|
|
3354
3356
|
undefined,
|
|
@@ -3356,7 +3358,7 @@ __vue_render__$u._withStripped = true;
|
|
|
3356
3358
|
);
|
|
3357
3359
|
|
|
3358
3360
|
//
|
|
3359
|
-
var script$
|
|
3361
|
+
var script$v = {
|
|
3360
3362
|
name: 'ele-form-model',
|
|
3361
3363
|
props: {
|
|
3362
3364
|
disabled: {
|
|
@@ -3593,10 +3595,10 @@ var script$t = {
|
|
|
3593
3595
|
};
|
|
3594
3596
|
|
|
3595
3597
|
/* script */
|
|
3596
|
-
const __vue_script__$
|
|
3598
|
+
const __vue_script__$v = script$v;
|
|
3597
3599
|
|
|
3598
3600
|
/* template */
|
|
3599
|
-
var __vue_render__$
|
|
3601
|
+
var __vue_render__$v = function () {
|
|
3600
3602
|
var _vm = this;
|
|
3601
3603
|
var _h = _vm.$createElement;
|
|
3602
3604
|
var _c = _vm._self._c || _h;
|
|
@@ -3649,34 +3651,34 @@ var __vue_render__$t = function () {
|
|
|
3649
3651
|
: _vm._e(),
|
|
3650
3652
|
])
|
|
3651
3653
|
};
|
|
3652
|
-
var __vue_staticRenderFns__$
|
|
3653
|
-
__vue_render__$
|
|
3654
|
+
var __vue_staticRenderFns__$v = [];
|
|
3655
|
+
__vue_render__$v._withStripped = true;
|
|
3654
3656
|
|
|
3655
3657
|
/* style */
|
|
3656
|
-
const __vue_inject_styles__$
|
|
3658
|
+
const __vue_inject_styles__$v = function (inject) {
|
|
3657
3659
|
if (!inject) return
|
|
3658
3660
|
inject("data-v-02358f9a_0", { source: ".form__model--wrapper[data-v-02358f9a] {\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #fff;\n}\n.form__model--wrapper .form-model__title[data-v-02358f9a] {\n height: 56px;\n padding: 0 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n border-bottom: 1px solid var(--idooel-form-title-border-color);\n}\n.form__model--wrapper .form-model__content[data-v-02358f9a] {\n padding: 16px;\n}\n.form__model--wrapper .form-model__footer[data-v-02358f9a] {\n /* width: 100%; */\n height: 64px;\n position: fixed;\n bottom: 0;\n display: flex;\n float: right;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/models/form-model/src/index.vue","index.vue"],"names":[],"mappings":"AAuLA;EACA,WAAA;EACA,YAAA;EACA,cAAA;EACA,gBAAA;ACtLA;ADuLA;EACA,YAAA;EACA,eAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,8DAAA;ACrLA;ADuLA;EACA,aAAA;ACrLA;ADuLA;EACA,iBAAA;EACA,YAAA;EACA,eAAA;EACA,SAAA;EACA,aAAA;EACA,YAAA;EACA,mBAAA;EACA,mBAAA;EACA,oBAAA;ACrLA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"form__model--wrapper\">\n <div class=\"form-model__title\" v-if=\"title\">\n {{ title }}\n </div>\n <div class=\"form-model__content\">\n <ele-alert style=\"margin-bottom: 16px;\" v-if=\"alertMeta\" v-bind=\"alertMeta\"></ele-alert>\n <ele-form :ref=\"formRef\" :elements=\"elements\" :disabled=\"globalDisabled\"></ele-form>\n </div>\n <div class=\"form-model__footer\" v-if=\"footerMeta\">\n <ele-button-group v-on=\"assignAttrForEvents\" :data-source=\"footerElements\"></ele-button-group>\n </div>\n </div>\n</template>\n\n<script>\nimport { BUILT_IN_EVENT_NAMES, parseFieldMap, RESERVE_EVENT_NAMES, PAGE_STATUS, CONTEXT } from '../../../utils'\nimport { v4 as uuidv4 } from 'uuid'\nimport { net, type } from '@idooel/shared'\nimport { parse } from '@idooel/expression'\nexport default {\n name: 'ele-form-model',\n props: {\n disabled: {\n type: [Boolean, String],\n default: '_routeMeta.disabled'\n },\n title: {\n type: String\n },\n formMeta: {\n type: Object\n },\n footerMeta: {\n type: Object\n }\n },\n data() {\n return {}\n },\n provide () {\n return {\n [CONTEXT]: () => {\n return {\n exposed: this.exposed\n }\n }\n }\n },\n computed: {\n globalDisabled () {\n return this.executeExpression(this.disabled)\n },\n formRef () {\n return uuidv4()\n },\n exposed () {\n return {\n setFieldsValue: this.setFieldsValue,\n validateFields: this.validateFields\n }\n },\n assignAttrForEvents () {\n const events = this.footerElements.reduce((ret, ele) => {\n ret[ele.eventName] = (e) => {\n this.$emit(ele.eventName || 'click', { ...e, formModel: this.formModels(), exposed: this.exposed })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events,\n [BUILT_IN_EVENT_NAMES.SUBMIT]: this[BUILT_IN_EVENT_NAMES.SUBMIT],\n [BUILT_IN_EVENT_NAMES.CANCEL]: this[BUILT_IN_EVENT_NAMES.CANCEL]\n }\n },\n elements () {\n const { elements } = this.formMeta\n return elements\n },\n preRequest () {\n const { preRequest = {} } = this.formMeta\n return preRequest\n },\n infoRequest () {\n const { infoRequest = {} } = this.formMeta\n return infoRequest\n },\n alertMeta () {\n const { alert = {} } = this.formMeta\n return type.isEmpty(alert) ? null : alert\n },\n submitRequest () {\n const { submitRequest = {} } = this.formMeta\n return submitRequest\n },\n footerElements () {\n const { elements } = this.footerMeta\n return elements.call(this)\n },\n expressionData () {\n return {\n _route: this.$route.query,\n _routeMeta: this.$route.meta\n }\n },\n routeMetaMode () {\n return this.$route.meta.mode\n }\n },\n methods: {\n formModels () {\n return this.$refs[this.formRef] ? this.$refs[this.formRef].getFieldsValue() : {}\n },\n executeExpression (expression, dataSource = {}) {\n if (type.isBool(expression)) return expression\n if (type.isEmpty(expression)) return false\n return parse(expression, { ...this.expressionData, ...this.formModels(), ...dataSource })\n },\n execFieldMap (fieldMap = {}, dataSource = {}) {\n const ret = parseFieldMap(fieldMap, { ...this.expressionData, ...dataSource})\n return ret\n },\n async submitRequestTrigger (props = {}) {\n const { url, requestType, headers = {}, params = {}, fieldMap = {} } = this.submitRequest\n const currentUrl = this.executeExpressionForUrl(url)\n if (!currentUrl) return\n const ret = await net[requestType.toLowerCase()](currentUrl, { ...params, ...this.execFieldMap(fieldMap, { ...this.formModels() }), ...this.formModels() }, { headers }).then(resp => {\n this.$emit(BUILT_IN_EVENT_NAMES.SUBMIT, { ...props, formModel: { ...this.formModels(), ...resp.data || {} } })\n return resp.data\n })\n return ret\n },\n async infoRequestTrigger () {\n if (PAGE_STATUS.CREATE == this.routeMetaMode) return\n const { url, requestType, params = {}, fieldMap = {}, headers = {} } = this.infoRequest\n const currentUrl = this.executeExpressionForUrl(url)\n if (!currentUrl) return\n net[requestType.toLowerCase()](currentUrl, { ...params, ...this.execFieldMap(fieldMap) }, { ...headers }).then(resp => {\n const { data = {} } = resp\n this.setFieldsValue(data)\n this.$emit(RESERVE_EVENT_NAMES.INIT_FORM, { ...data })\n })\n },\n async preRequestTrigger () {\n const { url, requestType = 'GET', params = {}, fieldMap = {}, headers = {} } = this.preRequest\n const currentUrl = this.executeExpressionForUrl(url)\n if (!currentUrl) return\n const { data } = await net[requestType.toLowerCase()](currentUrl, { ...params, ...this.execFieldMap(fieldMap) }, { ...headers })\n this.setFieldsValue(data)\n this.$emit(RESERVE_EVENT_NAMES.INIT_FORM, { ...data })\n },\n executeExpressionForUrl (url) {\n return type.isApi(url) ? url : this.executeExpression(url)\n },\n setFieldsValue (props) {\n this.$refs[this.formRef].setFieldsValue(props)\n },\n validateFields () {\n return this.$refs[this.formRef].validateFields()\n },\n [BUILT_IN_EVENT_NAMES.SUBMIT] (props = {}) {\n if (this.globalDisabled) return\n const status = this.$refs[this.formRef].validateFields()\n if (status) {\n //TODO fieldMap\n return this.submitRequestTrigger(props)\n } else {\n return false\n }\n },\n [BUILT_IN_EVENT_NAMES.CANCEL] (props = {}) {\n this.$emit(BUILT_IN_EVENT_NAMES.CANCEL, { ...props })\n }\n },\n async mounted() {\n await this.preRequestTrigger()\n await this.infoRequestTrigger()\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.form__model--wrapper {\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #fff;\n .form-model__title {\n height: 56px;\n padding: 0 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n border-bottom: 1px solid var(--idooel-form-title-border-color);\n }\n .form-model__content {\n padding: 16px;\n }\n .form-model__footer {\n /* width: 100%; */\n height: 64px;\n position: fixed;\n bottom: 0;\n display: flex;\n float: right;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n }\n}\n</style>",".form__model--wrapper {\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #fff;\n}\n.form__model--wrapper .form-model__title {\n height: 56px;\n padding: 0 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n border-bottom: 1px solid var(--idooel-form-title-border-color);\n}\n.form__model--wrapper .form-model__content {\n padding: 16px;\n}\n.form__model--wrapper .form-model__footer {\n /* width: 100%; */\n height: 64px;\n position: fixed;\n bottom: 0;\n display: flex;\n float: right;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3659
3661
|
|
|
3660
3662
|
};
|
|
3661
3663
|
/* scoped */
|
|
3662
|
-
const __vue_scope_id__$
|
|
3664
|
+
const __vue_scope_id__$v = "data-v-02358f9a";
|
|
3663
3665
|
/* module identifier */
|
|
3664
|
-
const __vue_module_identifier__$
|
|
3666
|
+
const __vue_module_identifier__$v = undefined;
|
|
3665
3667
|
/* functional template */
|
|
3666
|
-
const __vue_is_functional_template__$
|
|
3668
|
+
const __vue_is_functional_template__$v = false;
|
|
3667
3669
|
/* style inject SSR */
|
|
3668
3670
|
|
|
3669
3671
|
/* style inject shadow dom */
|
|
3670
3672
|
|
|
3671
3673
|
|
|
3672
3674
|
|
|
3673
|
-
const __vue_component__$
|
|
3674
|
-
{ render: __vue_render__$
|
|
3675
|
-
__vue_inject_styles__$
|
|
3676
|
-
__vue_script__$
|
|
3677
|
-
__vue_scope_id__$
|
|
3678
|
-
__vue_is_functional_template__$
|
|
3679
|
-
__vue_module_identifier__$
|
|
3675
|
+
const __vue_component__$v = /*#__PURE__*/normalizeComponent(
|
|
3676
|
+
{ render: __vue_render__$v, staticRenderFns: __vue_staticRenderFns__$v },
|
|
3677
|
+
__vue_inject_styles__$v,
|
|
3678
|
+
__vue_script__$v,
|
|
3679
|
+
__vue_scope_id__$v,
|
|
3680
|
+
__vue_is_functional_template__$v,
|
|
3681
|
+
__vue_module_identifier__$v,
|
|
3680
3682
|
false,
|
|
3681
3683
|
createInjector,
|
|
3682
3684
|
undefined,
|
|
@@ -3684,7 +3686,7 @@ __vue_render__$t._withStripped = true;
|
|
|
3684
3686
|
);
|
|
3685
3687
|
|
|
3686
3688
|
//
|
|
3687
|
-
var script$
|
|
3689
|
+
var script$u = {
|
|
3688
3690
|
name: 'ele-step-model',
|
|
3689
3691
|
props: {
|
|
3690
3692
|
stepMeta: {
|
|
@@ -3875,10 +3877,10 @@ var script$s = {
|
|
|
3875
3877
|
};
|
|
3876
3878
|
|
|
3877
3879
|
/* script */
|
|
3878
|
-
const __vue_script__$
|
|
3880
|
+
const __vue_script__$u = script$u;
|
|
3879
3881
|
|
|
3880
3882
|
/* template */
|
|
3881
|
-
var __vue_render__$
|
|
3883
|
+
var __vue_render__$u = function () {
|
|
3882
3884
|
var _vm = this;
|
|
3883
3885
|
var _h = _vm.$createElement;
|
|
3884
3886
|
var _c = _vm._self._c || _h;
|
|
@@ -3944,34 +3946,34 @@ var __vue_render__$s = function () {
|
|
|
3944
3946
|
),
|
|
3945
3947
|
])
|
|
3946
3948
|
};
|
|
3947
|
-
var __vue_staticRenderFns__$
|
|
3948
|
-
__vue_render__$
|
|
3949
|
+
var __vue_staticRenderFns__$u = [];
|
|
3950
|
+
__vue_render__$u._withStripped = true;
|
|
3949
3951
|
|
|
3950
3952
|
/* style */
|
|
3951
|
-
const __vue_inject_styles__$
|
|
3953
|
+
const __vue_inject_styles__$u = function (inject) {
|
|
3952
3954
|
if (!inject) return
|
|
3953
3955
|
inject("data-v-1919f228_0", { source: ".ele-step-model__wrapper[data-v-1919f228] {\n width: 100%;\n height: 100vh;\n position: relative;\n}\n.ele-step-model__wrapper .ele-step-model__step--wrapper[data-v-1919f228] {\n width: 100%;\n height: 64px;\n padding: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n background: #fff;\n}\n.ele-step-model__wrapper .ele-step-model__step--wrapper .ele-steps .ant-steps-item[data-v-1919f228] {\n text-align: left;\n}\n.ele-step-model__wrapper .ele-step-model__content--wrapper[data-v-1919f228] {\n width: 100%;\n width: 100%;\n margin-top: 16px;\n margin-bottom: 16px;\n height: calc(100vh - 64px - 64px - 16px - 16px);\n overflow: auto;\n}\n.ele-step-model__wrapper .ele-step-model__footer--wrapper[data-v-1919f228] {\n width: 100%;\n height: 64px;\n background: #fff;\n position: absolute;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/models/step-model/src/index.vue","index.vue"],"names":[],"mappings":"AAwLA;EACA,WAAA;EACA,aAAA;EACA,kBAAA;ACvLA;ADwLA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,gBAAA;ACtLA;ADwLA;EACA,gBAAA;ACtLA;AD0LA;EACA,WAAA;EACA,WAAA;EACA,gBAAA;EACA,mBAAA;EACA,+CAAA;EACA,cAAA;ACxLA;AD0LA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;EACA,kBAAA;EACA,SAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,oBAAA;ACxLA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"ele-step-model__wrapper\">\n <div class=\"ele-step-model__step--wrapper\">\n <a-steps class=\"ele-steps\" :current=\"current\" size=\"small\">\n <a-step v-for=\"step in elements\" :title=\"step.title\" :key=\"step.key\" />\n </a-steps>\n </div>\n <div class=\"ele-step-model__content--wrapper\">\n <template v-for=\"name in scopedSlotsNames\">\n <div :key=\"name\" v-if=\"currentSlotName == name\" :class=\"['ele-step-model__slot', `ele-step-model__slot--${name}`]\">\n <slot :name=\"name\"></slot>\n </div>\n </template>\n </div>\n <div class=\"ele-step-model__footer--wrapper\">\n <ele-button-group v-on=\"assignAttrForEvents\" :data-source=\"footerElements\"></ele-button-group>\n </div>\n </div>\n</template>\n\n<script>\nimport { BUILT_IN_EVENT_NAMES, CONTEXT } from '../../../utils'\nimport { parse } from '@idooel/expression'\nimport { type } from '@idooel/shared'\nexport default {\n name: 'ele-step-model',\n props: {\n stepMeta: {\n type: Object,\n default: () => ({})\n },\n footerMeta: {\n type: Object,\n default: () => ({})\n }\n },\n data() {\n return {\n current: 0,\n currentSlotComponentRef: null,\n innerFooterElements: []\n }\n },\n provide() {\n return {\n [CONTEXT]: () => {\n return {\n ...this.expressionData\n }\n }\n }\n },\n computed: {\n routeMetaDisabled () {\n return this.executeExpression(this.$route.meta.disabled)\n },\n expressionData () {\n return {\n current: this.current,\n _route: this.$route.query,\n _routeMeta: this.$route.meta\n }\n },\n currentSlotName () {\n return this.scopedSlotsNames[this.current]\n },\n footerElements () {\n return this.innerFooterElements\n },\n assignAttrForEvents () {\n const events = this.footerElements.reduce((ret, ele) => {\n ret[ele.eventName] = (e) => {\n this.evalShowExpressionForFooterElements()\n this.$emit(ele.eventName || 'click', { ...e, exposed: this.exposedMethods })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events,\n [BUILT_IN_EVENT_NAMES.NEXT]: this[BUILT_IN_EVENT_NAMES.NEXT],\n [BUILT_IN_EVENT_NAMES.PREVIOUS]: this[BUILT_IN_EVENT_NAMES.PREVIOUS],\n [BUILT_IN_EVENT_NAMES.SUBMIT]: this[BUILT_IN_EVENT_NAMES.SUBMIT]\n }\n },\n activeIndex () {\n const { activeIndex } = this.stepMeta\n return activeIndex\n },\n elements () {\n const { elements } = this.stepMeta\n return elements\n },\n scopedSlotsNames () {\n const slotNames = this.elements.map(item => item.key)\n return slotNames\n },\n exposedMethods () {\n return {\n slotRef: this.currentSlotComponentRef,\n setCurrentStep: this.setCurrentStep,\n next: this.nextStep,\n prev: this.prevStep,\n current: this.current\n }\n }\n },\n watch: {\n activeIndex: {\n handler (idx) {\n this.current = idx\n },\n immediate: true\n },\n current: {\n handler () {\n this.$nextTick(() => {\n this.currentSlotComponentRef = this.getCurrentSlotComponentRef()\n })\n },\n immediate: true\n }\n },\n created () {\n const { elements } = this.footerMeta\n this.innerFooterElements = elements.call(this)\n this.evalShowExpressionForFooterElements()\n },\n methods: {\n executeExpression (expression) {\n if (type.isBool(expression)) return expression\n if (type.isEmpty(expression)) return false\n return parse(expression, { ...this.expressionData })\n },\n evalShowExpressionForFooterElements () {\n this.innerFooterElements = this.innerFooterElements.map(element => {\n const { show = true, key, eventName } = element\n if(key == BUILT_IN_EVENT_NAMES.SUBMIT || eventName == BUILT_IN_EVENT_NAMES.SUBMIT) {\n // built in submit button should according to the route meta disabled\n this.$set(element, '_show', this.executeExpression(show, this.expressionData) && !this.routeMetaDisabled)\n return element\n }\n show && this.$set(element, '_show', this.executeExpression(show, this.expressionData))\n return element\n })\n },\n getCurrentSlotComponentRef () {\n const includeMetaCmp = this.$children.find(child => child.meta)\n if (!includeMetaCmp) return null\n const { $children: components } = includeMetaCmp\n const target = components.find(cmp => cmp.$options._componentTag === 'ele-tpl')\n return target.getModel ? target.getModel() : null\n },\n setCurrentStep (index) {\n this.current = index\n this.evalShowExpressionForFooterElements()\n },\n nextStep () {\n if (this.current >= this.elements.length - 1) return\n this.current ++\n this.evalShowExpressionForFooterElements()\n },\n prevStep () {\n if (this.current <= 0) return\n this.current --\n this.evalShowExpressionForFooterElements()\n },\n [BUILT_IN_EVENT_NAMES.NEXT] (props) {\n this.$emit(BUILT_IN_EVENT_NAMES.NEXT, { ...props, exposed: { ...this.exposedMethods } })\n },\n [BUILT_IN_EVENT_NAMES.PREVIOUS] (props) {\n this.$emit(BUILT_IN_EVENT_NAMES.PREVIOUS, { ...props, exposed: { ...this.exposedMethods } })\n },\n [BUILT_IN_EVENT_NAMES.SUBMIT] (props) {\n const currentComponent = this.getCurrentSlotComponentRef() || {}\n const hasSubmitMethod = currentComponent.hasOwnProperty(BUILT_IN_EVENT_NAMES.SUBMIT)\n hasSubmitMethod && currentComponent[BUILT_IN_EVENT_NAMES.SUBMIT]()\n this.$emit(BUILT_IN_EVENT_NAMES.SUBMIT, { ...props, exposed: { ...this.exposedMethods } })\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.ele-step-model__wrapper {\n width: 100%;\n height: 100vh;\n position: relative;\n .ele-step-model__step--wrapper {\n width: 100%;\n height: 64px;\n padding: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n background: #fff;\n .ele-steps {\n .ant-steps-item {\n text-align: left;\n }\n }\n }\n .ele-step-model__content--wrapper {\n width: 100%;\n width: 100%;\n margin-top: 16px;\n margin-bottom: 16px;\n height: calc(100vh - 64px - 64px - 16px - 16px);\n overflow: auto;\n }\n .ele-step-model__footer--wrapper {\n width: 100%;\n height: 64px;\n background: #fff;\n position: absolute;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n }\n}\n</style>import meta from '@/views/tree-table-page/meta'import meta from '@/views/tree-table-page/meta'\n\n",".ele-step-model__wrapper {\n width: 100%;\n height: 100vh;\n position: relative;\n}\n.ele-step-model__wrapper .ele-step-model__step--wrapper {\n width: 100%;\n height: 64px;\n padding: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n background: #fff;\n}\n.ele-step-model__wrapper .ele-step-model__step--wrapper .ele-steps .ant-steps-item {\n text-align: left;\n}\n.ele-step-model__wrapper .ele-step-model__content--wrapper {\n width: 100%;\n width: 100%;\n margin-top: 16px;\n margin-bottom: 16px;\n height: calc(100vh - 64px - 64px - 16px - 16px);\n overflow: auto;\n}\n.ele-step-model__wrapper .ele-step-model__footer--wrapper {\n width: 100%;\n height: 64px;\n background: #fff;\n position: absolute;\n bottom: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: end;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
3954
3956
|
|
|
3955
3957
|
};
|
|
3956
3958
|
/* scoped */
|
|
3957
|
-
const __vue_scope_id__$
|
|
3959
|
+
const __vue_scope_id__$u = "data-v-1919f228";
|
|
3958
3960
|
/* module identifier */
|
|
3959
|
-
const __vue_module_identifier__$
|
|
3961
|
+
const __vue_module_identifier__$u = undefined;
|
|
3960
3962
|
/* functional template */
|
|
3961
|
-
const __vue_is_functional_template__$
|
|
3963
|
+
const __vue_is_functional_template__$u = false;
|
|
3962
3964
|
/* style inject SSR */
|
|
3963
3965
|
|
|
3964
3966
|
/* style inject shadow dom */
|
|
3965
3967
|
|
|
3966
3968
|
|
|
3967
3969
|
|
|
3968
|
-
const __vue_component__$
|
|
3969
|
-
{ render: __vue_render__$
|
|
3970
|
-
__vue_inject_styles__$
|
|
3971
|
-
__vue_script__$
|
|
3972
|
-
__vue_scope_id__$
|
|
3973
|
-
__vue_is_functional_template__$
|
|
3974
|
-
__vue_module_identifier__$
|
|
3970
|
+
const __vue_component__$u = /*#__PURE__*/normalizeComponent(
|
|
3971
|
+
{ render: __vue_render__$u, staticRenderFns: __vue_staticRenderFns__$u },
|
|
3972
|
+
__vue_inject_styles__$u,
|
|
3973
|
+
__vue_script__$u,
|
|
3974
|
+
__vue_scope_id__$u,
|
|
3975
|
+
__vue_is_functional_template__$u,
|
|
3976
|
+
__vue_module_identifier__$u,
|
|
3975
3977
|
false,
|
|
3976
3978
|
createInjector,
|
|
3977
3979
|
undefined,
|
|
@@ -3979,7 +3981,7 @@ __vue_render__$s._withStripped = true;
|
|
|
3979
3981
|
);
|
|
3980
3982
|
|
|
3981
3983
|
//
|
|
3982
|
-
var script$
|
|
3984
|
+
var script$t = {
|
|
3983
3985
|
name: 'ele-tpl',
|
|
3984
3986
|
props: {
|
|
3985
3987
|
modelName: {
|
|
@@ -3987,10 +3989,10 @@ var script$r = {
|
|
|
3987
3989
|
}
|
|
3988
3990
|
},
|
|
3989
3991
|
components: {
|
|
3990
|
-
[__vue_component__$
|
|
3992
|
+
[__vue_component__$x.name]: __vue_component__$x,
|
|
3993
|
+
[__vue_component__$w.name]: __vue_component__$w,
|
|
3991
3994
|
[__vue_component__$u.name]: __vue_component__$u,
|
|
3992
|
-
[__vue_component__$
|
|
3993
|
-
[__vue_component__$t.name]: __vue_component__$t
|
|
3995
|
+
[__vue_component__$v.name]: __vue_component__$v
|
|
3994
3996
|
},
|
|
3995
3997
|
computed: {
|
|
3996
3998
|
modelNameValidator() {
|
|
@@ -4012,10 +4014,10 @@ var script$r = {
|
|
|
4012
4014
|
};
|
|
4013
4015
|
|
|
4014
4016
|
/* script */
|
|
4015
|
-
const __vue_script__$
|
|
4017
|
+
const __vue_script__$t = script$t;
|
|
4016
4018
|
|
|
4017
4019
|
/* template */
|
|
4018
|
-
var __vue_render__$
|
|
4020
|
+
var __vue_render__$t = function () {
|
|
4019
4021
|
var _vm = this;
|
|
4020
4022
|
var _h = _vm.$createElement;
|
|
4021
4023
|
var _c = _vm._self._c || _h;
|
|
@@ -4053,44 +4055,44 @@ var __vue_render__$r = function () {
|
|
|
4053
4055
|
domProps: { innerHTML: _vm._s(_vm.modelNameValidator.message) },
|
|
4054
4056
|
})
|
|
4055
4057
|
};
|
|
4056
|
-
var __vue_staticRenderFns__$
|
|
4057
|
-
__vue_render__$
|
|
4058
|
+
var __vue_staticRenderFns__$t = [];
|
|
4059
|
+
__vue_render__$t._withStripped = true;
|
|
4058
4060
|
|
|
4059
4061
|
/* style */
|
|
4060
|
-
const __vue_inject_styles__$
|
|
4062
|
+
const __vue_inject_styles__$t = function (inject) {
|
|
4061
4063
|
if (!inject) return
|
|
4062
4064
|
inject("data-v-cb05e1de_0", { source: ".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\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,eAAe;AACjB;AAEA;EACE,+BAA+B;EAC/B,sCAAsC;EACtC,sCAAsC;EACtC,sCAAsC;EACtC,uCAAuC;EACvC,uCAAuC;EACvC,uCAAuC;EACvC,mDAAmD;EACnD,4BAA4B;EAC5B,4BAA4B;EAC5B,0BAA0B;EAC1B,wBAAwB;EACxB,8BAA8B;EAC9B,+BAA+B;EAC/B,qCAAqC;EACrC,gCAAgC;EAChC,4BAA4B;EAC5B,qDAAqD;EACrD,kDAAkD;EAClD,gDAAgD;EAChD,gCAAgC;EAChC,uCAAuC;EACvC,yBAAyB;EACzB,yBAAyB;EACzB,oCAAoC;AACtC;AAEA;EACE,4DAA4D;AAC9D;AAEA;EACE,4DAA4D;AAC9D;;AAEA,oCAAoC","file":"index.vue","sourcesContent":[".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
4063
4065
|
|
|
4064
4066
|
};
|
|
4065
4067
|
/* scoped */
|
|
4066
|
-
const __vue_scope_id__$
|
|
4068
|
+
const __vue_scope_id__$t = undefined;
|
|
4067
4069
|
/* module identifier */
|
|
4068
|
-
const __vue_module_identifier__$
|
|
4070
|
+
const __vue_module_identifier__$t = undefined;
|
|
4069
4071
|
/* functional template */
|
|
4070
|
-
const __vue_is_functional_template__$
|
|
4072
|
+
const __vue_is_functional_template__$t = false;
|
|
4071
4073
|
/* style inject SSR */
|
|
4072
4074
|
|
|
4073
4075
|
/* style inject shadow dom */
|
|
4074
4076
|
|
|
4075
4077
|
|
|
4076
4078
|
|
|
4077
|
-
const __vue_component__$
|
|
4078
|
-
{ render: __vue_render__$
|
|
4079
|
-
__vue_inject_styles__$
|
|
4080
|
-
__vue_script__$
|
|
4081
|
-
__vue_scope_id__$
|
|
4082
|
-
__vue_is_functional_template__$
|
|
4083
|
-
__vue_module_identifier__$
|
|
4079
|
+
const __vue_component__$t = /*#__PURE__*/normalizeComponent(
|
|
4080
|
+
{ render: __vue_render__$t, staticRenderFns: __vue_staticRenderFns__$t },
|
|
4081
|
+
__vue_inject_styles__$t,
|
|
4082
|
+
__vue_script__$t,
|
|
4083
|
+
__vue_scope_id__$t,
|
|
4084
|
+
__vue_is_functional_template__$t,
|
|
4085
|
+
__vue_module_identifier__$t,
|
|
4084
4086
|
false,
|
|
4085
4087
|
createInjector,
|
|
4086
4088
|
undefined,
|
|
4087
4089
|
undefined
|
|
4088
4090
|
);
|
|
4089
4091
|
|
|
4090
|
-
__vue_component__$
|
|
4092
|
+
__vue_component__$t.install = Vue => Vue.component(__vue_component__$t.name, __vue_component__$t);
|
|
4091
4093
|
|
|
4092
4094
|
//
|
|
4093
|
-
var script$
|
|
4095
|
+
var script$s = {
|
|
4094
4096
|
name: 'ele-form',
|
|
4095
4097
|
props: {
|
|
4096
4098
|
disabled: {
|
|
@@ -4227,10 +4229,10 @@ var script$q = {
|
|
|
4227
4229
|
};
|
|
4228
4230
|
|
|
4229
4231
|
/* script */
|
|
4230
|
-
const __vue_script__$
|
|
4232
|
+
const __vue_script__$s = script$s;
|
|
4231
4233
|
|
|
4232
4234
|
/* template */
|
|
4233
|
-
var __vue_render__$
|
|
4235
|
+
var __vue_render__$s = function () {
|
|
4234
4236
|
var _vm = this;
|
|
4235
4237
|
var _h = _vm.$createElement;
|
|
4236
4238
|
var _c = _vm._self._c || _h;
|
|
@@ -4664,41 +4666,41 @@ var __vue_render__$q = function () {
|
|
|
4664
4666
|
1
|
|
4665
4667
|
)
|
|
4666
4668
|
};
|
|
4667
|
-
var __vue_staticRenderFns__$
|
|
4668
|
-
__vue_render__$
|
|
4669
|
+
var __vue_staticRenderFns__$s = [];
|
|
4670
|
+
__vue_render__$s._withStripped = true;
|
|
4669
4671
|
|
|
4670
4672
|
/* style */
|
|
4671
|
-
const __vue_inject_styles__$
|
|
4673
|
+
const __vue_inject_styles__$s = function (inject) {
|
|
4672
4674
|
if (!inject) return
|
|
4673
4675
|
inject("data-v-80dc2882_0", { source: ".ele__form--wrapper[data-v-80dc2882] {\n background: #fff;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/form/src/index.vue","index.vue"],"names":[],"mappings":"AAwPA;EACA,gBAAA;ACvPA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"ele__form--wrapper\">\n <a-form :form=\"form\" layout=\"vertical\" class=\"ant-advanced-search-form\">\n <a-row :gutter=\"24\">\n <template v-for=\"ele in elements\">\n <a-col v-if=\"executeExpression(ele._show)\" :span=\"ele.span\" :key=\"ele.name\">\n <template v-if=\"ele.type == 'Input'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-input \n @change=\"onChange($event, ele)\" \n :disabled=\"executeExpression(ele._disabled)\" \n :max-length=\"ele.maxLength\" \n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n style=\"width:100%;\">\n </ele-input>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'Textarea'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-textarea \n @change=\"onChange($event, ele)\"\n :max-length=\"ele.maxLength\"\n :autosize=\"ele.autosize\"\n :disabled=\"executeExpression(ele._disabled)\"\n :allow-clear=\"ele.allowClear\"\n :placeholder=\"ele.placeholder\"\n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\"\n style=\"width:100%;\">\n </ele-textarea>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'Select'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-select \n :data-source=\"ele.optionList\" \n :disabled=\"executeExpression(ele._disabled)\"\n :multiple=\"ele.multiple\"\n :mode=\"ele.mode\"\n :code=\"ele.code\" \n :params=\"ele.params\" \n @change=\"onChange($event, ele)\"\n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n style=\"width:100%;\">\n </ele-select>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'ele-upload'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-upload v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n :ext=\"ele.ext\"\n :multiple=\"ele.multiple\"\n :accept=\"ele.accept\"\n :extensions=\"ele.extensions\"\n :size=\"ele.size\"\n :icon=\"ele.icon\"\n :url=\"ele.url\"\n :message=\"ele.message\" \n style=\"width:100%;\">\n </ele-upload>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'ele-date-range'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-date-range \n :disabled=\"executeExpression(ele._disabled)\" \n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n style=\"width:100%;\">\n </ele-date-range>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'ele-date'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-date\n :format=\"ele.format\"\n :mode=\"ele.mode\"\n :show-time=\"ele.showTime\"\n :show-today=\"ele.showToday\"\n :value-format=\"ele.valueFormat\"\n :disabled=\"executeExpression(ele._disabled)\" \n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n style=\"width:100%;\">\n </ele-date>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'SelectEntity'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-select-entity \n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n style=\"width:100%;\">\n </ele-select-entity>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'InputNumber'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-input-number \n @change=\"onChange($event, ele)\" \n :precision=\"ele.precision\" \n :disabled=\"executeExpression(ele._disabled)\" \n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n v-bind=\"ele.props\" \n style=\"width:100%;\">\n </ele-input-number>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'Checkbox'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-checkbox \n :data-source=\"ele.optionList\" \n :disabled=\"executeExpression(ele._disabled)\" \n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n style=\"width:100%;\">\n </ele-checkbox>\n </a-form-item>\n </template>\n <template v-else-if=\"ele.type == 'Radio'\">\n <a-form-item :label=\"`${ele.label}:`\">\n <ele-radio \n @change=\"onChange($event, ele)\" \n :disabled=\"executeExpression(ele._disabled)\" \n :data-source=\"ele.optionList\" \n v-decorator=\"[ele.name, { rules: rebuildRules(ele.rules) }]\" \n style=\"width:100%;\">\n </ele-radio>\n </a-form-item>\n </template>\n </a-col>\n </template>\n </a-row>\n </a-form>\n </div>\n</template>\n\n<script>\nimport { parse } from '@idooel/expression'\nimport { type } from '@idooel/shared'\nexport default {\n name: 'ele-form',\n props: {\n disabled: {\n type: [Boolean, String],\n default: '_routeMeta.disabled'\n },\n formName: {\n type: [Number, String],\n default: 'coordinated'\n },\n elements: {\n type: Array,\n default: () => []\n }\n },\n data () {\n return {}\n },\n computed: {\n globalDisabled () {\n return this.executeExpression(this.disabled)\n },\n form () {\n return this.$form.createForm(this, { name: this.formName })\n },\n exposedMethods () {\n return {\n setFieldsValue: this.setFieldsValue,\n getFieldsValue: this.getFieldsValue\n }\n }\n },\n methods: {\n rebuildRules (rules = []) {\n //TODO\n rules.map(rule => {\n const { validator } = rule\n if (validator) {\n validator.formModel = this.getFieldsValue()\n validator.exposed = this.exposedMethods\n }\n })\n return rules\n },\n dispatchExpression () {\n this.evalDisabledExpression()\n this.evalShowExpression()\n },\n evalDisabledExpression () {\n this.elements.forEach(ele => {\n if (this.globalDisabled) return this.$set(ele, '_disabled', true)\n const { disabled } = ele\n const ret = this.executeExpression(disabled)\n this.$set(ele, '_disabled', ret)\n })\n },\n evalShowExpression () {\n this.elements.forEach(ele => {\n const { show = true } = ele\n const ret = this.executeExpression(show)\n this.$set(ele, '_show', ret)\n })\n },\n executeExpression (expression) {\n if (type.isBool(expression)) return expression\n if (type.isEmpty(expression)) return false\n return parse(expression, { ...this.getFieldsValue(), _route: this.$route.query, _routeMeta: this.$route.meta })\n },\n onChange (value, props) {\n const { name } = props\n this.setFieldsValue({ [name]: value })\n this.dispatchExpression()\n this.$emit('change', { value, props, exposed: { ...this.exposedMethods } })\n },\n collectDefaultValues () {\n const ret = this.elements.reduce((ret, props) => {\n const { name, defaultValue } = props\n if (defaultValue) {\n ret[name] = defaultValue\n }\n return ret\n }, {})\n return ret\n },\n setDefaultValues () {\n const defaultValues = this.collectDefaultValues()\n this.setFieldsValue(defaultValues)\n },\n validateFields () {\n let ret = false\n this.form.validateFields((error, values) => {\n ret = !error\n })\n return ret\n },\n setFieldsValue (props = {}) {\n this.form.setFieldsValue(props)\n },\n getFieldsValue () {\n return this.form.getFieldsValue()\n }\n },\n mounted() {\n this.dispatchExpression()\n this.$nextTick(() => {\n this.setDefaultValues()\n })\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.ele__form--wrapper {\n background: #fff;\n .ant-form-item {\n }\n}\n</style>",".ele__form--wrapper {\n background: #fff;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
4674
4676
|
|
|
4675
4677
|
};
|
|
4676
4678
|
/* scoped */
|
|
4677
|
-
const __vue_scope_id__$
|
|
4679
|
+
const __vue_scope_id__$s = "data-v-80dc2882";
|
|
4678
4680
|
/* module identifier */
|
|
4679
|
-
const __vue_module_identifier__$
|
|
4681
|
+
const __vue_module_identifier__$s = undefined;
|
|
4680
4682
|
/* functional template */
|
|
4681
|
-
const __vue_is_functional_template__$
|
|
4683
|
+
const __vue_is_functional_template__$s = false;
|
|
4682
4684
|
/* style inject SSR */
|
|
4683
4685
|
|
|
4684
4686
|
/* style inject shadow dom */
|
|
4685
4687
|
|
|
4686
4688
|
|
|
4687
4689
|
|
|
4688
|
-
const __vue_component__$
|
|
4689
|
-
{ render: __vue_render__$
|
|
4690
|
-
__vue_inject_styles__$
|
|
4691
|
-
__vue_script__$
|
|
4692
|
-
__vue_scope_id__$
|
|
4693
|
-
__vue_is_functional_template__$
|
|
4694
|
-
__vue_module_identifier__$
|
|
4690
|
+
const __vue_component__$s = /*#__PURE__*/normalizeComponent(
|
|
4691
|
+
{ render: __vue_render__$s, staticRenderFns: __vue_staticRenderFns__$s },
|
|
4692
|
+
__vue_inject_styles__$s,
|
|
4693
|
+
__vue_script__$s,
|
|
4694
|
+
__vue_scope_id__$s,
|
|
4695
|
+
__vue_is_functional_template__$s,
|
|
4696
|
+
__vue_module_identifier__$s,
|
|
4695
4697
|
false,
|
|
4696
4698
|
createInjector,
|
|
4697
4699
|
undefined,
|
|
4698
4700
|
undefined
|
|
4699
4701
|
);
|
|
4700
4702
|
|
|
4701
|
-
__vue_component__$
|
|
4703
|
+
__vue_component__$s.install = Vue => Vue.component(__vue_component__$s.name, __vue_component__$s);
|
|
4702
4704
|
|
|
4703
4705
|
//
|
|
4704
4706
|
//
|
|
@@ -4712,7 +4714,7 @@ __vue_component__$q.install = Vue => Vue.component(__vue_component__$q.name, __v
|
|
|
4712
4714
|
//
|
|
4713
4715
|
//
|
|
4714
4716
|
|
|
4715
|
-
var script$
|
|
4717
|
+
var script$r = {
|
|
4716
4718
|
name: 'ele-alert',
|
|
4717
4719
|
props: {
|
|
4718
4720
|
type: {
|
|
@@ -4741,10 +4743,10 @@ var script$p = {
|
|
|
4741
4743
|
};
|
|
4742
4744
|
|
|
4743
4745
|
/* script */
|
|
4744
|
-
const __vue_script__$
|
|
4746
|
+
const __vue_script__$r = script$r;
|
|
4745
4747
|
|
|
4746
4748
|
/* template */
|
|
4747
|
-
var __vue_render__$
|
|
4749
|
+
var __vue_render__$r = function () {
|
|
4748
4750
|
var _vm = this;
|
|
4749
4751
|
var _h = _vm.$createElement;
|
|
4750
4752
|
var _c = _vm._self._c || _h;
|
|
@@ -4760,44 +4762,44 @@ var __vue_render__$p = function () {
|
|
|
4760
4762
|
},
|
|
4761
4763
|
})
|
|
4762
4764
|
};
|
|
4763
|
-
var __vue_staticRenderFns__$
|
|
4764
|
-
__vue_render__$
|
|
4765
|
+
var __vue_staticRenderFns__$r = [];
|
|
4766
|
+
__vue_render__$r._withStripped = true;
|
|
4765
4767
|
|
|
4766
4768
|
/* style */
|
|
4767
|
-
const __vue_inject_styles__$
|
|
4769
|
+
const __vue_inject_styles__$r = function (inject) {
|
|
4768
4770
|
if (!inject) return
|
|
4769
4771
|
inject("data-v-ee7d6de4_0", { source: ".ele-alert[data-v-ee7d6de4] {\n text-align: left !important;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/alert/src/index.vue","index.vue"],"names":[],"mappings":"AA0CA;EACA,2BAAA;ACzCA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <a-alert\n class=\"ele-alert\"\n :message=\"message\" \n :description=\"description\" \n :type=\"type\"\n :closable=\"closable\"\n :closeText=\"closeText\"\n :show-icon=\"showIcon\" />\n</template>\n\n<script>\nexport default {\n name: 'ele-alert',\n props: {\n type: {\n type: String,\n default: 'success'\n },\n showIcon: {\n type: Boolean,\n default: true\n },\n message: {\n type: String,\n default: 'Success Tips'\n },\n description: {\n type: String\n },\n closable: {\n type: Boolean,\n default: true\n },\n closeText: {\n type: String\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.ele-alert {\n text-align: left !important;\n}\n</style>",".ele-alert {\n text-align: left !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
4770
4772
|
|
|
4771
4773
|
};
|
|
4772
4774
|
/* scoped */
|
|
4773
|
-
const __vue_scope_id__$
|
|
4775
|
+
const __vue_scope_id__$r = "data-v-ee7d6de4";
|
|
4774
4776
|
/* module identifier */
|
|
4775
|
-
const __vue_module_identifier__$
|
|
4777
|
+
const __vue_module_identifier__$r = undefined;
|
|
4776
4778
|
/* functional template */
|
|
4777
|
-
const __vue_is_functional_template__$
|
|
4779
|
+
const __vue_is_functional_template__$r = false;
|
|
4778
4780
|
/* style inject SSR */
|
|
4779
4781
|
|
|
4780
4782
|
/* style inject shadow dom */
|
|
4781
4783
|
|
|
4782
4784
|
|
|
4783
4785
|
|
|
4784
|
-
const __vue_component__$
|
|
4785
|
-
{ render: __vue_render__$
|
|
4786
|
-
__vue_inject_styles__$
|
|
4787
|
-
__vue_script__$
|
|
4788
|
-
__vue_scope_id__$
|
|
4789
|
-
__vue_is_functional_template__$
|
|
4790
|
-
__vue_module_identifier__$
|
|
4786
|
+
const __vue_component__$r = /*#__PURE__*/normalizeComponent(
|
|
4787
|
+
{ render: __vue_render__$r, staticRenderFns: __vue_staticRenderFns__$r },
|
|
4788
|
+
__vue_inject_styles__$r,
|
|
4789
|
+
__vue_script__$r,
|
|
4790
|
+
__vue_scope_id__$r,
|
|
4791
|
+
__vue_is_functional_template__$r,
|
|
4792
|
+
__vue_module_identifier__$r,
|
|
4791
4793
|
false,
|
|
4792
4794
|
createInjector,
|
|
4793
4795
|
undefined,
|
|
4794
4796
|
undefined
|
|
4795
4797
|
);
|
|
4796
4798
|
|
|
4797
|
-
__vue_component__$
|
|
4799
|
+
__vue_component__$r.install = Vue => Vue.component(__vue_component__$r.name, __vue_component__$r);
|
|
4798
4800
|
|
|
4799
4801
|
//
|
|
4800
|
-
var script$
|
|
4802
|
+
var script$q = {
|
|
4801
4803
|
name: 'ele-upload',
|
|
4802
4804
|
components: {
|
|
4803
4805
|
FileUpload
|
|
@@ -5138,10 +5140,10 @@ var script$o = {
|
|
|
5138
5140
|
};
|
|
5139
5141
|
|
|
5140
5142
|
/* script */
|
|
5141
|
-
const __vue_script__$
|
|
5143
|
+
const __vue_script__$q = script$q;
|
|
5142
5144
|
|
|
5143
5145
|
/* template */
|
|
5144
|
-
var __vue_render__$
|
|
5146
|
+
var __vue_render__$q = function () {
|
|
5145
5147
|
var _vm = this;
|
|
5146
5148
|
var _h = _vm.$createElement;
|
|
5147
5149
|
var _c = _vm._self._c || _h;
|
|
@@ -5303,41 +5305,41 @@ var __vue_render__$o = function () {
|
|
|
5303
5305
|
1
|
|
5304
5306
|
)
|
|
5305
5307
|
};
|
|
5306
|
-
var __vue_staticRenderFns__$
|
|
5307
|
-
__vue_render__$
|
|
5308
|
+
var __vue_staticRenderFns__$q = [];
|
|
5309
|
+
__vue_render__$q._withStripped = true;
|
|
5308
5310
|
|
|
5309
5311
|
/* style */
|
|
5310
|
-
const __vue_inject_styles__$
|
|
5312
|
+
const __vue_inject_styles__$q = function (inject) {
|
|
5311
5313
|
if (!inject) return
|
|
5312
5314
|
inject("data-v-d2929816_0", { source: "[data-v-d2929816] .ele-upload__inner {\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-d2929816] .ele-upload__inner:hover {\n border-color: var(--idooel-form-upload-border-hover-color);\n}\n.ele-upload__wrapper[data-v-d2929816] {\n width: 100%;\n}\n.ele-upload__wrapper .ele-upload__area[data-v-d2929816] {\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[data-v-d2929816] {\n color: var(--idooel-primary-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n font-size: 16x;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload[data-v-d2929816] {\n font-size: 48px;\n color: var(--idooel-primary-color);\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--icon .anticon[data-v-d2929816] {\n font-size: 48px;\n color: var(--idooel-primary-color);\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text[data-v-d2929816] {\n margin-left: 16px;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text .ele-upload__message[data-v-d2929816] {\n font-size: 16px;\n color: var(--idoole-black-088);\n text-align: left;\n}\n.ele-upload__wrapper .ele-upload__area .ele-upload__area--text .ele-upload__ext[data-v-d2929816] {\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-d2929816] {\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-d2929816] {\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-d2929816] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__delete[data-v-d2929816] {\n margin-left: 8px;\n}\n.ele-upload__wrapper .ele-files__wrapper .ele-file__item .ele-file__delete .ele-file__delete--icon[data-v-d2929816] {\n margin-left: 8px;\n cursor: pointer;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/upload/src/index.vue","index.vue"],"names":[],"mappings":"AA2WA;EACA,qBAAA;EACA,eAAA;EACA,wDAAA;EACA,yDAAA;EAIA,+CAAA;AC7WA;AD0WA;EACA,0DAAA;ACxWA;AD4WA;EACA,WAAA;ACzWA;AD0WA;EACA,aAAA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;ACxWA;ADyWA;EACA,kCAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,cAAA;ACvWA;ADwWA;EACA,eAAA;EACA,kCAAA;ACtWA;ADwWA;EACA,eAAA;EACA,kCAAA;ACtWA;ADyWA;EACA,iBAAA;ACvWA;ADwWA;EACA,eAAA;EACA,8BAAA;EACA,gBAAA;ACtWA;ADwWA;EACA,gBAAA;EACA,eAAA;EACA,6BAAA;ACtWA;AD2WA;EACA,WAAA;EACA,eAAA;EACA,iBAAA;EACA,+CAAA;EACA,8CAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;ACzWA;AD2WA;EACA,OAAA;EACA,gBAAA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;EACA,gBAAA;EACA,eAAA;ACzWA;AD0WA;EACA,gBAAA;EACA,uBAAA;ACxWA;AD2WA;EACA,gBAAA;ACzWA;AD0WA;EACA,gBAAA;EACA,eAAA;ACxWA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"ele-upload__wrapper\">\n <FileUpload\n class=\"ele-upload__inner\"\n v-show=\"isShowUploadContainer\"\n v-model=\"files\"\n :ref=\"uploadRef\"\n :drop=\"drop\"\n :chunk-enabled=\"chunkEnabled\"\n :chunk=\"chunkConfig\"\n :accept=\"accept\"\n :extensions=\"extensions\"\n :size=\"fileSizeLimit\"\n :post-action=\"postAction\"\n :multiple=\"multiple\"\n :headers=\"headers\"\n :maximum=\"getMaximum\"\n @input-file=\"onWatchInputFiles\"\n @input=\"onWatchFiles\"\n style=\"width: 100%;\">\n <section class=\"ele-upload__area\">\n <div class=\"ele-upload__area--icon\">\n <template v-if=\"iconIsZhWrod\">\n {{ icon }}\n </template>\n <template v-else>\n <ele-icon :type=\"icon\"></ele-icon>\n </template>\n </div>\n <div class=\"ele-upload__area--text\">\n <div class=\"ele-upload__message\" v-if=\"message\" v-html=\"message\"></div>\n <div class=\"ele-upload__message\" v-else>单击或拖动文件到该区域以上传</div>\n <div class=\"ele-upload__ext\" v-if=\"ext\" v-html=\"ext\"></div>\n <div class=\"ele-upload__ext\" v-else>文件小于{{ size }}M</div>\n </div>\n </section>\n </FileUpload>\n <section class=\"ele-files__wrapper\">\n <div class=\"ele-file__item\" v-for=\"(file, idx) in buildedFiles\" :key=\"idx\">\n <div class=\"ele-file__suffix--icon\">\n <ele-icon :type=\"fileSuffixIcon[file.suffix] ? fileSuffixIcon[file.suffix].name : 'icon-file'\"></ele-icon>\n </div>\n <div class=\"ele-file__name\">\n <div class=\"ele-file__inner\" @click=\"handleClickDownload(file)\">{{ file.name }}</div>\n <div v-if=\"(!file.success && file.progress)\" class=\"ele-uplpad__progress\">\n <a-progress :strokeWidth=\"2\" :percent=\"Number(file.progress)\" size=\"small\" />\n </div>\n </div>\n <div class=\"ele-file__delete\" v-if=\"file.success || file.error || !file.response\">\n <span class=\"ele-file__size\">{{ (file.size / byteConversion).toFixed(2) }}M</span>\n <span class=\"ele-file__delete--icon\" @click=\"handleClickDelete(file)\">\n <ele-icon type=\"delete\"></ele-icon>\n </span>\n </div>\n </div>\n </section>\n </div>\n</template>\n\n<script>\nimport FileUpload from 'vue-upload-component'\nimport { v4 as uuidv4 } from 'uuid'\nimport { route, net, type } from '@idooel/shared'\nexport default {\n name: 'ele-upload',\n components: {\n FileUpload\n },\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n url: {\n type: String,\n //TODO\n default: `zuul/api-file/workbench/file`\n },\n icon: {\n type: String,\n default: '上传'\n },\n size: {\n type: Number,\n default: 100\n },\n message: {\n type: String,\n default: '单击或拖动文件到该区域以上传'\n },\n ext: {\n type: String\n },\n extensions: {\n type: String\n },\n accept: {\n type: String\n },\n maximum: {\n type: Number,\n default: 10\n },\n multiple: {\n type: Boolean,\n default: false\n },\n drop: {\n type: Boolean,\n default: true\n },\n value: {\n type: [String, Array]\n },\n querys: {\n type: Object,\n default: () => ({\n _csrf: localStorage.getItem('token'),\n _t: new Date().valueOf()\n })\n },\n headers: {\n type: Object,\n default: () => ({\n 'X-XSRF-TOKEN': localStorage.getItem('token')\n })\n },\n byteConversion: {\n type: Number,\n default: 1024 * 1024\n },\n chunkEnabled: {\n type: Boolean,\n default: true\n }\n },\n data() {\n return {\n files: [],\n buildedFiles: [],\n saveToServerAsyncPageTimer: null\n }\n },\n watch: {\n value: {\n async handler (value) {\n if (type.isArray(value)) {\n // multiple\n } else if (type.isEmpty(value)) {\n this.files = []\n this.buildedFiles = []\n } else {\n // single\n this.fetchFileWithFileId()\n }\n },\n immediate: true\n }\n },\n computed: {\n prefixPath () {\n return window.prefixPath\n },\n iconIsZhWrod () {\n return type.isZhWord(this.icon)\n },\n getPayloads () {\n return {\n override: false\n }\n },\n chunkConfig () {\n return {\n action: `${this.prefixPath}zuul/api-file/workbench/file/temp/chunk/vue`,\n headers: {\n ...this.headers\n },\n minSize: 3 * this.byteConversion,\n maxActive: 3,\n maxRetries: 5,\n startBody: {\n override: true,\n path: '/cw'\n },\n uploadBody: {\n override: true,\n path: '/cw'\n },\n finishBody: {\n override: true,\n path: '/cw'\n }\n }\n },\n isFileUploadSuccessed () {\n return this.files.every(file => file.success)\n },\n isShowUploadContainer () {\n if (this.multiple) {\n if (this.isFileUploadSuccessed && this.buildedFiles.length >= this.maximum) {\n return false\n } else {\n return true\n }\n } else {\n const [file = {}] = this.buildedFiles\n if (this.buildedFiles.length < 1) {\n return true\n }\n if ((this.isFileUploadSuccessed && this.buildedFiles.length >= 1) || !file.response) {\n return false\n } else {\n return true\n }\n }\n },\n getMaximum () {\n return this.multiple ? this.maximum : 1\n },\n fileSizeLimit () {\n return this.size * this.byteConversion\n },\n postAction () {\n const ret = route.toQueryString(this.querys)\n return `${this.prefixPath}${this.url}?${ret}`\n },\n uploadRef () {\n return uuidv4()\n },\n fileSuffixIcon () {\n return {\n 'doc': { name: 'icon-doc' },\n 'html': { name: 'icon-html' },\n 'mp4': { name: 'icon-mp' },\n 'pdf': { name: 'icon-pdf' },\n 'ppt': { name: 'icon-ppt' },\n 'psd': { name: 'icon-psd' },\n 'rtf': { name: 'icon-rtf' },\n 'txt': { name: 'icon-txt' },\n 'vis': { name: 'icon-vis' },\n 'xls': { name: 'icon-xls' },\n 'xml': { name: 'icon-xml' },\n 'zip': { name: 'icon-zip' },\n 'jpg': { name: 'icon-img' },\n 'mp3': { name: 'icon-mp1' },\n }\n },\n fileIds () {\n const fileIds = this.buildedFiles.map(file => {\n return file.fileID\n })\n return this.multiple ? fileIds : fileIds[0]\n },\n fileResponseData () {\n return this.multiple ? this.buildedFiles : this.buildedFiles[0]\n }\n },\n methods: {\n async fetchFileWithFileId () {\n if (!this.value) return\n await net.get(\n `/api-file/file/${this.value}`\n ).then(resp => {\n const { data } = resp\n this.buildedFiles = [data]\n this.files = [data]\n })\n },\n handleClickDownload (file) {\n const { fileID: fileId } = file\n window.open(`/api-file/workbench/file/stream/${fileId}?origin=true`)\n },\n handleClickDelete (file) {\n this.$refs[this.uploadRef].remove(file)\n const { fileID } = file\n this.files = this.files.filter(file => file.fileID !== fileID)\n this.buildedFiles = this.buildedFiles.filter(file => file.fileID !== fileID)\n this.$emit('change', this.fileIds)\n },\n onWatchFiles (files) {\n this.files = files\n this.buildedFiles = this.files.map(file => {\n return {\n ...file.response.data,\n ...file\n }\n })\n if (this.isFileUploadSuccessed) {\n this.$emit('change', this.fileIds)\n this.$emit('on-success', this.fileResponseData)\n }\n },\n async saveToServerAsyncPage (payloads = {}) {\n net.post('zuul/api-file/workbench/file/temp/saveToServerAsyncPage', payloads, { \n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n }).then(resp =>{\n const { data } = resp\n if (data !== 'saveToServerAsyncPage') {\n clearInterval(this.saveToServerAsyncPageTimer)\n }\n })\n // const ret = await net.post({\n // url: 'zuul/api-file/workbench/file/temp/saveToServerAsyncPage',\n // method: 'POST',\n // data: { ...payloads }\n // }).then(resp => {\n // const { data: { data, code, message } } = resp\n // if (code !== '2000') {\n // this.$Message.error(message)\n // return\n // }\n // if (data !== 'saveToServerAsyncPage') {\n // clearInterval(timer)\n // const { fileID, size } = data\n // this.$emit('on-success', { ...data, fileId: fileID })\n // this.$Message.success('同步成功')\n // return { fileId: fileID, size }\n // }\n // })\n // return ret\n },\n onWatchInputFiles (newFile, oldFile) {\n if (newFile && !oldFile) {\n // add file\n console.log('add', newFile)\n }\n if (newFile && oldFile) {\n // update file\n console.log('update', newFile)\n const { success, active, chunk, response } = newFile\n if (chunk && success && !active) {\n console.log('chunk end')\n const { data: { file, type } } = response\n const payloads = {\n filePath: file.match(/\\/cw(.*)/)[0],\n asyncID: uuidv4(),\n isDeleteOrigin: false,\n toImage: type === 'pdf' ? true : false,\n unzip: type === 'zip' ? true : false,\n _csrf: localStorage.getItem('token')\n }\n this.saveToServerAsyncPageTimer = setInterval(() => {\n this.saveToServerAsyncPage(payloads)\n }, 2000)\n }\n }\n if (!newFile && oldFile) {\n // delete file\n console.log('delete')\n }\n if (Boolean(newFile) !== Boolean(oldFile) || oldFile.error !== newFile.error) {\n if (!this.$refs[this.uploadRef].active) {\n this.$refs[this.uploadRef].active = true\n }\n }\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n::v-deep .ele-upload__inner {\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 &:hover {\n border-color: var(--idooel-form-upload-border-hover-color);\n }\n border-radius: var(--idooel-form-border-radius);\n}\n.ele-upload__wrapper {\n width: 100%;\n .ele-upload__area {\n padding: 16px;\n width: 100%;\n height: 80px;\n display: flex;\n flex-direction: row;\n .ele-upload__area--icon {\n color: var(--idooel-primary-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n font-size: 16x;\n .anticon-cloud-upload {\n font-size: 48px;\n color: var(--idooel-primary-color);\n }\n .anticon {\n font-size: 48px;\n color: var(--idooel-primary-color);\n }\n }\n .ele-upload__area--text {\n margin-left: 16px;\n .ele-upload__message {\n font-size: 16px;\n color: var(--idoole-black-088);\n text-align: left;\n }\n .ele-upload__ext {\n text-align: left;\n font-size: 14px;\n color: var(--idoole-black-06);\n }\n }\n }\n .ele-files__wrapper {\n .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 .ele-file__suffix--icon {}\n .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 .ele-file__inner {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n .ele-file__delete {\n margin-left: 8px;\n .ele-file__delete--icon {\n margin-left: 8px;\n cursor: pointer;\n }\n }\n }\n }\n}\n</style>","::v-deep .ele-upload__inner {\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 .ele-upload__inner: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 {\n color: var(--idooel-primary-color);\n display: flex;\n flex-direction: row;\n align-items: center;\n font-size: 16x;\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--icon .anticon {\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-088);\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 });
|
|
5313
5315
|
|
|
5314
5316
|
};
|
|
5315
5317
|
/* scoped */
|
|
5316
|
-
const __vue_scope_id__$
|
|
5318
|
+
const __vue_scope_id__$q = "data-v-d2929816";
|
|
5317
5319
|
/* module identifier */
|
|
5318
|
-
const __vue_module_identifier__$
|
|
5320
|
+
const __vue_module_identifier__$q = undefined;
|
|
5319
5321
|
/* functional template */
|
|
5320
|
-
const __vue_is_functional_template__$
|
|
5322
|
+
const __vue_is_functional_template__$q = false;
|
|
5321
5323
|
/* style inject SSR */
|
|
5322
5324
|
|
|
5323
5325
|
/* style inject shadow dom */
|
|
5324
5326
|
|
|
5325
5327
|
|
|
5326
5328
|
|
|
5327
|
-
const __vue_component__$
|
|
5328
|
-
{ render: __vue_render__$
|
|
5329
|
-
__vue_inject_styles__$
|
|
5330
|
-
__vue_script__$
|
|
5331
|
-
__vue_scope_id__$
|
|
5332
|
-
__vue_is_functional_template__$
|
|
5333
|
-
__vue_module_identifier__$
|
|
5329
|
+
const __vue_component__$q = /*#__PURE__*/normalizeComponent(
|
|
5330
|
+
{ render: __vue_render__$q, staticRenderFns: __vue_staticRenderFns__$q },
|
|
5331
|
+
__vue_inject_styles__$q,
|
|
5332
|
+
__vue_script__$q,
|
|
5333
|
+
__vue_scope_id__$q,
|
|
5334
|
+
__vue_is_functional_template__$q,
|
|
5335
|
+
__vue_module_identifier__$q,
|
|
5334
5336
|
false,
|
|
5335
5337
|
createInjector,
|
|
5336
5338
|
undefined,
|
|
5337
5339
|
undefined
|
|
5338
5340
|
);
|
|
5339
5341
|
|
|
5340
|
-
__vue_component__$
|
|
5342
|
+
__vue_component__$q.install = Vue => Vue.component(__vue_component__$q.name, __vue_component__$q);
|
|
5341
5343
|
|
|
5342
5344
|
//
|
|
5343
5345
|
//
|
|
@@ -5358,7 +5360,7 @@ __vue_component__$o.install = Vue => Vue.component(__vue_component__$o.name, __v
|
|
|
5358
5360
|
//
|
|
5359
5361
|
//
|
|
5360
5362
|
|
|
5361
|
-
var script$
|
|
5363
|
+
var script$p = {
|
|
5362
5364
|
name: 'ele-select-entity',
|
|
5363
5365
|
props: {
|
|
5364
5366
|
value: {
|
|
@@ -5415,10 +5417,10 @@ var script$n = {
|
|
|
5415
5417
|
};
|
|
5416
5418
|
|
|
5417
5419
|
/* script */
|
|
5418
|
-
const __vue_script__$
|
|
5420
|
+
const __vue_script__$p = script$p;
|
|
5419
5421
|
|
|
5420
5422
|
/* template */
|
|
5421
|
-
var __vue_render__$
|
|
5423
|
+
var __vue_render__$p = function () {
|
|
5422
5424
|
var _vm = this;
|
|
5423
5425
|
var _h = _vm.$createElement;
|
|
5424
5426
|
var _c = _vm._self._c || _h;
|
|
@@ -5468,41 +5470,41 @@ var __vue_render__$n = function () {
|
|
|
5468
5470
|
2
|
|
5469
5471
|
)
|
|
5470
5472
|
};
|
|
5471
|
-
var __vue_staticRenderFns__$
|
|
5472
|
-
__vue_render__$
|
|
5473
|
+
var __vue_staticRenderFns__$p = [];
|
|
5474
|
+
__vue_render__$p._withStripped = true;
|
|
5473
5475
|
|
|
5474
5476
|
/* style */
|
|
5475
|
-
const __vue_inject_styles__$
|
|
5477
|
+
const __vue_inject_styles__$p = function (inject) {
|
|
5476
5478
|
if (!inject) return
|
|
5477
5479
|
inject("data-v-611a11f1_0", { source: ".g-select-entity__wrapper[data-v-611a11f1] {\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-611a11f1]:hover {\n border-color: var(--idooel-primary-color);\n}\n.g-select-entity__wrapper .select-entity__input[data-v-611a11f1] {\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-611a11f1] {\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-611a11f1] {\n border-color: var(--idooel-form-border-err-color);\n}\n.g-select-entity__disabled .select-entity__input[data-v-611a11f1] {\n background-color: var(--idoole-black-02);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/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>\n <div class=\"g-select-entity__wrapper\" :class=\"disabled ? 'g-select-entity__disabled' : ''\">\n <span class=\"select-entity__input\">\n <a-tag\n v-for=\"(item, inx) in getValueList()\"\n :key=\"item.value\"\n :closable=\"!disabled && !getIsMaxCount()\"\n @close=\"onClose(...arguments, inx)\"\n >\n {{ item.label }}\n </a-tag>\n <a-tag v-if=\"getIsMaxCount()\">......</a-tag>\n </span>\n <span class=\"select-entity__addon\" @click=\"onChange\">{{ addonAfter }}</span>\n <slot></slot>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'ele-select-entity',\n props: {\n value: {\n type: [Array, Object]\n },\n multiple: {\n type: Boolean,\n default: true\n },\n maxCount: {\n type: Number,\n default: 7\n },\n disabled: {\n type: Boolean,\n default: false\n },\n addonAfter: {\n type: String,\n default: '选择'\n }\n },\n methods: {\n getValueList () {\n if (this.value) {\n if (this.multiple) {\n return this.getIsMaxCount() ? this.value.slice(0, this.maxCount) : this.value\n }\n return [this.value]\n }\n return []\n },\n getIsMaxCount () {\n if (this.value && this.multiple) {\n return this.value.length >= this.maxCount\n }\n return false\n },\n onChange () {\n if (this.disabled) return\n this.$emit('change', this.value)\n },\n onClose (e, inx) {\n e = window.event || e\n e.preventDefault()\n if (!this.multiple) {\n this.$emit('change', null)\n return\n }\n this.value.splice(inx, 1)\n this.$emit('change', this.value)\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.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 &:hover {\n border-color: var(--idooel-primary-color);\n }\n .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 .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.g-select-entity__disabled .select-entity__input {\n background-color: var(--idoole-black-02);\n}\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 });
|
|
5478
5480
|
|
|
5479
5481
|
};
|
|
5480
5482
|
/* scoped */
|
|
5481
|
-
const __vue_scope_id__$
|
|
5483
|
+
const __vue_scope_id__$p = "data-v-611a11f1";
|
|
5482
5484
|
/* module identifier */
|
|
5483
|
-
const __vue_module_identifier__$
|
|
5485
|
+
const __vue_module_identifier__$p = undefined;
|
|
5484
5486
|
/* functional template */
|
|
5485
|
-
const __vue_is_functional_template__$
|
|
5487
|
+
const __vue_is_functional_template__$p = false;
|
|
5486
5488
|
/* style inject SSR */
|
|
5487
5489
|
|
|
5488
5490
|
/* style inject shadow dom */
|
|
5489
5491
|
|
|
5490
5492
|
|
|
5491
5493
|
|
|
5492
|
-
const __vue_component__$
|
|
5493
|
-
{ render: __vue_render__$
|
|
5494
|
-
__vue_inject_styles__$
|
|
5495
|
-
__vue_script__$
|
|
5496
|
-
__vue_scope_id__$
|
|
5497
|
-
__vue_is_functional_template__$
|
|
5498
|
-
__vue_module_identifier__$
|
|
5494
|
+
const __vue_component__$p = /*#__PURE__*/normalizeComponent(
|
|
5495
|
+
{ render: __vue_render__$p, staticRenderFns: __vue_staticRenderFns__$p },
|
|
5496
|
+
__vue_inject_styles__$p,
|
|
5497
|
+
__vue_script__$p,
|
|
5498
|
+
__vue_scope_id__$p,
|
|
5499
|
+
__vue_is_functional_template__$p,
|
|
5500
|
+
__vue_module_identifier__$p,
|
|
5499
5501
|
false,
|
|
5500
5502
|
createInjector,
|
|
5501
5503
|
undefined,
|
|
5502
5504
|
undefined
|
|
5503
5505
|
);
|
|
5504
5506
|
|
|
5505
|
-
__vue_component__$
|
|
5507
|
+
__vue_component__$p.install = Vue => Vue.component(__vue_component__$p.name, __vue_component__$p);
|
|
5506
5508
|
|
|
5507
5509
|
//
|
|
5508
5510
|
//
|
|
@@ -5514,7 +5516,7 @@ __vue_component__$n.install = Vue => Vue.component(__vue_component__$n.name, __v
|
|
|
5514
5516
|
//
|
|
5515
5517
|
//
|
|
5516
5518
|
|
|
5517
|
-
var script$
|
|
5519
|
+
var script$o = {
|
|
5518
5520
|
name: 'ele-icon',
|
|
5519
5521
|
props: {
|
|
5520
5522
|
type: {
|
|
@@ -5537,10 +5539,10 @@ var script$m = {
|
|
|
5537
5539
|
};
|
|
5538
5540
|
|
|
5539
5541
|
/* script */
|
|
5540
|
-
const __vue_script__$
|
|
5542
|
+
const __vue_script__$o = script$o;
|
|
5541
5543
|
|
|
5542
5544
|
/* template */
|
|
5543
|
-
var __vue_render__$
|
|
5545
|
+
var __vue_render__$o = function () {
|
|
5544
5546
|
var _vm = this;
|
|
5545
5547
|
var _h = _vm.$createElement;
|
|
5546
5548
|
var _c = _vm._self._c || _h;
|
|
@@ -5548,17 +5550,17 @@ var __vue_render__$m = function () {
|
|
|
5548
5550
|
? _c("a-icon", { attrs: { type: _vm.type, theme: _vm.theme } })
|
|
5549
5551
|
: _c("i", { class: ["iconfont", _vm.type] })
|
|
5550
5552
|
};
|
|
5551
|
-
var __vue_staticRenderFns__$
|
|
5552
|
-
__vue_render__$
|
|
5553
|
+
var __vue_staticRenderFns__$o = [];
|
|
5554
|
+
__vue_render__$o._withStripped = true;
|
|
5553
5555
|
|
|
5554
5556
|
/* style */
|
|
5555
|
-
const __vue_inject_styles__$
|
|
5557
|
+
const __vue_inject_styles__$o = undefined;
|
|
5556
5558
|
/* scoped */
|
|
5557
|
-
const __vue_scope_id__$
|
|
5559
|
+
const __vue_scope_id__$o = undefined;
|
|
5558
5560
|
/* module identifier */
|
|
5559
|
-
const __vue_module_identifier__$
|
|
5561
|
+
const __vue_module_identifier__$o = undefined;
|
|
5560
5562
|
/* functional template */
|
|
5561
|
-
const __vue_is_functional_template__$
|
|
5563
|
+
const __vue_is_functional_template__$o = false;
|
|
5562
5564
|
/* style inject */
|
|
5563
5565
|
|
|
5564
5566
|
/* style inject SSR */
|
|
@@ -5567,20 +5569,20 @@ __vue_render__$m._withStripped = true;
|
|
|
5567
5569
|
|
|
5568
5570
|
|
|
5569
5571
|
|
|
5570
|
-
const __vue_component__$
|
|
5571
|
-
{ render: __vue_render__$
|
|
5572
|
-
__vue_inject_styles__$
|
|
5573
|
-
__vue_script__$
|
|
5574
|
-
__vue_scope_id__$
|
|
5575
|
-
__vue_is_functional_template__$
|
|
5576
|
-
__vue_module_identifier__$
|
|
5572
|
+
const __vue_component__$o = /*#__PURE__*/normalizeComponent(
|
|
5573
|
+
{ render: __vue_render__$o, staticRenderFns: __vue_staticRenderFns__$o },
|
|
5574
|
+
__vue_inject_styles__$o,
|
|
5575
|
+
__vue_script__$o,
|
|
5576
|
+
__vue_scope_id__$o,
|
|
5577
|
+
__vue_is_functional_template__$o,
|
|
5578
|
+
__vue_module_identifier__$o,
|
|
5577
5579
|
false,
|
|
5578
5580
|
undefined,
|
|
5579
5581
|
undefined,
|
|
5580
5582
|
undefined
|
|
5581
5583
|
);
|
|
5582
5584
|
|
|
5583
|
-
__vue_component__$
|
|
5585
|
+
__vue_component__$o.install = Vue => Vue.component(__vue_component__$o.name, __vue_component__$o);
|
|
5584
5586
|
|
|
5585
5587
|
//
|
|
5586
5588
|
//
|
|
@@ -5589,7 +5591,7 @@ __vue_component__$m.install = Vue => Vue.component(__vue_component__$m.name, __v
|
|
|
5589
5591
|
//
|
|
5590
5592
|
//
|
|
5591
5593
|
|
|
5592
|
-
var script$
|
|
5594
|
+
var script$n = {
|
|
5593
5595
|
name: 'ele-input-number',
|
|
5594
5596
|
props: {
|
|
5595
5597
|
precision: {
|
|
@@ -5607,10 +5609,10 @@ var script$l = {
|
|
|
5607
5609
|
};
|
|
5608
5610
|
|
|
5609
5611
|
/* script */
|
|
5610
|
-
const __vue_script__$
|
|
5612
|
+
const __vue_script__$n = script$n;
|
|
5611
5613
|
|
|
5612
5614
|
/* template */
|
|
5613
|
-
var __vue_render__$
|
|
5615
|
+
var __vue_render__$n = function () {
|
|
5614
5616
|
var _vm = this;
|
|
5615
5617
|
var _h = _vm.$createElement;
|
|
5616
5618
|
var _c = _vm._self._c || _h;
|
|
@@ -5634,17 +5636,17 @@ var __vue_render__$l = function () {
|
|
|
5634
5636
|
1
|
|
5635
5637
|
)
|
|
5636
5638
|
};
|
|
5637
|
-
var __vue_staticRenderFns__$
|
|
5638
|
-
__vue_render__$
|
|
5639
|
+
var __vue_staticRenderFns__$n = [];
|
|
5640
|
+
__vue_render__$n._withStripped = true;
|
|
5639
5641
|
|
|
5640
5642
|
/* style */
|
|
5641
|
-
const __vue_inject_styles__$
|
|
5643
|
+
const __vue_inject_styles__$n = undefined;
|
|
5642
5644
|
/* scoped */
|
|
5643
|
-
const __vue_scope_id__$
|
|
5645
|
+
const __vue_scope_id__$n = undefined;
|
|
5644
5646
|
/* module identifier */
|
|
5645
|
-
const __vue_module_identifier__$
|
|
5647
|
+
const __vue_module_identifier__$n = undefined;
|
|
5646
5648
|
/* functional template */
|
|
5647
|
-
const __vue_is_functional_template__$
|
|
5649
|
+
const __vue_is_functional_template__$n = false;
|
|
5648
5650
|
/* style inject */
|
|
5649
5651
|
|
|
5650
5652
|
/* style inject SSR */
|
|
@@ -5653,23 +5655,23 @@ __vue_render__$l._withStripped = true;
|
|
|
5653
5655
|
|
|
5654
5656
|
|
|
5655
5657
|
|
|
5656
|
-
const __vue_component__$
|
|
5657
|
-
{ render: __vue_render__$
|
|
5658
|
-
__vue_inject_styles__$
|
|
5659
|
-
__vue_script__$
|
|
5660
|
-
__vue_scope_id__$
|
|
5661
|
-
__vue_is_functional_template__$
|
|
5662
|
-
__vue_module_identifier__$
|
|
5658
|
+
const __vue_component__$n = /*#__PURE__*/normalizeComponent(
|
|
5659
|
+
{ render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
|
|
5660
|
+
__vue_inject_styles__$n,
|
|
5661
|
+
__vue_script__$n,
|
|
5662
|
+
__vue_scope_id__$n,
|
|
5663
|
+
__vue_is_functional_template__$n,
|
|
5664
|
+
__vue_module_identifier__$n,
|
|
5663
5665
|
false,
|
|
5664
5666
|
undefined,
|
|
5665
5667
|
undefined,
|
|
5666
5668
|
undefined
|
|
5667
5669
|
);
|
|
5668
5670
|
|
|
5669
|
-
__vue_component__$
|
|
5671
|
+
__vue_component__$n.install = Vue => Vue.component(__vue_component__$n.name, __vue_component__$n);
|
|
5670
5672
|
|
|
5671
5673
|
//
|
|
5672
|
-
var script$
|
|
5674
|
+
var script$m = {
|
|
5673
5675
|
name: 'ele-modal',
|
|
5674
5676
|
props: {
|
|
5675
5677
|
value: {
|
|
@@ -5813,10 +5815,10 @@ var script$k = {
|
|
|
5813
5815
|
};
|
|
5814
5816
|
|
|
5815
5817
|
/* script */
|
|
5816
|
-
const __vue_script__$
|
|
5818
|
+
const __vue_script__$m = script$m;
|
|
5817
5819
|
|
|
5818
5820
|
/* template */
|
|
5819
|
-
var __vue_render__$
|
|
5821
|
+
var __vue_render__$m = function () {
|
|
5820
5822
|
var _vm = this;
|
|
5821
5823
|
var _h = _vm.$createElement;
|
|
5822
5824
|
var _c = _vm._self._c || _h;
|
|
@@ -5889,41 +5891,41 @@ var __vue_render__$k = function () {
|
|
|
5889
5891
|
2
|
|
5890
5892
|
)
|
|
5891
5893
|
};
|
|
5892
|
-
var __vue_staticRenderFns__$
|
|
5893
|
-
__vue_render__$
|
|
5894
|
+
var __vue_staticRenderFns__$m = [];
|
|
5895
|
+
__vue_render__$m._withStripped = true;
|
|
5894
5896
|
|
|
5895
5897
|
/* style */
|
|
5896
|
-
const __vue_inject_styles__$
|
|
5898
|
+
const __vue_inject_styles__$m = function (inject) {
|
|
5897
5899
|
if (!inject) return
|
|
5898
5900
|
inject("data-v-e7c1987c_0", { source: ".ele-modal__footer[data-v-e7c1987c] {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.ele-modal__footer .footer-btn__wrapper[data-v-e7c1987c] {\n flex: 1;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/modal/src/index.vue","index.vue"],"names":[],"mappings":"AA+KA;EACA,aAAA;EACA,mBAAA;EACA,8BAAA;EACA,mBAAA;AC9KA;AD+KA;EACA,OAAA;AC7KA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <a-modal\n :title=\"title\"\n :cancelText=\"cancelText\"\n :okText=\"okText\"\n :closable=\"closable\"\n v-model:visible=\"showModal\"\n :width=\"width\"\n :keyboard=\"false\"\n :maskClosable=\"maskClosable\"\n :dialogStyle=\"{ top: `${upDownDistance[size]}px` }\"\n :bodyStyle=\"{ maxHeight: maxheight, overflowY: 'auto' }\"\n :footer=\"showFooter ? undefined : null\"\n @cancel=\"handleCancel\"\n @ok=\"handleOk\"\n >\n <slot v-if=\"showModal\"></slot>\n <template slot=\"footer\" v-if=\"!showDefaultFooter\">\n <div class=\"ele-modal__footer\">\n <slot name=\"footer-text\"></slot>\n <div class=\"footer-btn__wrapper\">\n <ele-button\n v-for=\"btn in buttonGroupMeta.elements\"\n :type=\"btn.type\"\n v-on=\"assignAttrEvents\"\n :event-name=\"btn.eventName\"\n :key=\"btn.key\">\n {{ btn.label }}\n </ele-button>\n </div>\n </div>\n </template>\n </a-modal>\n</template>\n<script>\nimport { CONTEXT } from '../../utils'\nexport default {\n name: 'ele-modal',\n props: {\n value: {\n type: Boolean,\n default: false\n },\n title: {\n type: String,\n default: '标题'\n },\n cancelText: {\n type: String,\n default: '关闭'\n },\n okText: {\n type: String,\n default: '确定'\n },\n size: {\n type: String,\n default: 'middle'\n },\n map: {\n type: Object,\n default () {\n return {}\n }\n },\n closable: {\n type: Boolean,\n default: true\n },\n maskClosable: {\n type: Boolean,\n default: false\n },\n showFooter: {\n type: Boolean,\n default: true\n },\n footer: {\n type: Function,\n default: null\n },\n onlyClose: {\n type: Boolean,\n default: false\n },\n buttonGroupMeta: {\n type: Object,\n default: () => ({})\n },\n // 是否展示组件默认底部按钮\n showDefaultFooter: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n value: {\n handler (value) {\n this.$nextTick(() => {\n this.showModal = value\n })\n },\n immediate: true\n }\n },\n inject: {\n [CONTEXT]: {\n default: () => (() => ({}))\n }\n },\n computed: {\n assignAttrEvents () {\n const events = this.buttons.reduce((ret, btn) => {\n ret[btn.eventName] = (e) => {\n this.$emit(btn.eventName || 'click', { ...e, ...this[CONTEXT]() })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events\n }\n },\n buttons () {\n const { elements = [] } = this.buttonGroupMeta\n return elements\n },\n width () {\n return this.map[this.size]\n },\n maxheight () {\n return `calc(100vh - ${this.upDownDistance[this.size] * 2 + (this.title ? 55 : 0) + (this.showFooter ? 53 : 0) }px`\n }\n },\n data () {\n return {\n showModal: false\n }\n },\n created () {\n let defaultMap = {\n small: 480,\n middle: 768,\n big: 1200\n }\n this.upDownDistance = {\n small: 80,\n middle: 80,\n big: 40\n }\n this.map = Object.assign(this.map, defaultMap)\n },\n methods: {\n openModal () {\n this.showModal = true\n this.removeHidden()\n },\n handleCancel () {\n this.showModal = false\n this.$emit('input', this.showModal)\n this.$emit('change', this.showModal)\n this.removeHidden()\n this.$emit('cancel')\n },\n handleOk () {\n this.$emit('ok')\n },\n removeHidden () {\n let ishidden = document.body.style.overflow === 'hidden'\n ishidden && (document.body.style.overflow = 'initial')\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.ele-modal__footer {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n .footer-btn__wrapper {\n flex: 1;\n }\n}\n</style>",".ele-modal__footer {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.ele-modal__footer .footer-btn__wrapper {\n flex: 1;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
5899
5901
|
|
|
5900
5902
|
};
|
|
5901
5903
|
/* scoped */
|
|
5902
|
-
const __vue_scope_id__$
|
|
5904
|
+
const __vue_scope_id__$m = "data-v-e7c1987c";
|
|
5903
5905
|
/* module identifier */
|
|
5904
|
-
const __vue_module_identifier__$
|
|
5906
|
+
const __vue_module_identifier__$m = undefined;
|
|
5905
5907
|
/* functional template */
|
|
5906
|
-
const __vue_is_functional_template__$
|
|
5908
|
+
const __vue_is_functional_template__$m = false;
|
|
5907
5909
|
/* style inject SSR */
|
|
5908
5910
|
|
|
5909
5911
|
/* style inject shadow dom */
|
|
5910
5912
|
|
|
5911
5913
|
|
|
5912
5914
|
|
|
5913
|
-
const __vue_component__$
|
|
5914
|
-
{ render: __vue_render__$
|
|
5915
|
-
__vue_inject_styles__$
|
|
5916
|
-
__vue_script__$
|
|
5917
|
-
__vue_scope_id__$
|
|
5918
|
-
__vue_is_functional_template__$
|
|
5919
|
-
__vue_module_identifier__$
|
|
5915
|
+
const __vue_component__$m = /*#__PURE__*/normalizeComponent(
|
|
5916
|
+
{ render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
|
|
5917
|
+
__vue_inject_styles__$m,
|
|
5918
|
+
__vue_script__$m,
|
|
5919
|
+
__vue_scope_id__$m,
|
|
5920
|
+
__vue_is_functional_template__$m,
|
|
5921
|
+
__vue_module_identifier__$m,
|
|
5920
5922
|
false,
|
|
5921
5923
|
createInjector,
|
|
5922
5924
|
undefined,
|
|
5923
5925
|
undefined
|
|
5924
5926
|
);
|
|
5925
5927
|
|
|
5926
|
-
__vue_component__$
|
|
5928
|
+
__vue_component__$m.install = Vue => Vue.component(__vue_component__$m.name, __vue_component__$m);
|
|
5927
5929
|
|
|
5928
5930
|
//
|
|
5929
5931
|
//
|
|
@@ -5935,7 +5937,7 @@ __vue_component__$k.install = Vue => Vue.component(__vue_component__$k.name, __v
|
|
|
5935
5937
|
//
|
|
5936
5938
|
//
|
|
5937
5939
|
|
|
5938
|
-
var script$
|
|
5940
|
+
var script$l = {
|
|
5939
5941
|
name: 'ele-checkbox',
|
|
5940
5942
|
model: {
|
|
5941
5943
|
prop: 'value',
|
|
@@ -5963,10 +5965,10 @@ var script$j = {
|
|
|
5963
5965
|
};
|
|
5964
5966
|
|
|
5965
5967
|
/* script */
|
|
5966
|
-
const __vue_script__$
|
|
5968
|
+
const __vue_script__$l = script$l;
|
|
5967
5969
|
|
|
5968
5970
|
/* template */
|
|
5969
|
-
var __vue_render__$
|
|
5971
|
+
var __vue_render__$l = function () {
|
|
5970
5972
|
var _vm = this;
|
|
5971
5973
|
var _h = _vm.$createElement;
|
|
5972
5974
|
var _c = _vm._self._c || _h;
|
|
@@ -5979,41 +5981,41 @@ var __vue_render__$j = function () {
|
|
|
5979
5981
|
on: { change: _vm.onChange },
|
|
5980
5982
|
})
|
|
5981
5983
|
};
|
|
5982
|
-
var __vue_staticRenderFns__$
|
|
5983
|
-
__vue_render__$
|
|
5984
|
+
var __vue_staticRenderFns__$l = [];
|
|
5985
|
+
__vue_render__$l._withStripped = true;
|
|
5984
5986
|
|
|
5985
5987
|
/* style */
|
|
5986
|
-
const __vue_inject_styles__$
|
|
5988
|
+
const __vue_inject_styles__$l = function (inject) {
|
|
5987
5989
|
if (!inject) return
|
|
5988
5990
|
inject("data-v-e6c4aea4_0", { source: ".ant-checkbox-group[data-v-e6c4aea4] {\n text-align: left;\n line-height: 32px;\n}\n.has-error .ant-checkbox-group[data-v-e6c4aea4] .ant-checkbox-wrapper {\n color: var(--idooel-form-border-err-color);\n}\n.has-error .ant-checkbox-group[data-v-e6c4aea4] .ant-checkbox-inner {\n border-color: var(--idooel-form-border-err-color);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/checkbox/src/index.vue","index.vue"],"names":[],"mappings":"AAsCA;EACA,gBAAA;EACA,iBAAA;ACrCA;ADyCA;EACA,0CAAA;ACtCA;ADwCA;EACA,iDAAA;ACtCA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <a-checkbox-group\n :value=\"value\"\n :options=\"dataSource\" \n :disabled=\"disabled\" \n @change=\"onChange\">\n </a-checkbox-group>\n</template>\n\n<script>\nexport default {\n name: 'ele-checkbox',\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n value: {\n type: Array\n },\n dataSource: {\n type: Array,\n default: () => []\n },\n disabled: {\n type: Boolean,\n default: false\n }\n },\n methods: {\n onChange (value) {\n this.$emit('change', value)\n this.$emit('input', value)\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.ant-checkbox-group {\n text-align: left;\n line-height: 32px;\n}\n.has-error {\n .ant-checkbox-group {\n ::v-deep .ant-checkbox-wrapper {\n color: var(--idooel-form-border-err-color);\n }\n ::v-deep .ant-checkbox-inner {\n border-color: var(--idooel-form-border-err-color);\n }\n }\n}\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 });
|
|
5989
5991
|
|
|
5990
5992
|
};
|
|
5991
5993
|
/* scoped */
|
|
5992
|
-
const __vue_scope_id__$
|
|
5994
|
+
const __vue_scope_id__$l = "data-v-e6c4aea4";
|
|
5993
5995
|
/* module identifier */
|
|
5994
|
-
const __vue_module_identifier__$
|
|
5996
|
+
const __vue_module_identifier__$l = undefined;
|
|
5995
5997
|
/* functional template */
|
|
5996
|
-
const __vue_is_functional_template__$
|
|
5998
|
+
const __vue_is_functional_template__$l = false;
|
|
5997
5999
|
/* style inject SSR */
|
|
5998
6000
|
|
|
5999
6001
|
/* style inject shadow dom */
|
|
6000
6002
|
|
|
6001
6003
|
|
|
6002
6004
|
|
|
6003
|
-
const __vue_component__$
|
|
6004
|
-
{ render: __vue_render__$
|
|
6005
|
-
__vue_inject_styles__$
|
|
6006
|
-
__vue_script__$
|
|
6007
|
-
__vue_scope_id__$
|
|
6008
|
-
__vue_is_functional_template__$
|
|
6009
|
-
__vue_module_identifier__$
|
|
6005
|
+
const __vue_component__$l = /*#__PURE__*/normalizeComponent(
|
|
6006
|
+
{ render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
|
|
6007
|
+
__vue_inject_styles__$l,
|
|
6008
|
+
__vue_script__$l,
|
|
6009
|
+
__vue_scope_id__$l,
|
|
6010
|
+
__vue_is_functional_template__$l,
|
|
6011
|
+
__vue_module_identifier__$l,
|
|
6010
6012
|
false,
|
|
6011
6013
|
createInjector,
|
|
6012
6014
|
undefined,
|
|
6013
6015
|
undefined
|
|
6014
6016
|
);
|
|
6015
6017
|
|
|
6016
|
-
__vue_component__$
|
|
6018
|
+
__vue_component__$l.install = Vue => Vue.component(__vue_component__$l.name, __vue_component__$l);
|
|
6017
6019
|
|
|
6018
6020
|
//
|
|
6019
6021
|
//
|
|
@@ -6024,7 +6026,7 @@ __vue_component__$j.install = Vue => Vue.component(__vue_component__$j.name, __v
|
|
|
6024
6026
|
//
|
|
6025
6027
|
//
|
|
6026
6028
|
|
|
6027
|
-
var script$
|
|
6029
|
+
var script$k = {
|
|
6028
6030
|
name: 'ele-radio',
|
|
6029
6031
|
model: {
|
|
6030
6032
|
prop: 'value',
|
|
@@ -6057,10 +6059,10 @@ var script$i = {
|
|
|
6057
6059
|
};
|
|
6058
6060
|
|
|
6059
6061
|
/* script */
|
|
6060
|
-
const __vue_script__$
|
|
6062
|
+
const __vue_script__$k = script$k;
|
|
6061
6063
|
|
|
6062
6064
|
/* template */
|
|
6063
|
-
var __vue_render__$
|
|
6065
|
+
var __vue_render__$k = function () {
|
|
6064
6066
|
var _vm = this;
|
|
6065
6067
|
var _h = _vm.$createElement;
|
|
6066
6068
|
var _c = _vm._self._c || _h;
|
|
@@ -6078,41 +6080,41 @@ var __vue_render__$i = function () {
|
|
|
6078
6080
|
1
|
|
6079
6081
|
)
|
|
6080
6082
|
};
|
|
6081
|
-
var __vue_staticRenderFns__$
|
|
6082
|
-
__vue_render__$
|
|
6083
|
+
var __vue_staticRenderFns__$k = [];
|
|
6084
|
+
__vue_render__$k._withStripped = true;
|
|
6083
6085
|
|
|
6084
6086
|
/* style */
|
|
6085
|
-
const __vue_inject_styles__$
|
|
6087
|
+
const __vue_inject_styles__$k = function (inject) {
|
|
6086
6088
|
if (!inject) return
|
|
6087
6089
|
inject("data-v-00d35412_0", { source: ".ant-radio-group[data-v-00d35412] {\n text-align: left;\n line-height: 32px;\n}\n.has-error .ant-radio-group[data-v-00d35412] .ant-radio-wrapper {\n color: var(--idooel-form-border-err-color);\n}\n.has-error .ant-radio-group[data-v-00d35412] .ant-radio-inner {\n border-color: var(--idooel-form-border-err-color);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/radio/src/index.vue","index.vue"],"names":[],"mappings":"AA0CA;EACA,gBAAA;EACA,iBAAA;ACzCA;AD6CA;EACA,0CAAA;AC1CA;AD4CA;EACA,iDAAA;AC1CA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <a-radio-group :value=\"value\" @change=\"onChange\" :disabled=\"disabled\">\n <a-radio v-for=\"item in dataSource\" :key=\"item.value\" :value=\"item.value\">\n {{ item.label }}\n </a-radio>\n </a-radio-group>\n</template>\n\n<script>\nexport default {\n name: 'ele-radio',\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n value: {\n type: [String, Array, Number]\n },\n dataSource: {\n type: Array,\n default: () => []\n },\n disabled: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n value (val) {\n console.log('valvalval', val)\n }\n },\n methods: {\n onChange (e) {\n this.$emit('change', e.target.value)\n this.$emit('input', e.target.value)\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.ant-radio-group {\n text-align: left;\n line-height: 32px;\n}\n.has-error {\n .ant-radio-group {\n ::v-deep .ant-radio-wrapper {\n color: var(--idooel-form-border-err-color);\n }\n ::v-deep .ant-radio-inner {\n border-color: var(--idooel-form-border-err-color);\n }\n }\n}\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 });
|
|
6088
6090
|
|
|
6089
6091
|
};
|
|
6090
6092
|
/* scoped */
|
|
6091
|
-
const __vue_scope_id__$
|
|
6093
|
+
const __vue_scope_id__$k = "data-v-00d35412";
|
|
6092
6094
|
/* module identifier */
|
|
6093
|
-
const __vue_module_identifier__$
|
|
6095
|
+
const __vue_module_identifier__$k = undefined;
|
|
6094
6096
|
/* functional template */
|
|
6095
|
-
const __vue_is_functional_template__$
|
|
6097
|
+
const __vue_is_functional_template__$k = false;
|
|
6096
6098
|
/* style inject SSR */
|
|
6097
6099
|
|
|
6098
6100
|
/* style inject shadow dom */
|
|
6099
6101
|
|
|
6100
6102
|
|
|
6101
6103
|
|
|
6102
|
-
const __vue_component__$
|
|
6103
|
-
{ render: __vue_render__$
|
|
6104
|
-
__vue_inject_styles__$
|
|
6105
|
-
__vue_script__$
|
|
6106
|
-
__vue_scope_id__$
|
|
6107
|
-
__vue_is_functional_template__$
|
|
6108
|
-
__vue_module_identifier__$
|
|
6104
|
+
const __vue_component__$k = /*#__PURE__*/normalizeComponent(
|
|
6105
|
+
{ render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
|
|
6106
|
+
__vue_inject_styles__$k,
|
|
6107
|
+
__vue_script__$k,
|
|
6108
|
+
__vue_scope_id__$k,
|
|
6109
|
+
__vue_is_functional_template__$k,
|
|
6110
|
+
__vue_module_identifier__$k,
|
|
6109
6111
|
false,
|
|
6110
6112
|
createInjector,
|
|
6111
6113
|
undefined,
|
|
6112
6114
|
undefined
|
|
6113
6115
|
);
|
|
6114
6116
|
|
|
6115
|
-
__vue_component__$
|
|
6117
|
+
__vue_component__$k.install = Vue => Vue.component(__vue_component__$k.name, __vue_component__$k);
|
|
6116
6118
|
|
|
6117
6119
|
//
|
|
6118
6120
|
//
|
|
@@ -6136,7 +6138,7 @@ __vue_component__$i.install = Vue => Vue.component(__vue_component__$i.name, __v
|
|
|
6136
6138
|
//
|
|
6137
6139
|
//
|
|
6138
6140
|
|
|
6139
|
-
var script$
|
|
6141
|
+
var script$j = {
|
|
6140
6142
|
name: 'ele-batch-export',
|
|
6141
6143
|
props: {
|
|
6142
6144
|
value: {
|
|
@@ -6180,10 +6182,10 @@ var script$h = {
|
|
|
6180
6182
|
};
|
|
6181
6183
|
|
|
6182
6184
|
/* script */
|
|
6183
|
-
const __vue_script__$
|
|
6185
|
+
const __vue_script__$j = script$j;
|
|
6184
6186
|
|
|
6185
6187
|
/* template */
|
|
6186
|
-
var __vue_render__$
|
|
6188
|
+
var __vue_render__$j = function () {
|
|
6187
6189
|
var _vm = this;
|
|
6188
6190
|
var _h = _vm.$createElement;
|
|
6189
6191
|
var _c = _vm._self._c || _h;
|
|
@@ -6242,42 +6244,42 @@ var __vue_render__$h = function () {
|
|
|
6242
6244
|
]
|
|
6243
6245
|
)
|
|
6244
6246
|
};
|
|
6245
|
-
var __vue_staticRenderFns__$
|
|
6246
|
-
__vue_render__$
|
|
6247
|
+
var __vue_staticRenderFns__$j = [];
|
|
6248
|
+
__vue_render__$j._withStripped = true;
|
|
6247
6249
|
|
|
6248
6250
|
/* style */
|
|
6249
|
-
const __vue_inject_styles__$
|
|
6251
|
+
const __vue_inject_styles__$j = function (inject) {
|
|
6250
6252
|
if (!inject) return
|
|
6251
6253
|
inject("data-v-06685ad4_0", { source: ".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\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,eAAe;AACjB;AAEA;EACE,+BAA+B;EAC/B,sCAAsC;EACtC,sCAAsC;EACtC,sCAAsC;EACtC,uCAAuC;EACvC,uCAAuC;EACvC,uCAAuC;EACvC,mDAAmD;EACnD,4BAA4B;EAC5B,4BAA4B;EAC5B,0BAA0B;EAC1B,wBAAwB;EACxB,8BAA8B;EAC9B,+BAA+B;EAC/B,qCAAqC;EACrC,gCAAgC;EAChC,4BAA4B;EAC5B,qDAAqD;EACrD,kDAAkD;EAClD,gDAAgD;EAChD,gCAAgC;EAChC,uCAAuC;EACvC,yBAAyB;EACzB,yBAAyB;EACzB,oCAAoC;AACtC;AAEA;EACE,4DAA4D;AAC9D;AAEA;EACE,4DAA4D;AAC9D;;AAEA,oCAAoC","file":"index.vue","sourcesContent":[".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined })
|
|
6252
6254
|
,inject("data-v-06685ad4_1", { source: ".ele-batch-export__content[data-v-06685ad4] {\n height: 106px;\n}\n.ele-batch-export__content .ele-batch-export__container[data-v-06685ad4] {\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-06685ad4] {\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-06685ad4] {\n margin-left: 16px;\n}\n.ele-batch-export__content .ele-batch-export__container .ele-batch-export__handle .ele-batch-export__btn[data-v-06685ad4] {\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-06685ad4] {\n color: var(--idooel-link-03);\n font-size: 14px;\n}\n.ele-batch-export__content .ele-batch-export__message[data-v-06685ad4] {\n color: var(--idooel-link-06);\n font-size: 14px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/batch-export/src/index.vue","index.vue"],"names":[],"mappings":"AAuEA;EACA,aAAA;ACtEA;ADuEA;EACA,iBAAA;EACA,oBAAA;EACA,YAAA;EACA,mCAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,eAAA;ACrEA;ADsEA;EACA,eAAA;EACA,4BAAA;ACpEA;ADsEA;EACA,iBAAA;ACpEA;ADqEA;EACA,4BAAA;EACA,eAAA;EACA,eAAA;ACnEA;ADqEA;EACA,4BAAA;EACA,eAAA;ACnEA;ADuEA;EACA,4BAAA;EACA,eAAA;ACrEA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <ele-modal \n v-model=\"innerValue\" \n v-on=\"$listeners\"\n :buttonGroupMeta=\"buttonGroupMeta\" \n title=\"批量导出\">\n <div class=\"ele-batch-export__content\">\n <div class=\"ele-batch-export__container\">\n <ele-icon class=\"ele-batch-export__icon\" type=\"download\"></ele-icon>\n <div class=\"ele-batch-export__handle\">\n <div class=\"ele-batch-export__btn\" @click=\"handleClick\">导出任务处理中..... 请点击此按钮跳转到“批处理管理”菜单查看任务进度</div>\n <div class=\"ele-batch-export__btn--hint\">批处理任务的准备工作会在后台运行</div>\n </div>\n </div>\n <div class=\"ele-batch-export__message\">\n 您可以请点击上方按钮查看任务进度或关闭弹框\n </div>\n </div>\n </ele-modal>\n</template>\n\n<script>\nexport default {\n name: 'ele-batch-export',\n props: {\n value: {\n type: Boolean,\n default: false\n },\n buttonGroupMeta: {\n type: Object,\n default: () => {\n return {\n elements: [\n {\n label: '关闭',\n key: 'close',\n type: 'primary',\n eventName: 'handleClose'\n }\n ]\n }\n }\n }\n },\n data() {\n return {\n innerValue: false\n }\n },\n watch: {\n value: {\n handler (value) {\n this.$nextTick(() => {\n this.innerValue = value\n })\n },\n immediate: true\n }\n },\n methods: {\n handleClick () {\n this.$emit('on-batch-export')\n }\n }\n}\n</script>\n<style lang=\"scss\">\n@import '../../theme/index';\n</style>\n<style lang=\"scss\" scoped>\n.ele-batch-export__content {\n height: 106px;\n .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 .ele-batch-export__icon {\n font-size: 48px;\n color: var(--idooel-link-06);\n }\n .ele-batch-export__handle {\n margin-left: 16px;\n .ele-batch-export__btn {\n color: var(--idooel-link-06);\n font-size: 16px;\n cursor: pointer;\n }\n .ele-batch-export__btn--hint {\n color: var(--idooel-link-03);\n font-size: 14px;\n }\n }\n }\n .ele-batch-export__message {\n color: var(--idooel-link-06);\n font-size: 14px;\n }\n}\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 });
|
|
6253
6255
|
|
|
6254
6256
|
};
|
|
6255
6257
|
/* scoped */
|
|
6256
|
-
const __vue_scope_id__$
|
|
6258
|
+
const __vue_scope_id__$j = "data-v-06685ad4";
|
|
6257
6259
|
/* module identifier */
|
|
6258
|
-
const __vue_module_identifier__$
|
|
6260
|
+
const __vue_module_identifier__$j = undefined;
|
|
6259
6261
|
/* functional template */
|
|
6260
|
-
const __vue_is_functional_template__$
|
|
6262
|
+
const __vue_is_functional_template__$j = false;
|
|
6261
6263
|
/* style inject SSR */
|
|
6262
6264
|
|
|
6263
6265
|
/* style inject shadow dom */
|
|
6264
6266
|
|
|
6265
6267
|
|
|
6266
6268
|
|
|
6267
|
-
const __vue_component__$
|
|
6268
|
-
{ render: __vue_render__$
|
|
6269
|
-
__vue_inject_styles__$
|
|
6270
|
-
__vue_script__$
|
|
6271
|
-
__vue_scope_id__$
|
|
6272
|
-
__vue_is_functional_template__$
|
|
6273
|
-
__vue_module_identifier__$
|
|
6269
|
+
const __vue_component__$j = /*#__PURE__*/normalizeComponent(
|
|
6270
|
+
{ render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
|
|
6271
|
+
__vue_inject_styles__$j,
|
|
6272
|
+
__vue_script__$j,
|
|
6273
|
+
__vue_scope_id__$j,
|
|
6274
|
+
__vue_is_functional_template__$j,
|
|
6275
|
+
__vue_module_identifier__$j,
|
|
6274
6276
|
false,
|
|
6275
6277
|
createInjector,
|
|
6276
6278
|
undefined,
|
|
6277
6279
|
undefined
|
|
6278
6280
|
);
|
|
6279
6281
|
|
|
6280
|
-
__vue_component__$
|
|
6282
|
+
__vue_component__$j.install = Vue => Vue.component(__vue_component__$j.name, __vue_component__$j);
|
|
6281
6283
|
|
|
6282
6284
|
//
|
|
6283
6285
|
//
|
|
@@ -6291,7 +6293,7 @@ __vue_component__$h.install = Vue => Vue.component(__vue_component__$h.name, __v
|
|
|
6291
6293
|
//
|
|
6292
6294
|
//
|
|
6293
6295
|
|
|
6294
|
-
var script$
|
|
6296
|
+
var script$i = {
|
|
6295
6297
|
name: 'ele-date-range',
|
|
6296
6298
|
model: {
|
|
6297
6299
|
prop: 'value',
|
|
@@ -6322,10 +6324,10 @@ var script$g = {
|
|
|
6322
6324
|
};
|
|
6323
6325
|
|
|
6324
6326
|
/* script */
|
|
6325
|
-
const __vue_script__$
|
|
6327
|
+
const __vue_script__$i = script$i;
|
|
6326
6328
|
|
|
6327
6329
|
/* template */
|
|
6328
|
-
var __vue_render__$
|
|
6330
|
+
var __vue_render__$i = function () {
|
|
6329
6331
|
var _vm = this;
|
|
6330
6332
|
var _h = _vm.$createElement;
|
|
6331
6333
|
var _c = _vm._self._c || _h;
|
|
@@ -6340,44 +6342,44 @@ var __vue_render__$g = function () {
|
|
|
6340
6342
|
on: { change: _vm.onChange },
|
|
6341
6343
|
})
|
|
6342
6344
|
};
|
|
6343
|
-
var __vue_staticRenderFns__$
|
|
6344
|
-
__vue_render__$
|
|
6345
|
+
var __vue_staticRenderFns__$i = [];
|
|
6346
|
+
__vue_render__$i._withStripped = true;
|
|
6345
6347
|
|
|
6346
6348
|
/* style */
|
|
6347
|
-
const __vue_inject_styles__$
|
|
6349
|
+
const __vue_inject_styles__$i = function (inject) {
|
|
6348
6350
|
if (!inject) return
|
|
6349
6351
|
inject("data-v-eee16c3c_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue"}, media: undefined });
|
|
6350
6352
|
|
|
6351
6353
|
};
|
|
6352
6354
|
/* scoped */
|
|
6353
|
-
const __vue_scope_id__$
|
|
6355
|
+
const __vue_scope_id__$i = "data-v-eee16c3c";
|
|
6354
6356
|
/* module identifier */
|
|
6355
|
-
const __vue_module_identifier__$
|
|
6357
|
+
const __vue_module_identifier__$i = undefined;
|
|
6356
6358
|
/* functional template */
|
|
6357
|
-
const __vue_is_functional_template__$
|
|
6359
|
+
const __vue_is_functional_template__$i = false;
|
|
6358
6360
|
/* style inject SSR */
|
|
6359
6361
|
|
|
6360
6362
|
/* style inject shadow dom */
|
|
6361
6363
|
|
|
6362
6364
|
|
|
6363
6365
|
|
|
6364
|
-
const __vue_component__$
|
|
6365
|
-
{ render: __vue_render__$
|
|
6366
|
-
__vue_inject_styles__$
|
|
6367
|
-
__vue_script__$
|
|
6368
|
-
__vue_scope_id__$
|
|
6369
|
-
__vue_is_functional_template__$
|
|
6370
|
-
__vue_module_identifier__$
|
|
6366
|
+
const __vue_component__$i = /*#__PURE__*/normalizeComponent(
|
|
6367
|
+
{ render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
|
|
6368
|
+
__vue_inject_styles__$i,
|
|
6369
|
+
__vue_script__$i,
|
|
6370
|
+
__vue_scope_id__$i,
|
|
6371
|
+
__vue_is_functional_template__$i,
|
|
6372
|
+
__vue_module_identifier__$i,
|
|
6371
6373
|
false,
|
|
6372
6374
|
createInjector,
|
|
6373
6375
|
undefined,
|
|
6374
6376
|
undefined
|
|
6375
6377
|
);
|
|
6376
6378
|
|
|
6377
|
-
__vue_component__$
|
|
6379
|
+
__vue_component__$i.install = Vue => Vue.component(__vue_component__$i.name, __vue_component__$i);
|
|
6378
6380
|
|
|
6379
6381
|
//
|
|
6380
|
-
var script$
|
|
6382
|
+
var script$h = {
|
|
6381
6383
|
name: 'ele-timeline',
|
|
6382
6384
|
props: {
|
|
6383
6385
|
url: {
|
|
@@ -6465,10 +6467,10 @@ var script$f = {
|
|
|
6465
6467
|
};
|
|
6466
6468
|
|
|
6467
6469
|
/* script */
|
|
6468
|
-
const __vue_script__$
|
|
6470
|
+
const __vue_script__$h = script$h;
|
|
6469
6471
|
|
|
6470
6472
|
/* template */
|
|
6471
|
-
var __vue_render__$
|
|
6473
|
+
var __vue_render__$h = function () {
|
|
6472
6474
|
var _vm = this;
|
|
6473
6475
|
var _h = _vm.$createElement;
|
|
6474
6476
|
var _c = _vm._self._c || _h;
|
|
@@ -6546,7 +6548,7 @@ var __vue_render__$f = function () {
|
|
|
6546
6548
|
0
|
|
6547
6549
|
)
|
|
6548
6550
|
};
|
|
6549
|
-
var __vue_staticRenderFns__$
|
|
6551
|
+
var __vue_staticRenderFns__$h = [
|
|
6550
6552
|
function () {
|
|
6551
6553
|
var _vm = this;
|
|
6552
6554
|
var _h = _vm.$createElement;
|
|
@@ -6558,41 +6560,41 @@ var __vue_staticRenderFns__$f = [
|
|
|
6558
6560
|
])
|
|
6559
6561
|
},
|
|
6560
6562
|
];
|
|
6561
|
-
__vue_render__$
|
|
6563
|
+
__vue_render__$h._withStripped = true;
|
|
6562
6564
|
|
|
6563
6565
|
/* style */
|
|
6564
|
-
const __vue_inject_styles__$
|
|
6566
|
+
const __vue_inject_styles__$h = function (inject) {
|
|
6565
6567
|
if (!inject) return
|
|
6566
6568
|
inject("data-v-24d69f04_0", { source: ".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\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,eAAe;AACjB;AAEA;EACE,+BAA+B;EAC/B,sCAAsC;EACtC,sCAAsC;EACtC,sCAAsC;EACtC,uCAAuC;EACvC,uCAAuC;EACvC,uCAAuC;EACvC,mDAAmD;EACnD,4BAA4B;EAC5B,4BAA4B;EAC5B,0BAA0B;EAC1B,wBAAwB;EACxB,8BAA8B;EAC9B,+BAA+B;EAC/B,qCAAqC;EACrC,gCAAgC;EAChC,4BAA4B;EAC5B,qDAAqD;EACrD,kDAAkD;EAClD,gDAAgD;EAChD,gCAAgC;EAChC,uCAAuC;EACvC,yBAAyB;EACzB,yBAAyB;EACzB,oCAAoC;AACtC;AAEA;EACE,4DAA4D;AAC9D;AAEA;EACE,4DAA4D;AAC9D;;AAEA,oCAAoC","file":"index.vue","sourcesContent":[".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined })
|
|
6567
6569
|
,inject("data-v-24d69f04_1", { source: ".ele-timeline__wrapper[data-v-24d69f04] {\n width: 100%;\n height: 100%;\n}\n.ele-timeline__wrapper .ele-timeline__item[data-v-24d69f04] {\n display: flex;\n flex-direction: row;\n}\n.ele-timeline__wrapper .ele-timeline__item:last-child .ele-timeline__middle .ele-timeline__traline[data-v-24d69f04] {\n display: none;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__left[data-v-24d69f04] {\n flex: 1;\n padding-right: 12px;\n padding-top: 16px;\n padding-bottom: 16px;\n text-align: right;\n display: flex;\n flex-direction: row;\n justify-content: end;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__left .titleline-left__date[data-v-24d69f04] {\n width: 100px;\n font-size: 14px;\n color: var(--idoole-black-064);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__middle[data-v-24d69f04] {\n width: 10px;\n display: flex;\n flex-direction: column;\n align-items: center;\n transform: translate(0, 20px);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__middle .ele-timeline__circle[data-v-24d69f04] {\n width: 100%;\n height: 10px;\n border-radius: 50%;\n border-width: 2px;\n border-style: solid;\n border-color: var(--idooel-primary-color);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__middle .ele-timeline__traline[data-v-24d69f04] {\n width: 1px;\n height: calc(100% - 10px);\n border-width: 1px;\n border-style: solid;\n border-color: var(--idoole-black-016);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right[data-v-24d69f04] {\n text-align: left;\n flex: 2;\n padding-left: 12px;\n padding-top: 16px;\n padding-bottom: 16px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title[data-v-24d69f04] {\n line-height: 22px;\n display: flex;\n flex-direction: row;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title[data-v-24d69f04] {\n color: var(--idoole-black-088);\n font-size: 14px;\n font-weight: bold;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info[data-v-24d69f04] {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info[data-v-24d69f04]::before {\n content: \"\";\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info.success[data-v-24d69f04]::before {\n background: var(--idoole-success-06);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info.warning[data-v-24d69f04]::before {\n background: var(--idoole-warning-06);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info.error[data-v-24d69f04]::before {\n background: var(--idoole-error-06);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__oper[data-v-24d69f04] {\n line-height: 22px;\n margin-top: 8px;\n margin-left: 12px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__oper .oper-name[data-v-24d69f04] {\n color: var(--idoole-black-088);\n font-size: 14px;\n font-weight: bold;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__subtitle[data-v-24d69f04] {\n margin-left: 12px;\n display: flex;\n flex-direction: row;\n line-height: 22px;\n margin-top: 4px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__subtitle .right-subtitle__field[data-v-24d69f04] {\n flex-shrink: 0;\n font-size: 14px;\n color: var(--idoole-black-064);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__subtitle .right-subtitle__content[data-v-24d69f04] {\n font-size: 14px;\n color: var(--idoole-black-088);\n font-weight: bold;\n margin-left: 4px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/timeline/src/index.vue","index.vue"],"names":[],"mappings":"AA6HA;EACA,WAAA;EACA,YAAA;AC5HA;AD6HA;EACA,aAAA;EACA,mBAAA;AC3HA;AD8HA;EACA,aAAA;AC5HA;ADgIA;EACA,OAAA;EACA,mBAAA;EACA,iBAAA;EACA,oBAAA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,oBAAA;AC9HA;AD+HA;EACA,YAAA;EACA,eAAA;EACA,8BAAA;AC7HA;ADgIA;EACA,WAAA;EACA,aAAA;EACA,sBAAA;EACA,mBAAA;EACA,6BAAA;AC9HA;AD+HA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,yCAAA;AC7HA;AD+HA;EACA,UAAA;EACA,yBAAA;EACA,iBAAA;EACA,mBAAA;EACA,qCAAA;AC7HA;ADgIA;EACA,gBAAA;EACA,OAAA;EACA,kBAAA;EACA,iBAAA;EACA,oBAAA;AC9HA;AD+HA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;AC7HA;AD8HA;EACA,8BAAA;EACA,eAAA;EACA,iBAAA;AC5HA;AD8HA;EACA,eAAA;EACA,8BAAA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;AC5HA;AD6HA;EACA,WAAA;EACA,qBAAA;EACA,UAAA;EACA,WAAA;EACA,kBAAA;EACA,iBAAA;AC3HA;AD8HA;EACA,oCAAA;AC5HA;ADgIA;EACA,oCAAA;AC9HA;ADkIA;EACA,kCAAA;AChIA;ADqIA;EACA,iBAAA;EACA,eAAA;EACA,iBAAA;ACnIA;ADoIA;EACA,8BAAA;EACA,eAAA;EACA,iBAAA;AClIA;ADqIA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,iBAAA;EACA,eAAA;ACnIA;ADoIA;EACA,cAAA;EACA,eAAA;EACA,8BAAA;AClIA;ADoIA;EACA,eAAA;EACA,8BAAA;EACA,iBAAA;EACA,gBAAA;AClIA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"ele-timeline__wrapper\">\n <div class=\"ele-timeline__item\" v-for=\"item in innerDataSource\" :key=\"item.key\">\n <div class=\"ele-timeline__left\">\n <div class=\"titleline-left__date\">{{ item.date }}</div>\n </div>\n <div class=\"ele-timeline__middle\">\n <div class=\"ele-timeline__circle\"></div>\n <div class=\"ele-timeline__traline\"></div>\n </div>\n <div class=\"ele-timeline__right\">\n <slot v-if=\"$scopedSlots.right\" name=\"right\" :data=\"item\"></slot>\n <template v-else>\n <div class=\"timeline-right__title\">\n <span class=\"title\">{{ item.title }}</span>\n <span :class=\"['title-info', item.state == 1 && 'success', item.state == 2 && 'warning', item.state == 3 && 'error']\">{{ item.stateName }}</span>\n </div>\n <div class=\"timeline-right__oper\">\n 由\n <span class=\"oper-name\">{{ item.userName }}</span>\n 操作\n </div>\n <div class=\"timeline-right__subtitle\" v-for=\"label in item.labelList\" :key=\"label.value\">\n <div class=\"right-subtitle__field\">{{ label.label }}:</div>\n <div class=\"right-subtitle__content\">{{ label.value }}</div>\n </div>\n </template>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { net, type } from '@idooel/shared'\nimport { v4 as uuidv4 } from 'uuid'\nimport { CONTEXT, parseFieldMap } from '../../utils'\nexport default {\n name: 'ele-timeline',\n props: {\n url: {\n type: String\n },\n params: {\n type: Object,\n default: () => ({})\n },\n requestType: {\n type: String,\n default: 'GET'\n },\n fieldMap: {\n type: Object,\n default: () => ({})\n },\n dataSource: {\n type: Array,\n default: () => ([\n // {\n // date: '2023/05/09 03:34:56',\n // title: 123,\n // state: 1,\n // stateName: '成功',\n // userName: 'Name',\n // labelList: [\n // {\n // label: 'label',\n // value: 'value'\n // }\n // ],\n // action: '结班',\n // opinion: '意见'\n // }\n ])\n }\n },\n data () {\n return {\n innerDataSource: []\n }\n },\n inject: {\n [CONTEXT]: {\n default: () => (() => ({}))\n }\n },\n computed: {\n expressionData () {\n return {\n _route: this.$route.query,\n ...this[CONTEXT]()\n }\n }\n },\n async created() {\n if (this.url) {\n this.innerDataSource = await this.requestData()\n } else if (!type.isEmpty(this.dataSource)) {\n this.innerDataSource = this.dataSource\n } else {\n console.warn('ele-timeline: 请传入数据源')\n }\n },\n methods: {\n async requestData () {\n const ret = await net[this.requestType.toLowerCase()](\n this.url,\n { ...this.params, ...parseFieldMap(this.fieldMap, this.expressionData) }\n ).then(resp => {\n const { data } = resp || {}\n return data.map(item => {\n return {\n key: uuidv4(),\n ...item\n }\n })\n })\n return ret\n }\n }\n}\n</script>\n<style lang=\"scss\">\n@import '../../theme/index';\n</style>\n<style lang=\"scss\" scoped>\n.ele-timeline__wrapper {\n width: 100%;\n height: 100%;\n .ele-timeline__item {\n display: flex;\n flex-direction: row;\n &:last-child {\n .ele-timeline__middle {\n .ele-timeline__traline {\n display: none;\n }\n }\n }\n .ele-timeline__left {\n flex: 1;\n padding-right: 12px;\n padding-top: 16px;\n padding-bottom: 16px;\n text-align: right;\n display: flex;\n flex-direction: row;\n justify-content: end;\n .titleline-left__date {\n width: 100px;\n font-size: 14px;\n color: var(--idoole-black-064);\n }\n }\n .ele-timeline__middle {\n width: 10px;\n display: flex;\n flex-direction: column;\n align-items: center;\n transform: translate(0, 20px);\n .ele-timeline__circle {\n width: 100%;\n height: 10px;\n border-radius: 50%;\n border-width: 2px;\n border-style: solid;\n border-color: var(--idooel-primary-color);\n }\n .ele-timeline__traline {\n width: 1px;\n height: calc(100% - 10px);\n border-width: 1px;\n border-style: solid;\n border-color: var(--idoole-black-016);\n }\n }\n .ele-timeline__right {\n text-align: left;\n flex: 2;\n padding-left: 12px;\n padding-top: 16px;\n padding-bottom: 16px;\n .timeline-right__title {\n line-height: 22px;\n display: flex;\n flex-direction: row;\n .title {\n color: var(--idoole-black-088);\n font-size: 14px;\n font-weight: bold;\n }\n .title-info {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n &::before {\n content: '';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n }\n &.success {\n &::before {\n background: var(--idoole-success-06);\n }\n }\n &.warning {\n &::before {\n background: var(--idoole-warning-06);\n }\n }\n &.error {\n &::before {\n background: var(--idoole-error-06);\n }\n }\n }\n }\n .timeline-right__oper {\n line-height: 22px;\n margin-top: 8px;\n margin-left: 12px;\n .oper-name {\n color: var(--idoole-black-088);\n font-size: 14px;\n font-weight: bold;\n }\n }\n .timeline-right__subtitle {\n margin-left: 12px;\n display: flex;\n flex-direction: row;\n line-height: 22px;\n margin-top: 4px;\n .right-subtitle__field {\n flex-shrink: 0;\n font-size: 14px;\n color: var(--idoole-black-064);\n }\n .right-subtitle__content {\n font-size: 14px;\n color: var(--idoole-black-088);\n font-weight: bold;\n margin-left: 4px;\n }\n }\n }\n }\n}\n</style>",".ele-timeline__wrapper {\n width: 100%;\n height: 100%;\n}\n.ele-timeline__wrapper .ele-timeline__item {\n display: flex;\n flex-direction: row;\n}\n.ele-timeline__wrapper .ele-timeline__item:last-child .ele-timeline__middle .ele-timeline__traline {\n display: none;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__left {\n flex: 1;\n padding-right: 12px;\n padding-top: 16px;\n padding-bottom: 16px;\n text-align: right;\n display: flex;\n flex-direction: row;\n justify-content: end;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__left .titleline-left__date {\n width: 100px;\n font-size: 14px;\n color: var(--idoole-black-064);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__middle {\n width: 10px;\n display: flex;\n flex-direction: column;\n align-items: center;\n transform: translate(0, 20px);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__middle .ele-timeline__circle {\n width: 100%;\n height: 10px;\n border-radius: 50%;\n border-width: 2px;\n border-style: solid;\n border-color: var(--idooel-primary-color);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__middle .ele-timeline__traline {\n width: 1px;\n height: calc(100% - 10px);\n border-width: 1px;\n border-style: solid;\n border-color: var(--idoole-black-016);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right {\n text-align: left;\n flex: 2;\n padding-left: 12px;\n padding-top: 16px;\n padding-bottom: 16px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title {\n line-height: 22px;\n display: flex;\n flex-direction: row;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title {\n color: var(--idoole-black-088);\n font-size: 14px;\n font-weight: bold;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info::before {\n content: \"\";\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info.success::before {\n background: var(--idoole-success-06);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info.warning::before {\n background: var(--idoole-warning-06);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__title .title-info.error::before {\n background: var(--idoole-error-06);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__oper {\n line-height: 22px;\n margin-top: 8px;\n margin-left: 12px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__oper .oper-name {\n color: var(--idoole-black-088);\n font-size: 14px;\n font-weight: bold;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__subtitle {\n margin-left: 12px;\n display: flex;\n flex-direction: row;\n line-height: 22px;\n margin-top: 4px;\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__subtitle .right-subtitle__field {\n flex-shrink: 0;\n font-size: 14px;\n color: var(--idoole-black-064);\n}\n.ele-timeline__wrapper .ele-timeline__item .ele-timeline__right .timeline-right__subtitle .right-subtitle__content {\n font-size: 14px;\n color: var(--idoole-black-088);\n font-weight: bold;\n margin-left: 4px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
6568
6570
|
|
|
6569
6571
|
};
|
|
6570
6572
|
/* scoped */
|
|
6571
|
-
const __vue_scope_id__$
|
|
6573
|
+
const __vue_scope_id__$h = "data-v-24d69f04";
|
|
6572
6574
|
/* module identifier */
|
|
6573
|
-
const __vue_module_identifier__$
|
|
6575
|
+
const __vue_module_identifier__$h = undefined;
|
|
6574
6576
|
/* functional template */
|
|
6575
|
-
const __vue_is_functional_template__$
|
|
6577
|
+
const __vue_is_functional_template__$h = false;
|
|
6576
6578
|
/* style inject SSR */
|
|
6577
6579
|
|
|
6578
6580
|
/* style inject shadow dom */
|
|
6579
6581
|
|
|
6580
6582
|
|
|
6581
6583
|
|
|
6582
|
-
const __vue_component__$
|
|
6583
|
-
{ render: __vue_render__$
|
|
6584
|
-
__vue_inject_styles__$
|
|
6585
|
-
__vue_script__$
|
|
6586
|
-
__vue_scope_id__$
|
|
6587
|
-
__vue_is_functional_template__$
|
|
6588
|
-
__vue_module_identifier__$
|
|
6584
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent(
|
|
6585
|
+
{ render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
|
|
6586
|
+
__vue_inject_styles__$h,
|
|
6587
|
+
__vue_script__$h,
|
|
6588
|
+
__vue_scope_id__$h,
|
|
6589
|
+
__vue_is_functional_template__$h,
|
|
6590
|
+
__vue_module_identifier__$h,
|
|
6589
6591
|
false,
|
|
6590
6592
|
createInjector,
|
|
6591
6593
|
undefined,
|
|
6592
6594
|
undefined
|
|
6593
6595
|
);
|
|
6594
6596
|
|
|
6595
|
-
__vue_component__$
|
|
6597
|
+
__vue_component__$h.install = Vue => Vue.component(__vue_component__$h.name, __vue_component__$h);
|
|
6596
6598
|
|
|
6597
6599
|
//
|
|
6598
6600
|
//
|
|
@@ -6602,7 +6604,7 @@ __vue_component__$f.install = Vue => Vue.component(__vue_component__$f.name, __v
|
|
|
6602
6604
|
//
|
|
6603
6605
|
//
|
|
6604
6606
|
|
|
6605
|
-
var script$
|
|
6607
|
+
var script$g = {
|
|
6606
6608
|
name: 'ele-text',
|
|
6607
6609
|
props: {
|
|
6608
6610
|
type: {
|
|
@@ -6622,10 +6624,10 @@ var script$e = {
|
|
|
6622
6624
|
};
|
|
6623
6625
|
|
|
6624
6626
|
/* script */
|
|
6625
|
-
const __vue_script__$
|
|
6627
|
+
const __vue_script__$g = script$g;
|
|
6626
6628
|
|
|
6627
6629
|
/* template */
|
|
6628
|
-
var __vue_render__$
|
|
6630
|
+
var __vue_render__$g = function () {
|
|
6629
6631
|
var _vm = this;
|
|
6630
6632
|
var _h = _vm.$createElement;
|
|
6631
6633
|
var _c = _vm._self._c || _h;
|
|
@@ -6640,41 +6642,41 @@ var __vue_render__$e = function () {
|
|
|
6640
6642
|
1
|
|
6641
6643
|
)
|
|
6642
6644
|
};
|
|
6643
|
-
var __vue_staticRenderFns__$
|
|
6644
|
-
__vue_render__$
|
|
6645
|
+
var __vue_staticRenderFns__$g = [];
|
|
6646
|
+
__vue_render__$g._withStripped = true;
|
|
6645
6647
|
|
|
6646
6648
|
/* style */
|
|
6647
|
-
const __vue_inject_styles__$
|
|
6649
|
+
const __vue_inject_styles__$g = function (inject) {
|
|
6648
6650
|
if (!inject) return
|
|
6649
6651
|
inject("data-v-636e07f7_0", { source: ".ele-text__wrapper[data-v-636e07f7] {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-text__wrapper.default .anticon[data-v-636e07f7], .ele-text__wrapper.default .message[data-v-636e07f7] {\n color: var(--idoole-black-064);\n}\n.ele-text__wrapper .anticon[data-v-636e07f7] {\n font-size: 16px;\n}\n.ele-text__wrapper .message[data-v-636e07f7] {\n font-size: 14px;\n margin-left: 4px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/text/src/index.vue","index.vue"],"names":[],"mappings":"AA8BA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;AC7BA;AD+BA;EACA,8BAAA;AC7BA;ADgCA;EACA,eAAA;AC9BA;ADgCA;EACA,eAAA;EACA,gBAAA;AC9BA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div :class=\"['ele-text__wrapper', type]\">\n <ele-icon theme=\"filled\" :type=\"icon\"></ele-icon>\n <span class=\"message\">{{ message }}</span>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'ele-text',\n props: {\n type: {\n String,\n // default success error warning info\n default: 'default'\n },\n message: {\n type: String\n }\n },\n computed: {\n icon() {\n return 'info-circle'\n }\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n//\n.ele-text__wrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n &.default {\n .anticon, .message {\n color: var(--idoole-black-064);\n }\n }\n .anticon {\n font-size: 16px;\n }\n .message {\n font-size: 14px;\n margin-left: 4px;\n }\n}\n</style>",".ele-text__wrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-text__wrapper.default .anticon, .ele-text__wrapper.default .message {\n color: var(--idoole-black-064);\n}\n.ele-text__wrapper .anticon {\n font-size: 16px;\n}\n.ele-text__wrapper .message {\n font-size: 14px;\n margin-left: 4px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
6650
6652
|
|
|
6651
6653
|
};
|
|
6652
6654
|
/* scoped */
|
|
6653
|
-
const __vue_scope_id__$
|
|
6655
|
+
const __vue_scope_id__$g = "data-v-636e07f7";
|
|
6654
6656
|
/* module identifier */
|
|
6655
|
-
const __vue_module_identifier__$
|
|
6657
|
+
const __vue_module_identifier__$g = undefined;
|
|
6656
6658
|
/* functional template */
|
|
6657
|
-
const __vue_is_functional_template__$
|
|
6659
|
+
const __vue_is_functional_template__$g = false;
|
|
6658
6660
|
/* style inject SSR */
|
|
6659
6661
|
|
|
6660
6662
|
/* style inject shadow dom */
|
|
6661
6663
|
|
|
6662
6664
|
|
|
6663
6665
|
|
|
6664
|
-
const __vue_component__$
|
|
6665
|
-
{ render: __vue_render__$
|
|
6666
|
-
__vue_inject_styles__$
|
|
6667
|
-
__vue_script__$
|
|
6668
|
-
__vue_scope_id__$
|
|
6669
|
-
__vue_is_functional_template__$
|
|
6670
|
-
__vue_module_identifier__$
|
|
6666
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent(
|
|
6667
|
+
{ render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
|
|
6668
|
+
__vue_inject_styles__$g,
|
|
6669
|
+
__vue_script__$g,
|
|
6670
|
+
__vue_scope_id__$g,
|
|
6671
|
+
__vue_is_functional_template__$g,
|
|
6672
|
+
__vue_module_identifier__$g,
|
|
6671
6673
|
false,
|
|
6672
6674
|
createInjector,
|
|
6673
6675
|
undefined,
|
|
6674
6676
|
undefined
|
|
6675
6677
|
);
|
|
6676
6678
|
|
|
6677
|
-
__vue_component__$
|
|
6679
|
+
__vue_component__$g.install = Vue => Vue.component(__vue_component__$g.name, __vue_component__$g);
|
|
6678
6680
|
|
|
6679
6681
|
//
|
|
6680
6682
|
//
|
|
@@ -6691,7 +6693,7 @@ __vue_component__$e.install = Vue => Vue.component(__vue_component__$e.name, __v
|
|
|
6691
6693
|
//
|
|
6692
6694
|
//
|
|
6693
6695
|
|
|
6694
|
-
var script$
|
|
6696
|
+
var script$f = {
|
|
6695
6697
|
name: 'ele-tabs',
|
|
6696
6698
|
components: {},
|
|
6697
6699
|
model: {
|
|
@@ -6727,10 +6729,10 @@ var script$d = {
|
|
|
6727
6729
|
};
|
|
6728
6730
|
|
|
6729
6731
|
/* script */
|
|
6730
|
-
const __vue_script__$
|
|
6732
|
+
const __vue_script__$f = script$f;
|
|
6731
6733
|
|
|
6732
6734
|
/* template */
|
|
6733
|
-
var __vue_render__$
|
|
6735
|
+
var __vue_render__$f = function () {
|
|
6734
6736
|
var _vm = this;
|
|
6735
6737
|
var _h = _vm.$createElement;
|
|
6736
6738
|
var _c = _vm._self._c || _h;
|
|
@@ -6781,41 +6783,41 @@ var __vue_render__$d = function () {
|
|
|
6781
6783
|
1
|
|
6782
6784
|
)
|
|
6783
6785
|
};
|
|
6784
|
-
var __vue_staticRenderFns__$
|
|
6785
|
-
__vue_render__$
|
|
6786
|
+
var __vue_staticRenderFns__$f = [];
|
|
6787
|
+
__vue_render__$f._withStripped = true;
|
|
6786
6788
|
|
|
6787
6789
|
/* style */
|
|
6788
|
-
const __vue_inject_styles__$
|
|
6790
|
+
const __vue_inject_styles__$f = function (inject) {
|
|
6789
6791
|
if (!inject) return
|
|
6790
6792
|
inject("data-v-508efd50_0", { source: "[data-v-508efd50] .ant-tabs-nav-scroll {\n float: left !important;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/tabs/src/index.vue","index.vue"],"names":[],"mappings":"AAoDA;EACA,sBAAA;ACnDA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div>\n <a-tabs :default-active-key=\"activeKey\" :tabBarGutter=\"tabBarGutter\" :tabBarStyle=\"tabBarStyle\" @change=\"changeHandle\">\n <a-tab-pane v-for=\"(item, index) in tabsList\" :key=\"index\" :tab=\"item.tabName\" :disabled=\"item.disabled\">\n <template #tab>\n <component v-if=\"item.renderHeader\" :is=\"item.renderHeader\" ></component>\n <span v-else>{{ item.tabName }}</span>\n </template>\n <component :is=\"item.content\"></component>\n </a-tab-pane>\n </a-tabs>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'ele-tabs',\n components: {},\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n activeKey: {\n type: Number,\n default: 0\n },\n tabsList: {\n type: Array,\n default () {\n return []\n }\n },\n tabBarStyle: {\n type: Object,\n default () {\n return {}\n }\n },\n tabBarGutter: {\n type: Number\n }\n },\n methods: {\n changeHandle (key) {\n this.$emit('changeActiveKey', key)\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n::v-deep .ant-tabs-nav-scroll {\n float: left !important;\n}\n</style>","::v-deep .ant-tabs-nav-scroll {\n float: left !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
6791
6793
|
|
|
6792
6794
|
};
|
|
6793
6795
|
/* scoped */
|
|
6794
|
-
const __vue_scope_id__$
|
|
6796
|
+
const __vue_scope_id__$f = "data-v-508efd50";
|
|
6795
6797
|
/* module identifier */
|
|
6796
|
-
const __vue_module_identifier__$
|
|
6798
|
+
const __vue_module_identifier__$f = undefined;
|
|
6797
6799
|
/* functional template */
|
|
6798
|
-
const __vue_is_functional_template__$
|
|
6800
|
+
const __vue_is_functional_template__$f = false;
|
|
6799
6801
|
/* style inject SSR */
|
|
6800
6802
|
|
|
6801
6803
|
/* style inject shadow dom */
|
|
6802
6804
|
|
|
6803
6805
|
|
|
6804
6806
|
|
|
6805
|
-
const __vue_component__$
|
|
6806
|
-
{ render: __vue_render__$
|
|
6807
|
-
__vue_inject_styles__$
|
|
6808
|
-
__vue_script__$
|
|
6809
|
-
__vue_scope_id__$
|
|
6810
|
-
__vue_is_functional_template__$
|
|
6811
|
-
__vue_module_identifier__$
|
|
6812
|
-
false,
|
|
6807
|
+
const __vue_component__$f = /*#__PURE__*/normalizeComponent(
|
|
6808
|
+
{ render: __vue_render__$f, staticRenderFns: __vue_staticRenderFns__$f },
|
|
6809
|
+
__vue_inject_styles__$f,
|
|
6810
|
+
__vue_script__$f,
|
|
6811
|
+
__vue_scope_id__$f,
|
|
6812
|
+
__vue_is_functional_template__$f,
|
|
6813
|
+
__vue_module_identifier__$f,
|
|
6814
|
+
false,
|
|
6813
6815
|
createInjector,
|
|
6814
6816
|
undefined,
|
|
6815
6817
|
undefined
|
|
6816
6818
|
);
|
|
6817
6819
|
|
|
6818
|
-
__vue_component__$
|
|
6820
|
+
__vue_component__$f.install = Vue => Vue.component(__vue_component__$f.name, __vue_component__$f);
|
|
6819
6821
|
|
|
6820
6822
|
/*!
|
|
6821
6823
|
* Cropper.js v1.4.1
|
|
@@ -10527,7 +10529,7 @@ var Cropper = function () {
|
|
|
10527
10529
|
assign(Cropper.prototype, render, preview, events, handlers, change, methods);
|
|
10528
10530
|
|
|
10529
10531
|
//
|
|
10530
|
-
var script$
|
|
10532
|
+
var script$e = {
|
|
10531
10533
|
name: 'ele-modal-img-crop',
|
|
10532
10534
|
model: {
|
|
10533
10535
|
event: 'input',
|
|
@@ -10668,10 +10670,10 @@ var script$c = {
|
|
|
10668
10670
|
};
|
|
10669
10671
|
|
|
10670
10672
|
/* script */
|
|
10671
|
-
const __vue_script__$
|
|
10673
|
+
const __vue_script__$e = script$e;
|
|
10672
10674
|
|
|
10673
10675
|
/* template */
|
|
10674
|
-
var __vue_render__$
|
|
10676
|
+
var __vue_render__$e = function () {
|
|
10675
10677
|
var _vm = this;
|
|
10676
10678
|
var _h = _vm.$createElement;
|
|
10677
10679
|
var _c = _vm._self._c || _h;
|
|
@@ -10789,44 +10791,44 @@ var __vue_render__$c = function () {
|
|
|
10789
10791
|
1
|
|
10790
10792
|
)
|
|
10791
10793
|
};
|
|
10792
|
-
var __vue_staticRenderFns__$
|
|
10793
|
-
__vue_render__$
|
|
10794
|
+
var __vue_staticRenderFns__$e = [];
|
|
10795
|
+
__vue_render__$e._withStripped = true;
|
|
10794
10796
|
|
|
10795
10797
|
/* style */
|
|
10796
|
-
const __vue_inject_styles__$
|
|
10798
|
+
const __vue_inject_styles__$e = function (inject) {
|
|
10797
10799
|
if (!inject) return
|
|
10798
10800
|
inject("data-v-1fd3602e_0", { source: "[data-v-1fd3602e] .ant-modal-body {\n padding: 16px;\n}\n[data-v-1fd3602e] .ant-modal-header {\n padding: 16px;\n}\n.ele-imgCrop__wrapper[data-v-1fd3602e] {\n display: flex;\n gap: 16px;\n justify-content: center;\n margin-bottom: 30px;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg[data-v-1fd3602e] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n position: relative;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .img-crop-left__image[data-v-1fd3602e] {\n width: 100%;\n height: 100%;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload[data-v-1fd3602e] {\n width: 100%;\n height: 100%;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload[data-v-1fd3602e] .ele-upload__inner {\n height: 100%;\n border: unset;\n background: transparent !important;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload[data-v-1fd3602e] .ele-upload__inner .ele-upload__area {\n display: flex;\n flex-direction: column;\n height: 100%;\n align-items: center;\n justify-content: center;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload[data-v-1fd3602e] .ele-upload__inner .ele-upload__area .ele-upload__area--text {\n margin-top: 16px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-imgCrop__font1[data-v-1fd3602e] {\n color: var(--idoole-black-088);\n font-size: 16px;\n line-height: 24px !important;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-imgCrop__font2[data-v-1fd3602e] {\n color: var(--idoole-black-06);\n font-size: 14px;\n line-height: 22px;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__update[data-v-1fd3602e] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__right[data-v-1fd3602e] {\n position: relative;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__right span[data-v-1fd3602e] {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ele-imgCrop__wrapper .ele-imgCrop__right .img-crop-right__image[data-v-1fd3602e] {\n width: 100%;\n height: 100%;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__item[data-v-1fd3602e] {\n width: 480px;\n height: 300px;\n border-radius: 2px;\n border: 1px dashed var(--idooel-form-title-border-color);\n background: var(--idooel-form-upload-bg-color);\n}\n.ele-imgCrop__tips[data-v-1fd3602e] {\n float: left;\n width: 80%;\n}\n.ele-imgCrop__error[data-v-1fd3602e] {\n color: var(--idooel-form-border-err-color) !important;\n}\n.ele-imgCrop__error2[data-v-1fd3602e] {\n color: var(--idooel-img-crop-err-color) !important;\n}\n.ele-imgCrop__icon[data-v-1fd3602e] {\n font-size: 48px;\n color: var(--idooel-link-06);\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/composite-components/modal-img-crop/src/index.vue","index.vue"],"names":[],"mappings":"AAsLA;EACA,aAAA;ACrLA;ADuLA;EACA,aAAA;ACpLA;ADsLA;EACA,aAAA;EACA,SAAA;EACA,uBAAA;EACA,mBAAA;ACnLA;ADqLA;EACA,aAAA;EACA,sBAAA;EACA,uBAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;ACnLA;ADoLA;EACA,WAAA;EACA,YAAA;AClLA;ADoLA;EACA,WAAA;EACA,YAAA;AClLA;ADmLA;EACA,YAAA;EACA,aAAA;EACA,kCAAA;ACjLA;ADkLA;EACA,aAAA;EACA,sBAAA;EACA,YAAA;EACA,mBAAA;EACA,uBAAA;AChLA;ADiLA;EACA,gBAAA;EACA,aAAA;EACA,sBAAA;EACA,mBAAA;AC/KA;ADoLA;EACA,8BAAA;EACA,eAAA;EACA,4BAAA;AClLA;ADoLA;EACA,6BAAA;EACA,eAAA;EACA,iBAAA;AClLA;ADqLA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;EACA,UAAA;EACA,eAAA;ACnLA;ADsLA;EACA,kBAAA;ACpLA;ADqLA;EACA,kBAAA;EACA,QAAA;EACA,SAAA;EACA,gCAAA;ACnLA;ADqLA;EACA,WAAA;EACA,YAAA;ACnLA;ADsLA;EACA,YAAA;EACA,aAAA;EACA,kBAAA;EACA,wDAAA;EACA,8CAAA;ACpLA;ADuLA;EACA,WAAA;EACA,UAAA;ACpLA;ADsLA;EACA,qDAAA;ACnLA;ADqLA;EACA,kDAAA;AClLA;ADoLA;EACA,eAAA;EACA,4BAAA;ACjLA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div>\n <ele-modal\n :ref=\"getEleModal\"\n :title=\"title\"\n :cancelText=\"cancelText\"\n :maskClosable=\"maskClosable\"\n v-on=\"$listeners\"\n :size=\"size\"\n :value=\"value\"\n @ok=\"handleOk\"\n :showDefaultFooter=\"true\"\n >\n <div class=\"ele-imgCrop__wrapper\">\n <div class=\"ele-imgCrop__left ele-imgCrop__item\">\n <div class=\"ele-imgCrop__noImg\">\n <ele-upload v-if=\"!fileId\" v-bind=\"uploadFileConfig\" class=\"ele-img-crop__upload\" @on-success=\"onUploadFileSuccess\" icon=\"inbox\" url=\"api/zuul/api-file/workbench/file\"></ele-upload>\n <template v-else>\n <img :ref=\"leftImage\" class=\"img-crop-left__image\" :src=\"imageUrl\" alt=\"\">\n </template>\n </div>\n <div class=\"margin-t-8\">\n <span v-if=\"imgtips\" class=\"ele-imgCrop__font1 ele-imgCrop__tips\" :class=\"isFail? 'ele-imgCrop__error' : ''\">{{ imgtips }}</span>\n <template v-else>\n <span class=\"ele-imgCrop__font1\">{{ fileName }}</span>\n <a-icon v-if=\"fileName\" @click=\"handleClickDeleteFile\" type=\"close\" style=\"cursor: pointer;float: right; line-height: 24px;\"/>\n </template>\n </div>\n </div>\n <div class=\"ele-imgCrop__right ele-imgCrop__item\">\n <span v-if=\"!fileId\" class=\"ele-imgCrop__font2\">左侧上传图片后可预览</span>\n <template v-else>\n <img class=\"img-crop-right__image\" :src=\"previewBase\" alt=\"\">\n </template>\n </div>\n </div>\n </ele-modal>\n </div>\n</template>\n\n<script>\nimport { v4 as uuidv4 } from 'uuid'\nimport Cropper from 'cropperjs'\nimport { util, net } from '@idooel/shared'\nexport default {\n name: 'ele-modal-img-crop',\n model: {\n event: 'input',\n prop: 'value'\n },\n props: {\n title: {\n type: String,\n default: '图像裁剪'\n },\n uploadFileConfig: {\n type: Object,\n default: () => {\n return {\n size: 10,\n accept: '*',\n byteConversion: 1024 * 1024\n }\n }\n },\n imageId: {\n type: String\n },\n maskClosable: {\n type: Boolean,\n default () {\n return false\n }\n },\n size: {\n type: String,\n default () {\n return 'big'\n }\n },\n value: {\n type: Boolean,\n default () {\n return false\n }\n },\n cropperConfig: {\n type: Object,\n default: () => {\n return {\n aspectRatio: 16 / 9\n }\n }\n }\n },\n data () {\n return {\n haveImg: false,\n imgtips: null,\n isFail: false,\n cancelText: '取消',\n fileName: null,\n fileId: null,\n previewBase: null,\n cropper: null\n }\n },\n computed: {\n leftImage () {\n return uuidv4()\n },\n imageUrl () {\n return `api-file/workbench/file/stream/${this.fileId}?origin=true`\n },\n getEleModal () {\n return uuidv4()\n }\n },\n watch: {\n value: {\n handler (value) {\n this.fileId = this.imageId\n if (value && this.fileId) {\n setTimeout(() => {\n this.initCropper()\n })\n }\n },\n immediate: true\n }\n },\n methods: {\n handleClickDeleteFile () {\n this.fileId = null\n this.fileName = null\n },\n handleOk () {\n this.cropper.getCroppedCanvas().toBlob(async (blob) => {\n await this.uploadFile(blob)\n this.$emit('input', false)\n this.$emit('change', this.fileId)\n })\n },\n async uploadFile (file) {\n const formData = new FormData()\n formData.append('serviceCode', 'cover-image')\n formData.append('_t', Math.random())\n formData.append('file', file)\n await net.post(\n 'zuul/api-file/workbench/file' + '?_csrf=' + localStorage.getItem('token'),\n formData\n ).then(() => {})\n },\n initCropper () {\n let previewReady = false\n console.log('this.$refs[this.leftImage', this.$refs[this.leftImage])\n this.cropper = new Cropper(this.$refs[this.leftImage], {\n aspectRatio: this.cropperConfig.aspectRatio,\n ready: () => {\n previewReady = true\n },\n crop: util.debounce(() => {\n if (!previewReady) {\n return\n }\n this.previewBase = this.cropper.getCroppedCanvas().toDataURL()\n }, 200)\n })\n },\n onUploadFileSuccess (props) {\n const { response: { data: { fileID } }, name } = props\n this.fileId = fileID\n this.fileName = name\n this.$nextTick(() => {\n this.initCropper()\n })\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n::v-deep .ant-modal-body {\n padding: 16px;\n}\n::v-deep .ant-modal-header {\n padding: 16px;\n}\n.ele-imgCrop__wrapper {\n display: flex;\n gap: 16px;\n justify-content: center;\n margin-bottom: 30px;\n .ele-imgCrop__left {\n .ele-imgCrop__noImg {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n position: relative;\n .img-crop-left__image {\n width: 100%;\n height: 100%;\n }\n .ele-img-crop__upload {\n width: 100%;\n height: 100%;\n ::v-deep .ele-upload__inner {\n height: 100%;\n border: unset;\n background: transparent !important;\n .ele-upload__area {\n display: flex;\n flex-direction: column;\n height: 100%;\n align-items: center;\n justify-content: center;\n .ele-upload__area--text {\n margin-top: 16px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n }\n }\n .ele-imgCrop__font1 {\n color: var(--idoole-black-088);\n font-size: 16px;\n line-height: 24px !important;\n }\n .ele-imgCrop__font2 {\n color: var(--idoole-black-06);\n font-size: 14px;\n line-height: 22px; \n }\n }\n .ele-imgCrop__update {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n }\n }\n .ele-imgCrop__right {\n position: relative;\n span {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n .img-crop-right__image {\n width: 100%;\n height: 100%;\n }\n }\n .ele-imgCrop__item {\n width: 480px;\n height: 300px;\n border-radius: 2px;\n border: 1px dashed var(--idooel-form-title-border-color);\n background: var(--idooel-form-upload-bg-color);\n }\n}\n.ele-imgCrop__tips {\n float: left;\n width: 80%;\n}\n.ele-imgCrop__error {\n color: var(--idooel-form-border-err-color) !important;\n}\n.ele-imgCrop__error2 {\n color: var(--idooel-img-crop-err-color) !important;\n}\n.ele-imgCrop__icon {\n font-size: 48px;\n color: var(--idooel-link-06);\n}\n</style>","::v-deep .ant-modal-body {\n padding: 16px;\n}\n\n::v-deep .ant-modal-header {\n padding: 16px;\n}\n\n.ele-imgCrop__wrapper {\n display: flex;\n gap: 16px;\n justify-content: center;\n margin-bottom: 30px;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n position: relative;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .img-crop-left__image {\n width: 100%;\n height: 100%;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload {\n width: 100%;\n height: 100%;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload ::v-deep .ele-upload__inner {\n height: 100%;\n border: unset;\n background: transparent !important;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload ::v-deep .ele-upload__inner .ele-upload__area {\n display: flex;\n flex-direction: column;\n height: 100%;\n align-items: center;\n justify-content: center;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-img-crop__upload ::v-deep .ele-upload__inner .ele-upload__area .ele-upload__area--text {\n margin-top: 16px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-imgCrop__font1 {\n color: var(--idoole-black-088);\n font-size: 16px;\n line-height: 24px !important;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__noImg .ele-imgCrop__font2 {\n color: var(--idoole-black-06);\n font-size: 14px;\n line-height: 22px;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__left .ele-imgCrop__update {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__right {\n position: relative;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__right span {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ele-imgCrop__wrapper .ele-imgCrop__right .img-crop-right__image {\n width: 100%;\n height: 100%;\n}\n.ele-imgCrop__wrapper .ele-imgCrop__item {\n width: 480px;\n height: 300px;\n border-radius: 2px;\n border: 1px dashed var(--idooel-form-title-border-color);\n background: var(--idooel-form-upload-bg-color);\n}\n\n.ele-imgCrop__tips {\n float: left;\n width: 80%;\n}\n\n.ele-imgCrop__error {\n color: var(--idooel-form-border-err-color) !important;\n}\n\n.ele-imgCrop__error2 {\n color: var(--idooel-img-crop-err-color) !important;\n}\n\n.ele-imgCrop__icon {\n font-size: 48px;\n color: var(--idooel-link-06);\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
10799
10801
|
|
|
10800
10802
|
};
|
|
10801
10803
|
/* scoped */
|
|
10802
|
-
const __vue_scope_id__$
|
|
10804
|
+
const __vue_scope_id__$e = "data-v-1fd3602e";
|
|
10803
10805
|
/* module identifier */
|
|
10804
|
-
const __vue_module_identifier__$
|
|
10806
|
+
const __vue_module_identifier__$e = undefined;
|
|
10805
10807
|
/* functional template */
|
|
10806
|
-
const __vue_is_functional_template__$
|
|
10808
|
+
const __vue_is_functional_template__$e = false;
|
|
10807
10809
|
/* style inject SSR */
|
|
10808
10810
|
|
|
10809
10811
|
/* style inject shadow dom */
|
|
10810
10812
|
|
|
10811
10813
|
|
|
10812
10814
|
|
|
10813
|
-
const __vue_component__$
|
|
10814
|
-
{ render: __vue_render__$
|
|
10815
|
-
__vue_inject_styles__$
|
|
10816
|
-
__vue_script__$
|
|
10817
|
-
__vue_scope_id__$
|
|
10818
|
-
__vue_is_functional_template__$
|
|
10819
|
-
__vue_module_identifier__$
|
|
10815
|
+
const __vue_component__$e = /*#__PURE__*/normalizeComponent(
|
|
10816
|
+
{ render: __vue_render__$e, staticRenderFns: __vue_staticRenderFns__$e },
|
|
10817
|
+
__vue_inject_styles__$e,
|
|
10818
|
+
__vue_script__$e,
|
|
10819
|
+
__vue_scope_id__$e,
|
|
10820
|
+
__vue_is_functional_template__$e,
|
|
10821
|
+
__vue_module_identifier__$e,
|
|
10820
10822
|
false,
|
|
10821
10823
|
createInjector,
|
|
10822
10824
|
undefined,
|
|
10823
10825
|
undefined
|
|
10824
10826
|
);
|
|
10825
10827
|
|
|
10826
|
-
__vue_component__$
|
|
10828
|
+
__vue_component__$e.install = Vue => Vue.component(__vue_component__$e.name, __vue_component__$e);
|
|
10827
10829
|
|
|
10828
10830
|
//
|
|
10829
|
-
var script$
|
|
10831
|
+
var script$d = {
|
|
10830
10832
|
name: 'ele-text-editor',
|
|
10831
10833
|
props: {
|
|
10832
10834
|
editorWidth: {
|
|
@@ -10872,10 +10874,10 @@ var script$b = {
|
|
|
10872
10874
|
};
|
|
10873
10875
|
|
|
10874
10876
|
/* script */
|
|
10875
|
-
const __vue_script__$
|
|
10877
|
+
const __vue_script__$d = script$d;
|
|
10876
10878
|
|
|
10877
10879
|
/* template */
|
|
10878
|
-
var __vue_render__$
|
|
10880
|
+
var __vue_render__$d = function () {
|
|
10879
10881
|
var _vm = this;
|
|
10880
10882
|
var _h = _vm.$createElement;
|
|
10881
10883
|
var _c = _vm._self._c || _h;
|
|
@@ -10898,41 +10900,41 @@ var __vue_render__$b = function () {
|
|
|
10898
10900
|
1
|
|
10899
10901
|
)
|
|
10900
10902
|
};
|
|
10901
|
-
var __vue_staticRenderFns__$
|
|
10902
|
-
__vue_render__$
|
|
10903
|
+
var __vue_staticRenderFns__$d = [];
|
|
10904
|
+
__vue_render__$d._withStripped = true;
|
|
10903
10905
|
|
|
10904
10906
|
/* style */
|
|
10905
|
-
const __vue_inject_styles__$
|
|
10907
|
+
const __vue_inject_styles__$d = function (inject) {
|
|
10906
10908
|
if (!inject) return
|
|
10907
10909
|
inject("data-v-baee03c0_0", { source: ".ele-editor__bottom[data-v-baee03c0] {\n height: 40px;\n padding: 8px 20px 8px 8px;\n border: 1px solid var(--idooel-form-title-border-color);\n border-top: 0px;\n}\n.ele-editor__bottom span[data-v-baee03c0] {\n color: var(--idoole-black-088);\n text-align: right;\n font-size: 12px;\n line-height: 20px;\n width: 100%;\n display: inline-block;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/text-editor/src/index.vue","index.vue"],"names":[],"mappings":"AA0DA;EACA,YAAA;EACA,yBAAA;EACA,uDAAA;EACA,eAAA;ACzDA;AD0DA;EACA,8BAAA;EACA,iBAAA;EACA,eAAA;EACA,iBAAA;EACA,WAAA;EACA,qBAAA;ACxDA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"ele-editor__wrapper\" :style=\"{width: editorWidth, height: editorHeight}\">\n <Vueditor :ref=\"getVueditor\" :style=\"{width: editorWidth, height: editorHeight}\"></Vueditor>\n <div class=\"ele-editor__bottom\">\n <span>{{ innerContent.length }}字</span>\n </div>\n </div>\n</template>\n\n<script>\nimport { v4 as uuidv4 } from 'uuid'\nexport default {\n name: 'ele-text-editor',\n props: {\n editorWidth: {\n type: String\n },\n editorHeight: {\n type: String\n },\n maxLength: {\n type: Number,\n default () {\n return 10\n }\n }\n },\n data() {\n return {\n editorConfig: {},\n textEditorRef: null\n }\n },\n computed: {\n innerContent () {\n let content = this.textEditorRef ? this.textEditorRef.getContent() : ''\n if (this.textEditorRef && content.length > this.maxLength) {\n content = content.substring(0, this.maxLength)\n this.$nextTick(() => {\n this.textEditorRef.setContent(content)\n })\n }\n this.$emit('input', content)\n return content\n },\n getVueditor () {\n return uuidv4()\n }\n },\n watch: {},\n methods: {},\n mounted () {\n this.textEditorRef = this.$refs[this.getVueditor]\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.ele-editor__bottom {\n height: 40px;\n padding: 8px 20px 8px 8px;\n border: 1px solid var(--idooel-form-title-border-color);\n border-top: 0px;\n span {\n color: var(--idoole-black-088);\n text-align: right;\n font-size: 12px;\n line-height: 20px;\n width: 100%;\n display: inline-block;\n }\n}\n</style>",".ele-editor__bottom {\n height: 40px;\n padding: 8px 20px 8px 8px;\n border: 1px solid var(--idooel-form-title-border-color);\n border-top: 0px;\n}\n.ele-editor__bottom span {\n color: var(--idoole-black-088);\n text-align: right;\n font-size: 12px;\n line-height: 20px;\n width: 100%;\n display: inline-block;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
10908
10910
|
|
|
10909
10911
|
};
|
|
10910
10912
|
/* scoped */
|
|
10911
|
-
const __vue_scope_id__$
|
|
10913
|
+
const __vue_scope_id__$d = "data-v-baee03c0";
|
|
10912
10914
|
/* module identifier */
|
|
10913
|
-
const __vue_module_identifier__$
|
|
10915
|
+
const __vue_module_identifier__$d = undefined;
|
|
10914
10916
|
/* functional template */
|
|
10915
|
-
const __vue_is_functional_template__$
|
|
10917
|
+
const __vue_is_functional_template__$d = false;
|
|
10916
10918
|
/* style inject SSR */
|
|
10917
10919
|
|
|
10918
10920
|
/* style inject shadow dom */
|
|
10919
10921
|
|
|
10920
10922
|
|
|
10921
10923
|
|
|
10922
|
-
const __vue_component__$
|
|
10923
|
-
{ render: __vue_render__$
|
|
10924
|
-
__vue_inject_styles__$
|
|
10925
|
-
__vue_script__$
|
|
10926
|
-
__vue_scope_id__$
|
|
10927
|
-
__vue_is_functional_template__$
|
|
10928
|
-
__vue_module_identifier__$
|
|
10924
|
+
const __vue_component__$d = /*#__PURE__*/normalizeComponent(
|
|
10925
|
+
{ render: __vue_render__$d, staticRenderFns: __vue_staticRenderFns__$d },
|
|
10926
|
+
__vue_inject_styles__$d,
|
|
10927
|
+
__vue_script__$d,
|
|
10928
|
+
__vue_scope_id__$d,
|
|
10929
|
+
__vue_is_functional_template__$d,
|
|
10930
|
+
__vue_module_identifier__$d,
|
|
10929
10931
|
false,
|
|
10930
10932
|
createInjector,
|
|
10931
10933
|
undefined,
|
|
10932
10934
|
undefined
|
|
10933
10935
|
);
|
|
10934
10936
|
|
|
10935
|
-
__vue_component__$
|
|
10937
|
+
__vue_component__$d.install = Vue => Vue.component(__vue_component__$d.name, __vue_component__$d);
|
|
10936
10938
|
|
|
10937
10939
|
//
|
|
10938
10940
|
//
|
|
@@ -10947,7 +10949,7 @@ __vue_component__$b.install = Vue => Vue.component(__vue_component__$b.name, __v
|
|
|
10947
10949
|
//
|
|
10948
10950
|
//
|
|
10949
10951
|
|
|
10950
|
-
var script$
|
|
10952
|
+
var script$c = {
|
|
10951
10953
|
name: 'ele-textarea',
|
|
10952
10954
|
model: {
|
|
10953
10955
|
prop: 'value',
|
|
@@ -10989,10 +10991,10 @@ var script$a = {
|
|
|
10989
10991
|
};
|
|
10990
10992
|
|
|
10991
10993
|
/* script */
|
|
10992
|
-
const __vue_script__$
|
|
10994
|
+
const __vue_script__$c = script$c;
|
|
10993
10995
|
|
|
10994
10996
|
/* template */
|
|
10995
|
-
var __vue_render__$
|
|
10997
|
+
var __vue_render__$c = function () {
|
|
10996
10998
|
var _vm = this;
|
|
10997
10999
|
var _h = _vm.$createElement;
|
|
10998
11000
|
var _c = _vm._self._c || _h;
|
|
@@ -11008,41 +11010,104 @@ var __vue_render__$a = function () {
|
|
|
11008
11010
|
on: { change: _vm.onChange },
|
|
11009
11011
|
})
|
|
11010
11012
|
};
|
|
11011
|
-
var __vue_staticRenderFns__$
|
|
11012
|
-
__vue_render__$
|
|
11013
|
+
var __vue_staticRenderFns__$c = [];
|
|
11014
|
+
__vue_render__$c._withStripped = true;
|
|
11013
11015
|
|
|
11014
11016
|
/* style */
|
|
11015
|
-
const __vue_inject_styles__$
|
|
11017
|
+
const __vue_inject_styles__$c = function (inject) {
|
|
11016
11018
|
if (!inject) return
|
|
11017
11019
|
inject("data-v-27d78bca_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\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"index.vue"}, media: undefined });
|
|
11018
11020
|
|
|
11019
11021
|
};
|
|
11020
11022
|
/* scoped */
|
|
11021
|
-
const __vue_scope_id__$
|
|
11023
|
+
const __vue_scope_id__$c = "data-v-27d78bca";
|
|
11022
11024
|
/* module identifier */
|
|
11023
|
-
const __vue_module_identifier__$
|
|
11025
|
+
const __vue_module_identifier__$c = undefined;
|
|
11024
11026
|
/* functional template */
|
|
11025
|
-
const __vue_is_functional_template__$
|
|
11027
|
+
const __vue_is_functional_template__$c = false;
|
|
11026
11028
|
/* style inject SSR */
|
|
11027
11029
|
|
|
11028
11030
|
/* style inject shadow dom */
|
|
11029
11031
|
|
|
11030
11032
|
|
|
11031
11033
|
|
|
11032
|
-
const __vue_component__$
|
|
11033
|
-
{ render: __vue_render__$
|
|
11034
|
-
__vue_inject_styles__$
|
|
11035
|
-
__vue_script__$
|
|
11036
|
-
__vue_scope_id__$
|
|
11037
|
-
__vue_is_functional_template__$
|
|
11038
|
-
__vue_module_identifier__$
|
|
11034
|
+
const __vue_component__$c = /*#__PURE__*/normalizeComponent(
|
|
11035
|
+
{ render: __vue_render__$c, staticRenderFns: __vue_staticRenderFns__$c },
|
|
11036
|
+
__vue_inject_styles__$c,
|
|
11037
|
+
__vue_script__$c,
|
|
11038
|
+
__vue_scope_id__$c,
|
|
11039
|
+
__vue_is_functional_template__$c,
|
|
11040
|
+
__vue_module_identifier__$c,
|
|
11041
|
+
false,
|
|
11042
|
+
createInjector,
|
|
11043
|
+
undefined,
|
|
11044
|
+
undefined
|
|
11045
|
+
);
|
|
11046
|
+
|
|
11047
|
+
__vue_component__$c.install = Vue => Vue.component(__vue_component__$c.name, __vue_component__$c);
|
|
11048
|
+
|
|
11049
|
+
//
|
|
11050
|
+
//
|
|
11051
|
+
//
|
|
11052
|
+
//
|
|
11053
|
+
//
|
|
11054
|
+
//
|
|
11055
|
+
|
|
11056
|
+
var script$b = {
|
|
11057
|
+
name: 'ele-loading',
|
|
11058
|
+
props: {
|
|
11059
|
+
loading: {
|
|
11060
|
+
type: Boolean,
|
|
11061
|
+
default: true
|
|
11062
|
+
}
|
|
11063
|
+
}
|
|
11064
|
+
};
|
|
11065
|
+
|
|
11066
|
+
/* script */
|
|
11067
|
+
const __vue_script__$b = script$b;
|
|
11068
|
+
|
|
11069
|
+
/* template */
|
|
11070
|
+
var __vue_render__$b = function () {
|
|
11071
|
+
var _vm = this;
|
|
11072
|
+
var _h = _vm.$createElement;
|
|
11073
|
+
var _c = _vm._self._c || _h;
|
|
11074
|
+
return _vm.loading ? _c("div", { staticClass: "g-loading" }) : _vm._e()
|
|
11075
|
+
};
|
|
11076
|
+
var __vue_staticRenderFns__$b = [];
|
|
11077
|
+
__vue_render__$b._withStripped = true;
|
|
11078
|
+
|
|
11079
|
+
/* style */
|
|
11080
|
+
const __vue_inject_styles__$b = function (inject) {
|
|
11081
|
+
if (!inject) return
|
|
11082
|
+
inject("data-v-190ede62_0", { source: ".g-loading[data-v-190ede62] {\n width: 16px;\n height: 16px;\n border: 1px solid #409EFF;\n border-top-color: transparent;\n border-left-color: transparent;\n border-radius: 100%;\n animation: rotate-data-v-190ede62 infinite 0.75s linear;\n}\n@keyframes rotate-data-v-190ede62 {\n0% {\n transform: rotate(0);\n}\n100% {\n transform: rotate(360deg);\n}\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/loading/src/index.vue","index.vue"],"names":[],"mappings":"AAmBA;EACA,WAAA;EACA,YAAA;EACA,yBAAA;EACA,6BAAA;EACA,8BAAA;EACA,mBAAA;EACA,uDAAA;AClBA;ADoBA;AACA;IACA,oBAAA;ACjBE;ADmBF;IACA,yBAAA;ACjBE;AACF;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div v-if=\"loading\" class=\"g-loading\">\n\n </div>\n</template>\n\n<script>\nexport default {\n name: 'ele-loading',\n props: {\n loading: {\n type: Boolean,\n default: true\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.g-loading {\n width: 16px;\n height: 16px;\n border: 1px solid #409EFF;\n border-top-color: transparent;\n border-left-color: transparent;\n border-radius: 100%;\n animation: rotate infinite 0.75s linear;\n}\n@keyframes rotate {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n</style>",".g-loading {\n width: 16px;\n height: 16px;\n border: 1px solid #409EFF;\n border-top-color: transparent;\n border-left-color: transparent;\n border-radius: 100%;\n animation: rotate infinite 0.75s linear;\n}\n\n@keyframes rotate {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
11083
|
+
|
|
11084
|
+
};
|
|
11085
|
+
/* scoped */
|
|
11086
|
+
const __vue_scope_id__$b = "data-v-190ede62";
|
|
11087
|
+
/* module identifier */
|
|
11088
|
+
const __vue_module_identifier__$b = undefined;
|
|
11089
|
+
/* functional template */
|
|
11090
|
+
const __vue_is_functional_template__$b = false;
|
|
11091
|
+
/* style inject SSR */
|
|
11092
|
+
|
|
11093
|
+
/* style inject shadow dom */
|
|
11094
|
+
|
|
11095
|
+
|
|
11096
|
+
|
|
11097
|
+
const __vue_component__$b = /*#__PURE__*/normalizeComponent(
|
|
11098
|
+
{ render: __vue_render__$b, staticRenderFns: __vue_staticRenderFns__$b },
|
|
11099
|
+
__vue_inject_styles__$b,
|
|
11100
|
+
__vue_script__$b,
|
|
11101
|
+
__vue_scope_id__$b,
|
|
11102
|
+
__vue_is_functional_template__$b,
|
|
11103
|
+
__vue_module_identifier__$b,
|
|
11039
11104
|
false,
|
|
11040
11105
|
createInjector,
|
|
11041
11106
|
undefined,
|
|
11042
11107
|
undefined
|
|
11043
11108
|
);
|
|
11044
11109
|
|
|
11045
|
-
__vue_component__$
|
|
11110
|
+
__vue_component__$b.install = Vue => Vue.component(__vue_component__$b.name, __vue_component__$b);
|
|
11046
11111
|
|
|
11047
11112
|
//
|
|
11048
11113
|
//
|
|
@@ -11052,7 +11117,7 @@ __vue_component__$a.install = Vue => Vue.component(__vue_component__$a.name, __v
|
|
|
11052
11117
|
//
|
|
11053
11118
|
//
|
|
11054
11119
|
|
|
11055
|
-
var script$
|
|
11120
|
+
var script$a = {
|
|
11056
11121
|
props: {
|
|
11057
11122
|
label: {
|
|
11058
11123
|
type: String
|
|
@@ -11061,10 +11126,10 @@ var script$9 = {
|
|
|
11061
11126
|
};
|
|
11062
11127
|
|
|
11063
11128
|
/* script */
|
|
11064
|
-
const __vue_script__$
|
|
11129
|
+
const __vue_script__$a = script$a;
|
|
11065
11130
|
|
|
11066
11131
|
/* template */
|
|
11067
|
-
var __vue_render__$
|
|
11132
|
+
var __vue_render__$a = function () {
|
|
11068
11133
|
var _vm = this;
|
|
11069
11134
|
var _h = _vm.$createElement;
|
|
11070
11135
|
var _c = _vm._self._c || _h;
|
|
@@ -11074,34 +11139,34 @@ var __vue_render__$9 = function () {
|
|
|
11074
11139
|
_c("span", { staticClass: "label__suffix" }, [_vm._v(":")]),
|
|
11075
11140
|
])
|
|
11076
11141
|
};
|
|
11077
|
-
var __vue_staticRenderFns__$
|
|
11078
|
-
__vue_render__$
|
|
11142
|
+
var __vue_staticRenderFns__$a = [];
|
|
11143
|
+
__vue_render__$a._withStripped = true;
|
|
11079
11144
|
|
|
11080
11145
|
/* style */
|
|
11081
|
-
const __vue_inject_styles__$
|
|
11146
|
+
const __vue_inject_styles__$a = function (inject) {
|
|
11082
11147
|
if (!inject) return
|
|
11083
11148
|
inject("data-v-07e596bf_0", { source: ".g-search__label[data-v-07e596bf] {\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-07e596bf], .g-search__label .label__suffix[data-v-07e596bf] {\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-07e596bf] {\n margin-left: 4px;\n}\n\n/*# sourceMappingURL=label.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/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>\n <div class=\"g-search__label\">\n <span class=\"label__title\">{{ label }}</span>\n <span class=\"label__suffix\">:</span>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n label: {\n type: String\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.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 .label__title, .label__suffix {\n font-size: 14px;\n color: rgba(0, 0, 0, 0.88);\n white-space: nowrap;\n }\n .label__suffix {\n margin-left: 4px;\n }\n}\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 });
|
|
11084
11149
|
|
|
11085
11150
|
};
|
|
11086
11151
|
/* scoped */
|
|
11087
|
-
const __vue_scope_id__$
|
|
11152
|
+
const __vue_scope_id__$a = "data-v-07e596bf";
|
|
11088
11153
|
/* module identifier */
|
|
11089
|
-
const __vue_module_identifier__$
|
|
11154
|
+
const __vue_module_identifier__$a = undefined;
|
|
11090
11155
|
/* functional template */
|
|
11091
|
-
const __vue_is_functional_template__$
|
|
11156
|
+
const __vue_is_functional_template__$a = false;
|
|
11092
11157
|
/* style inject SSR */
|
|
11093
11158
|
|
|
11094
11159
|
/* style inject shadow dom */
|
|
11095
11160
|
|
|
11096
11161
|
|
|
11097
11162
|
|
|
11098
|
-
const __vue_component__$
|
|
11099
|
-
{ render: __vue_render__$
|
|
11100
|
-
__vue_inject_styles__$
|
|
11101
|
-
__vue_script__$
|
|
11102
|
-
__vue_scope_id__$
|
|
11103
|
-
__vue_is_functional_template__$
|
|
11104
|
-
__vue_module_identifier__$
|
|
11163
|
+
const __vue_component__$a = /*#__PURE__*/normalizeComponent(
|
|
11164
|
+
{ render: __vue_render__$a, staticRenderFns: __vue_staticRenderFns__$a },
|
|
11165
|
+
__vue_inject_styles__$a,
|
|
11166
|
+
__vue_script__$a,
|
|
11167
|
+
__vue_scope_id__$a,
|
|
11168
|
+
__vue_is_functional_template__$a,
|
|
11169
|
+
__vue_module_identifier__$a,
|
|
11105
11170
|
false,
|
|
11106
11171
|
createInjector,
|
|
11107
11172
|
undefined,
|
|
@@ -11109,10 +11174,10 @@ __vue_render__$9._withStripped = true;
|
|
|
11109
11174
|
);
|
|
11110
11175
|
|
|
11111
11176
|
//
|
|
11112
|
-
var script$
|
|
11177
|
+
var script$9 = {
|
|
11113
11178
|
name: 'ele-search-area',
|
|
11114
11179
|
components: {
|
|
11115
|
-
Label: __vue_component__$
|
|
11180
|
+
Label: __vue_component__$a
|
|
11116
11181
|
},
|
|
11117
11182
|
props: {
|
|
11118
11183
|
gutter: {
|
|
@@ -11260,10 +11325,10 @@ var script$8 = {
|
|
|
11260
11325
|
};
|
|
11261
11326
|
|
|
11262
11327
|
/* script */
|
|
11263
|
-
const __vue_script__$
|
|
11328
|
+
const __vue_script__$9 = script$9;
|
|
11264
11329
|
|
|
11265
11330
|
/* template */
|
|
11266
|
-
var __vue_render__$
|
|
11331
|
+
var __vue_render__$9 = function () {
|
|
11267
11332
|
var _vm = this;
|
|
11268
11333
|
var _h = _vm.$createElement;
|
|
11269
11334
|
var _c = _vm._self._c || _h;
|
|
@@ -11449,44 +11514,44 @@ var __vue_render__$8 = function () {
|
|
|
11449
11514
|
1
|
|
11450
11515
|
)
|
|
11451
11516
|
};
|
|
11452
|
-
var __vue_staticRenderFns__$
|
|
11453
|
-
__vue_render__$
|
|
11517
|
+
var __vue_staticRenderFns__$9 = [];
|
|
11518
|
+
__vue_render__$9._withStripped = true;
|
|
11454
11519
|
|
|
11455
11520
|
/* style */
|
|
11456
|
-
const __vue_inject_styles__$
|
|
11521
|
+
const __vue_inject_styles__$9 = function (inject) {
|
|
11457
11522
|
if (!inject) return
|
|
11458
11523
|
inject("data-v-5d695eef_0", { source: ".search-area__wrapper[data-v-5d695eef] {\n padding-top: 16px;\n padding-left: 16px;\n padding-right: 16px;\n}\n.search-area__wrapper[data-v-5d695eef] .ant-col:last-child {\n float: right;\n}\n.search-area__wrapper .search-area__item[data-v-5d695eef] {\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-5d695eef] {\n justify-content: end;\n}\n.search-area__wrapper .search-area__item .expand-collapse[data-v-5d695eef] {\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-5d695eef] {\n font-size: 14px;\n}\n.search-area__wrapper .search-area__item .expand-collapse .expand-collapse__icon[data-v-5d695eef] {\n font-size: 16px;\n margin-left: 8px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/composite-components/search-area/src/index.vue","index.vue"],"names":[],"mappings":"AAiMA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;AChMA;ADkMA;EACA,YAAA;AChMA;ADmMA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;ACjMA;ADkMA;EACA,oBAAA;AChMA;ADkMA;EACA,gBAAA;EACA,YAAA;EACA,iBAAA;EACA,kCAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,uBAAA;EACA,eAAA;AChMA;ADiMA;EACA,eAAA;AC/LA;ADiMA;EACA,eAAA;EACA,gBAAA;AC/LA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"search-area__wrapper\">\n <a-row :gutter=\"gutter\">\n <template v-for=\"(item, idx) in innerDataSource\">\n <a-col v-if=\"item._show\" :span=\"item.span || span\" :key=\"idx\">\n <div v-if=\"item.type == '_action'\" class=\"search-area__item search-area--action\">\n <ele-button icon=\"search\" type=\"primary\" @click=\"handleClickSearch\">查询</ele-button>\n <ele-button style=\"margin-left:8px;\" icon=\"reload\" @click=\"handleClickReset\">重置</ele-button>\n <div v-if=\"innerDataSource.length > cuttingFormula + 1\" class=\"expand-collapse\" @click=\"handleClickExpandCollapse\">\n <span class=\"expand-collapse__text\">{{ isExpand ? '收起' : '展开' }}</span>\n <span class=\"expand-collapse__icon\">\n <a-icon v-if=\"isExpand\" type=\"up\" />\n <a-icon v-else type=\"down\" />\n </span>\n </div>\n </div>\n <div v-else class=\"search-area__item\">\n <template v-if=\"item.type == 'Input'\">\n <Label :label=\"item.label\"></Label>\n <ele-input v-model=\"item._value\"></ele-input>\n </template>\n <template v-else-if=\"item.type == 'Select'\">\n <Label :label=\"item.label\"></Label>\n <ele-select v-model=\"item._value\" :multiple=\"item.multiple\" :data-source=\"item.optionList\"></ele-select>\n </template>\n <template v-else-if=\"item.type == 'DatePicker'\">\n <Label :label=\"item.label\"></Label>\n <ele-date v-model=\"item._value\" :format=\"item.format\"></ele-date>\n </template>\n <template v-else-if=\"item.type == 'ele-date-range'\">\n <Label :label=\"item.label\"></Label>\n <ele-date-range v-model=\"item._value\" :format=\"item.format\" :show-time=\"item.showTime\"></ele-date-range>\n </template>\n </div>\n </a-col>\n </template>\n </a-row>\n </div>\n</template>\n\n<script>\nimport Label from './label.vue'\nimport moment from 'moment'\nimport { parse } from '@idooel/expression'\nexport default {\n name: 'ele-search-area',\n components: {\n Label\n },\n props: {\n gutter: {\n type: [Number, Array, Object],\n default: () => ([\n 16, 8\n ])\n },\n span: {\n type: Number,\n default: 8\n },\n dataSource: {\n type: Array,\n required: true\n }\n },\n data() {\n return {\n isExpand: false\n }\n },\n computed: {\n cuttingFormula () {\n return (24 / this.span - 1)\n },\n buildDataSource () {\n return this.controlDisplayByFormula(this.mapDefaultValueToValue())\n },\n innerDataSource () {\n return [ ...this.buildDataSource, { type: '_action', _show: true }]\n }\n },\n created() {\n const querys = this.extractValues()\n this.$emit('search', querys)\n },\n methods: {\n controlDisplayByFormula (dataSource = []) {\n if (this.isExpand) {\n dataSource.forEach(item => {\n this.$set(item, '_show', true)\n })\n } else {\n dataSource.forEach((item, idx) => {\n if (idx < this.cuttingFormula) {\n this.$set(item, '_show', true)\n } else {\n this.$set(item, '_show', false)\n }\n })\n }\n return dataSource\n },\n buildDefaultValue (arg) {\n if (!arg || arg.charAt(0) !== '_') return arg\n return parse(arg, {\n _route: this.$route.query\n })\n },\n mapDefaultValueToValue () {\n this.dataSource.forEach(props => {\n this.$set(props, '_show', this.isExpand)\n if (props.defaultValue) {\n this.$set(props, '_value', this.buildDefaultValue(props.defaultValue))\n }\n })\n return this.dataSource\n },\n handleClickExpandCollapse () {\n this.isExpand = !this.isExpand\n },\n handleClickSearch () {\n const querys = this.extractValues()\n this.$emit('search', querys)\n },\n buildMapto (mapTo = [], dataSource) {\n const [ startField, endField ] = mapTo\n const [ startValue, endValue ] = dataSource || [null, null]\n return {\n [startField]: startValue,\n [endField]: endValue\n }\n },\n extractValues () {\n let ret = {}\n this.innerDataSource.filter(item => item.type !== '_action').forEach(item => {\n switch (item.type) {\n case 'DatePicker':\n ret[item.name] = typeof item._value == 'undefined' ? undefined : moment(item._value).format(item.format)\n break\n case 'ele-date-range':\n if (item.mapTo) {\n Object.assign(ret, this.buildMapto(item.mapTo, item._value))\n } else {\n ret[item.name] = (item._value || []).join(',')\n }\n break\n default:\n ret[item.name] = item._value\n break\n }\n })\n return ret\n },\n cleanValues () {\n this.innerDataSource.filter(item => item.type !== '_action').forEach(item => {\n const { defaultValue } = item\n switch (item.type) {\n case 'Select':\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\n !defaultValue && this.$set(item, '_value', null)\n break\n case 'DatePicker':\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\n !defaultValue && this.$set(item, '_value', undefined)\n break\n case 'ele-date-range':\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\n !defaultValue && this.$set(item, '_value', [])\n break\n default:\n defaultValue && this.$set(item, '_value', this.buildDefaultValue(defaultValue))\n !defaultValue && this.$set(item, '_value', null)\n break\n }\n })\n },\n handleClickReset () {\n this.cleanValues()\n //TODO defaultValue\n const querys = this.extractValues()\n this.$emit('search', querys)\n },\n onChangeSelect (value, props) {\n this.$set(props, '_value', value)\n }\n },\n destroyed () {\n this.cleanValues()\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.search-area__wrapper {\n padding-top: 16px;\n padding-left: 16px;\n padding-right: 16px;\n ::v-deep .ant-col {\n &:last-child {\n float: right;\n }\n }\n .search-area__item {\n height: 32px;\n display: flex;\n flex-direction: row;\n align-items: center;\n &.search-area--action {\n justify-content: end;\n }\n .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 .expand-collapse__text {\n font-size: 14px;\n }\n .expand-collapse__icon {\n font-size: 16px;\n margin-left: 8px;\n }\n }\n }\n}\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 });
|
|
11459
11524
|
|
|
11460
11525
|
};
|
|
11461
11526
|
/* scoped */
|
|
11462
|
-
const __vue_scope_id__$
|
|
11527
|
+
const __vue_scope_id__$9 = "data-v-5d695eef";
|
|
11463
11528
|
/* module identifier */
|
|
11464
|
-
const __vue_module_identifier__$
|
|
11529
|
+
const __vue_module_identifier__$9 = undefined;
|
|
11465
11530
|
/* functional template */
|
|
11466
|
-
const __vue_is_functional_template__$
|
|
11531
|
+
const __vue_is_functional_template__$9 = false;
|
|
11467
11532
|
/* style inject SSR */
|
|
11468
11533
|
|
|
11469
11534
|
/* style inject shadow dom */
|
|
11470
11535
|
|
|
11471
11536
|
|
|
11472
11537
|
|
|
11473
|
-
const __vue_component__$
|
|
11474
|
-
{ render: __vue_render__$
|
|
11475
|
-
__vue_inject_styles__$
|
|
11476
|
-
__vue_script__$
|
|
11477
|
-
__vue_scope_id__$
|
|
11478
|
-
__vue_is_functional_template__$
|
|
11479
|
-
__vue_module_identifier__$
|
|
11538
|
+
const __vue_component__$9 = /*#__PURE__*/normalizeComponent(
|
|
11539
|
+
{ render: __vue_render__$9, staticRenderFns: __vue_staticRenderFns__$9 },
|
|
11540
|
+
__vue_inject_styles__$9,
|
|
11541
|
+
__vue_script__$9,
|
|
11542
|
+
__vue_scope_id__$9,
|
|
11543
|
+
__vue_is_functional_template__$9,
|
|
11544
|
+
__vue_module_identifier__$9,
|
|
11480
11545
|
false,
|
|
11481
11546
|
createInjector,
|
|
11482
11547
|
undefined,
|
|
11483
11548
|
undefined
|
|
11484
11549
|
);
|
|
11485
11550
|
|
|
11486
|
-
__vue_component__$
|
|
11551
|
+
__vue_component__$9.install = Vue => Vue.component(__vue_component__$9.name, __vue_component__$9);
|
|
11487
11552
|
|
|
11488
11553
|
//
|
|
11489
|
-
var script$
|
|
11554
|
+
var script$8 = {
|
|
11490
11555
|
name: 'ele-button-group',
|
|
11491
11556
|
props: {
|
|
11492
11557
|
dataSource: {
|
|
@@ -11571,10 +11636,10 @@ var script$7 = {
|
|
|
11571
11636
|
};
|
|
11572
11637
|
|
|
11573
11638
|
/* script */
|
|
11574
|
-
const __vue_script__$
|
|
11639
|
+
const __vue_script__$8 = script$8;
|
|
11575
11640
|
|
|
11576
11641
|
/* template */
|
|
11577
|
-
var __vue_render__$
|
|
11642
|
+
var __vue_render__$8 = function () {
|
|
11578
11643
|
var _vm = this;
|
|
11579
11644
|
var _h = _vm.$createElement;
|
|
11580
11645
|
var _c = _vm._self._c || _h;
|
|
@@ -11632,44 +11697,44 @@ var __vue_render__$7 = function () {
|
|
|
11632
11697
|
2
|
|
11633
11698
|
)
|
|
11634
11699
|
};
|
|
11635
|
-
var __vue_staticRenderFns__$
|
|
11636
|
-
__vue_render__$
|
|
11700
|
+
var __vue_staticRenderFns__$8 = [];
|
|
11701
|
+
__vue_render__$8._withStripped = true;
|
|
11637
11702
|
|
|
11638
11703
|
/* style */
|
|
11639
|
-
const __vue_inject_styles__$
|
|
11704
|
+
const __vue_inject_styles__$8 = function (inject) {
|
|
11640
11705
|
if (!inject) return
|
|
11641
11706
|
inject("data-v-643f1a24_0", { source: ".button-group__wrapper[data-v-643f1a24] {\n display: flex;\n padding-left: 16px;\n padding-right: 16px;\n}\n.button-group__wrapper .ant-btn[data-v-643f1a24] {\n margin-left: 8px;\n}\n.button-group__wrapper .ant-btn[data-v-643f1a24]:first-child {\n margin-left: 0;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/composite-components/button-group/src/index.vue","index.vue"],"names":[],"mappings":"AAsGA;EACA,aAAA;EACA,kBAAA;EACA,mBAAA;ACrGA;ADsGA;EACA,gBAAA;ACpGA;ADqGA;EACA,cAAA;ACnGA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"button-group__wrapper\">\n <template v-for=\"(item, idx) in innerDatasource\" >\n <ele-button\n v-if=\"isBool(item._show) ? item._show : true\"\n :type=\"item.type\"\n :icon=\"item.icon\"\n :mode=\"item.mode\"\n :data-source=\"item.optionList\"\n :event-name=\"item.eventName\"\n :record=\"item\"\n v-on=\"overrideButtonEvent\"\n :key=\"idx\">\n {{ item.label }}\n </ele-button>\n </template>\n <ele-modal-confirm v-model=\"modalConfirmValue\" :contextProp=\"currentContext\" v-on=\"overrideModalConfirmEvent\" v-bind=\"modalConfirmMeta\"></ele-modal-confirm>\n </div>\n</template>\n\n<script>\nimport { type } from '@idooel/shared'\nimport { parse } from '@idooel/expression'\nimport { CONTEXT } from '../../../utils'\nexport default {\n name: 'ele-button-group',\n props: {\n dataSource: {\n type: Array,\n default: () => []\n }\n },\n data() {\n return {\n innerDatasource: [],\n modalConfirmValue: false,\n modalConfirmMeta: {}\n }\n },\n inject: {\n [CONTEXT]: {\n default: () => (() => ({}))\n }\n },\n computed: {\n overrideButtonEvent () {\n const events = this.dataSource.reduce((ret, item) => {\n ret[item.eventName || 'click'] = (e) => {\n const { modalConfirm } = item\n if (modalConfirm) {\n this.modalConfirmMeta = modalConfirm\n this.modalConfirmValue = true\n }\n this.$emit(item.eventName || 'click', { ...e, record: item, ...this.currentContext })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events\n }\n },\n overrideModalConfirmEvent () {\n return {\n ...this.$listeners\n }\n },\n currentContext () {\n return {\n _route: this.$route.query,\n _routeMeta: this.$route.meta,\n ...this[CONTEXT]()\n }\n }\n },\n watch: {\n dataSource: {\n handler (dataSource) {\n this.innerDatasource = dataSource.map(item => {\n return {\n ...item,\n _show: this.executeExpression(item.show)\n }\n })\n },\n immediate: true\n }\n },\n methods: {\n executeExpression (expression) {\n if (type.isBool(expression)) return expression\n if (type.isEmpty(expression)) return true\n return parse(expression, { ...this.currentContext })\n },\n isBool (arg) {\n return type.isBool(arg)\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.button-group__wrapper {\n display: flex;\n padding-left: 16px;\n padding-right: 16px;\n .ant-btn {\n margin-left: 8px;\n &:first-child {\n margin-left: 0;\n }\n }\n}\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 });
|
|
11642
11707
|
|
|
11643
11708
|
};
|
|
11644
11709
|
/* scoped */
|
|
11645
|
-
const __vue_scope_id__$
|
|
11710
|
+
const __vue_scope_id__$8 = "data-v-643f1a24";
|
|
11646
11711
|
/* module identifier */
|
|
11647
|
-
const __vue_module_identifier__$
|
|
11712
|
+
const __vue_module_identifier__$8 = undefined;
|
|
11648
11713
|
/* functional template */
|
|
11649
|
-
const __vue_is_functional_template__$
|
|
11714
|
+
const __vue_is_functional_template__$8 = false;
|
|
11650
11715
|
/* style inject SSR */
|
|
11651
11716
|
|
|
11652
11717
|
/* style inject shadow dom */
|
|
11653
11718
|
|
|
11654
11719
|
|
|
11655
11720
|
|
|
11656
|
-
const __vue_component__$
|
|
11657
|
-
{ render: __vue_render__$
|
|
11658
|
-
__vue_inject_styles__$
|
|
11659
|
-
__vue_script__$
|
|
11660
|
-
__vue_scope_id__$
|
|
11661
|
-
__vue_is_functional_template__$
|
|
11662
|
-
__vue_module_identifier__$
|
|
11721
|
+
const __vue_component__$8 = /*#__PURE__*/normalizeComponent(
|
|
11722
|
+
{ render: __vue_render__$8, staticRenderFns: __vue_staticRenderFns__$8 },
|
|
11723
|
+
__vue_inject_styles__$8,
|
|
11724
|
+
__vue_script__$8,
|
|
11725
|
+
__vue_scope_id__$8,
|
|
11726
|
+
__vue_is_functional_template__$8,
|
|
11727
|
+
__vue_module_identifier__$8,
|
|
11663
11728
|
false,
|
|
11664
11729
|
createInjector,
|
|
11665
11730
|
undefined,
|
|
11666
11731
|
undefined
|
|
11667
11732
|
);
|
|
11668
11733
|
|
|
11669
|
-
__vue_component__$
|
|
11734
|
+
__vue_component__$8.install = Vue => Vue.component(__vue_component__$8.name, __vue_component__$8);
|
|
11670
11735
|
|
|
11671
11736
|
//
|
|
11672
|
-
var script$
|
|
11737
|
+
var script$7 = {
|
|
11673
11738
|
name: 'ele-modal-form',
|
|
11674
11739
|
model: {
|
|
11675
11740
|
prop: 'value',
|
|
@@ -11940,10 +12005,10 @@ var script$6 = {
|
|
|
11940
12005
|
};
|
|
11941
12006
|
|
|
11942
12007
|
/* script */
|
|
11943
|
-
const __vue_script__$
|
|
12008
|
+
const __vue_script__$7 = script$7;
|
|
11944
12009
|
|
|
11945
12010
|
/* template */
|
|
11946
|
-
var __vue_render__$
|
|
12011
|
+
var __vue_render__$7 = function () {
|
|
11947
12012
|
var _vm = this;
|
|
11948
12013
|
var _h = _vm.$createElement;
|
|
11949
12014
|
var _c = _vm._self._c || _h;
|
|
@@ -11964,17 +12029,17 @@ var __vue_render__$6 = function () {
|
|
|
11964
12029
|
1
|
|
11965
12030
|
)
|
|
11966
12031
|
};
|
|
11967
|
-
var __vue_staticRenderFns__$
|
|
11968
|
-
__vue_render__$
|
|
12032
|
+
var __vue_staticRenderFns__$7 = [];
|
|
12033
|
+
__vue_render__$7._withStripped = true;
|
|
11969
12034
|
|
|
11970
12035
|
/* style */
|
|
11971
|
-
const __vue_inject_styles__$
|
|
12036
|
+
const __vue_inject_styles__$7 = undefined;
|
|
11972
12037
|
/* scoped */
|
|
11973
|
-
const __vue_scope_id__$
|
|
12038
|
+
const __vue_scope_id__$7 = undefined;
|
|
11974
12039
|
/* module identifier */
|
|
11975
|
-
const __vue_module_identifier__$
|
|
12040
|
+
const __vue_module_identifier__$7 = undefined;
|
|
11976
12041
|
/* functional template */
|
|
11977
|
-
const __vue_is_functional_template__$
|
|
12042
|
+
const __vue_is_functional_template__$7 = false;
|
|
11978
12043
|
/* style inject */
|
|
11979
12044
|
|
|
11980
12045
|
/* style inject SSR */
|
|
@@ -11983,20 +12048,20 @@ __vue_render__$6._withStripped = true;
|
|
|
11983
12048
|
|
|
11984
12049
|
|
|
11985
12050
|
|
|
11986
|
-
const __vue_component__$
|
|
11987
|
-
{ render: __vue_render__$
|
|
11988
|
-
__vue_inject_styles__$
|
|
11989
|
-
__vue_script__$
|
|
11990
|
-
__vue_scope_id__$
|
|
11991
|
-
__vue_is_functional_template__$
|
|
11992
|
-
__vue_module_identifier__$
|
|
12051
|
+
const __vue_component__$7 = /*#__PURE__*/normalizeComponent(
|
|
12052
|
+
{ render: __vue_render__$7, staticRenderFns: __vue_staticRenderFns__$7 },
|
|
12053
|
+
__vue_inject_styles__$7,
|
|
12054
|
+
__vue_script__$7,
|
|
12055
|
+
__vue_scope_id__$7,
|
|
12056
|
+
__vue_is_functional_template__$7,
|
|
12057
|
+
__vue_module_identifier__$7,
|
|
11993
12058
|
false,
|
|
11994
12059
|
undefined,
|
|
11995
12060
|
undefined,
|
|
11996
12061
|
undefined
|
|
11997
12062
|
);
|
|
11998
12063
|
|
|
11999
|
-
__vue_component__$
|
|
12064
|
+
__vue_component__$7.install = Vue => Vue.component(__vue_component__$7.name, __vue_component__$7);
|
|
12000
12065
|
|
|
12001
12066
|
//
|
|
12002
12067
|
//
|
|
@@ -12008,7 +12073,7 @@ __vue_component__$6.install = Vue => Vue.component(__vue_component__$6.name, __v
|
|
|
12008
12073
|
//
|
|
12009
12074
|
//
|
|
12010
12075
|
|
|
12011
|
-
var script$
|
|
12076
|
+
var script$6 = {
|
|
12012
12077
|
name: 'ele-modal-tree',
|
|
12013
12078
|
model: {
|
|
12014
12079
|
event: 'input',
|
|
@@ -12066,10 +12131,10 @@ var script$5 = {
|
|
|
12066
12131
|
};
|
|
12067
12132
|
|
|
12068
12133
|
/* script */
|
|
12069
|
-
const __vue_script__$
|
|
12134
|
+
const __vue_script__$6 = script$6;
|
|
12070
12135
|
|
|
12071
12136
|
/* template */
|
|
12072
|
-
var __vue_render__$
|
|
12137
|
+
var __vue_render__$6 = function () {
|
|
12073
12138
|
var _vm = this;
|
|
12074
12139
|
var _h = _vm.$createElement;
|
|
12075
12140
|
var _c = _vm._self._c || _h;
|
|
@@ -12091,44 +12156,44 @@ var __vue_render__$5 = function () {
|
|
|
12091
12156
|
1
|
|
12092
12157
|
)
|
|
12093
12158
|
};
|
|
12094
|
-
var __vue_staticRenderFns__$
|
|
12095
|
-
__vue_render__$
|
|
12159
|
+
var __vue_staticRenderFns__$6 = [];
|
|
12160
|
+
__vue_render__$6._withStripped = true;
|
|
12096
12161
|
|
|
12097
12162
|
/* style */
|
|
12098
|
-
const __vue_inject_styles__$
|
|
12163
|
+
const __vue_inject_styles__$6 = function (inject) {
|
|
12099
12164
|
if (!inject) return
|
|
12100
12165
|
inject("data-v-205df81d_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue"}, media: undefined });
|
|
12101
12166
|
|
|
12102
12167
|
};
|
|
12103
12168
|
/* scoped */
|
|
12104
|
-
const __vue_scope_id__$
|
|
12169
|
+
const __vue_scope_id__$6 = "data-v-205df81d";
|
|
12105
12170
|
/* module identifier */
|
|
12106
|
-
const __vue_module_identifier__$
|
|
12171
|
+
const __vue_module_identifier__$6 = undefined;
|
|
12107
12172
|
/* functional template */
|
|
12108
|
-
const __vue_is_functional_template__$
|
|
12173
|
+
const __vue_is_functional_template__$6 = false;
|
|
12109
12174
|
/* style inject SSR */
|
|
12110
12175
|
|
|
12111
12176
|
/* style inject shadow dom */
|
|
12112
12177
|
|
|
12113
12178
|
|
|
12114
12179
|
|
|
12115
|
-
const __vue_component__$
|
|
12116
|
-
{ render: __vue_render__$
|
|
12117
|
-
__vue_inject_styles__$
|
|
12118
|
-
__vue_script__$
|
|
12119
|
-
__vue_scope_id__$
|
|
12120
|
-
__vue_is_functional_template__$
|
|
12121
|
-
__vue_module_identifier__$
|
|
12180
|
+
const __vue_component__$6 = /*#__PURE__*/normalizeComponent(
|
|
12181
|
+
{ render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
|
|
12182
|
+
__vue_inject_styles__$6,
|
|
12183
|
+
__vue_script__$6,
|
|
12184
|
+
__vue_scope_id__$6,
|
|
12185
|
+
__vue_is_functional_template__$6,
|
|
12186
|
+
__vue_module_identifier__$6,
|
|
12122
12187
|
false,
|
|
12123
12188
|
createInjector,
|
|
12124
12189
|
undefined,
|
|
12125
12190
|
undefined
|
|
12126
12191
|
);
|
|
12127
12192
|
|
|
12128
|
-
__vue_component__$
|
|
12193
|
+
__vue_component__$6.install = Vue => Vue.component(__vue_component__$6.name, __vue_component__$6);
|
|
12129
12194
|
|
|
12130
12195
|
//
|
|
12131
|
-
var script$
|
|
12196
|
+
var script$5 = {
|
|
12132
12197
|
name: 'ele-modal-confirm',
|
|
12133
12198
|
model: {
|
|
12134
12199
|
event: 'change',
|
|
@@ -12221,10 +12286,10 @@ var script$4 = {
|
|
|
12221
12286
|
};
|
|
12222
12287
|
|
|
12223
12288
|
/* script */
|
|
12224
|
-
const __vue_script__$
|
|
12289
|
+
const __vue_script__$5 = script$5;
|
|
12225
12290
|
|
|
12226
12291
|
/* template */
|
|
12227
|
-
var __vue_render__$
|
|
12292
|
+
var __vue_render__$5 = function () {
|
|
12228
12293
|
var _vm = this;
|
|
12229
12294
|
var _h = _vm.$createElement;
|
|
12230
12295
|
var _c = _vm._self._c || _h;
|
|
@@ -12256,45 +12321,45 @@ var __vue_render__$4 = function () {
|
|
|
12256
12321
|
1
|
|
12257
12322
|
)
|
|
12258
12323
|
};
|
|
12259
|
-
var __vue_staticRenderFns__$
|
|
12260
|
-
__vue_render__$
|
|
12324
|
+
var __vue_staticRenderFns__$5 = [];
|
|
12325
|
+
__vue_render__$5._withStripped = true;
|
|
12261
12326
|
|
|
12262
12327
|
/* style */
|
|
12263
|
-
const __vue_inject_styles__$
|
|
12328
|
+
const __vue_inject_styles__$5 = function (inject) {
|
|
12264
12329
|
if (!inject) return
|
|
12265
12330
|
inject("data-v-07f0e100_0", { source: ".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\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,eAAe;AACjB;AAEA;EACE,+BAA+B;EAC/B,sCAAsC;EACtC,sCAAsC;EACtC,sCAAsC;EACtC,uCAAuC;EACvC,uCAAuC;EACvC,uCAAuC;EACvC,mDAAmD;EACnD,4BAA4B;EAC5B,4BAA4B;EAC5B,0BAA0B;EAC1B,wBAAwB;EACxB,8BAA8B;EAC9B,+BAA+B;EAC/B,qCAAqC;EACrC,gCAAgC;EAChC,4BAA4B;EAC5B,qDAAqD;EACrD,kDAAkD;EAClD,gDAAgD;EAChD,gCAAgC;EAChC,uCAAuC;EACvC,yBAAyB;EACzB,yBAAyB;EACzB,oCAAoC;AACtC;AAEA;EACE,4DAA4D;AAC9D;AAEA;EACE,4DAA4D;AAC9D;;AAEA,oCAAoC","file":"index.vue","sourcesContent":[".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined })
|
|
12266
12331
|
,inject("data-v-07f0e100_1", { source: ".ele-modal-confirm__content[data-v-07f0e100] {\n margin-top: 8px;\n color: var(--idoole-black-088);\n font-size: 14px;\n line-height: 22px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/composite-components/modal-confirm/src/index.vue","index.vue"],"names":[],"mappings":"AAkGA;EACA,eAAA;EACA,8BAAA;EACA,eAAA;EACA,iBAAA;ACjGA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <ele-modal :title=\"title\" :value=\"value\" :size=\"size\" @cancel=\"onCancel\" v-on=\"overrideEvents\" :buttonGroupMeta=\"buttonGroupMeta\">\n <ele-alert v-if=\"alert\" v-bind=\"alert\"></ele-alert>\n <div v-if=\"contentText\" class=\"ele-modal-confirm__content\">\n {{ contentText }}\n </div>\n </ele-modal>\n</template>\n\n<script>\nimport { CONTEXT } from '../../../utils'\nexport default {\n name: 'ele-modal-confirm',\n model: {\n event: 'change',\n prop: 'value'\n },\n props: {\n title: {\n type: String\n },\n size: {\n type: String,\n default: 'small'\n },\n alert: {\n type: [Object, Boolean],\n default: () => ({\n type: 'warning',\n message: '确定要删除吗?',\n description: '删除后将无法恢复',\n closable: false\n })\n },\n contentText: {\n type: String\n },\n value: {\n type: Boolean,\n default: false\n },\n buttonGroupMeta: {\n type: Object\n },\n //!deprecated\n contextProp: {\n type: Object,\n default: () => ({})\n }\n },\n inject: {\n [CONTEXT]: {\n default: () => (() => ({}))\n }\n },\n data () {\n return {}\n },\n computed: {\n currentContext () {\n const { exposed: exposedData = {} } = this[CONTEXT]()\n const exposed = Object.assign({}, exposedData, { closeModalConfirm: this.closeModalConfirm })\n return {\n _route: this.$route.query,\n _routeMeta: this.$route.meta,\n ...this[CONTEXT](),\n exposed\n }\n },\n overrideEvents () {\n if (!this.buttonGroupMeta) return {}\n const { elements = [] } = this.buttonGroupMeta\n const events = elements.reduce((ret, ele) =>{\n ret[ele.eventName || 'click'] = (e) => {\n this.$emit(ele.eventName || 'click', { ...e, ...this.currentContext })\n }\n return ret\n }, {})\n return {\n ...this.$listeners,\n ...events\n }\n }\n },\n methods: {\n closeModalConfirm () {\n this.$emit('change', false)\n },\n onCancel () {\n this.$emit('change', false)\n }\n }\n}\n</script>\n<style lang=\"scss\">\n@import '../../../theme/index';\n</style>\n<style lang=\"scss\" scoped>\n.ele-modal-confirm__content {\n margin-top: 8px;\n color: var(--idoole-black-088);\n font-size: 14px;\n line-height: 22px;\n}\n</style>",".ele-modal-confirm__content {\n margin-top: 8px;\n color: var(--idoole-black-088);\n font-size: 14px;\n line-height: 22px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
12267
12332
|
|
|
12268
12333
|
};
|
|
12269
12334
|
/* scoped */
|
|
12270
|
-
const __vue_scope_id__$
|
|
12335
|
+
const __vue_scope_id__$5 = "data-v-07f0e100";
|
|
12271
12336
|
/* module identifier */
|
|
12272
|
-
const __vue_module_identifier__$
|
|
12337
|
+
const __vue_module_identifier__$5 = undefined;
|
|
12273
12338
|
/* functional template */
|
|
12274
|
-
const __vue_is_functional_template__$
|
|
12339
|
+
const __vue_is_functional_template__$5 = false;
|
|
12275
12340
|
/* style inject SSR */
|
|
12276
12341
|
|
|
12277
12342
|
/* style inject shadow dom */
|
|
12278
12343
|
|
|
12279
12344
|
|
|
12280
12345
|
|
|
12281
|
-
const __vue_component__$
|
|
12282
|
-
{ render: __vue_render__$
|
|
12283
|
-
__vue_inject_styles__$
|
|
12284
|
-
__vue_script__$
|
|
12285
|
-
__vue_scope_id__$
|
|
12286
|
-
__vue_is_functional_template__$
|
|
12287
|
-
__vue_module_identifier__$
|
|
12346
|
+
const __vue_component__$5 = /*#__PURE__*/normalizeComponent(
|
|
12347
|
+
{ render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
|
|
12348
|
+
__vue_inject_styles__$5,
|
|
12349
|
+
__vue_script__$5,
|
|
12350
|
+
__vue_scope_id__$5,
|
|
12351
|
+
__vue_is_functional_template__$5,
|
|
12352
|
+
__vue_module_identifier__$5,
|
|
12288
12353
|
false,
|
|
12289
12354
|
createInjector,
|
|
12290
12355
|
undefined,
|
|
12291
12356
|
undefined
|
|
12292
12357
|
);
|
|
12293
12358
|
|
|
12294
|
-
__vue_component__$
|
|
12359
|
+
__vue_component__$5.install = Vue => Vue.component(__vue_component__$5.name, __vue_component__$5);
|
|
12295
12360
|
|
|
12296
12361
|
//
|
|
12297
|
-
var script$
|
|
12362
|
+
var script$4 = {
|
|
12298
12363
|
name: 'ele-modal-table',
|
|
12299
12364
|
model: {
|
|
12300
12365
|
event: 'change',
|
|
@@ -12404,10 +12469,10 @@ var script$3 = {
|
|
|
12404
12469
|
};
|
|
12405
12470
|
|
|
12406
12471
|
/* script */
|
|
12407
|
-
const __vue_script__$
|
|
12472
|
+
const __vue_script__$4 = script$4;
|
|
12408
12473
|
|
|
12409
12474
|
/* template */
|
|
12410
|
-
var __vue_render__$
|
|
12475
|
+
var __vue_render__$4 = function () {
|
|
12411
12476
|
var _vm = this;
|
|
12412
12477
|
var _h = _vm.$createElement;
|
|
12413
12478
|
var _c = _vm._self._c || _h;
|
|
@@ -12432,6 +12497,19 @@ var __vue_render__$3 = function () {
|
|
|
12432
12497
|
{
|
|
12433
12498
|
attrs: { "over-height": 156 },
|
|
12434
12499
|
on: { "on-change-table-selection": _vm.onChangeTableSelection },
|
|
12500
|
+
scopedSlots: _vm._u(
|
|
12501
|
+
[
|
|
12502
|
+
{
|
|
12503
|
+
key: "sub-center",
|
|
12504
|
+
fn: function () {
|
|
12505
|
+
return [_vm._t("sub-center")]
|
|
12506
|
+
},
|
|
12507
|
+
proxy: true,
|
|
12508
|
+
},
|
|
12509
|
+
],
|
|
12510
|
+
null,
|
|
12511
|
+
true
|
|
12512
|
+
),
|
|
12435
12513
|
},
|
|
12436
12514
|
"ele-tree-table-model",
|
|
12437
12515
|
_vm.meta,
|
|
@@ -12444,44 +12522,44 @@ var __vue_render__$3 = function () {
|
|
|
12444
12522
|
1
|
|
12445
12523
|
)
|
|
12446
12524
|
};
|
|
12447
|
-
var __vue_staticRenderFns__$
|
|
12448
|
-
__vue_render__$
|
|
12525
|
+
var __vue_staticRenderFns__$4 = [];
|
|
12526
|
+
__vue_render__$4._withStripped = true;
|
|
12449
12527
|
|
|
12450
12528
|
/* style */
|
|
12451
|
-
const __vue_inject_styles__$
|
|
12529
|
+
const __vue_inject_styles__$4 = function (inject) {
|
|
12452
12530
|
if (!inject) return
|
|
12453
|
-
inject("data-v-
|
|
12531
|
+
inject("data-v-1ffe07a6_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue"}, media: undefined });
|
|
12454
12532
|
|
|
12455
12533
|
};
|
|
12456
12534
|
/* scoped */
|
|
12457
|
-
const __vue_scope_id__$
|
|
12535
|
+
const __vue_scope_id__$4 = "data-v-1ffe07a6";
|
|
12458
12536
|
/* module identifier */
|
|
12459
|
-
const __vue_module_identifier__$
|
|
12537
|
+
const __vue_module_identifier__$4 = undefined;
|
|
12460
12538
|
/* functional template */
|
|
12461
|
-
const __vue_is_functional_template__$
|
|
12539
|
+
const __vue_is_functional_template__$4 = false;
|
|
12462
12540
|
/* style inject SSR */
|
|
12463
12541
|
|
|
12464
12542
|
/* style inject shadow dom */
|
|
12465
12543
|
|
|
12466
12544
|
|
|
12467
12545
|
|
|
12468
|
-
const __vue_component__$
|
|
12469
|
-
{ render: __vue_render__$
|
|
12470
|
-
__vue_inject_styles__$
|
|
12471
|
-
__vue_script__$
|
|
12472
|
-
__vue_scope_id__$
|
|
12473
|
-
__vue_is_functional_template__$
|
|
12474
|
-
__vue_module_identifier__$
|
|
12546
|
+
const __vue_component__$4 = /*#__PURE__*/normalizeComponent(
|
|
12547
|
+
{ render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
|
|
12548
|
+
__vue_inject_styles__$4,
|
|
12549
|
+
__vue_script__$4,
|
|
12550
|
+
__vue_scope_id__$4,
|
|
12551
|
+
__vue_is_functional_template__$4,
|
|
12552
|
+
__vue_module_identifier__$4,
|
|
12475
12553
|
false,
|
|
12476
12554
|
createInjector,
|
|
12477
12555
|
undefined,
|
|
12478
12556
|
undefined
|
|
12479
12557
|
);
|
|
12480
12558
|
|
|
12481
|
-
__vue_component__$
|
|
12559
|
+
__vue_component__$4.install = Vue => Vue.component(__vue_component__$4.name, __vue_component__$4);
|
|
12482
12560
|
|
|
12483
12561
|
//
|
|
12484
|
-
var script$
|
|
12562
|
+
var script$3 = {
|
|
12485
12563
|
name: 'ele-modal-import',
|
|
12486
12564
|
model: {
|
|
12487
12565
|
prop: 'value',
|
|
@@ -12558,10 +12636,10 @@ var script$2 = {
|
|
|
12558
12636
|
};
|
|
12559
12637
|
|
|
12560
12638
|
/* script */
|
|
12561
|
-
const __vue_script__$
|
|
12639
|
+
const __vue_script__$3 = script$3;
|
|
12562
12640
|
|
|
12563
12641
|
/* template */
|
|
12564
|
-
var __vue_render__$
|
|
12642
|
+
var __vue_render__$3 = function () {
|
|
12565
12643
|
var _vm = this;
|
|
12566
12644
|
var _h = _vm.$createElement;
|
|
12567
12645
|
var _c = _vm._self._c || _h;
|
|
@@ -12641,45 +12719,45 @@ var __vue_render__$2 = function () {
|
|
|
12641
12719
|
]
|
|
12642
12720
|
)
|
|
12643
12721
|
};
|
|
12644
|
-
var __vue_staticRenderFns__$
|
|
12645
|
-
__vue_render__$
|
|
12722
|
+
var __vue_staticRenderFns__$3 = [];
|
|
12723
|
+
__vue_render__$3._withStripped = true;
|
|
12646
12724
|
|
|
12647
12725
|
/* style */
|
|
12648
|
-
const __vue_inject_styles__$
|
|
12726
|
+
const __vue_inject_styles__$3 = function (inject) {
|
|
12649
12727
|
if (!inject) return
|
|
12650
12728
|
inject("data-v-202eba99_0", { source: ".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\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,eAAe;AACjB;AAEA;EACE,+BAA+B;EAC/B,sCAAsC;EACtC,sCAAsC;EACtC,sCAAsC;EACtC,uCAAuC;EACvC,uCAAuC;EACvC,uCAAuC;EACvC,mDAAmD;EACnD,4BAA4B;EAC5B,4BAA4B;EAC5B,0BAA0B;EAC1B,wBAAwB;EACxB,8BAA8B;EAC9B,+BAA+B;EAC/B,qCAAqC;EACrC,gCAAgC;EAChC,4BAA4B;EAC5B,qDAAqD;EACrD,kDAAkD;EAClD,gDAAgD;EAChD,gCAAgC;EAChC,uCAAuC;EACvC,yBAAyB;EACzB,yBAAyB;EACzB,oCAAoC;AACtC;AAEA;EACE,4DAA4D;AAC9D;AAEA;EACE,4DAA4D;AAC9D;;AAEA,oCAAoC","file":"index.vue","sourcesContent":[".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined })
|
|
12651
12729
|
,inject("data-v-202eba99_1", { source: ".import-download__link[data-v-202eba99] {\n color: var(--idooel-link-06);\n font-size: 14px;\n cursor: pointer;\n line-height: 22px;\n}\n.ele-modal-import__hint .import-hint__content[data-v-202eba99] {\n padding: 16px;\n border-radius: 2px;\n height: 82px;\n border: 1px dashed var(--idooel-link-06);\n background: var(--idoole-black-02);\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-modal-import__hint .import-hint__content .import-hint__left .anticon-upload[data-v-202eba99] {\n font-size: 48px;\n color: var(--idooel-link-06);\n}\n.ele-modal-import__hint .import-hint__content .import-hint__right[data-v-202eba99] {\n margin-left: 16px;\n}\n.ele-modal-import__hint .import-hint__content .import-hint__right .hint-right__title[data-v-202eba99] {\n font-size: 16px;\n color: var(--idooel-link-06);\n cursor: pointer;\n}\n.ele-modal-import__hint .import-hint__content .import-hint__right .hint-right__sub-title[data-v-202eba99] {\n font-size: 14px;\n color: var(--idooel-link-03);\n}\n.ele-modal-import__hint .import-footer__hint--text[data-v-202eba99] {\n font-size: 14px;\n color: var(--idooel-link-06);\n line-height: 22px;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/business-components/modal-import/src/index.vue","index.vue"],"names":[],"mappings":"AAkGA;EACA,4BAAA;EACA,eAAA;EACA,eAAA;EACA,iBAAA;ACjGA;ADoGA;EACA,aAAA;EACA,kBAAA;EACA,YAAA;EACA,wCAAA;EACA,kCAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;ACjGA;ADmGA;EACA,eAAA;EACA,4BAAA;ACjGA;ADoGA;EACA,iBAAA;AClGA;ADmGA;EACA,eAAA;EACA,4BAAA;EACA,eAAA;ACjGA;ADmGA;EACA,eAAA;EACA,4BAAA;ACjGA;ADqGA;EACA,eAAA;EACA,4BAAA;EACA,iBAAA;ACnGA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <ele-modal :value=\"innerValue\" :buttonGroupMeta=\"buttonGroupMeta\" @cancel=\"onCancel\" @handleClose=\"handleClose\" title=\"导入\">\n <div class=\"ele-modal-import__upload\" v-if=\"isFileEmpty\">\n <div class=\"import-download__link\" @click=\"handleClickDownloadTpl\">点击此链接下载导入模板</div>\n <ele-upload v-model=\"file\" @on-success=\"uploadFileSuccess\"></ele-upload>\n </div>\n <div v-else class=\"ele-modal-import__hint\">\n <div class=\"import-hint__content\">\n <div class=\"import-hint__left\">\n <ele-icon></ele-icon>\n </div>\n <div class=\"import-hint__right\">\n <div class=\"hint-right__title\" @click=\"handleClickJump\">文件上传成功,任务处理中..... 请点击此按钮跳转到“批处理管理”菜单查看任务进度</div>\n <div class=\"hint-right__sub-title\">批处理任务的准备工作会在后台运行</div>\n </div>\n </div>\n <div class=\"import-footer__hint--text\">\n 您可以请点击上方按钮查看任务进度或关闭弹框\n </div>\n </div>\n </ele-modal>\n</template>\n\n<script>\nimport { type } from '@idooel/shared'\nexport default {\n name: 'ele-modal-import',\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n value: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n innerValue: false,\n file: [],\n buttonGroupMeta: {\n elements: [\n {\n label: '关闭',\n key: 'close',\n type: 'default',\n eventName: 'handleClose'\n }\n ]\n }\n }\n },\n computed: {\n isFileEmpty () {\n return type.isEmpty(this.file)\n }\n },\n watch: {\n value: {\n handler (value) {\n this.innerValue = value\n },\n immediate: true\n }\n },\n methods: {\n emitEvent (props = {}) {\n this.$emit('on-actions', { ...props })\n },\n onCancel () {\n this.innerValue = false\n this.$emit('change', false)\n },\n handleClickJump () {\n this.emitEvent({ action: 'jump' })\n },\n uploadFileSuccess (props) {\n this.emitEvent({ action: 'uploaded', file: props })\n },\n handleClickDownloadTpl () {\n this.emitEvent({ action: 'download' })\n },\n cleanFile () {\n this.file = []\n },\n handleClose () {\n this.cleanFile()\n this.innerValue = false\n this.$emit('change', false)\n }\n }\n}\n</script>\n<style lang=\"scss\">\n@import '../../../theme/index';\n</style>\n<style lang=\"scss\" scoped>\n.import-download__link {\n color: var(--idooel-link-06);\n font-size: 14px;\n cursor: pointer;\n line-height: 22px;\n}\n.ele-modal-import__hint {\n .import-hint__content {\n padding: 16px;\n border-radius: 2px;\n height: 82px;\n border: 1px dashed var(--idooel-link-06);\n background: var(--idoole-black-02);\n display: flex;\n flex-direction: row;\n align-items: center;\n .import-hint__left {\n .anticon-upload {\n font-size: 48px;\n color: var(--idooel-link-06);\n }\n }\n .import-hint__right {\n margin-left: 16px;\n .hint-right__title {\n font-size: 16px;\n color: var(--idooel-link-06);\n cursor: pointer;\n }\n .hint-right__sub-title {\n font-size: 14px;\n color: var(--idooel-link-03);\n }\n }\n }\n .import-footer__hint--text {\n font-size: 14px;\n color: var(--idooel-link-06);\n line-height: 22px;\n }\n}\n</style>",".import-download__link {\n color: var(--idooel-link-06);\n font-size: 14px;\n cursor: pointer;\n line-height: 22px;\n}\n\n.ele-modal-import__hint .import-hint__content {\n padding: 16px;\n border-radius: 2px;\n height: 82px;\n border: 1px dashed var(--idooel-link-06);\n background: var(--idoole-black-02);\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-modal-import__hint .import-hint__content .import-hint__left .anticon-upload {\n font-size: 48px;\n color: var(--idooel-link-06);\n}\n.ele-modal-import__hint .import-hint__content .import-hint__right {\n margin-left: 16px;\n}\n.ele-modal-import__hint .import-hint__content .import-hint__right .hint-right__title {\n font-size: 16px;\n color: var(--idooel-link-06);\n cursor: pointer;\n}\n.ele-modal-import__hint .import-hint__content .import-hint__right .hint-right__sub-title {\n font-size: 14px;\n color: var(--idooel-link-03);\n}\n.ele-modal-import__hint .import-footer__hint--text {\n font-size: 14px;\n color: var(--idooel-link-06);\n line-height: 22px;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
12652
12730
|
|
|
12653
12731
|
};
|
|
12654
12732
|
/* scoped */
|
|
12655
|
-
const __vue_scope_id__$
|
|
12733
|
+
const __vue_scope_id__$3 = "data-v-202eba99";
|
|
12656
12734
|
/* module identifier */
|
|
12657
|
-
const __vue_module_identifier__$
|
|
12735
|
+
const __vue_module_identifier__$3 = undefined;
|
|
12658
12736
|
/* functional template */
|
|
12659
|
-
const __vue_is_functional_template__$
|
|
12737
|
+
const __vue_is_functional_template__$3 = false;
|
|
12660
12738
|
/* style inject SSR */
|
|
12661
12739
|
|
|
12662
12740
|
/* style inject shadow dom */
|
|
12663
12741
|
|
|
12664
12742
|
|
|
12665
12743
|
|
|
12666
|
-
const __vue_component__$
|
|
12667
|
-
{ render: __vue_render__$
|
|
12668
|
-
__vue_inject_styles__$
|
|
12669
|
-
__vue_script__$
|
|
12670
|
-
__vue_scope_id__$
|
|
12671
|
-
__vue_is_functional_template__$
|
|
12672
|
-
__vue_module_identifier__$
|
|
12744
|
+
const __vue_component__$3 = /*#__PURE__*/normalizeComponent(
|
|
12745
|
+
{ render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
|
|
12746
|
+
__vue_inject_styles__$3,
|
|
12747
|
+
__vue_script__$3,
|
|
12748
|
+
__vue_scope_id__$3,
|
|
12749
|
+
__vue_is_functional_template__$3,
|
|
12750
|
+
__vue_module_identifier__$3,
|
|
12673
12751
|
false,
|
|
12674
12752
|
createInjector,
|
|
12675
12753
|
undefined,
|
|
12676
12754
|
undefined
|
|
12677
12755
|
);
|
|
12678
12756
|
|
|
12679
|
-
__vue_component__$
|
|
12757
|
+
__vue_component__$3.install = Vue => Vue.component(__vue_component__$3.name, __vue_component__$3);
|
|
12680
12758
|
|
|
12681
12759
|
//
|
|
12682
|
-
var script$
|
|
12760
|
+
var script$2 = {
|
|
12683
12761
|
name: 'ele-modal-timeline',
|
|
12684
12762
|
model: {
|
|
12685
12763
|
prop: 'value',
|
|
@@ -12740,10 +12818,10 @@ var script$1 = {
|
|
|
12740
12818
|
};
|
|
12741
12819
|
|
|
12742
12820
|
/* script */
|
|
12743
|
-
const __vue_script__$
|
|
12821
|
+
const __vue_script__$2 = script$2;
|
|
12744
12822
|
|
|
12745
12823
|
/* template */
|
|
12746
|
-
var __vue_render__$
|
|
12824
|
+
var __vue_render__$2 = function () {
|
|
12747
12825
|
var _vm = this;
|
|
12748
12826
|
var _h = _vm.$createElement;
|
|
12749
12827
|
var _c = _vm._self._c || _h;
|
|
@@ -12787,44 +12865,44 @@ var __vue_render__$1 = function () {
|
|
|
12787
12865
|
2
|
|
12788
12866
|
)
|
|
12789
12867
|
};
|
|
12790
|
-
var __vue_staticRenderFns__$
|
|
12791
|
-
__vue_render__$
|
|
12868
|
+
var __vue_staticRenderFns__$2 = [];
|
|
12869
|
+
__vue_render__$2._withStripped = true;
|
|
12792
12870
|
|
|
12793
12871
|
/* style */
|
|
12794
|
-
const __vue_inject_styles__$
|
|
12872
|
+
const __vue_inject_styles__$2 = function (inject) {
|
|
12795
12873
|
if (!inject) return
|
|
12796
12874
|
inject("data-v-68883d4c_0", { source: "\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["index.vue"],"names":[],"mappings":";;AAEA,oCAAoC","file":"index.vue"}, media: undefined });
|
|
12797
12875
|
|
|
12798
12876
|
};
|
|
12799
12877
|
/* scoped */
|
|
12800
|
-
const __vue_scope_id__$
|
|
12878
|
+
const __vue_scope_id__$2 = "data-v-68883d4c";
|
|
12801
12879
|
/* module identifier */
|
|
12802
|
-
const __vue_module_identifier__$
|
|
12880
|
+
const __vue_module_identifier__$2 = undefined;
|
|
12803
12881
|
/* functional template */
|
|
12804
|
-
const __vue_is_functional_template__$
|
|
12882
|
+
const __vue_is_functional_template__$2 = false;
|
|
12805
12883
|
/* style inject SSR */
|
|
12806
12884
|
|
|
12807
12885
|
/* style inject shadow dom */
|
|
12808
12886
|
|
|
12809
12887
|
|
|
12810
12888
|
|
|
12811
|
-
const __vue_component__$
|
|
12812
|
-
{ render: __vue_render__$
|
|
12813
|
-
__vue_inject_styles__$
|
|
12814
|
-
__vue_script__$
|
|
12815
|
-
__vue_scope_id__$
|
|
12816
|
-
__vue_is_functional_template__$
|
|
12817
|
-
__vue_module_identifier__$
|
|
12889
|
+
const __vue_component__$2 = /*#__PURE__*/normalizeComponent(
|
|
12890
|
+
{ render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
|
|
12891
|
+
__vue_inject_styles__$2,
|
|
12892
|
+
__vue_script__$2,
|
|
12893
|
+
__vue_scope_id__$2,
|
|
12894
|
+
__vue_is_functional_template__$2,
|
|
12895
|
+
__vue_module_identifier__$2,
|
|
12818
12896
|
false,
|
|
12819
12897
|
createInjector,
|
|
12820
12898
|
undefined,
|
|
12821
12899
|
undefined
|
|
12822
12900
|
);
|
|
12823
12901
|
|
|
12824
|
-
__vue_component__$
|
|
12902
|
+
__vue_component__$2.install = Vue => Vue.component(__vue_component__$2.name, __vue_component__$2);
|
|
12825
12903
|
|
|
12826
12904
|
//
|
|
12827
|
-
var script = {
|
|
12905
|
+
var script$1 = {
|
|
12828
12906
|
name: 'ele-modal-fsm',
|
|
12829
12907
|
model: {
|
|
12830
12908
|
prop: 'value',
|
|
@@ -12891,10 +12969,10 @@ var script = {
|
|
|
12891
12969
|
};
|
|
12892
12970
|
|
|
12893
12971
|
/* script */
|
|
12894
|
-
const __vue_script__ = script;
|
|
12972
|
+
const __vue_script__$1 = script$1;
|
|
12895
12973
|
|
|
12896
12974
|
/* template */
|
|
12897
|
-
var __vue_render__ = function () {
|
|
12975
|
+
var __vue_render__$1 = function () {
|
|
12898
12976
|
var _vm = this;
|
|
12899
12977
|
var _h = _vm.$createElement;
|
|
12900
12978
|
var _c = _vm._self._c || _h;
|
|
@@ -13000,18 +13078,180 @@ var __vue_render__ = function () {
|
|
|
13000
13078
|
2
|
|
13001
13079
|
)
|
|
13002
13080
|
};
|
|
13081
|
+
var __vue_staticRenderFns__$1 = [];
|
|
13082
|
+
__vue_render__$1._withStripped = true;
|
|
13083
|
+
|
|
13084
|
+
/* style */
|
|
13085
|
+
const __vue_inject_styles__$1 = function (inject) {
|
|
13086
|
+
if (!inject) return
|
|
13087
|
+
inject("data-v-47597df6_0", { source: ".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\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,eAAe;AACjB;AAEA;EACE,+BAA+B;EAC/B,sCAAsC;EACtC,sCAAsC;EACtC,sCAAsC;EACtC,uCAAuC;EACvC,uCAAuC;EACvC,uCAAuC;EACvC,mDAAmD;EACnD,4BAA4B;EAC5B,4BAA4B;EAC5B,0BAA0B;EAC1B,wBAAwB;EACxB,8BAA8B;EAC9B,+BAA+B;EAC/B,qCAAqC;EACrC,gCAAgC;EAChC,4BAA4B;EAC5B,qDAAqD;EACrD,kDAAkD;EAClD,gDAAgD;EAChD,gCAAgC;EAChC,uCAAuC;EACvC,yBAAyB;EACzB,yBAAyB;EACzB,oCAAoC;AACtC;AAEA;EACE,4DAA4D;AAC9D;AAEA;EACE,4DAA4D;AAC9D;;AAEA,oCAAoC","file":"index.vue","sourcesContent":[".has-error .ele-upload__wrapper .ele-upload__inner {\n border-color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--icon .anticon-cloud-upload {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__message {\n color: #F5222D;\n}\n.has-error .ele-upload__wrapper .ele-upload__inner .ele-upload__area .ele-upload__area--text .ele-upload__ext {\n color: #FFA39E;\n}\n\n.margin-t-8 {\n margin-top: 8px;\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-064: rgba(0, 0, 0, 0.64);\n --idoole-black-088: rgba(0, 0, 0, 0.88);\n --idoole-black-016: rgba(0, 0, 0, 0.16);\n --idooel-disabled-border-color: rgba(0, 0, 0, 0.16);\n --idoole-success-06: #52C41A;\n --idoole-warning-06: #FAAD14;\n --idoole-error-06: #F5222D;\n --idooel-border-width: 2;\n --idooel-border-color: #53a8ff;\n --idooel-column-border-width: 1;\n --idooel-column-border-color: #d9ecff;\n --idooel-row-even-color: #F0FAFF;\n --idooel-row-odd-color: #FFF;\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 --idooel-img-crop-err-color: #FFA39E;\n}\n\n.ant-input-disabled {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n.ant-select-disabled .ant-select-selection {\n border-color: var(--idooel-disabled-border-color) !important;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined })
|
|
13088
|
+
,inject("data-v-47597df6_1", { source: ".ele-modal-fsm__display[data-v-47597df6] {\n display: flex;\n flex-direction: row;\n font-size: 14px;\n line-height: 22px;\n}\n.ele-modal-fsm__display .fms-display__name[data-v-47597df6], .ele-modal-fsm__display .fms-display__action[data-v-47597df6] {\n font-weight: bold;\n color: var(--idoole-black-088);\n}\n.ele-modal-fsm__display .fms-display__name[data-v-47597df6]::before, .ele-modal-fsm__display .fms-display__action[data-v-47597df6]::before {\n content: \"\";\n margin-left: 4px;\n}\n.ele-modal-fsm__display .fms-display__name[data-v-47597df6]::after, .ele-modal-fsm__display .fms-display__action[data-v-47597df6]::after {\n content: \"\";\n margin-right: 4px;\n}\n.ele-modal-fsm__display .title-info[data-v-47597df6] {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-modal-fsm__display .title-info[data-v-47597df6]::before {\n content: \"\";\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n}\n.ele-modal-fsm__display .title-info.success[data-v-47597df6]::before {\n background: var(--idoole-success-06);\n}\n.ele-modal-fsm__display .title-info.warning[data-v-47597df6]::before {\n background: var(--idoole-warning-06);\n}\n.ele-modal-fsm__display .title-info.error[data-v-47597df6]::before {\n background: var(--idoole-error-06);\n}\n.ele-modal-fsm__opinion-wrapper[data-v-47597df6] {\n margin-top: 4px;\n line-height: 22px;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__label[data-v-47597df6] {\n width: 42px;\n flex-shrink: 0;\n color: var(--idoole-black-064);\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__value[data-v-47597df6] {\n color: var(--idoole-black-088);\n font-weight: bold;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/business-components/modal-fsm/src/index.vue","index.vue"],"names":[],"mappings":"AAkGA;EACA,aAAA;EACA,mBAAA;EACA,eAAA;EACA,iBAAA;ACjGA;ADkGA;EACA,iBAAA;EACA,8BAAA;AChGA;ADiGA;EACA,WAAA;EACA,gBAAA;AC/FA;ADiGA;EACA,WAAA;EACA,iBAAA;AC/FA;ADkGA;EACA,eAAA;EACA,8BAAA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;AChGA;ADiGA;EACA,WAAA;EACA,qBAAA;EACA,UAAA;EACA,WAAA;EACA,kBAAA;EACA,iBAAA;AC/FA;ADkGA;EACA,oCAAA;AChGA;ADoGA;EACA,oCAAA;AClGA;ADsGA;EACA,kCAAA;ACpGA;ADyGA;EACA,eAAA;EACA,iBAAA;EACA,eAAA;EACA,aAAA;EACA,mBAAA;ACtGA;ADuGA;EACA,WAAA;EACA,cAAA;EACA,8BAAA;ACrGA;ADuGA;EACA,8BAAA;EACA,iBAAA;ACrGA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <ele-modal v-on=\"$listeners\" :value=\"value\" :title=\"meta.title || title\" @cancel=\"handleCancel\" :buttonGroupMeta=\"buttonGroupMeta\">\n <slot name=\"alert\"></slot>\n <ele-timeline v-bind=\"meta\">\n <template #right=\"{ data: item }\">\n <div class=\"ele-modal-fsm__display\">\n <span>由</span>\n <span class=\"fms-display__name\">{{ item.userName || '管理员' }}</span>\n <span>执行了</span>\n <span class=\"fms-display__action\">{{ item.action || '结班' }}</span>\n <span>操作</span>\n <span :class=\"['title-info', item.state == 1 && 'success', item.state == 2 && 'warning', item.state == 3 && 'error']\">{{ item.stateName }}</span>\n </div>\n <div class=\"ele-modal-fsm__opinion-wrapper\">\n <div class=\"fsm-opinion__label\">意见:</div>\n <div class=\"fsm-opinion__value\">{{ item.opinion }}</div>\n </div>\n </template>\n </ele-timeline>\n <template v-if=\"showTextSlot\" #footer-text>\n <ele-text v-bind=\"textAttrs\"></ele-text>\n </template>\n </ele-modal>\n</template>\n\n<script>\nimport { CONTEXT } from '../../../utils'\nimport { type } from '@idooel/shared'\nexport default {\n name: 'ele-modal-fsm',\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n value: {\n type: Boolean,\n default: false\n },\n title: {\n type: String,\n default: '状态变更记录'\n },\n meta: {\n type: Object,\n default: () => ({})\n },\n buttonGroupMeta: {\n type: Object,\n default: () => {\n return {\n elements: [\n {\n label: '关闭',\n key: 'cancel',\n type: 'default',\n eventName: 'cancel'\n }\n ]\n }\n }\n },\n contextProp: {\n type: Object,\n default: () => ({})\n }\n },\n provide() {\n return {\n [CONTEXT]: () => {\n return {\n _route: this.$route.query,\n _routeMeta: this.$route.meta,\n ...this.contextProp\n }\n }\n }\n },\n computed: {\n showTextSlot () {\n return !type.isEmpty(this.textAttrs)\n },\n textAttrs() {\n const { text = {} } = this.buttonGroupMeta\n return text\n }\n },\n methods: {\n handleCancel () {\n this.$emit('change', false)\n }\n }\n}\n</script>\n<style lang=\"scss\">\n@import '../../../theme/index';\n</style>\n<style lang=\"scss\" scoped>\n.ele-modal-fsm__display {\n display: flex;\n flex-direction: row;\n font-size: 14px;\n line-height: 22px;\n .fms-display__name, .fms-display__action {\n font-weight: bold;\n color: var(--idoole-black-088);\n &::before {\n content: '';\n margin-left: 4px;\n }\n &::after {\n content: '';\n margin-right: 4px;\n }\n }\n .title-info {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n &::before {\n content: '';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n }\n &.success {\n &::before {\n background: var(--idoole-success-06);\n }\n }\n &.warning {\n &::before {\n background: var(--idoole-warning-06);\n }\n }\n &.error {\n &::before {\n background: var(--idoole-error-06);\n }\n }\n }\n}\n.ele-modal-fsm__opinion-wrapper {\n margin-top: 4px;\n line-height: 22px;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n .fsm-opinion__label {\n width: 42px;\n flex-shrink: 0;\n color: var(--idoole-black-064);\n }\n .fsm-opinion__value {\n color: var(--idoole-black-088);\n font-weight: bold;\n }\n}\n</style>",".ele-modal-fsm__display {\n display: flex;\n flex-direction: row;\n font-size: 14px;\n line-height: 22px;\n}\n.ele-modal-fsm__display .fms-display__name, .ele-modal-fsm__display .fms-display__action {\n font-weight: bold;\n color: var(--idoole-black-088);\n}\n.ele-modal-fsm__display .fms-display__name::before, .ele-modal-fsm__display .fms-display__action::before {\n content: \"\";\n margin-left: 4px;\n}\n.ele-modal-fsm__display .fms-display__name::after, .ele-modal-fsm__display .fms-display__action::after {\n content: \"\";\n margin-right: 4px;\n}\n.ele-modal-fsm__display .title-info {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-modal-fsm__display .title-info::before {\n content: \"\";\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n}\n.ele-modal-fsm__display .title-info.success::before {\n background: var(--idoole-success-06);\n}\n.ele-modal-fsm__display .title-info.warning::before {\n background: var(--idoole-warning-06);\n}\n.ele-modal-fsm__display .title-info.error::before {\n background: var(--idoole-error-06);\n}\n\n.ele-modal-fsm__opinion-wrapper {\n margin-top: 4px;\n line-height: 22px;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__label {\n width: 42px;\n flex-shrink: 0;\n color: var(--idoole-black-064);\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__value {\n color: var(--idoole-black-088);\n font-weight: bold;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
13089
|
+
|
|
13090
|
+
};
|
|
13091
|
+
/* scoped */
|
|
13092
|
+
const __vue_scope_id__$1 = "data-v-47597df6";
|
|
13093
|
+
/* module identifier */
|
|
13094
|
+
const __vue_module_identifier__$1 = undefined;
|
|
13095
|
+
/* functional template */
|
|
13096
|
+
const __vue_is_functional_template__$1 = false;
|
|
13097
|
+
/* style inject SSR */
|
|
13098
|
+
|
|
13099
|
+
/* style inject shadow dom */
|
|
13100
|
+
|
|
13101
|
+
|
|
13102
|
+
|
|
13103
|
+
const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
|
|
13104
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
13105
|
+
__vue_inject_styles__$1,
|
|
13106
|
+
__vue_script__$1,
|
|
13107
|
+
__vue_scope_id__$1,
|
|
13108
|
+
__vue_is_functional_template__$1,
|
|
13109
|
+
__vue_module_identifier__$1,
|
|
13110
|
+
false,
|
|
13111
|
+
createInjector,
|
|
13112
|
+
undefined,
|
|
13113
|
+
undefined
|
|
13114
|
+
);
|
|
13115
|
+
|
|
13116
|
+
__vue_component__$1.install = Vue => Vue.component(__vue_component__$1.name, __vue_component__$1);
|
|
13117
|
+
|
|
13118
|
+
//
|
|
13119
|
+
//
|
|
13120
|
+
//
|
|
13121
|
+
//
|
|
13122
|
+
//
|
|
13123
|
+
//
|
|
13124
|
+
//
|
|
13125
|
+
//
|
|
13126
|
+
//
|
|
13127
|
+
//
|
|
13128
|
+
//
|
|
13129
|
+
//
|
|
13130
|
+
//
|
|
13131
|
+
//
|
|
13132
|
+
//
|
|
13133
|
+
//
|
|
13134
|
+
|
|
13135
|
+
var script = {
|
|
13136
|
+
name: 'ele-tabs-sub-center',
|
|
13137
|
+
props: {
|
|
13138
|
+
activeKey: {
|
|
13139
|
+
type: [String, Number]
|
|
13140
|
+
},
|
|
13141
|
+
isSuffix: {
|
|
13142
|
+
type: Boolean,
|
|
13143
|
+
default: false
|
|
13144
|
+
},
|
|
13145
|
+
disabled: {
|
|
13146
|
+
type: Boolean,
|
|
13147
|
+
default: false
|
|
13148
|
+
},
|
|
13149
|
+
dataSource: {
|
|
13150
|
+
type: Array
|
|
13151
|
+
}
|
|
13152
|
+
},
|
|
13153
|
+
data() {
|
|
13154
|
+
return {
|
|
13155
|
+
innerActiveKey: 1
|
|
13156
|
+
};
|
|
13157
|
+
},
|
|
13158
|
+
watch: {
|
|
13159
|
+
activeKey: {
|
|
13160
|
+
handler(key) {
|
|
13161
|
+
this.innerActiveKey = key;
|
|
13162
|
+
},
|
|
13163
|
+
immediate: true
|
|
13164
|
+
}
|
|
13165
|
+
},
|
|
13166
|
+
methods: {
|
|
13167
|
+
setLoadingByKey(key, status = true) {
|
|
13168
|
+
const target = this.dataSource.find(item => item.key == key);
|
|
13169
|
+
this.$set(target, 'loading', status);
|
|
13170
|
+
},
|
|
13171
|
+
setTitleByKey(key, title) {
|
|
13172
|
+
const target = this.dataSource.find(item => item.key == key);
|
|
13173
|
+
this.$set(target, 'title', title);
|
|
13174
|
+
},
|
|
13175
|
+
setSuffixByKey(key, suffix) {
|
|
13176
|
+
const target = this.dataSource.find(item => item.key == key);
|
|
13177
|
+
this.$set(target, 'suffix', suffix);
|
|
13178
|
+
},
|
|
13179
|
+
handleTabClick(props) {
|
|
13180
|
+
if (this.disabled) return;
|
|
13181
|
+
const {
|
|
13182
|
+
key
|
|
13183
|
+
} = props;
|
|
13184
|
+
this.innerActiveKey = key;
|
|
13185
|
+
this.$emit('on-click', props);
|
|
13186
|
+
}
|
|
13187
|
+
}
|
|
13188
|
+
};
|
|
13189
|
+
|
|
13190
|
+
/* script */
|
|
13191
|
+
const __vue_script__ = script;
|
|
13192
|
+
|
|
13193
|
+
/* template */
|
|
13194
|
+
var __vue_render__ = function () {
|
|
13195
|
+
var _vm = this;
|
|
13196
|
+
var _h = _vm.$createElement;
|
|
13197
|
+
var _c = _vm._self._c || _h;
|
|
13198
|
+
return _c("div", { staticClass: "g-form__tabs" }, [
|
|
13199
|
+
_c(
|
|
13200
|
+
"div",
|
|
13201
|
+
{ class: ["g-form__wrapper", _vm.disabled && "disabled"] },
|
|
13202
|
+
_vm._l(_vm.dataSource, function (props) {
|
|
13203
|
+
return _c(
|
|
13204
|
+
"div",
|
|
13205
|
+
{
|
|
13206
|
+
key: props.key,
|
|
13207
|
+
class: [
|
|
13208
|
+
"g-form__item",
|
|
13209
|
+
!_vm.disabled && _vm.innerActiveKey == props.key && "actived",
|
|
13210
|
+
],
|
|
13211
|
+
on: {
|
|
13212
|
+
click: function ($event) {
|
|
13213
|
+
return _vm.handleTabClick(props)
|
|
13214
|
+
},
|
|
13215
|
+
},
|
|
13216
|
+
},
|
|
13217
|
+
[
|
|
13218
|
+
_c("div", [_vm._v(_vm._s(props.title))]),
|
|
13219
|
+
_vm._v(" "),
|
|
13220
|
+
_vm.isSuffix
|
|
13221
|
+
? _c(
|
|
13222
|
+
"div",
|
|
13223
|
+
{ staticClass: "suffix" },
|
|
13224
|
+
[
|
|
13225
|
+
props.loading
|
|
13226
|
+
? [
|
|
13227
|
+
_c("ele-loading", {
|
|
13228
|
+
staticStyle: { "margin-left": "4px" },
|
|
13229
|
+
attrs: { loading: props.loading },
|
|
13230
|
+
}),
|
|
13231
|
+
]
|
|
13232
|
+
: _c("div", [_vm._v("(" + _vm._s(props.suffix) + "人)")]),
|
|
13233
|
+
],
|
|
13234
|
+
2
|
|
13235
|
+
)
|
|
13236
|
+
: _vm._e(),
|
|
13237
|
+
]
|
|
13238
|
+
)
|
|
13239
|
+
}),
|
|
13240
|
+
0
|
|
13241
|
+
),
|
|
13242
|
+
])
|
|
13243
|
+
};
|
|
13003
13244
|
var __vue_staticRenderFns__ = [];
|
|
13004
13245
|
__vue_render__._withStripped = true;
|
|
13005
13246
|
|
|
13006
13247
|
/* style */
|
|
13007
13248
|
const __vue_inject_styles__ = function (inject) {
|
|
13008
13249
|
if (!inject) return
|
|
13009
|
-
inject("data-v-
|
|
13010
|
-
,inject("data-v-47597df6_1", { source: ".ele-modal-fsm__display[data-v-47597df6] {\n display: flex;\n flex-direction: row;\n font-size: 14px;\n line-height: 22px;\n}\n.ele-modal-fsm__display .fms-display__name[data-v-47597df6], .ele-modal-fsm__display .fms-display__action[data-v-47597df6] {\n font-weight: bold;\n color: var(--idoole-black-088);\n}\n.ele-modal-fsm__display .fms-display__name[data-v-47597df6]::before, .ele-modal-fsm__display .fms-display__action[data-v-47597df6]::before {\n content: \"\";\n margin-left: 4px;\n}\n.ele-modal-fsm__display .fms-display__name[data-v-47597df6]::after, .ele-modal-fsm__display .fms-display__action[data-v-47597df6]::after {\n content: \"\";\n margin-right: 4px;\n}\n.ele-modal-fsm__display .title-info[data-v-47597df6] {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-modal-fsm__display .title-info[data-v-47597df6]::before {\n content: \"\";\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n}\n.ele-modal-fsm__display .title-info.success[data-v-47597df6]::before {\n background: var(--idoole-success-06);\n}\n.ele-modal-fsm__display .title-info.warning[data-v-47597df6]::before {\n background: var(--idoole-warning-06);\n}\n.ele-modal-fsm__display .title-info.error[data-v-47597df6]::before {\n background: var(--idoole-error-06);\n}\n.ele-modal-fsm__opinion-wrapper[data-v-47597df6] {\n margin-top: 4px;\n line-height: 22px;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__label[data-v-47597df6] {\n width: 42px;\n flex-shrink: 0;\n color: var(--idoole-black-064);\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__value[data-v-47597df6] {\n color: var(--idoole-black-088);\n font-weight: bold;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/business-components/modal-fsm/src/index.vue","index.vue"],"names":[],"mappings":"AAkGA;EACA,aAAA;EACA,mBAAA;EACA,eAAA;EACA,iBAAA;ACjGA;ADkGA;EACA,iBAAA;EACA,8BAAA;AChGA;ADiGA;EACA,WAAA;EACA,gBAAA;AC/FA;ADiGA;EACA,WAAA;EACA,iBAAA;AC/FA;ADkGA;EACA,eAAA;EACA,8BAAA;EACA,iBAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;AChGA;ADiGA;EACA,WAAA;EACA,qBAAA;EACA,UAAA;EACA,WAAA;EACA,kBAAA;EACA,iBAAA;AC/FA;ADkGA;EACA,oCAAA;AChGA;ADoGA;EACA,oCAAA;AClGA;ADsGA;EACA,kCAAA;ACpGA;ADyGA;EACA,eAAA;EACA,iBAAA;EACA,eAAA;EACA,aAAA;EACA,mBAAA;ACtGA;ADuGA;EACA,WAAA;EACA,cAAA;EACA,8BAAA;ACrGA;ADuGA;EACA,8BAAA;EACA,iBAAA;ACrGA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <ele-modal v-on=\"$listeners\" :value=\"value\" :title=\"meta.title || title\" @cancel=\"handleCancel\" :buttonGroupMeta=\"buttonGroupMeta\">\n <slot name=\"alert\"></slot>\n <ele-timeline v-bind=\"meta\">\n <template #right=\"{ data: item }\">\n <div class=\"ele-modal-fsm__display\">\n <span>由</span>\n <span class=\"fms-display__name\">{{ item.userName || '管理员' }}</span>\n <span>执行了</span>\n <span class=\"fms-display__action\">{{ item.action || '结班' }}</span>\n <span>操作</span>\n <span :class=\"['title-info', item.state == 1 && 'success', item.state == 2 && 'warning', item.state == 3 && 'error']\">{{ item.stateName }}</span>\n </div>\n <div class=\"ele-modal-fsm__opinion-wrapper\">\n <div class=\"fsm-opinion__label\">意见:</div>\n <div class=\"fsm-opinion__value\">{{ item.opinion }}</div>\n </div>\n </template>\n </ele-timeline>\n <template v-if=\"showTextSlot\" #footer-text>\n <ele-text v-bind=\"textAttrs\"></ele-text>\n </template>\n </ele-modal>\n</template>\n\n<script>\nimport { CONTEXT } from '../../../utils'\nimport { type } from '@idooel/shared'\nexport default {\n name: 'ele-modal-fsm',\n model: {\n prop: 'value',\n event: 'change'\n },\n props: {\n value: {\n type: Boolean,\n default: false\n },\n title: {\n type: String,\n default: '状态变更记录'\n },\n meta: {\n type: Object,\n default: () => ({})\n },\n buttonGroupMeta: {\n type: Object,\n default: () => {\n return {\n elements: [\n {\n label: '关闭',\n key: 'cancel',\n type: 'default',\n eventName: 'cancel'\n }\n ]\n }\n }\n },\n contextProp: {\n type: Object,\n default: () => ({})\n }\n },\n provide() {\n return {\n [CONTEXT]: () => {\n return {\n _route: this.$route.query,\n _routeMeta: this.$route.meta,\n ...this.contextProp\n }\n }\n }\n },\n computed: {\n showTextSlot () {\n return !type.isEmpty(this.textAttrs)\n },\n textAttrs() {\n const { text = {} } = this.buttonGroupMeta\n return text\n }\n },\n methods: {\n handleCancel () {\n this.$emit('change', false)\n }\n }\n}\n</script>\n<style lang=\"scss\">\n@import '../../../theme/index';\n</style>\n<style lang=\"scss\" scoped>\n.ele-modal-fsm__display {\n display: flex;\n flex-direction: row;\n font-size: 14px;\n line-height: 22px;\n .fms-display__name, .fms-display__action {\n font-weight: bold;\n color: var(--idoole-black-088);\n &::before {\n content: '';\n margin-left: 4px;\n }\n &::after {\n content: '';\n margin-right: 4px;\n }\n }\n .title-info {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n &::before {\n content: '';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n }\n &.success {\n &::before {\n background: var(--idoole-success-06);\n }\n }\n &.warning {\n &::before {\n background: var(--idoole-warning-06);\n }\n }\n &.error {\n &::before {\n background: var(--idoole-error-06);\n }\n }\n }\n}\n.ele-modal-fsm__opinion-wrapper {\n margin-top: 4px;\n line-height: 22px;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n .fsm-opinion__label {\n width: 42px;\n flex-shrink: 0;\n color: var(--idoole-black-064);\n }\n .fsm-opinion__value {\n color: var(--idoole-black-088);\n font-weight: bold;\n }\n}\n</style>",".ele-modal-fsm__display {\n display: flex;\n flex-direction: row;\n font-size: 14px;\n line-height: 22px;\n}\n.ele-modal-fsm__display .fms-display__name, .ele-modal-fsm__display .fms-display__action {\n font-weight: bold;\n color: var(--idoole-black-088);\n}\n.ele-modal-fsm__display .fms-display__name::before, .ele-modal-fsm__display .fms-display__action::before {\n content: \"\";\n margin-left: 4px;\n}\n.ele-modal-fsm__display .fms-display__name::after, .ele-modal-fsm__display .fms-display__action::after {\n content: \"\";\n margin-right: 4px;\n}\n.ele-modal-fsm__display .title-info {\n font-size: 14px;\n color: var(--idoole-black-064);\n margin-left: 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ele-modal-fsm__display .title-info::before {\n content: \"\";\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n margin-right: 8px;\n}\n.ele-modal-fsm__display .title-info.success::before {\n background: var(--idoole-success-06);\n}\n.ele-modal-fsm__display .title-info.warning::before {\n background: var(--idoole-warning-06);\n}\n.ele-modal-fsm__display .title-info.error::before {\n background: var(--idoole-error-06);\n}\n\n.ele-modal-fsm__opinion-wrapper {\n margin-top: 4px;\n line-height: 22px;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__label {\n width: 42px;\n flex-shrink: 0;\n color: var(--idoole-black-064);\n}\n.ele-modal-fsm__opinion-wrapper .fsm-opinion__value {\n color: var(--idoole-black-088);\n font-weight: bold;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
13250
|
+
inject("data-v-08438d0d_0", { source: ".g-form__tabs[data-v-08438d0d] {\n width: 100%;\n background: #fff;\n display: flex;\n flex-direction: row;\n height: 32px;\n}\n.g-form__tabs .g-form__wrapper[data-v-08438d0d] {\n display: flex;\n flex-direction: row;\n}\n.g-form__tabs .g-form__wrapper.disabled .g-form__item[data-v-08438d0d] {\n cursor: not-allowed;\n border-color: rgba(0, 0, 0, 0.16);\n background: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.24);\n}\n.g-form__tabs .g-form__wrapper .g-form__item[data-v-08438d0d] {\n padding: 0px 16px;\n cursor: pointer;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n border: 1px solid rgba(0, 0, 0, 0.16);\n color: rgba(0, 0, 0, 0.64);\n border-right: unset;\n}\n.g-form__tabs .g-form__wrapper .g-form__item .suffix[data-v-08438d0d] {\n display: flex;\n}\n.g-form__tabs .g-form__wrapper .g-form__item[data-v-08438d0d]:last-child {\n border-right: 1px solid rgba(0, 0, 0, 0.16);\n}\n.g-form__tabs .g-form__wrapper .g-form__item.actived[data-v-08438d0d] {\n border-color: #409eff;\n color: #409eff;\n font-size: 14px;\n}\n.g-form__tabs .g-form__wrapper .g-form__item.actived + .g-form__item[data-v-08438d0d] {\n border-left: 1px solid #409eff;\n}\n\n/*# sourceMappingURL=index.vue.map */", map: {"version":3,"sources":["/Users/huangshan/Goldgov/front/ganjiao/base-elearning-frontend-model/packages/components/packages/business-components/tabs-sub-center/src/index.vue","index.vue"],"names":[],"mappings":"AAwEA;EACA,WAAA;EACA,gBAAA;EACA,aAAA;EACA,mBAAA;EACA,YAAA;ACvEA;ADwEA;EACA,aAAA;EACA,mBAAA;ACtEA;ADwEA;EACA,mBAAA;EACA,iCAAA;EACA,+BAAA;EACA,0BAAA;ACtEA;ADyEA;EACA,iBAAA;EACA,eAAA;EACA,eAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,qCAAA;EACA,0BAAA;EACA,mBAAA;ACvEA;ADwEA;EACA,aAAA;ACtEA;ADwEA;EACA,2CAAA;ACtEA;ADwEA;EACA,qBAAA;EACA,cAAA;EACA,eAAA;ACtEA;ADuEA;EACA,8BAAA;ACrEA;;AAEA,oCAAoC","file":"index.vue","sourcesContent":["<template>\n <div class=\"g-form__tabs\">\n <div :class=\"['g-form__wrapper', disabled && 'disabled']\">\n <div :class=\"['g-form__item', !disabled && (innerActiveKey == props.key) && 'actived']\" @click=\"handleTabClick(props)\" v-for=\"props in dataSource\" :key=\"props.key\">\n <div>{{ props.title }}</div>\n <div v-if=\"isSuffix\" class=\"suffix\">\n <template v-if=\"props.loading\">\n <ele-loading style=\"margin-left:4px;\" :loading=\"props.loading\"></ele-loading>\n </template>\n <div v-else>({{ props.suffix }}人)</div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'ele-tabs-sub-center',\n props: {\n activeKey: {\n type: [String, Number]\n },\n isSuffix: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n dataSource: {\n type: Array\n }\n },\n data () {\n return {\n innerActiveKey: 1\n }\n },\n watch: {\n activeKey: {\n handler (key) {\n this.innerActiveKey = key\n },\n immediate: true\n }\n },\n methods: {\n setLoadingByKey (key, status = true) {\n const target = this.dataSource.find(item => item.key == key)\n this.$set(target, 'loading', status)\n },\n setTitleByKey (key, title) {\n const target = this.dataSource.find(item => item.key == key)\n this.$set(target, 'title', title)\n },\n setSuffixByKey (key, suffix) {\n const target = this.dataSource.find(item => item.key == key)\n this.$set(target, 'suffix', suffix)\n },\n handleTabClick (props) {\n if (this.disabled) return\n const { key } = props\n this.innerActiveKey = key\n this.$emit('on-click', props)\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.g-form__tabs {\n width: 100%;\n background: #fff;\n display: flex;\n flex-direction: row;\n height: 32px;\n .g-form__wrapper {\n display: flex;\n flex-direction: row;\n &.disabled {\n .g-form__item {\n cursor: not-allowed;\n border-color: rgba(0, 0, 0, 0.16);\n background: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.24);\n }\n }\n .g-form__item {\n padding: 0px 16px;\n cursor: pointer;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n border: 1px solid rgba(0, 0, 0, 0.16);\n color: rgba(0, 0, 0, 0.64);\n border-right: unset;\n & .suffix {\n display: flex;\n }\n &:last-child {\n border-right: 1px solid rgba(0, 0, 0, 0.16);\n }\n &.actived {\n border-color:#409eff;\n color: #409eff;\n font-size: 14px;\n &+.g-form__item {\n border-left: 1px solid #409eff;\n }\n }\n }\n }\n}\n</style>",".g-form__tabs {\n width: 100%;\n background: #fff;\n display: flex;\n flex-direction: row;\n height: 32px;\n}\n.g-form__tabs .g-form__wrapper {\n display: flex;\n flex-direction: row;\n}\n.g-form__tabs .g-form__wrapper.disabled .g-form__item {\n cursor: not-allowed;\n border-color: rgba(0, 0, 0, 0.16);\n background: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.24);\n}\n.g-form__tabs .g-form__wrapper .g-form__item {\n padding: 0px 16px;\n cursor: pointer;\n font-size: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n border: 1px solid rgba(0, 0, 0, 0.16);\n color: rgba(0, 0, 0, 0.64);\n border-right: unset;\n}\n.g-form__tabs .g-form__wrapper .g-form__item .suffix {\n display: flex;\n}\n.g-form__tabs .g-form__wrapper .g-form__item:last-child {\n border-right: 1px solid rgba(0, 0, 0, 0.16);\n}\n.g-form__tabs .g-form__wrapper .g-form__item.actived {\n border-color: #409eff;\n color: #409eff;\n font-size: 14px;\n}\n.g-form__tabs .g-form__wrapper .g-form__item.actived + .g-form__item {\n border-left: 1px solid #409eff;\n}\n\n/*# sourceMappingURL=index.vue.map */"]}, media: undefined });
|
|
13011
13251
|
|
|
13012
13252
|
};
|
|
13013
13253
|
/* scoped */
|
|
13014
|
-
const __vue_scope_id__ = "data-v-
|
|
13254
|
+
const __vue_scope_id__ = "data-v-08438d0d";
|
|
13015
13255
|
/* module identifier */
|
|
13016
13256
|
const __vue_module_identifier__ = undefined;
|
|
13017
13257
|
/* functional template */
|
|
@@ -13037,18 +13277,18 @@ __vue_render__._withStripped = true;
|
|
|
13037
13277
|
|
|
13038
13278
|
__vue_component__.install = Vue => Vue.component(__vue_component__.name, __vue_component__);
|
|
13039
13279
|
|
|
13280
|
+
__vue_component__$x.install = Vue => Vue.component(__vue_component__$x.name, __vue_component__$x);
|
|
13281
|
+
|
|
13040
13282
|
__vue_component__$v.install = Vue => Vue.component(__vue_component__$v.name, __vue_component__$v);
|
|
13041
13283
|
|
|
13042
|
-
__vue_component__$
|
|
13284
|
+
__vue_component__$w.install = Vue => Vue.component(__vue_component__$w.name, __vue_component__$w);
|
|
13043
13285
|
|
|
13044
13286
|
__vue_component__$u.install = Vue => Vue.component(__vue_component__$u.name, __vue_component__$u);
|
|
13045
13287
|
|
|
13046
|
-
__vue_component__$
|
|
13047
|
-
|
|
13048
|
-
const
|
|
13049
|
-
const
|
|
13050
|
-
const models = [__vue_component__$v, __vue_component__$t, __vue_component__$u, __vue_component__$s];
|
|
13051
|
-
const components = [__vue_component__$C, __vue_component__$B, __vue_component__$A, __vue_component__$z, __vue_component__$x, __vue_component__$w, __vue_component__$r, __vue_component__$q, __vue_component__$p, __vue_component__$o, __vue_component__$n, __vue_component__$m, __vue_component__$l, __vue_component__$k, __vue_component__$j, __vue_component__$i, __vue_component__$h, __vue_component__$g, __vue_component__$f, __vue_component__$e, __vue_component__$d, __vue_component__$b, __vue_component__$a, ...compositeComponents, ...businessComponents, ...models];
|
|
13288
|
+
const compositeComponents = [__vue_component__$8, __vue_component__$9, __vue_component__$7, __vue_component__$6, __vue_component__$e, __vue_component__$5, __vue_component__$4];
|
|
13289
|
+
const businessComponents = [__vue_component__$3, __vue_component__$2, __vue_component__$1, __vue_component__];
|
|
13290
|
+
const models = [__vue_component__$x, __vue_component__$v, __vue_component__$w, __vue_component__$u];
|
|
13291
|
+
const components = [__vue_component__$E, __vue_component__$D, __vue_component__$C, __vue_component__$B, __vue_component__$z, __vue_component__$y, __vue_component__$t, __vue_component__$s, __vue_component__$r, __vue_component__$q, __vue_component__$p, __vue_component__$o, __vue_component__$n, __vue_component__$m, __vue_component__$l, __vue_component__$k, __vue_component__$j, __vue_component__$i, __vue_component__$h, __vue_component__$g, __vue_component__$f, __vue_component__$d, __vue_component__$c, __vue_component__$b, ...compositeComponents, ...businessComponents, ...models];
|
|
13052
13292
|
const install = Vue => {
|
|
13053
13293
|
if (install.installed) return;
|
|
13054
13294
|
install.installed = true;
|
|
@@ -13057,4 +13297,4 @@ const install = Vue => {
|
|
|
13057
13297
|
});
|
|
13058
13298
|
};
|
|
13059
13299
|
|
|
13060
|
-
export { __vue_component__$
|
|
13300
|
+
export { __vue_component__$r as EleAlert, __vue_component__$j as EleBatchExport, __vue_component__$E as EleButton, __vue_component__$8 as EleButtonGroup, __vue_component__$l as EleCheckbox, __vue_component__$D as EleDate, __vue_component__$i as EleDateRange, __vue_component__$s as EleForm, __vue_component__$w as EleFormGroupModel, __vue_component__$v as EleFormPageModel, __vue_component__$o as EleIcon, __vue_component__$C as EleInput, __vue_component__$n as EleInputNumber, __vue_component__$b as EleLoading, __vue_component__$m as EleModal, __vue_component__$5 as EleModalConfirm, __vue_component__$7 as EleModalForm, __vue_component__$1 as EleModalFsm, __vue_component__$e as EleModalImgCrop, __vue_component__$3 as EleModalImport, __vue_component__$4 as EleModalTable, __vue_component__$2 as EleModalTimeline, __vue_component__$6 as EleModalTree, __vue_component__$k as EleRadio, __vue_component__$9 as EleSearchArea, __vue_component__$B as EleSelect, __vue_component__$p as EleSelectEntity, __vue_component__$u as EleStepModel, __vue_component__$z as EleTable, __vue_component__$f as EleTabs, __vue_component__ as EleTabsSubCenter, __vue_component__$g as EleText, __vue_component__$d as EleTextEditor, __vue_component__$c as EleTextarea, __vue_component__$h as EleTimeline, __vue_component__$t as EleTpl, __vue_component__$y as EleTree, __vue_component__$x as EleTreeTableModel, __vue_component__$q as EleUpload, install as default, models };
|