@epie/bi-crud 2.0.6 → 2.0.9
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/lib/bi-crud.esm.js
CHANGED
|
@@ -15730,6 +15730,12 @@ function parseNode(vnode, options) {
|
|
|
15730
15730
|
props["onUpdate:modelValue"] = function (val) {
|
|
15731
15731
|
scope[prop] = val;
|
|
15732
15732
|
};
|
|
15733
|
+
}
|
|
15734
|
+
|
|
15735
|
+
if (vnode.name === "el-select" && props.clearable) {
|
|
15736
|
+
props["onClear"] = function () {
|
|
15737
|
+
scope[prop] = undefined;
|
|
15738
|
+
};
|
|
15733
15739
|
} // 组件实例渲染
|
|
15734
15740
|
|
|
15735
15741
|
|
|
@@ -16166,8 +16172,9 @@ function useApi(_ref5) {
|
|
|
16166
16172
|
function useRender$3(ctx) {
|
|
16167
16173
|
var _useTools = useTools(),
|
|
16168
16174
|
browser = _useTools.browser,
|
|
16169
|
-
style = _useTools.style;
|
|
16175
|
+
style = _useTools.style;
|
|
16170
16176
|
|
|
16177
|
+
var baseSpan = ctx.conf.baseSpan || 24; // 渲染表单及表单项
|
|
16171
16178
|
|
|
16172
16179
|
function renderForm() {
|
|
16173
16180
|
// 表单项列表
|
|
@@ -16248,7 +16255,7 @@ function useRender$3(ctx) {
|
|
|
16248
16255
|
}
|
|
16249
16256
|
|
|
16250
16257
|
return createVNode(resolveComponent("el-col"), mergeProps({
|
|
16251
|
-
"span":
|
|
16258
|
+
"span": baseSpan
|
|
16252
16259
|
}, e), _isSlot$3(FormItem) ? FormItem : {
|
|
16253
16260
|
default: function _default() {
|
|
16254
16261
|
return [FormItem];
|
|
@@ -16735,6 +16742,7 @@ var Form = defineComponent({
|
|
|
16735
16742
|
props: {
|
|
16736
16743
|
labelWidth: 100
|
|
16737
16744
|
},
|
|
16745
|
+
baseSpan: 24,
|
|
16738
16746
|
on: {},
|
|
16739
16747
|
op: {
|
|
16740
16748
|
hidden: false,
|
|
@@ -16935,7 +16943,8 @@ var Form = defineComponent({
|
|
|
16935
16943
|
} // 显示对话框
|
|
16936
16944
|
|
|
16937
16945
|
|
|
16938
|
-
visible.value = true;
|
|
16946
|
+
visible.value = true; //;
|
|
16947
|
+
// 合并配置
|
|
16939
16948
|
|
|
16940
16949
|
for (var i in conf) {
|
|
16941
16950
|
switch (i) {
|
|
@@ -16946,9 +16955,14 @@ var Form = defineComponent({
|
|
|
16946
16955
|
|
|
16947
16956
|
case "title":
|
|
16948
16957
|
case "width":
|
|
16958
|
+
// case "baseSpan":
|
|
16949
16959
|
conf[i] = options[i];
|
|
16950
16960
|
break;
|
|
16951
16961
|
|
|
16962
|
+
case "baseSpan":
|
|
16963
|
+
conf.baseSpan = options.baseSpan;
|
|
16964
|
+
break;
|
|
16965
|
+
|
|
16952
16966
|
case "on":
|
|
16953
16967
|
case "op":
|
|
16954
16968
|
case "props":
|
|
@@ -18221,8 +18235,7 @@ function useHeight(_ref6) {
|
|
|
18221
18235
|
while (n && (n.className || "").includes("el-row")) {
|
|
18222
18236
|
_h += n.clientHeight + 5;
|
|
18223
18237
|
n = n.nextSibling;
|
|
18224
|
-
} //
|
|
18225
|
-
// 设置表格最大高度
|
|
18238
|
+
} // 设置表格最大高度
|
|
18226
18239
|
|
|
18227
18240
|
|
|
18228
18241
|
maxHeight.value = r.clientHeight - _h;
|
|
@@ -18380,7 +18393,7 @@ function useRender$2(_ref7) {
|
|
|
18380
18393
|
return d.value == v;
|
|
18381
18394
|
});
|
|
18382
18395
|
|
|
18383
|
-
if (d) {
|
|
18396
|
+
if (d && d.type) {
|
|
18384
18397
|
var ElTag = createVNode(resolveComponent("el-tag"), {
|
|
18385
18398
|
"disable-transitions": true,
|
|
18386
18399
|
"effect": "dark",
|
|
@@ -18392,6 +18405,8 @@ function useRender$2(_ref7) {
|
|
|
18392
18405
|
return d.label;
|
|
18393
18406
|
}
|
|
18394
18407
|
});
|
|
18408
|
+
} else if (d) {
|
|
18409
|
+
return d.label;
|
|
18395
18410
|
} else {
|
|
18396
18411
|
return v;
|
|
18397
18412
|
}
|
|
@@ -18641,6 +18656,10 @@ var Upsert = defineComponent({
|
|
|
18641
18656
|
return [];
|
|
18642
18657
|
}
|
|
18643
18658
|
},
|
|
18659
|
+
// 基础span
|
|
18660
|
+
baseSpan: {
|
|
18661
|
+
type: Number
|
|
18662
|
+
},
|
|
18644
18663
|
// el-form
|
|
18645
18664
|
props: Object,
|
|
18646
18665
|
// 编辑时是否同步打开
|
|
@@ -18758,6 +18777,7 @@ var Upsert = defineComponent({
|
|
|
18758
18777
|
op: props.op,
|
|
18759
18778
|
dialog: props.dialog,
|
|
18760
18779
|
items: props.items,
|
|
18780
|
+
baseSpan: props.baseSpan,
|
|
18761
18781
|
on: {
|
|
18762
18782
|
open: function open(data) {
|
|
18763
18783
|
if (props.onOpen) {
|
|
@@ -19757,7 +19777,7 @@ function useRender(_ref) {
|
|
|
19757
19777
|
return d.value == v;
|
|
19758
19778
|
});
|
|
19759
19779
|
|
|
19760
|
-
if (d) {
|
|
19780
|
+
if (d && d.type) {
|
|
19761
19781
|
var ElTag = createVNode(resolveComponent("el-tag"), {
|
|
19762
19782
|
"disable-transitions": true,
|
|
19763
19783
|
"effect": "dark",
|
|
@@ -19769,6 +19789,8 @@ function useRender(_ref) {
|
|
|
19769
19789
|
return d.label;
|
|
19770
19790
|
}
|
|
19771
19791
|
});
|
|
19792
|
+
} else if (d) {
|
|
19793
|
+
return d.label;
|
|
19772
19794
|
} else {
|
|
19773
19795
|
return v;
|
|
19774
19796
|
}
|
package/lib/bi-crud.umd.js
CHANGED
|
@@ -15733,6 +15733,12 @@
|
|
|
15733
15733
|
props["onUpdate:modelValue"] = function (val) {
|
|
15734
15734
|
scope[prop] = val;
|
|
15735
15735
|
};
|
|
15736
|
+
}
|
|
15737
|
+
|
|
15738
|
+
if (vnode.name === "el-select" && props.clearable) {
|
|
15739
|
+
props["onClear"] = function () {
|
|
15740
|
+
scope[prop] = undefined;
|
|
15741
|
+
};
|
|
15736
15742
|
} // 组件实例渲染
|
|
15737
15743
|
|
|
15738
15744
|
|
|
@@ -16169,8 +16175,9 @@
|
|
|
16169
16175
|
function useRender$3(ctx) {
|
|
16170
16176
|
var _useTools = useTools(),
|
|
16171
16177
|
browser = _useTools.browser,
|
|
16172
|
-
style = _useTools.style;
|
|
16178
|
+
style = _useTools.style;
|
|
16173
16179
|
|
|
16180
|
+
var baseSpan = ctx.conf.baseSpan || 24; // 渲染表单及表单项
|
|
16174
16181
|
|
|
16175
16182
|
function renderForm() {
|
|
16176
16183
|
// 表单项列表
|
|
@@ -16251,7 +16258,7 @@
|
|
|
16251
16258
|
}
|
|
16252
16259
|
|
|
16253
16260
|
return vue.createVNode(vue.resolveComponent("el-col"), vue.mergeProps({
|
|
16254
|
-
"span":
|
|
16261
|
+
"span": baseSpan
|
|
16255
16262
|
}, e), _isSlot$3(FormItem) ? FormItem : {
|
|
16256
16263
|
default: function _default() {
|
|
16257
16264
|
return [FormItem];
|
|
@@ -16738,6 +16745,7 @@
|
|
|
16738
16745
|
props: {
|
|
16739
16746
|
labelWidth: 100
|
|
16740
16747
|
},
|
|
16748
|
+
baseSpan: 24,
|
|
16741
16749
|
on: {},
|
|
16742
16750
|
op: {
|
|
16743
16751
|
hidden: false,
|
|
@@ -16938,7 +16946,8 @@
|
|
|
16938
16946
|
} // 显示对话框
|
|
16939
16947
|
|
|
16940
16948
|
|
|
16941
|
-
visible.value = true;
|
|
16949
|
+
visible.value = true; //;
|
|
16950
|
+
// 合并配置
|
|
16942
16951
|
|
|
16943
16952
|
for (var i in conf) {
|
|
16944
16953
|
switch (i) {
|
|
@@ -16949,9 +16958,14 @@
|
|
|
16949
16958
|
|
|
16950
16959
|
case "title":
|
|
16951
16960
|
case "width":
|
|
16961
|
+
// case "baseSpan":
|
|
16952
16962
|
conf[i] = options[i];
|
|
16953
16963
|
break;
|
|
16954
16964
|
|
|
16965
|
+
case "baseSpan":
|
|
16966
|
+
conf.baseSpan = options.baseSpan;
|
|
16967
|
+
break;
|
|
16968
|
+
|
|
16955
16969
|
case "on":
|
|
16956
16970
|
case "op":
|
|
16957
16971
|
case "props":
|
|
@@ -18224,8 +18238,7 @@
|
|
|
18224
18238
|
while (n && (n.className || "").includes("el-row")) {
|
|
18225
18239
|
_h += n.clientHeight + 5;
|
|
18226
18240
|
n = n.nextSibling;
|
|
18227
|
-
} //
|
|
18228
|
-
// 设置表格最大高度
|
|
18241
|
+
} // 设置表格最大高度
|
|
18229
18242
|
|
|
18230
18243
|
|
|
18231
18244
|
maxHeight.value = r.clientHeight - _h;
|
|
@@ -18383,7 +18396,7 @@
|
|
|
18383
18396
|
return d.value == v;
|
|
18384
18397
|
});
|
|
18385
18398
|
|
|
18386
|
-
if (d) {
|
|
18399
|
+
if (d && d.type) {
|
|
18387
18400
|
var ElTag = vue.createVNode(vue.resolveComponent("el-tag"), {
|
|
18388
18401
|
"disable-transitions": true,
|
|
18389
18402
|
"effect": "dark",
|
|
@@ -18395,6 +18408,8 @@
|
|
|
18395
18408
|
return d.label;
|
|
18396
18409
|
}
|
|
18397
18410
|
});
|
|
18411
|
+
} else if (d) {
|
|
18412
|
+
return d.label;
|
|
18398
18413
|
} else {
|
|
18399
18414
|
return v;
|
|
18400
18415
|
}
|
|
@@ -18644,6 +18659,10 @@
|
|
|
18644
18659
|
return [];
|
|
18645
18660
|
}
|
|
18646
18661
|
},
|
|
18662
|
+
// 基础span
|
|
18663
|
+
baseSpan: {
|
|
18664
|
+
type: Number
|
|
18665
|
+
},
|
|
18647
18666
|
// el-form
|
|
18648
18667
|
props: Object,
|
|
18649
18668
|
// 编辑时是否同步打开
|
|
@@ -18761,6 +18780,7 @@
|
|
|
18761
18780
|
op: props.op,
|
|
18762
18781
|
dialog: props.dialog,
|
|
18763
18782
|
items: props.items,
|
|
18783
|
+
baseSpan: props.baseSpan,
|
|
18764
18784
|
on: {
|
|
18765
18785
|
open: function open(data) {
|
|
18766
18786
|
if (props.onOpen) {
|
|
@@ -19760,7 +19780,7 @@
|
|
|
19760
19780
|
return d.value == v;
|
|
19761
19781
|
});
|
|
19762
19782
|
|
|
19763
|
-
if (d) {
|
|
19783
|
+
if (d && d.type) {
|
|
19764
19784
|
var ElTag = vue.createVNode(vue.resolveComponent("el-tag"), {
|
|
19765
19785
|
"disable-transitions": true,
|
|
19766
19786
|
"effect": "dark",
|
|
@@ -19772,6 +19792,8 @@
|
|
|
19772
19792
|
return d.label;
|
|
19773
19793
|
}
|
|
19774
19794
|
});
|
|
19795
|
+
} else if (d) {
|
|
19796
|
+
return d.label;
|
|
19775
19797
|
} else {
|
|
19776
19798
|
return v;
|
|
19777
19799
|
}
|
|
@@ -5,6 +5,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
type: PropType<EpieForm.Item[]>;
|
|
6
6
|
default: () => never[];
|
|
7
7
|
};
|
|
8
|
+
baseSpan: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
};
|
|
8
11
|
props: PropType<ElementPlus.FormProps | undefined>;
|
|
9
12
|
sync: BooleanConstructor;
|
|
10
13
|
op: PropType<{
|
|
@@ -29,6 +32,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
32
|
type: PropType<EpieForm.Item[]>;
|
|
30
33
|
default: () => never[];
|
|
31
34
|
};
|
|
35
|
+
baseSpan: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
};
|
|
32
38
|
props: PropType<ElementPlus.FormProps | undefined>;
|
|
33
39
|
sync: BooleanConstructor;
|
|
34
40
|
op: PropType<{
|
package/lib/types/base/form.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Ref as VueRef } from "vue";
|
|
2
1
|
import { fun, NSEpieContextMenu, Render } from ".";
|
|
3
2
|
import { EpieSchema } from "./base";
|
|
3
|
+
export declare type EpieDict = {
|
|
4
|
+
label: string;
|
|
5
|
+
value?: any;
|
|
6
|
+
type?: "success" | "warning" | "info" | "danger";
|
|
7
|
+
size?: "medium" | "default" | "small";
|
|
8
|
+
effect?: "dark" | "light" | "plain";
|
|
9
|
+
color?: string;
|
|
10
|
+
};
|
|
4
11
|
export declare type EpieColumn = EpieSchema<"table"> & {
|
|
5
12
|
type?: "index" | "selection" | "expand" | "op";
|
|
6
|
-
dict?: Array<
|
|
7
|
-
label: string;
|
|
8
|
-
value?: any;
|
|
9
|
-
type?: "success" | "warning" | "info" | "danger";
|
|
10
|
-
size?: "medium" | "default" | "small";
|
|
11
|
-
effect?: "dark" | "light" | "plain";
|
|
12
|
-
color?: string;
|
|
13
|
-
}>;
|
|
13
|
+
dict?: Array<EpieDict>;
|
|
14
14
|
buttons?: Array<"edit" | "delete" | Render.OpButton>;
|
|
15
15
|
align?: "left" | "center" | "right";
|
|
16
16
|
label?: string;
|
|
@@ -44,14 +44,6 @@ export declare type EpieColumn = EpieSchema<"table"> & {
|
|
|
44
44
|
detailExpand?: boolean;
|
|
45
45
|
};
|
|
46
46
|
export declare namespace EpieTable {
|
|
47
|
-
type Dict = Array<{
|
|
48
|
-
label: string;
|
|
49
|
-
value?: any;
|
|
50
|
-
type?: "success" | "warning" | "info" | "danger";
|
|
51
|
-
size?: "medium" | "default" | "small";
|
|
52
|
-
effect?: "dark" | "light" | "plain";
|
|
53
|
-
color?: string;
|
|
54
|
-
}> | VueRef<Dict>;
|
|
55
47
|
interface Props {
|
|
56
48
|
columns: EpieColumn[];
|
|
57
49
|
contextMenu?: boolean | Array<NSEpieContextMenu.Item | ((row: any) => NSEpieContextMenu.Item) | "refresh" | "check" | "update" | "edit" | "delete" | "order-desc" | "order-asc">;
|