@web-utils/form-ui 1.0.0-beta47 → 1.0.0-beta48
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/chunks/{C9dGL28n.mjs → 6yfBZFOB.mjs} +2 -2
- package/chunks/B-zqRAXo.mjs +69 -0
- package/chunks/{CXvGoZKJ.mjs → B1IPSTA6.mjs} +2 -2
- package/chunks/B3pkJUCx2.mjs +146 -0
- package/chunks/{Ct5bDJ50.mjs → B9gA65rt2.mjs} +3 -3
- package/chunks/{C1AgOUe_.mjs → BA2KEptL.mjs} +2 -2
- package/chunks/BRRcYOud.mjs +613 -0
- package/chunks/{Bm5eiSmT.mjs → BUGCiCnl.mjs} +11 -7
- package/chunks/{DiJyms_r.mjs → BbSPWDDZ.mjs} +2 -2
- package/chunks/{BH_JJ8Xh.mjs → BfxDxIg0.mjs} +2 -2
- package/chunks/{C3Uo82-I.mjs → BqWvBF14.mjs} +3 -3
- package/chunks/BsZgAJX_2.mjs +81 -0
- package/chunks/{DXYgAmil.mjs → BtcjAHE6.mjs} +2 -2
- package/chunks/{DhtHh0jk.mjs → ByHz4mmh.mjs} +2 -2
- package/chunks/C-D7jeLT2.mjs +568 -0
- package/chunks/{BufIRDd0.mjs → C2zgFLYO.mjs} +1 -1
- package/chunks/{XCGWTz41.mjs → CAd1zK9Q.mjs} +2 -2
- package/chunks/{CSyJ-vEx.mjs → CJdkjadi.mjs} +1 -1
- package/chunks/{CFOGMFgo.mjs → CabldOLo.mjs} +17 -10
- package/chunks/{Bd1UFJic.mjs → Cln3RBAD.mjs} +21 -21
- package/chunks/{CTKmEf2M.mjs → CqoVAnxC2.mjs} +2 -2
- package/chunks/{DF9fJMQS.mjs → CuAoMR3n.mjs} +3 -3
- package/chunks/{XqRTtFfp.mjs → CxTg0r4n.mjs} +1 -1
- package/chunks/{pdwFQpA8.mjs → D0Zg2CV0.mjs} +3 -3
- package/chunks/{BsCS7SB5.mjs → DA7oGHSX.mjs} +2 -2
- package/chunks/DOZRzqlo.mjs +37 -0
- package/chunks/{Cj59E77g.mjs → D_qiRmiE.mjs} +5 -5
- package/chunks/{cmuHpsX6.mjs → DcTVYqeJ.mjs} +29 -25
- package/chunks/{B3ajWLh3.mjs → Dkd5BC98.mjs} +2 -2
- package/chunks/{ChmDDqoZ2.mjs → GI8krYU82.mjs} +1 -1
- package/chunks/{D8UVq1t1.mjs → V2p-PCpL.mjs} +6 -6
- package/chunks/{taicx2sd.mjs → bFbPPcdq.mjs} +2 -2
- package/chunks/{TvNHGVAP.mjs → eae6huQB.mjs} +2 -2
- package/chunks/gCeDFHo1.mjs +32 -0
- package/chunks/{BvA0aMEE.mjs → gLPy4Sus.mjs} +1 -1
- package/chunks/{o6VhYAN52.mjs → hzaYr6Ud2.mjs} +2 -2
- package/chunks/{CqTcEefA.mjs → pIzhYsBe.mjs} +2 -2
- package/chunks/{CWfUPCtS.mjs → vXQf89tS.mjs} +274 -273
- package/chunks/{BWBHzD5N.mjs → wXeqV-_7.mjs} +2 -2
- package/confirm-button/index.d.ts +2 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.d.ts +2 -0
- package/confirmable/index.mjs +1 -1
- package/dict-render/index.d.ts +28 -0
- package/dict-render/index.mjs +2 -0
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +2 -2
- package/element-dialog/index.mjs +1 -1
- package/{resize-observer → element-resize-observer}/index.mjs +3 -3
- package/form-button/index.d.ts +2 -0
- package/form-cascader/index.d.ts +3 -3
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +2 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- 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.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/helper/dictionary.mjs +7 -7
- package/iframe-window/index.mjs +1 -1
- package/index.css +1 -1
- package/index.d.ts +8 -3
- package/index.mjs +55 -50
- package/package.json +1 -1
- package/pageable-table/index.d.ts +7 -7
- package/pageable-table/index.mjs +1 -1
- package/sub-table/index.d.ts +100 -0
- package/sub-table/index.mjs +472 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +97 -0
- package/sub-table-plus/index.mjs +2 -0
- package/sub-table-plus/style.css +1 -0
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +18 -8
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +107 -106
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +2 -2
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +52 -51
- package/year-calendar/index.mjs +1 -1
- package/chunks/CLPSCSsy.mjs +0 -603
- package/chunks/CuG2Q-PM.mjs +0 -100
- package/form-check-box-group/index.mjs +0 -2
- package/chunks/{Ds_Tpa_M.mjs → BBERmTup.mjs} +0 -0
- package/chunks/{B1MSrc6f.mjs → CkOD-_VV.mjs} +0 -0
- package/chunks/{DDmQcNm6.mjs → DOP3aBxf.mjs} +0 -0
- package/chunks/{DJe97Fgi.mjs → hlha6Bhc.mjs} +0 -0
- package/{resize-observer → element-resize-observer}/index.d.ts +0 -0
- package/{resize-observer → element-resize-observer}/style.css +0 -0
- package/{form-check-box-group → form-checkbox-group}/index.d.ts +1 -1
- /package/{form-check-box-group → form-checkbox-group}/style.css +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
modelValue: ArrayConstructor;
|
|
3
|
+
prop: StringConstructor;
|
|
4
|
+
columns: ArrayConstructor;
|
|
5
|
+
descs: ArrayConstructor;
|
|
6
|
+
ascs: ArrayConstructor;
|
|
7
|
+
limit: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
disabled: BooleanConstructor;
|
|
12
|
+
showSummary: BooleanConstructor;
|
|
13
|
+
selection: BooleanConstructor;
|
|
14
|
+
index: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
selectionWidth: StringConstructor;
|
|
19
|
+
toolbarMenus: ArrayConstructor;
|
|
20
|
+
handleMenus: ArrayConstructor;
|
|
21
|
+
fetchApi: FunctionConstructor;
|
|
22
|
+
delApi: FunctionConstructor;
|
|
23
|
+
bottomAddButton: BooleanConstructor;
|
|
24
|
+
initRow: FunctionConstructor;
|
|
25
|
+
onRowDbClick: FunctionConstructor;
|
|
26
|
+
showMessage: BooleanConstructor;
|
|
27
|
+
pageSize: NumberConstructor;
|
|
28
|
+
}>, {}, {
|
|
29
|
+
rows: never[];
|
|
30
|
+
selectedRows: never[];
|
|
31
|
+
}, {
|
|
32
|
+
enabled(): boolean;
|
|
33
|
+
hasToolBarMenu(): number | undefined;
|
|
34
|
+
hasHandleMenus(): number | undefined;
|
|
35
|
+
rowProps(): {};
|
|
36
|
+
listeners(): Record<string, any>;
|
|
37
|
+
filteredColumns(): unknown[];
|
|
38
|
+
}, {
|
|
39
|
+
getCellType(row: any, item: any): any;
|
|
40
|
+
getInputAttr(row: any, item: any): any;
|
|
41
|
+
isInputDisabled(row: any, item: any): any;
|
|
42
|
+
onInput(row: any, val: any, item: any): void;
|
|
43
|
+
onBlur(row: any, item: any): void;
|
|
44
|
+
onSelectionChange(selectedRows: any): void;
|
|
45
|
+
remove(row: any, index: any): Promise<void>;
|
|
46
|
+
add(row: any, index: any): Promise<void>;
|
|
47
|
+
addRow(): void;
|
|
48
|
+
delRow(): Promise<void>;
|
|
49
|
+
refresh(): void;
|
|
50
|
+
getVal(row: any, column: any, item: any): any;
|
|
51
|
+
reloadTable(): void;
|
|
52
|
+
refreshTable(): Promise<void>;
|
|
53
|
+
removeSelectedRows(): void;
|
|
54
|
+
rowDbClick(...args: any[]): void;
|
|
55
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
56
|
+
'add-row': null;
|
|
57
|
+
"update:modelValue": null;
|
|
58
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
59
|
+
modelValue: ArrayConstructor;
|
|
60
|
+
prop: StringConstructor;
|
|
61
|
+
columns: ArrayConstructor;
|
|
62
|
+
descs: ArrayConstructor;
|
|
63
|
+
ascs: ArrayConstructor;
|
|
64
|
+
limit: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
disabled: BooleanConstructor;
|
|
69
|
+
showSummary: BooleanConstructor;
|
|
70
|
+
selection: BooleanConstructor;
|
|
71
|
+
index: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
selectionWidth: StringConstructor;
|
|
76
|
+
toolbarMenus: ArrayConstructor;
|
|
77
|
+
handleMenus: ArrayConstructor;
|
|
78
|
+
fetchApi: FunctionConstructor;
|
|
79
|
+
delApi: FunctionConstructor;
|
|
80
|
+
bottomAddButton: BooleanConstructor;
|
|
81
|
+
initRow: FunctionConstructor;
|
|
82
|
+
onRowDbClick: FunctionConstructor;
|
|
83
|
+
showMessage: BooleanConstructor;
|
|
84
|
+
pageSize: NumberConstructor;
|
|
85
|
+
}>> & Readonly<{
|
|
86
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
"onAdd-row"?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
}>, {
|
|
89
|
+
disabled: boolean;
|
|
90
|
+
showMessage: boolean;
|
|
91
|
+
limit: number;
|
|
92
|
+
showSummary: boolean;
|
|
93
|
+
selection: boolean;
|
|
94
|
+
index: boolean;
|
|
95
|
+
bottomAddButton: boolean;
|
|
96
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
97
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sub-table-plus{width:100%}.sub-table-plus.hide-message .el-form-item__error{display:none}.sub-table-plus .pageable-table.auto-height .el-table{min-height:0}.sub-table-plus .el-form-item{width:100%;margin-bottom:0}.sub-table-plus .el-col{width:100%}.sub-table-plus .table-header{background-color:#f3f5fb;border:1px solid #dfe6ec;border-bottom:none;padding:2px 10px}.sub-table-plus .table-header-button:hover,.sub-table-plus .table-header-button:focus{color:#595959}.sub-table-plus .table-header-button i+span{margin-left:0}.sub-table-plus .table-header-button i{font-size:15px}.sub-table-plus .table-header-button.add i{color:#4886ec}.sub-table-plus .table-header-button.remove i{color:#e34e55}.sub-table-plus .table-header-button.refresh i{color:#1eb91e}.sub-table-plus .table-button-add{color:#5add7a;opacity:.8}.sub-table-plus .table-button-add:hover{opacity:1}.sub-table-plus .table-button-remove{color:#ddd}.sub-table-plus .table-button-remove:hover{color:#ef6666}.sub-table-plus .el-table__header-wrapper .el-table__header th{background-color:#f3f5fb;padding:5px 0}.sub-table-plus .el-table{border-top-color:#dde1e5}.sub-table-plus .el-table td{border-color:#dfe6ec}.sub-table-plus .el-col{padding:0!important}.sub-table-plus .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-plus .sub-table-handle-button{cursor:pointer;font-size:20px}.sub-table-plus .sub-table-handle-button+.sub-table-handle-button{margin-left:5px}.sub-table-plus .el-table .el-table__header th{line-height:inherit;padding:5px 0;background:#f3f5fb!important}.sub-table-plus .form-item{padding-top:4px;padding-bottom:4px}
|
package/table-column/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/B-zqRAXo.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
2
7
|
type: string;
|
|
3
8
|
treeDict: boolean;
|
|
4
9
|
idAsValue: boolean;
|
|
@@ -17,14 +22,14 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
17
22
|
label?: string | undefined;
|
|
18
23
|
filters?: unknown[] | undefined;
|
|
19
24
|
fixed?: string | boolean | undefined;
|
|
20
|
-
width?: string | number | undefined;
|
|
21
|
-
prop?: string | undefined;
|
|
22
25
|
options?: unknown[] | undefined;
|
|
23
26
|
dictType?: string | undefined;
|
|
27
|
+
width?: string | number | undefined;
|
|
28
|
+
prop?: string | undefined;
|
|
24
29
|
filterMethod?: Function | undefined;
|
|
25
30
|
formatter?: Function | undefined;
|
|
26
|
-
tooltipFormatter?: Function | undefined;
|
|
27
31
|
index?: number | Function | undefined;
|
|
32
|
+
tooltipFormatter?: Function | undefined;
|
|
28
33
|
columnKey?: string | undefined;
|
|
29
34
|
minWidth?: string | number | undefined;
|
|
30
35
|
renderHeader?: Function | undefined;
|
|
@@ -58,14 +63,14 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
58
63
|
readonly label?: string | undefined;
|
|
59
64
|
readonly filters?: unknown[] | undefined;
|
|
60
65
|
readonly fixed?: string | boolean | undefined;
|
|
61
|
-
readonly width?: string | number | undefined;
|
|
62
|
-
readonly prop?: string | undefined;
|
|
63
66
|
readonly options?: unknown[] | undefined;
|
|
64
67
|
readonly dictType?: string | undefined;
|
|
68
|
+
readonly width?: string | number | undefined;
|
|
69
|
+
readonly prop?: string | undefined;
|
|
65
70
|
readonly filterMethod?: Function | undefined;
|
|
66
71
|
readonly formatter?: Function | undefined;
|
|
67
|
-
readonly tooltipFormatter?: Function | undefined;
|
|
68
72
|
readonly index?: number | Function | undefined;
|
|
73
|
+
readonly tooltipFormatter?: Function | undefined;
|
|
69
74
|
readonly columnKey?: string | undefined;
|
|
70
75
|
readonly minWidth?: string | number | undefined;
|
|
71
76
|
readonly renderHeader?: Function | undefined;
|
|
@@ -82,4 +87,9 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
82
87
|
readonly maxWidth?: string | undefined;
|
|
83
88
|
};
|
|
84
89
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
85
|
-
|
|
90
|
+
type __VLS_TemplateResult = {
|
|
91
|
+
attrs: Partial<{}>;
|
|
92
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
93
|
+
refs: {};
|
|
94
|
+
rootEl: any;
|
|
95
|
+
};
|
package/table-view/index.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e, l as t } from "../chunks/DcTVYqeJ.mjs";
|
|
2
2
|
import { processButtons as n, reloadTable as r } from "../api/index.mjs";
|
|
3
3
|
import { tableViewContextKey as i } from "../constants/index.mjs";
|
|
4
|
-
import { t as a } from "../chunks/
|
|
5
|
-
import { t as o } from "../chunks/
|
|
6
|
-
import {
|
|
7
|
-
import c from "../
|
|
8
|
-
import
|
|
9
|
-
import { t as u } from "../chunks/
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
4
|
+
import { t as a } from "../chunks/CxTg0r4n.mjs";
|
|
5
|
+
import { t as o } from "../chunks/Cln3RBAD.mjs";
|
|
6
|
+
import { t as s } from "../chunks/CkOD-_VV.mjs";
|
|
7
|
+
import { a as c } from "../chunks/D_qiRmiE.mjs";
|
|
8
|
+
import l from "../form-item-config-provider/index.mjs";
|
|
9
|
+
import { t as u } from "../chunks/BRRcYOud.mjs";
|
|
10
|
+
import { t as d } from "../chunks/hzaYr6Ud2.mjs";
|
|
11
|
+
import { hasOwn as f, isArray as p, isFunction as m, isString as h, toStringArray as g, trace as _, warning as v } from "@web-utils/core";
|
|
12
|
+
import { Transition as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, mergeProps as D, normalizeClass as O, normalizeStyle as k, openBlock as A, renderList as j, renderSlot as M, toDisplayString as N, toHandlers as P, vShow as F, withCtx as I, withDirectives as L, withModifiers as R } from "vue";
|
|
13
|
+
import { merge as z } from "@web-utils/integrations/lodash";
|
|
14
|
+
import { ElCollapseTransition as B, ElForm as V, ElFormItem as H, ElRow as U } from "element-plus/es";
|
|
14
15
|
//#region src/components/form/TableView.vue
|
|
15
16
|
var W = [
|
|
16
17
|
"back",
|
|
@@ -36,16 +37,16 @@ var W = [
|
|
|
36
37
|
name: "TableView",
|
|
37
38
|
bus: {
|
|
38
39
|
reloadTableView(e) {
|
|
39
|
-
if (this._viewIds) if (
|
|
40
|
+
if (this._viewIds) if (h(e) || p(e)) {
|
|
40
41
|
let t = e;
|
|
41
|
-
|
|
42
|
-
} else
|
|
42
|
+
h(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (_.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
|
|
43
|
+
} else v.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
43
44
|
},
|
|
44
45
|
reloadTreeView(e) {
|
|
45
|
-
if (this._viewIds) if (
|
|
46
|
+
if (this._viewIds) if (h(e) || p(e)) {
|
|
46
47
|
let t = e;
|
|
47
|
-
|
|
48
|
-
} else
|
|
48
|
+
h(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (_.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
|
|
49
|
+
} else v.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
52
|
provide() {
|
|
@@ -118,15 +119,15 @@ var W = [
|
|
|
118
119
|
},
|
|
119
120
|
toolbarProps() {
|
|
120
121
|
var e, t;
|
|
121
|
-
let r =
|
|
122
|
-
return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons =
|
|
122
|
+
let r = z({}, this.toolbarAttrs, {}), i = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
|
|
123
|
+
return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons = g(r.buttons), r.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), r;
|
|
123
124
|
},
|
|
124
125
|
treeProps() {
|
|
125
|
-
return
|
|
126
|
+
return t(z({}, this.treeAttrs, {
|
|
126
127
|
treeProps: {
|
|
127
128
|
children: "children",
|
|
128
129
|
label: "label",
|
|
129
|
-
isLeaf: (e) =>
|
|
130
|
+
isLeaf: (e) => f(e, "hasChildren") ? !e.hasChildren : f(e, "hasChild") ? !e.hasChild : !0
|
|
130
131
|
},
|
|
131
132
|
show: !1,
|
|
132
133
|
lazy: !0,
|
|
@@ -137,20 +138,20 @@ var W = [
|
|
|
137
138
|
}));
|
|
138
139
|
},
|
|
139
140
|
tableProps() {
|
|
140
|
-
let
|
|
141
|
+
let e = this.tableAttrs.api || this.$parent.getPage, n = {
|
|
141
142
|
model: this.searchModel || {},
|
|
142
143
|
height: "auto",
|
|
143
144
|
highlightCurrentRow: !0,
|
|
144
|
-
api:
|
|
145
|
+
api: e
|
|
145
146
|
};
|
|
146
|
-
return
|
|
147
|
+
return t(z({}, this.tableAttrs, n));
|
|
147
148
|
},
|
|
148
149
|
searchPanelProps() {
|
|
149
|
-
let
|
|
150
|
+
let e = {
|
|
150
151
|
width: 350,
|
|
151
152
|
model: this.searchModel || {}
|
|
152
153
|
};
|
|
153
|
-
return
|
|
154
|
+
return t(z({}, this.searchPanelAttrs, e));
|
|
154
155
|
},
|
|
155
156
|
toolbarEventHandlers() {
|
|
156
157
|
if (this.toolbarListeners) {
|
|
@@ -177,7 +178,7 @@ var W = [
|
|
|
177
178
|
this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
|
|
178
179
|
},
|
|
179
180
|
methods: {
|
|
180
|
-
toHyphenateKey:
|
|
181
|
+
toHyphenateKey: t,
|
|
181
182
|
onTreeScroll() {
|
|
182
183
|
this.treeScrollTop = this.$refs.treeScroller.scrollTop, this.treeScrollLeft = this.$refs.treeScroller.scrollLeft;
|
|
183
184
|
},
|
|
@@ -190,8 +191,8 @@ var W = [
|
|
|
190
191
|
onClearClick() {
|
|
191
192
|
this.$emit("reset"), this.$refs.form.resetFields(), this.reloadTable();
|
|
192
193
|
},
|
|
193
|
-
openFrom(
|
|
194
|
-
this.$router.push(
|
|
194
|
+
openFrom(t) {
|
|
195
|
+
this.$router.push(e(this.formPath, t));
|
|
195
196
|
},
|
|
196
197
|
rowDbClick(e) {
|
|
197
198
|
var t;
|
|
@@ -207,7 +208,7 @@ var W = [
|
|
|
207
208
|
async del() {
|
|
208
209
|
var e;
|
|
209
210
|
let t = this.deleteApi || this.$parent.del;
|
|
210
|
-
if (!((e = this.toolbarListeners) != null && e.del) &&
|
|
211
|
+
if (!((e = this.toolbarListeners) != null && e.del) && m(t)) {
|
|
211
212
|
if (!this.selectedRows.length) {
|
|
212
213
|
this.$message.warning(this.selectTips || "请选择要删除的记录!");
|
|
213
214
|
return;
|
|
@@ -261,39 +262,39 @@ var W = [
|
|
|
261
262
|
key: 0,
|
|
262
263
|
class: "search-form-top"
|
|
263
264
|
}, J = { class: "table-view-content-wrapper" }, Y = { class: "table-view-content" }, X = { class: "table-view-table" }, Z = { class: "slide-panel-content" }, Q = { class: "slide-panel-actions" };
|
|
264
|
-
function $(e, t, n, r, i,
|
|
265
|
-
let
|
|
266
|
-
return
|
|
265
|
+
function $(e, t, n, r, i, s) {
|
|
266
|
+
let f = a, p = c, m = U, h = l, g = V, _ = B, v = d, z = o, W = u, G = H;
|
|
267
|
+
return A(), S("div", { class: O(["table-view", {
|
|
267
268
|
embed: n.embed,
|
|
268
|
-
"has-tree":
|
|
269
|
-
}]) }, [
|
|
270
|
-
|
|
271
|
-
n.searchFormPosition === "top" ? (
|
|
272
|
-
default:
|
|
269
|
+
"has-tree": s.treeProps.show
|
|
270
|
+
}]) }, [C("div", K, [
|
|
271
|
+
x("搜索条件"),
|
|
272
|
+
n.searchFormPosition === "top" ? (A(), b(_, { key: 0 }, {
|
|
273
|
+
default: I(() => [s.toolbarProps.searchable ? L((A(), S("div", q, [E(g, {
|
|
273
274
|
ref: "form",
|
|
274
275
|
"label-position": "right",
|
|
275
|
-
model: n.searchModel ||
|
|
276
|
+
model: n.searchModel || s.searchPanelProps.model,
|
|
276
277
|
"label-width": n.labelWidth,
|
|
277
|
-
onSubmitCapture:
|
|
278
|
+
onSubmitCapture: R(s.onSearchClick, ["prevent"])
|
|
278
279
|
}, {
|
|
279
|
-
default:
|
|
280
|
-
default:
|
|
281
|
-
default:
|
|
280
|
+
default: I(() => [E(h, { reactive: "" }, {
|
|
281
|
+
default: I(() => [E(m, { gutter: 0 }, {
|
|
282
|
+
default: I(() => [M(e.$slots, "search-form", {}, () => [t[3] || (t[3] = C("p", null, "请添加搜索条件!", -1))]), E(p, {
|
|
282
283
|
class: "search-actions",
|
|
283
284
|
"hide-label": "",
|
|
284
285
|
"fixed-span": 24
|
|
285
286
|
}, {
|
|
286
|
-
default:
|
|
287
|
+
default: I(() => [E(f, {
|
|
287
288
|
type: "primary",
|
|
288
289
|
"native-type": "submit"
|
|
289
290
|
}, {
|
|
290
|
-
default:
|
|
291
|
+
default: I(() => [...t[4] || (t[4] = [T("开始搜索", -1)])]),
|
|
291
292
|
_: 1
|
|
292
|
-
}),
|
|
293
|
+
}), E(f, {
|
|
293
294
|
style: { "margin-left": "10px" },
|
|
294
|
-
onClick:
|
|
295
|
+
onClick: s.onClearClick
|
|
295
296
|
}, {
|
|
296
|
-
default:
|
|
297
|
+
default: I(() => [...t[5] || (t[5] = [T("清除条件", -1)])]),
|
|
297
298
|
_: 1
|
|
298
299
|
}, 8, ["onClick"])]),
|
|
299
300
|
_: 1
|
|
@@ -307,48 +308,48 @@ function $(e, t, n, r, i, o) {
|
|
|
307
308
|
"model",
|
|
308
309
|
"label-width",
|
|
309
310
|
"onSubmitCapture"
|
|
310
|
-
])], 512)), [[
|
|
311
|
+
])], 512)), [[F, i.isSearchVisible]]) : x("v-if", !0)]),
|
|
311
312
|
_: 3
|
|
312
|
-
})) :
|
|
313
|
-
|
|
314
|
-
n.showToolbar ? (
|
|
313
|
+
})) : x("v-if", !0),
|
|
314
|
+
x("顶部工具条"),
|
|
315
|
+
n.showToolbar ? (A(), b(v, D({ key: 1 }, s.toolbarProps, {
|
|
315
316
|
refreshable: "",
|
|
316
|
-
onSearch:
|
|
317
|
+
onSearch: s.toggleSearch,
|
|
317
318
|
onSettings: t[0] || (t[0] = () => e.$refs.table.toggleSettings()),
|
|
318
|
-
onDel:
|
|
319
|
-
onCreate:
|
|
320
|
-
onReload:
|
|
321
|
-
onExp:
|
|
319
|
+
onDel: s.del,
|
|
320
|
+
onCreate: s.create,
|
|
321
|
+
onReload: s.reloadTableAndTree,
|
|
322
|
+
onExp: s.exp,
|
|
322
323
|
onImp: t[1] || (t[1] = (e) => i.importDialogVisible = !0)
|
|
323
|
-
},
|
|
324
|
+
}, P(s.toolbarEventHandlers)), w({ _: 2 }, [
|
|
324
325
|
e.$slots["toolbar-button"] ? {
|
|
325
326
|
name: "default",
|
|
326
|
-
fn:
|
|
327
|
+
fn: I(() => [M(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
|
|
327
328
|
key: "0"
|
|
328
329
|
} : void 0,
|
|
329
330
|
e.$slots["toolbar-left"] ? {
|
|
330
331
|
name: "toolbar-left",
|
|
331
|
-
fn:
|
|
332
|
+
fn: I(() => [M(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
|
|
332
333
|
key: "1"
|
|
333
334
|
} : void 0,
|
|
334
335
|
e.$slots["toolbar-right"] ? {
|
|
335
336
|
name: "toolbar-right",
|
|
336
|
-
fn:
|
|
337
|
-
del:
|
|
338
|
-
create:
|
|
339
|
-
reload:
|
|
337
|
+
fn: I(() => [M(e.$slots, "toolbar-right", {
|
|
338
|
+
del: s.del,
|
|
339
|
+
create: s.create,
|
|
340
|
+
reload: s.reloadTableAndTree,
|
|
340
341
|
selectedRows: i.selectedRows
|
|
341
342
|
})]),
|
|
342
343
|
key: "2"
|
|
343
344
|
} : void 0,
|
|
344
345
|
e.$slots["toolbar-right-button"] ? {
|
|
345
346
|
name: "toolbar-right-button",
|
|
346
|
-
fn:
|
|
347
|
+
fn: I(() => [M(e.$slots, "toolbar-right-button")]),
|
|
347
348
|
key: "3"
|
|
348
349
|
} : void 0,
|
|
349
|
-
|
|
350
|
+
j(s.buttonSlots, (t) => ({
|
|
350
351
|
name: t,
|
|
351
|
-
fn:
|
|
352
|
+
fn: I(() => [M(e.$slots, t, { selectedRows: i.selectedRows })])
|
|
352
353
|
}))
|
|
353
354
|
]), 1040, [
|
|
354
355
|
"onSearch",
|
|
@@ -356,27 +357,27 @@ function $(e, t, n, r, i, o) {
|
|
|
356
357
|
"onCreate",
|
|
357
358
|
"onReload",
|
|
358
359
|
"onExp"
|
|
359
|
-
])) :
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
360
|
+
])) : x("v-if", !0),
|
|
361
|
+
C("div", J, [
|
|
362
|
+
C("div", Y, [
|
|
363
|
+
x("侧栏"),
|
|
364
|
+
s.treeProps.show ? (A(), S("div", {
|
|
364
365
|
key: 0,
|
|
365
366
|
ref: "treeScroller",
|
|
366
367
|
class: "table-view-sidebar",
|
|
367
|
-
onScroll: t[2] || (t[2] = (...e) =>
|
|
368
|
-
}, [
|
|
369
|
-
default:
|
|
368
|
+
onScroll: t[2] || (t[2] = (...e) => s.onTreeScroll && s.onTreeScroll(...e))
|
|
369
|
+
}, [x("<div style=\"font-size: 16px\">视图导航</div>"), E(z, D({ ref: "tree" }, s.treeProps, { readonly: "" }, P(s.toHyphenateKey(n.treeListeners))), {
|
|
370
|
+
default: I(({ node: t, data: n }) => [M(e.$slots, "tree-node", {
|
|
370
371
|
node: t,
|
|
371
372
|
data: n
|
|
372
|
-
}, () => [
|
|
373
|
+
}, () => [C("span", null, [C("i", { class: O([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), M(e.$slots, "tree-label", {
|
|
373
374
|
node: t,
|
|
374
375
|
data: n
|
|
375
|
-
}, () => [
|
|
376
|
+
}, () => [T(N(t.label), 1)])])])]),
|
|
376
377
|
_: 3
|
|
377
|
-
}, 16)], 544)) :
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
}, 16)], 544)) : x("v-if", !0),
|
|
379
|
+
x("表格"),
|
|
380
|
+
C("div", X, [E(W, D({
|
|
380
381
|
ref: "table",
|
|
381
382
|
border: n.border,
|
|
382
383
|
class: [{
|
|
@@ -385,15 +386,15 @@ function $(e, t, n, r, i, o) {
|
|
|
385
386
|
"border-left": n.borderLeft || n.treeAttrs && n.treeAttrs.show,
|
|
386
387
|
"border-right": n.borderRight
|
|
387
388
|
}]
|
|
388
|
-
},
|
|
389
|
-
onRowDblclick:
|
|
390
|
-
onSelectionChange:
|
|
391
|
-
}),
|
|
392
|
-
default:
|
|
389
|
+
}, s.tableProps, P(s.toHyphenateKey(n.tableListeners)), {
|
|
390
|
+
onRowDblclick: s.rowDbClick,
|
|
391
|
+
onSelectionChange: s.onSelectionChange
|
|
392
|
+
}), w({
|
|
393
|
+
default: I(() => [M(e.$slots, "columns")]),
|
|
393
394
|
_: 2
|
|
394
|
-
}, [
|
|
395
|
+
}, [j(s.tableScopeSlotNames, (t) => ({
|
|
395
396
|
name: t,
|
|
396
|
-
fn:
|
|
397
|
+
fn: I(({ row: n }) => [M(e.$slots, t, { row: n })])
|
|
397
398
|
}))]), 1040, [
|
|
398
399
|
"border",
|
|
399
400
|
"class",
|
|
@@ -401,40 +402,40 @@ function $(e, t, n, r, i, o) {
|
|
|
401
402
|
"onSelectionChange"
|
|
402
403
|
])])
|
|
403
404
|
]),
|
|
404
|
-
|
|
405
|
-
n.searchFormPosition === "right" ? (
|
|
405
|
+
x("搜索条件"),
|
|
406
|
+
n.searchFormPosition === "right" ? (A(), b(y, {
|
|
406
407
|
key: 0,
|
|
407
408
|
name: "slide"
|
|
408
409
|
}, {
|
|
409
|
-
default:
|
|
410
|
+
default: I(() => [s.toolbarProps.searchable ? L((A(), S("div", {
|
|
410
411
|
key: 0,
|
|
411
|
-
style:
|
|
412
|
+
style: k({ width: `${s.searchPanelProps.width}px` }),
|
|
412
413
|
class: "slide-panel"
|
|
413
|
-
}, [
|
|
414
|
+
}, [x("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), C("div", Z, [E(g, {
|
|
414
415
|
ref: "form",
|
|
415
416
|
"label-position": "right",
|
|
416
|
-
model: n.searchModel ||
|
|
417
|
+
model: n.searchModel || s.searchPanelProps.model,
|
|
417
418
|
"label-width": n.labelWidth,
|
|
418
|
-
onSubmitCapture:
|
|
419
|
+
onSubmitCapture: R(s.onSearchClick, ["prevent"])
|
|
419
420
|
}, {
|
|
420
|
-
default:
|
|
421
|
+
default: I(() => [E(h, {
|
|
421
422
|
block: "",
|
|
422
423
|
"wrap-col": !1
|
|
423
424
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
default:
|
|
425
|
+
default: I(() => [E(m, { gutter: 0 }, {
|
|
426
|
+
default: I(() => [M(e.$slots, "search-form", {}, () => [t[6] || (t[6] = C("p", null, "请添加搜索条件!", -1))])]),
|
|
426
427
|
_: 3
|
|
427
428
|
})]),
|
|
428
429
|
_: 3
|
|
429
|
-
}),
|
|
430
|
-
default:
|
|
430
|
+
}), E(G, { "label-width": "0" }, {
|
|
431
|
+
default: I(() => [C("div", Q, [E(f, {
|
|
431
432
|
type: "primary",
|
|
432
433
|
"native-type": "submit"
|
|
433
434
|
}, {
|
|
434
|
-
default:
|
|
435
|
+
default: I(() => [...t[7] || (t[7] = [T("开始搜索", -1)])]),
|
|
435
436
|
_: 1
|
|
436
|
-
}),
|
|
437
|
-
default:
|
|
437
|
+
}), E(f, { onClick: s.onClearClick }, {
|
|
438
|
+
default: I(() => [...t[8] || (t[8] = [T("清除条件", -1)])]),
|
|
438
439
|
_: 1
|
|
439
440
|
}, 8, ["onClick"])])]),
|
|
440
441
|
_: 1
|
|
@@ -444,13 +445,13 @@ function $(e, t, n, r, i, o) {
|
|
|
444
445
|
"model",
|
|
445
446
|
"label-width",
|
|
446
447
|
"onSubmitCapture"
|
|
447
|
-
])])], 4)), [[
|
|
448
|
+
])])], 4)), [[F, i.isSearchVisible]]) : x("v-if", !0)]),
|
|
448
449
|
_: 3
|
|
449
|
-
})) :
|
|
450
|
+
})) : x("v-if", !0)
|
|
450
451
|
]),
|
|
451
|
-
|
|
452
|
+
M(e.$slots, "default")
|
|
452
453
|
])], 2);
|
|
453
454
|
}
|
|
454
|
-
var ee = /* @__PURE__ */
|
|
455
|
+
var ee = /* @__PURE__ */ s(G, [["render", $]]);
|
|
455
456
|
//#endregion
|
|
456
457
|
export { ee as default };
|
package/toolbar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/hzaYr6Ud2.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -180,10 +180,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
180
180
|
loadable: boolean;
|
|
181
181
|
warning: boolean;
|
|
182
182
|
confirm: boolean;
|
|
183
|
-
dark: boolean;
|
|
184
|
-
circle: boolean;
|
|
185
183
|
bg: boolean;
|
|
184
|
+
circle: boolean;
|
|
186
185
|
dashed: boolean;
|
|
186
|
+
dark: boolean;
|
|
187
187
|
autoInsertSpace: boolean;
|
|
188
188
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
189
189
|
export default _default;
|
package/toolbar-button/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CxTg0r4n.mjs";
|
|
2
2
|
export { e as default };
|
package/vue-cron/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/vXQf89tS.mjs";
|
|
2
2
|
export { e as default };
|