@web-utils/form-ui 1.0.0-beta5 → 1.0.0-beta51
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/api/index.d.ts +60 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -1
- package/chunks/6yfBZFOB.mjs +56 -0
- package/chunks/B1IPSTA6.mjs +198 -0
- package/chunks/B9gA65rt2.mjs +38 -0
- package/chunks/BBERmTup.mjs +83 -0
- package/chunks/BG8z3V9d2.mjs +643 -0
- package/chunks/BQk3-Ppb2.mjs +146 -0
- package/chunks/BQyL45PF2.mjs +207 -0
- package/chunks/BWh6u1O0.mjs +660 -0
- package/chunks/BbSPWDDZ.mjs +100 -0
- package/chunks/BfxDxIg0.mjs +106 -0
- package/chunks/BqWvBF14.mjs +35 -0
- package/chunks/BsZgAJX_2.mjs +81 -0
- package/chunks/BtcjAHE6.mjs +317 -0
- package/chunks/Bwbtu2cp.mjs +194 -0
- package/chunks/ByHz4mmh.mjs +87 -0
- package/chunks/C2zgFLYO.mjs +185 -0
- package/chunks/C7G-cAoI.mjs +1361 -0
- package/chunks/CAd1zK9Q.mjs +25 -0
- package/chunks/CJdkjadi.mjs +17 -0
- package/chunks/CXsoKP22.mjs +86 -0
- package/chunks/CabldOLo.mjs +157 -0
- package/chunks/CkOD-_VV.mjs +8 -0
- package/chunks/CqVd8D222.mjs +89 -0
- package/chunks/CuAoMR3n.mjs +105 -0
- package/chunks/DA7oGHSX.mjs +141 -0
- package/chunks/DKwp6AMl.mjs +168 -0
- package/chunks/DOP3aBxf.mjs +93 -0
- package/chunks/DOZRzqlo.mjs +37 -0
- package/chunks/D_Fs3bkZ.mjs +57 -0
- package/chunks/D_qiRmiE.mjs +230 -0
- package/chunks/DcTVYqeJ.mjs +113 -0
- package/chunks/Dt3lfDnL.mjs +166 -0
- package/chunks/GI8krYU82.mjs +478 -0
- package/chunks/V2p-PCpL.mjs +176 -0
- package/chunks/YFiU0ngn.mjs +622 -0
- package/chunks/bFbPPcdq.mjs +25 -0
- package/chunks/eae6huQB.mjs +25 -0
- package/chunks/gCeDFHo1.mjs +32 -0
- package/chunks/gLPy4Sus.mjs +164 -0
- package/chunks/hlha6Bhc.mjs +107 -0
- package/chunks/pIzhYsBe.mjs +93 -0
- package/chunks/wDS9KBFw.mjs +67 -0
- package/chunks/wXeqV-_7.mjs +89 -0
- package/confirm-button/index.d.ts +122 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +93 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +54 -0
- package/constants/index.mjs +4 -0
- package/dict-render/index.d.ts +28 -0
- package/dict-render/index.mjs +2 -0
- package/editable-tree/index.d.ts +254 -0
- package/editable-tree/index.mjs +2 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +337 -16
- package/element-dialog/index.mjs +2 -91
- package/element-resize-observer/index.d.ts +8 -0
- package/element-resize-observer/index.mjs +40 -0
- package/element-resize-observer/style.css +1 -0
- package/empty-view/index.d.ts +2 -2
- package/empty-view/index.mjs +1 -1
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroll-area/index.mjs +1 -1
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +123 -0
- package/form-button/index.mjs +36 -0
- package/form-card/index.d.ts +14 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +472 -0
- package/form-cascader/index.mjs +2 -0
- package/form-checkbox/index.d.ts +236 -16
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +364 -0
- package/form-checkbox-group/index.mjs +2 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.d.ts +390 -19
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +87 -20
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +145 -13
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +301 -20
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +217 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +307 -16
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +307 -16
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +246 -18
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +307 -16
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +263 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +434 -1
- package/form-input-time/index.mjs +1 -3
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +91 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +141 -11
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +303 -16
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +254 -14
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +2 -2
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +537 -18
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +283 -16
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +272 -14
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +269 -0
- package/form-table/index.mjs +2 -0
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.mjs +2 -0
- package/form-text/index.d.ts +165 -13
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +319 -0
- package/form-time-select/index.mjs +2 -0
- package/form-view/index.mjs +1 -1
- package/helper/dictionary.d.ts +15 -0
- package/helper/dictionary.mjs +97 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.mjs +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.mjs +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.mjs +37 -0
- package/iframe-window/style.css +1 -0
- package/index.css +2 -0
- package/index.d.ts +57 -36
- package/index.mjs +59 -61
- package/package.json +10 -5
- package/pageable-table/index.d.ts +400 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/resolver/index.mjs +29 -0
- package/sub-table/index.d.ts +100 -0
- package/sub-table/index.mjs +537 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +100 -0
- package/sub-table-plus/index.mjs +2 -0
- package/sub-table-plus/style.css +1 -0
- package/table-column/index.d.ts +160 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +95 -0
- package/table-column-def/index.mjs +11 -0
- package/table-view/index.d.ts +341 -1
- package/table-view/index.mjs +457 -6
- package/table-view/style.css +1 -0
- package/toolbar/index.d.ts +128 -1
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +188 -1
- package/toolbar-button/index.mjs +1 -8
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +228 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/constants.d.ts +0 -1
- package/constants.mjs +0 -4
- package/form-check-box-group/index.d.ts +0 -93
- package/form-check-box-group/index.mjs +0 -2
- package/input/style.css +0 -1
- package/resolver.mjs +0 -79
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.table-column-filter .el-drawer__body{padding:10px}.table-column-filter .el-drawer__header{border-bottom:1px solid #f0f0f0;min-height:20px;margin-bottom:0;padding:16px 10px 16px 24px}.pageable-table{flex:auto;width:100%;height:100%;position:relative}.pageable-table .single-select-column .el-radio__label{padding:0}.pageable-table.auto-height{height:auto;position:static}.pageable-table.auto-height .el-table{min-height:200px;position:relative}.pageable-table.auto-height .pageable-table-wrapper{position:static}.pageable-table .pageable-table-wrapper{flex-direction:column;width:100%;height:100%;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.pageable-table .el-pagination{background-color:#fff}.pageable-table .table-status-icon{font-size:20px}.pageable-table .pageable-table-loading{align-items:center;display:inline-flex}.pageable-table .pageable-table-error{color:red;border:1px solid #fca4a4;align-items:center;display:inline-flex}.pageable-table .pageable-table-error:hover{background-color:#fff0f0}.pageable-table .pageable-table-total{padding:0 10px 10px}.pageable-table .underline{position:relative}.pageable-table .underline:after{z-index:1;content:"";background-color:#606266;width:100%;height:1px;position:absolute;bottom:0;left:0}.pageable-table .el-table th{color:#000000d9;word-break:break-word;background-color:#fafafa}.pageable-table .total{padding:10px}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { componentNames as e, noStylesComponents as t } from "../index.mjs";
|
|
2
|
+
import { hyphenate as n } from "@web-utils/core";
|
|
3
|
+
//#region src/resolver/index.ts
|
|
4
|
+
var r = ({ importStyle: r = !1, excludeComponents: a = [] } = {}) => {
|
|
5
|
+
let o = {}, s = {}, c = {};
|
|
6
|
+
return e.forEach((e) => {
|
|
7
|
+
o[e] = !0;
|
|
8
|
+
}), t.forEach((e) => {
|
|
9
|
+
s[e] = !0;
|
|
10
|
+
}), a.forEach((e) => {
|
|
11
|
+
c[e] = !0;
|
|
12
|
+
}), (e) => {
|
|
13
|
+
if (c[e] === !0 || o[e] !== !0) return;
|
|
14
|
+
let t = n(e);
|
|
15
|
+
return {
|
|
16
|
+
from: `@web-utils/form-ui/${t}/index.mjs`,
|
|
17
|
+
sideEffects: i({
|
|
18
|
+
componentName: e,
|
|
19
|
+
name: t,
|
|
20
|
+
importStyle: r,
|
|
21
|
+
noStylesComponentNameMap: s
|
|
22
|
+
})
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, i = ({ componentName: e, name: t, importStyle: n = !1, noStylesComponentNameMap: r } = {}) => {
|
|
26
|
+
if (n && r[e] !== !0) return ["@web-utils/form-ui/base.css", `@web-utils/form-ui/${t}/style.css`];
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { r as FormUiResolver };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
modelValue: ArrayConstructor;
|
|
3
|
+
prop: StringConstructor;
|
|
4
|
+
columns: ArrayConstructor;
|
|
5
|
+
limit: {
|
|
6
|
+
type: NumberConstructor;
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
maxLimit: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
disabled: BooleanConstructor;
|
|
14
|
+
showSummary: BooleanConstructor;
|
|
15
|
+
selectionWidth: StringConstructor;
|
|
16
|
+
allowEmpty: BooleanConstructor;
|
|
17
|
+
handleColumn: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
editable: BooleanConstructor;
|
|
22
|
+
fetchApi: FunctionConstructor;
|
|
23
|
+
delApi: FunctionConstructor;
|
|
24
|
+
showHandleColumnAddButton: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
showEmptyAddButton: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {
|
|
33
|
+
rows: never[];
|
|
34
|
+
selectedRows: never[];
|
|
35
|
+
}, {
|
|
36
|
+
available(): boolean;
|
|
37
|
+
enabled(): boolean;
|
|
38
|
+
rowProps(): {};
|
|
39
|
+
filteredColumns(): unknown[];
|
|
40
|
+
}, {
|
|
41
|
+
getCellType(row: any, item: any): any;
|
|
42
|
+
getInputAttr(row: any, item: any): any;
|
|
43
|
+
isInputDisabled(row: any, item: any): any;
|
|
44
|
+
onInput(row: any, val: any, item: any): void;
|
|
45
|
+
onSelectionChange(selectedRows: any): void;
|
|
46
|
+
remove(row: any, index: any): void;
|
|
47
|
+
add(row: any, index: any): void;
|
|
48
|
+
addRow(): void;
|
|
49
|
+
delRow(): Promise<void>;
|
|
50
|
+
refresh(): void;
|
|
51
|
+
getVal(row: any, column: any, item: any): any;
|
|
52
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
'add-row': null;
|
|
54
|
+
"update:modelValue": null;
|
|
55
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
56
|
+
modelValue: ArrayConstructor;
|
|
57
|
+
prop: StringConstructor;
|
|
58
|
+
columns: ArrayConstructor;
|
|
59
|
+
limit: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
maxLimit: {
|
|
64
|
+
type: NumberConstructor;
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
disabled: BooleanConstructor;
|
|
68
|
+
showSummary: BooleanConstructor;
|
|
69
|
+
selectionWidth: StringConstructor;
|
|
70
|
+
allowEmpty: BooleanConstructor;
|
|
71
|
+
handleColumn: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
editable: BooleanConstructor;
|
|
76
|
+
fetchApi: FunctionConstructor;
|
|
77
|
+
delApi: FunctionConstructor;
|
|
78
|
+
showHandleColumnAddButton: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
showEmptyAddButton: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
"onAdd-row"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
editable: boolean;
|
|
92
|
+
allowEmpty: boolean;
|
|
93
|
+
handleColumn: boolean;
|
|
94
|
+
showHandleColumnAddButton: boolean;
|
|
95
|
+
showEmptyAddButton: boolean;
|
|
96
|
+
limit: number;
|
|
97
|
+
showSummary: boolean;
|
|
98
|
+
maxLimit: number;
|
|
99
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
100
|
+
export default _default;
|
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
import e from "../confirmable/index.mjs";
|
|
2
|
+
import t from "../confirm-button/index.mjs";
|
|
3
|
+
import { t as n } from "../chunks/DOZRzqlo.mjs";
|
|
4
|
+
import { t as r } from "../chunks/Dt3lfDnL.mjs";
|
|
5
|
+
import { t as i } from "../chunks/CkOD-_VV.mjs";
|
|
6
|
+
import { n as a } from "../chunks/D_qiRmiE.mjs";
|
|
7
|
+
import { t as o } from "../chunks/Bwbtu2cp.mjs";
|
|
8
|
+
import { t as s } from "../chunks/CabldOLo.mjs";
|
|
9
|
+
import { t as c } from "../chunks/V2p-PCpL.mjs";
|
|
10
|
+
import { t as l } from "../chunks/B1IPSTA6.mjs";
|
|
11
|
+
import { t as u } from "../chunks/BbSPWDDZ.mjs";
|
|
12
|
+
import { t as d } from "../chunks/bFbPPcdq.mjs";
|
|
13
|
+
import { t as f } from "../chunks/BtcjAHE6.mjs";
|
|
14
|
+
import { t as p } from "../chunks/YFiU0ngn.mjs";
|
|
15
|
+
import m from "../table-column-def/index.mjs";
|
|
16
|
+
import { t as h } from "../chunks/CuAoMR3n.mjs";
|
|
17
|
+
import { findTreeChildren as g, isFunction as _ } from "@web-utils/core";
|
|
18
|
+
import { Fragment as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as C, createTextVNode as w, createVNode as T, mergeProps as E, openBlock as D, renderList as O, renderSlot as k, resolveComponent as A, toDisplayString as j, withCtx as M, withModifiers as N } from "vue";
|
|
19
|
+
import { formContextKey as P, formItemContextKey as F } from "element-plus";
|
|
20
|
+
import { cloneDeep as I } from "@web-utils/integrations/lodash";
|
|
21
|
+
//#region src/components/table/SubTable.vue
|
|
22
|
+
var L = {
|
|
23
|
+
name: "SubTable",
|
|
24
|
+
emits: {
|
|
25
|
+
...a,
|
|
26
|
+
"add-row": null
|
|
27
|
+
},
|
|
28
|
+
inject: {
|
|
29
|
+
elForm: {
|
|
30
|
+
from: P,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
elFormItem: {
|
|
34
|
+
from: F,
|
|
35
|
+
default: ""
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
props: {
|
|
39
|
+
modelValue: Array,
|
|
40
|
+
prop: String,
|
|
41
|
+
columns: Array,
|
|
42
|
+
limit: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: Infinity
|
|
45
|
+
},
|
|
46
|
+
maxLimit: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: Infinity
|
|
49
|
+
},
|
|
50
|
+
disabled: Boolean,
|
|
51
|
+
showSummary: Boolean,
|
|
52
|
+
selectionWidth: String,
|
|
53
|
+
allowEmpty: Boolean,
|
|
54
|
+
handleColumn: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !0
|
|
57
|
+
},
|
|
58
|
+
editable: Boolean,
|
|
59
|
+
fetchApi: Function,
|
|
60
|
+
delApi: Function,
|
|
61
|
+
showHandleColumnAddButton: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !0
|
|
64
|
+
},
|
|
65
|
+
showEmptyAddButton: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: !0
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
data() {
|
|
71
|
+
return {
|
|
72
|
+
rows: [],
|
|
73
|
+
selectedRows: []
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
computed: {
|
|
77
|
+
available() {
|
|
78
|
+
return this.editable && this.enabled;
|
|
79
|
+
},
|
|
80
|
+
enabled() {
|
|
81
|
+
return !this.disabled;
|
|
82
|
+
},
|
|
83
|
+
rowProps() {
|
|
84
|
+
let e = {};
|
|
85
|
+
return this.columns && this.columns.map((e) => e.prop).forEach((t) => {
|
|
86
|
+
e[t] = null;
|
|
87
|
+
}), e;
|
|
88
|
+
},
|
|
89
|
+
filteredColumns() {
|
|
90
|
+
return this.columns.filter((e) => e.label && !e.hide && !e.slot);
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
watch: {
|
|
94
|
+
modelValue: {
|
|
95
|
+
deep: !0,
|
|
96
|
+
immediate: !0,
|
|
97
|
+
handler(e) {
|
|
98
|
+
this.rows = e || [];
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
rows: {
|
|
102
|
+
deep: !0,
|
|
103
|
+
immediate: !0,
|
|
104
|
+
handler(e) {
|
|
105
|
+
this.$emit("update:modelValue", e);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
methods: {
|
|
110
|
+
getCellType(e, t) {
|
|
111
|
+
return _(t.getType) ? t.getType(e, t) : t.type;
|
|
112
|
+
},
|
|
113
|
+
getInputAttr(e, t) {
|
|
114
|
+
return {
|
|
115
|
+
...t.attrs,
|
|
116
|
+
...t.getAttrs ? t.getAttrs(e) : {}
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
isInputDisabled(e, t) {
|
|
120
|
+
return t.isDisabled && t.isDisabled(e);
|
|
121
|
+
},
|
|
122
|
+
onInput(e, t, n) {
|
|
123
|
+
n.setValue ? n.setValue(e, t, n, this.rows) : e[n.prop] = t;
|
|
124
|
+
},
|
|
125
|
+
onSelectionChange(e) {
|
|
126
|
+
this.selectedRows = e;
|
|
127
|
+
},
|
|
128
|
+
remove(e, t) {
|
|
129
|
+
try {
|
|
130
|
+
this.rows.splice(t, 1);
|
|
131
|
+
} catch {}
|
|
132
|
+
},
|
|
133
|
+
add(e, t) {
|
|
134
|
+
let n = I(this.rowProps);
|
|
135
|
+
this.rows.splice(t + 1, 0, n);
|
|
136
|
+
},
|
|
137
|
+
addRow() {
|
|
138
|
+
this.$emit("add-row");
|
|
139
|
+
},
|
|
140
|
+
async delRow() {
|
|
141
|
+
if (!this.selectedRows.length) {
|
|
142
|
+
this.$message.warning("请选择要删除的记录!");
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
try {
|
|
146
|
+
if (this.delApi) try {
|
|
147
|
+
await this.delApi(this.selectedRows.map((e) => e.id).join(",")), this.refresh();
|
|
148
|
+
} catch {
|
|
149
|
+
this.$message.error("删除失败!");
|
|
150
|
+
}
|
|
151
|
+
else this.$emit("update:modelValue", this.rows.filter((e) => !this.selectedRows.includes(e)));
|
|
152
|
+
this.$message.success("删除成功!");
|
|
153
|
+
} catch {}
|
|
154
|
+
},
|
|
155
|
+
refresh() {
|
|
156
|
+
this.$refs.table.getPage();
|
|
157
|
+
},
|
|
158
|
+
getVal(e, t, n) {
|
|
159
|
+
var r, i;
|
|
160
|
+
if (n.type === "select" && (r = n.attrs) != null && r.options) {
|
|
161
|
+
let r = n.attrs.options.find((n) => n.code === e[t.property]);
|
|
162
|
+
if (r) return r.name;
|
|
163
|
+
}
|
|
164
|
+
if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
|
|
165
|
+
let [r] = g(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
|
|
166
|
+
if (r) return r[n.attrs.valueKey || "label"];
|
|
167
|
+
}
|
|
168
|
+
return e[t.property];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}, R = {
|
|
172
|
+
key: 0,
|
|
173
|
+
class: "table-header"
|
|
174
|
+
}, z = {
|
|
175
|
+
key: 0,
|
|
176
|
+
style: { color: "#f56c6c" }
|
|
177
|
+
}, B = ["onClick"];
|
|
178
|
+
function V(i, a, g, _, P, F) {
|
|
179
|
+
let I = r, L = t, V = s, H = d, U = A("FormInputUser"), W = A("FormInputDepartment"), G = f, K = l, q = o, J = c, Y = u, X = h, Z = n, Q = m, $ = e, ee = p;
|
|
180
|
+
return D(), y(ee, E({
|
|
181
|
+
ref: "table",
|
|
182
|
+
class: "sub-table",
|
|
183
|
+
"auto-height": "",
|
|
184
|
+
data: P.rows,
|
|
185
|
+
api: g.fetchApi,
|
|
186
|
+
"show-summary": g.showSummary,
|
|
187
|
+
"selection-width": g.selectionWidth
|
|
188
|
+
}, i.$attrs, {
|
|
189
|
+
"hide-on-single-page": "",
|
|
190
|
+
selection: F.enabled,
|
|
191
|
+
onSelectionChange: F.onSelectionChange
|
|
192
|
+
}), C({
|
|
193
|
+
default: M(() => [
|
|
194
|
+
k(i.$slots, "columns", { columns: g.columns }, () => [(D(!0), x(v, null, O(F.filteredColumns, (e) => (D(), y(Q, {
|
|
195
|
+
key: e.prop,
|
|
196
|
+
label: e.label,
|
|
197
|
+
width: e.width,
|
|
198
|
+
align: e.align,
|
|
199
|
+
prop: e.prop,
|
|
200
|
+
options: e.options,
|
|
201
|
+
"show-overflow-tooltip": !F.available && e.showOverflowTooltip
|
|
202
|
+
}, {
|
|
203
|
+
header: M(() => [!g.disabled && e.required ? (D(), x("span", z, "*")) : b("v-if", !0), w(" " + j(e.label), 1)]),
|
|
204
|
+
default: M(({ row: t, column: n, $index: r }) => [
|
|
205
|
+
b("tag 插槽"),
|
|
206
|
+
k(i.$slots, "tag", {
|
|
207
|
+
row: t,
|
|
208
|
+
column: n,
|
|
209
|
+
index: r
|
|
210
|
+
}),
|
|
211
|
+
b("列默认插槽,名字和 prop 保持一致"),
|
|
212
|
+
k(i.$slots, e.prop, {
|
|
213
|
+
row: t,
|
|
214
|
+
column: n,
|
|
215
|
+
index: r
|
|
216
|
+
}, () => {
|
|
217
|
+
var i;
|
|
218
|
+
return [F.available && F.getCellType(t, e) === "input" ? (D(), y(V, E({
|
|
219
|
+
key: 0,
|
|
220
|
+
"model-value": t[n.property]
|
|
221
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
222
|
+
disabled: F.isInputDisabled(t, e),
|
|
223
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
224
|
+
required: e.required,
|
|
225
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
226
|
+
}), null, 16, [
|
|
227
|
+
"model-value",
|
|
228
|
+
"disabled",
|
|
229
|
+
"prop",
|
|
230
|
+
"required",
|
|
231
|
+
"onInput"
|
|
232
|
+
])) : F.available && F.getCellType(t, e) === "inputPhoneNumber" ? (D(), y(H, E({
|
|
233
|
+
key: 1,
|
|
234
|
+
"model-value": t[n.property]
|
|
235
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
236
|
+
disabled: F.isInputDisabled(t, e),
|
|
237
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
238
|
+
required: e.required,
|
|
239
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
240
|
+
}), null, 16, [
|
|
241
|
+
"model-value",
|
|
242
|
+
"disabled",
|
|
243
|
+
"prop",
|
|
244
|
+
"required",
|
|
245
|
+
"onInput"
|
|
246
|
+
])) : F.available && F.getCellType(t, e) === "user" ? (D(), x(v, { key: 2 }, [e.single ? (D(), y(U, E({
|
|
247
|
+
key: 0,
|
|
248
|
+
name: t[n.property],
|
|
249
|
+
"onUpdate:name": (e) => t[n.property] = e
|
|
250
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
251
|
+
disabled: F.isInputDisabled(t, e),
|
|
252
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
253
|
+
required: e.required,
|
|
254
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
255
|
+
}), null, 16, [
|
|
256
|
+
"name",
|
|
257
|
+
"onUpdate:name",
|
|
258
|
+
"disabled",
|
|
259
|
+
"prop",
|
|
260
|
+
"required",
|
|
261
|
+
"onInput"
|
|
262
|
+
])) : (D(), y(U, E({
|
|
263
|
+
key: 1,
|
|
264
|
+
"model-value": t[n.property]
|
|
265
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
266
|
+
disabled: F.isInputDisabled(t, e),
|
|
267
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
268
|
+
required: e.required,
|
|
269
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
270
|
+
}), null, 16, [
|
|
271
|
+
"model-value",
|
|
272
|
+
"disabled",
|
|
273
|
+
"prop",
|
|
274
|
+
"required",
|
|
275
|
+
"onInput"
|
|
276
|
+
]))], 64)) : F.available && F.getCellType(t, e) === "department" ? (D(), x(v, { key: 3 }, [e.single ? (D(), y(W, E({
|
|
277
|
+
key: 0,
|
|
278
|
+
name: t[n.property],
|
|
279
|
+
"onUpdate:name": (e) => t[n.property] = e,
|
|
280
|
+
"ou-type": e.ouType
|
|
281
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
282
|
+
disabled: F.isInputDisabled(t, e),
|
|
283
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
284
|
+
required: e.required,
|
|
285
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
286
|
+
}), null, 16, [
|
|
287
|
+
"name",
|
|
288
|
+
"onUpdate:name",
|
|
289
|
+
"ou-type",
|
|
290
|
+
"disabled",
|
|
291
|
+
"prop",
|
|
292
|
+
"required",
|
|
293
|
+
"onInput"
|
|
294
|
+
])) : (D(), y(W, E({
|
|
295
|
+
key: 1,
|
|
296
|
+
"model-value": t[n.property]
|
|
297
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
298
|
+
disabled: F.isInputDisabled(t, e),
|
|
299
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
300
|
+
required: e.required,
|
|
301
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
302
|
+
}), null, 16, [
|
|
303
|
+
"model-value",
|
|
304
|
+
"disabled",
|
|
305
|
+
"prop",
|
|
306
|
+
"required",
|
|
307
|
+
"onInput"
|
|
308
|
+
]))], 64)) : F.available && F.getCellType(t, e) === "select" ? (D(), y(G, E({
|
|
309
|
+
key: 4,
|
|
310
|
+
"model-value": t[n.property]
|
|
311
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
312
|
+
disabled: F.isInputDisabled(t, e),
|
|
313
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
314
|
+
options: e.options,
|
|
315
|
+
required: e.required,
|
|
316
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
317
|
+
}), null, 16, [
|
|
318
|
+
"model-value",
|
|
319
|
+
"disabled",
|
|
320
|
+
"prop",
|
|
321
|
+
"options",
|
|
322
|
+
"required",
|
|
323
|
+
"onInput"
|
|
324
|
+
])) : F.available && F.getCellType(t, e) === "datePicker" ? (D(), y(K, E({
|
|
325
|
+
key: 5,
|
|
326
|
+
ref_for: !0
|
|
327
|
+
}, F.getInputAttr(t, e), {
|
|
328
|
+
start: t[e.start],
|
|
329
|
+
"onUpdate:start": (n) => t[e.start] = n,
|
|
330
|
+
end: t[e.end],
|
|
331
|
+
"onUpdate:end": (n) => t[e.end] = n,
|
|
332
|
+
"model-value": t[n.property],
|
|
333
|
+
disabled: F.isInputDisabled(t, e),
|
|
334
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
335
|
+
required: e.required,
|
|
336
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
337
|
+
}), null, 16, [
|
|
338
|
+
"start",
|
|
339
|
+
"onUpdate:start",
|
|
340
|
+
"end",
|
|
341
|
+
"onUpdate:end",
|
|
342
|
+
"model-value",
|
|
343
|
+
"disabled",
|
|
344
|
+
"prop",
|
|
345
|
+
"required",
|
|
346
|
+
"onInput"
|
|
347
|
+
])) : F.available && F.getCellType(t, e) === "cascader" ? (D(), y(q, E({
|
|
348
|
+
key: 6,
|
|
349
|
+
"model-value": t[n.property]
|
|
350
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
351
|
+
disabled: F.isInputDisabled(t, e),
|
|
352
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
353
|
+
required: e.required,
|
|
354
|
+
"label-key": e.labelKey,
|
|
355
|
+
"value-key": e.valueKey,
|
|
356
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
357
|
+
}), null, 16, [
|
|
358
|
+
"model-value",
|
|
359
|
+
"disabled",
|
|
360
|
+
"prop",
|
|
361
|
+
"required",
|
|
362
|
+
"label-key",
|
|
363
|
+
"value-key",
|
|
364
|
+
"onInput"
|
|
365
|
+
])) : F.available && F.getCellType(t, e) === "checkbox" ? (D(), y(J, E({
|
|
366
|
+
key: 7,
|
|
367
|
+
"model-value": t[n.property]
|
|
368
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
369
|
+
disabled: F.isInputDisabled(t, e),
|
|
370
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
371
|
+
required: e.required,
|
|
372
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
373
|
+
}), null, 16, [
|
|
374
|
+
"model-value",
|
|
375
|
+
"disabled",
|
|
376
|
+
"prop",
|
|
377
|
+
"required",
|
|
378
|
+
"onInput"
|
|
379
|
+
])) : F.available && F.getCellType(t, e) === "number" ? (D(), y(Y, E({
|
|
380
|
+
key: 8,
|
|
381
|
+
"model-value": t[n.property]
|
|
382
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
383
|
+
disabled: F.isInputDisabled(t, e),
|
|
384
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
385
|
+
required: e.required,
|
|
386
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
387
|
+
}), null, 16, [
|
|
388
|
+
"model-value",
|
|
389
|
+
"disabled",
|
|
390
|
+
"prop",
|
|
391
|
+
"required",
|
|
392
|
+
"onInput"
|
|
393
|
+
])) : F.available && F.getCellType(t, e) === "textarea" ? (D(), y(X, E({
|
|
394
|
+
key: 9,
|
|
395
|
+
rows: e.rows || "3",
|
|
396
|
+
"model-value": t[n.property]
|
|
397
|
+
}, { ref_for: !0 }, F.getInputAttr(t, e), {
|
|
398
|
+
disabled: F.isInputDisabled(t, e),
|
|
399
|
+
prop: `${g.prop}[${r}].${e.prop}`,
|
|
400
|
+
required: e.required,
|
|
401
|
+
onInput: (n) => F.onInput(t, n, e)
|
|
402
|
+
}), null, 16, [
|
|
403
|
+
"rows",
|
|
404
|
+
"model-value",
|
|
405
|
+
"disabled",
|
|
406
|
+
"prop",
|
|
407
|
+
"required",
|
|
408
|
+
"onInput"
|
|
409
|
+
])) : e.dicType || (i = e.options) != null && i.length ? (D(), y(Z, {
|
|
410
|
+
key: 10,
|
|
411
|
+
"dict-type": e.dicType,
|
|
412
|
+
"id-as-value": e.idAsValue,
|
|
413
|
+
"label-as-value": e.labelAsValue,
|
|
414
|
+
column: n,
|
|
415
|
+
row: t,
|
|
416
|
+
options: e.options
|
|
417
|
+
}, null, 8, [
|
|
418
|
+
"dict-type",
|
|
419
|
+
"id-as-value",
|
|
420
|
+
"label-as-value",
|
|
421
|
+
"column",
|
|
422
|
+
"row",
|
|
423
|
+
"options"
|
|
424
|
+
])) : (D(), x(v, { key: 11 }, [w(j(F.getVal(t, n, e)), 1)], 64))];
|
|
425
|
+
})
|
|
426
|
+
]),
|
|
427
|
+
_: 2
|
|
428
|
+
}, 1032, [
|
|
429
|
+
"label",
|
|
430
|
+
"width",
|
|
431
|
+
"align",
|
|
432
|
+
"prop",
|
|
433
|
+
"options",
|
|
434
|
+
"show-overflow-tooltip"
|
|
435
|
+
]))), 128))]),
|
|
436
|
+
b(" 自定义操作列 "),
|
|
437
|
+
k(i.$slots, "handle", {
|
|
438
|
+
add: F.add,
|
|
439
|
+
remove: F.remove
|
|
440
|
+
}),
|
|
441
|
+
b(" 操作列 "),
|
|
442
|
+
(!g.modelValue || g.modelValue.length < g.limit) && !g.disabled && F.enabled && g.editable && g.handleColumn ? (D(), y(Q, {
|
|
443
|
+
key: 0,
|
|
444
|
+
label: "操作",
|
|
445
|
+
fixed: "right",
|
|
446
|
+
width: "80",
|
|
447
|
+
align: "center",
|
|
448
|
+
prop: "menu"
|
|
449
|
+
}, {
|
|
450
|
+
header: M(({ column: e, $index: t }) => [k(i.$slots, "handle-column-header", {
|
|
451
|
+
column: e,
|
|
452
|
+
index: t
|
|
453
|
+
}, () => [w(j(e.label), 1)])]),
|
|
454
|
+
default: M(({ row: e, $index: t }) => [g.showHandleColumnAddButton && g.modelValue.length < g.maxLimit ? (D(), x("i", {
|
|
455
|
+
key: 0,
|
|
456
|
+
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
457
|
+
style: {
|
|
458
|
+
"margin-right": "5px",
|
|
459
|
+
"font-size": "20px",
|
|
460
|
+
cursor: "pointer"
|
|
461
|
+
},
|
|
462
|
+
title: "添加",
|
|
463
|
+
onClick: N((n) => F.add(e, t), ["stop"])
|
|
464
|
+
}, null, 8, B)) : b("v-if", !0), g.modelValue && g.modelValue.length > 1 || g.allowEmpty ? (D(), y($, {
|
|
465
|
+
key: 1,
|
|
466
|
+
class: "el-icon-error sub-table-handle-button table-button-remove",
|
|
467
|
+
style: {
|
|
468
|
+
"font-size": "20px",
|
|
469
|
+
cursor: "pointer"
|
|
470
|
+
},
|
|
471
|
+
title: "删除",
|
|
472
|
+
message: "您确定要删除该行吗?",
|
|
473
|
+
onClick: N((n) => F.remove(e, t), ["stop"])
|
|
474
|
+
}, null, 8, ["onClick"])) : b("v-if", !0)]),
|
|
475
|
+
_: 3
|
|
476
|
+
})) : b("v-if", !0)
|
|
477
|
+
]),
|
|
478
|
+
_: 2
|
|
479
|
+
}, [g.editable ? void 0 : {
|
|
480
|
+
name: "toolbar",
|
|
481
|
+
fn: M(() => [F.enabled || g.fetchApi ? (D(), x("div", R, [k(i.$slots, "toolbar", {
|
|
482
|
+
addRow: F.addRow,
|
|
483
|
+
delRow: F.delRow,
|
|
484
|
+
refresh: F.refresh
|
|
485
|
+
}, () => [F.enabled ? (D(), x(v, { key: 0 }, [T(I, {
|
|
486
|
+
class: "table-header-button add",
|
|
487
|
+
icon: "el-icon-circle-plus",
|
|
488
|
+
type: "text",
|
|
489
|
+
onClick: F.addRow
|
|
490
|
+
}, {
|
|
491
|
+
default: M(() => [...a[1] || (a[1] = [w(" 添加 ", -1)])]),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["onClick"]), T(L, {
|
|
494
|
+
class: "table-header-button remove",
|
|
495
|
+
message: "您确定要删除选中的记录吗?",
|
|
496
|
+
icon: "el-icon-error",
|
|
497
|
+
type: "text",
|
|
498
|
+
onClick: F.delRow
|
|
499
|
+
}, {
|
|
500
|
+
default: M(() => [...a[2] || (a[2] = [w(" 删除 ", -1)])]),
|
|
501
|
+
_: 1
|
|
502
|
+
}, 8, ["onClick"])], 64)) : b("v-if", !0), g.fetchApi ? (D(), y(I, {
|
|
503
|
+
key: 1,
|
|
504
|
+
class: "table-header-button refresh",
|
|
505
|
+
icon: "el-icon-refresh-left",
|
|
506
|
+
type: "text",
|
|
507
|
+
disabled: !1,
|
|
508
|
+
onClick: F.refresh
|
|
509
|
+
}, {
|
|
510
|
+
default: M(() => [...a[3] || (a[3] = [w(" 刷新 ", -1)])]),
|
|
511
|
+
_: 1
|
|
512
|
+
}, 8, ["onClick"])) : b("v-if", !0)])])) : b("v-if", !0)]),
|
|
513
|
+
key: "0"
|
|
514
|
+
}, g.allowEmpty && !g.disabled && g.showEmptyAddButton ? {
|
|
515
|
+
name: "empty",
|
|
516
|
+
fn: M(() => [S("i", {
|
|
517
|
+
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
518
|
+
style: {
|
|
519
|
+
"font-size": "20px",
|
|
520
|
+
cursor: "pointer"
|
|
521
|
+
},
|
|
522
|
+
title: "添加",
|
|
523
|
+
onClick: a[0] || (a[0] = N((e) => F.add(null, 0), ["stop"]))
|
|
524
|
+
})]),
|
|
525
|
+
key: "1"
|
|
526
|
+
} : void 0]), 1040, [
|
|
527
|
+
"data",
|
|
528
|
+
"api",
|
|
529
|
+
"show-summary",
|
|
530
|
+
"selection-width",
|
|
531
|
+
"selection",
|
|
532
|
+
"onSelectionChange"
|
|
533
|
+
]);
|
|
534
|
+
}
|
|
535
|
+
var H = /* @__PURE__ */ i(L, [["render", V]]);
|
|
536
|
+
//#endregion
|
|
537
|
+
export { H as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sub-table.pageable-table.auto-height .el-table{min-height:0}.sub-table .el-form-item{width:100%;margin-bottom:0}.sub-table .el-col{width:100%}.sub-table .table-header{background-color:#f3f5fb;border:1px solid #dfe6ec;border-bottom:none;padding:2px 10px}.sub-table .table-header-button:hover,.sub-table .table-header-button:focus{color:#595959}.sub-table .table-header-button i+span{margin-left:0}.sub-table .table-header-button i{font-size:15px}.sub-table .table-header-button.add i{color:#4886ec}.sub-table .table-header-button.remove i{color:#e34e55}.sub-table .table-header-button.refresh i{color:#1eb91e}.sub-table .table-button-add{color:#5add7a;opacity:.8}.sub-table .table-button-add:hover{opacity:1}.sub-table .table-button-remove{color:#ddd}.sub-table .table-button-remove:hover{color:#ef6666}.sub-table .el-table__header-wrapper .el-table__header th{background-color:#f3f5fb;padding:5px 0}.sub-table .el-table{border-top-color:#dde1e5}.sub-table .el-table td{border-color:#dfe6ec}.sub-table .el-col{padding:0!important}.sub-table .row-indicator{border:6px solid #0000;border-bottom-color:#f5690c;width:0;height:0;display:inline-block;position:absolute;top:-6px;right:-6px;transform:rotate(45deg)}.sub-table .sub-table-handle-button{cursor:pointer;font-size:20px}.sub-table .sub-table-handle-button+.sub-table-handle-button{margin-left:5px}.sub-table .el-table .el-table__header th{line-height:inherit;padding:5px 0;background:#f3f5fb!important}
|