@epie/bi-crud 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bi-crud.esm.js +6 -2
- package/lib/bi-crud.umd.js +6 -2
- package/lib/types/base/table.d.ts +9 -17
- package/package.json +1 -1
package/lib/bi-crud.esm.js
CHANGED
|
@@ -18387,7 +18387,7 @@ function useRender$2(_ref7) {
|
|
|
18387
18387
|
return d.value == v;
|
|
18388
18388
|
});
|
|
18389
18389
|
|
|
18390
|
-
if (d) {
|
|
18390
|
+
if (d && d.type) {
|
|
18391
18391
|
var ElTag = createVNode(resolveComponent("el-tag"), {
|
|
18392
18392
|
"disable-transitions": true,
|
|
18393
18393
|
"effect": "dark",
|
|
@@ -18399,6 +18399,8 @@ function useRender$2(_ref7) {
|
|
|
18399
18399
|
return d.label;
|
|
18400
18400
|
}
|
|
18401
18401
|
});
|
|
18402
|
+
} else if (d) {
|
|
18403
|
+
return d.label;
|
|
18402
18404
|
} else {
|
|
18403
18405
|
return v;
|
|
18404
18406
|
}
|
|
@@ -19769,7 +19771,7 @@ function useRender(_ref) {
|
|
|
19769
19771
|
return d.value == v;
|
|
19770
19772
|
});
|
|
19771
19773
|
|
|
19772
|
-
if (d) {
|
|
19774
|
+
if (d && d.type) {
|
|
19773
19775
|
var ElTag = createVNode(resolveComponent("el-tag"), {
|
|
19774
19776
|
"disable-transitions": true,
|
|
19775
19777
|
"effect": "dark",
|
|
@@ -19781,6 +19783,8 @@ function useRender(_ref) {
|
|
|
19781
19783
|
return d.label;
|
|
19782
19784
|
}
|
|
19783
19785
|
});
|
|
19786
|
+
} else if (d) {
|
|
19787
|
+
return d.label;
|
|
19784
19788
|
} else {
|
|
19785
19789
|
return v;
|
|
19786
19790
|
}
|
package/lib/bi-crud.umd.js
CHANGED
|
@@ -18390,7 +18390,7 @@
|
|
|
18390
18390
|
return d.value == v;
|
|
18391
18391
|
});
|
|
18392
18392
|
|
|
18393
|
-
if (d) {
|
|
18393
|
+
if (d && d.type) {
|
|
18394
18394
|
var ElTag = vue.createVNode(vue.resolveComponent("el-tag"), {
|
|
18395
18395
|
"disable-transitions": true,
|
|
18396
18396
|
"effect": "dark",
|
|
@@ -18402,6 +18402,8 @@
|
|
|
18402
18402
|
return d.label;
|
|
18403
18403
|
}
|
|
18404
18404
|
});
|
|
18405
|
+
} else if (d) {
|
|
18406
|
+
return d.label;
|
|
18405
18407
|
} else {
|
|
18406
18408
|
return v;
|
|
18407
18409
|
}
|
|
@@ -19772,7 +19774,7 @@
|
|
|
19772
19774
|
return d.value == v;
|
|
19773
19775
|
});
|
|
19774
19776
|
|
|
19775
|
-
if (d) {
|
|
19777
|
+
if (d && d.type) {
|
|
19776
19778
|
var ElTag = vue.createVNode(vue.resolveComponent("el-tag"), {
|
|
19777
19779
|
"disable-transitions": true,
|
|
19778
19780
|
"effect": "dark",
|
|
@@ -19784,6 +19786,8 @@
|
|
|
19784
19786
|
return d.label;
|
|
19785
19787
|
}
|
|
19786
19788
|
});
|
|
19789
|
+
} else if (d) {
|
|
19790
|
+
return d.label;
|
|
19787
19791
|
} else {
|
|
19788
19792
|
return v;
|
|
19789
19793
|
}
|
|
@@ -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">;
|