command-center-v3-common 0.0.24 → 0.0.26
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.
@@ -0,0 +1,108 @@
|
|
1
|
+
import { defineComponent as m, ref as u, computed as _, resolveComponent as s, openBlock as h, createElementBlock as f, Fragment as b, createElementVNode as t, createVNode as e, mergeProps as y, unref as g, createSlots as v, withCtx as o } from "vue";
|
2
|
+
import { HyTable as x } from "./command-center-v3-common.js";
|
3
|
+
const C = { class: "h-[600px] bg-[#ff000033]" }, w = { class: "flex items-center justify-center gap-x-2.5" }, D = /* @__PURE__ */ t("span", null, "添加部门", -1), S = /* @__PURE__ */ t("span", null, "批量删除", -1), T = { class: "flex items-center" }, H = /* @__PURE__ */ m({
|
4
|
+
__name: "hy-table-demo",
|
5
|
+
setup(k) {
|
6
|
+
const a = u(null), r = _(() => ({
|
7
|
+
columnList: [
|
8
|
+
{
|
9
|
+
prop: "caseType",
|
10
|
+
isSearch: !0,
|
11
|
+
label: "事故类型"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
prop: "createDtm",
|
15
|
+
label: "创建时间"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
prop: "updateDtm",
|
19
|
+
slotName: "updateDtm",
|
20
|
+
label: "修改时间"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
prop: "handler",
|
24
|
+
slotName: "handler",
|
25
|
+
label: "操作",
|
26
|
+
width: "200px"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
reqUrl: "device/page",
|
30
|
+
height: "100%",
|
31
|
+
showFooter: !0,
|
32
|
+
showIndexColumn: !1,
|
33
|
+
selectColumnType: 2
|
34
|
+
}));
|
35
|
+
function i() {
|
36
|
+
a.value.setSelectedData([{
|
37
|
+
id: 3323
|
38
|
+
}]);
|
39
|
+
}
|
40
|
+
function d(l) {
|
41
|
+
console.log(l);
|
42
|
+
}
|
43
|
+
return (l, B) => {
|
44
|
+
const p = s("svg-icon"), c = s("el-button"), n = s("RoundButton");
|
45
|
+
return h(), f(b, null, [
|
46
|
+
t("div", { onClick: i }, " setSelectedData "),
|
47
|
+
t("div", C, [
|
48
|
+
e(x, y({ ...g(r) }, {
|
49
|
+
ref_key: "HyTableRef",
|
50
|
+
ref: a,
|
51
|
+
onSelectionChange: d
|
52
|
+
}), v({
|
53
|
+
tableLeft: o(() => [
|
54
|
+
e(c, { type: "success" }, {
|
55
|
+
default: o(() => [
|
56
|
+
t("div", w, [
|
57
|
+
e(p, {
|
58
|
+
name: "sys-button-create",
|
59
|
+
width: "14",
|
60
|
+
height: "14"
|
61
|
+
}),
|
62
|
+
D
|
63
|
+
])
|
64
|
+
]),
|
65
|
+
_: 1
|
66
|
+
}),
|
67
|
+
e(c, { type: "danger" }, {
|
68
|
+
default: o(() => [
|
69
|
+
S
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
})
|
73
|
+
]),
|
74
|
+
handler: o(() => [
|
75
|
+
t("div", T, [
|
76
|
+
e(n, {
|
77
|
+
name: "sys-button-see",
|
78
|
+
tips: "查看"
|
79
|
+
}),
|
80
|
+
e(n, {
|
81
|
+
name: "sys-button-edit",
|
82
|
+
tips: "编辑"
|
83
|
+
}),
|
84
|
+
e(n, {
|
85
|
+
name: "sys-button-jump",
|
86
|
+
tips: "跳转",
|
87
|
+
"class-name": "text-hy-main"
|
88
|
+
}),
|
89
|
+
e(n, {
|
90
|
+
name: "sys-button-delete",
|
91
|
+
tips: "删除",
|
92
|
+
class: "hover:shadow-hy-danger hover:!border-hy-danger/70",
|
93
|
+
"class-name": "text-hy-text-danger"
|
94
|
+
})
|
95
|
+
])
|
96
|
+
]),
|
97
|
+
_: 2
|
98
|
+
}, [
|
99
|
+
void 0
|
100
|
+
]), 1040)
|
101
|
+
])
|
102
|
+
], 64);
|
103
|
+
};
|
104
|
+
}
|
105
|
+
});
|
106
|
+
export {
|
107
|
+
H as default
|
108
|
+
};
|
package/dist/index.d.ts
CHANGED
@@ -817,8 +817,8 @@ onChange?: (...args: any[]) => any;
|
|
817
817
|
}, {
|
818
818
|
className: string;
|
819
819
|
size: string;
|
820
|
-
placeholder: string;
|
821
820
|
disabled: boolean;
|
821
|
+
placeholder: string;
|
822
822
|
contentType: boolean;
|
823
823
|
}, {}>, {
|
824
824
|
default?(_: {}): any;
|
@@ -893,15 +893,15 @@ size: string;
|
|
893
893
|
optionLabel: string;
|
894
894
|
optionValue: string;
|
895
895
|
modelValue: any;
|
896
|
+
placeholder: string;
|
897
|
+
clearable: boolean;
|
896
898
|
requestParams: any;
|
897
899
|
controller: string;
|
898
900
|
filterDataList: any[];
|
899
901
|
customDataList: any[];
|
900
902
|
selectedDataList: any[];
|
901
903
|
requestimmediately: boolean;
|
902
|
-
clearable: boolean;
|
903
904
|
multiple: boolean;
|
904
|
-
placeholder: string;
|
905
905
|
}, {}>;
|
906
906
|
|
907
907
|
export declare const HySelectDevice: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<TreeCpnsProps & Props>, {
|
@@ -953,8 +953,8 @@ onOnCurrentDelete?: (...args: any[]) => any;
|
|
953
953
|
onOnSelectedData?: (...args: any[]) => any;
|
954
954
|
onOnCurrentDepartment?: (...args: any[]) => any;
|
955
955
|
}, {
|
956
|
-
getData: () => any;
|
957
956
|
defaultGetData: boolean;
|
957
|
+
getData: () => any;
|
958
958
|
checkStrictly: boolean;
|
959
959
|
itemSize: number;
|
960
960
|
defaultCheckedKeys: string[];
|
@@ -1000,12 +1000,14 @@ childrenProps: () => {};
|
|
1000
1000
|
showFooter: boolean;
|
1001
1001
|
reqUrl: string;
|
1002
1002
|
customUrl: any;
|
1003
|
+
showHeader: () => true;
|
1003
1004
|
cellStyle: () => {};
|
1004
1005
|
headerCellStyle: () => {};
|
1005
1006
|
disableIds: () => any[];
|
1006
1007
|
searchForm: () => {};
|
1007
1008
|
selectKey: string;
|
1008
1009
|
paginationLayout: string;
|
1010
|
+
pagerCount: number;
|
1009
1011
|
treeProps: () => {};
|
1010
1012
|
}>, {
|
1011
1013
|
getTableData: typeof getTableData;
|
@@ -1032,12 +1034,14 @@ childrenProps: () => {};
|
|
1032
1034
|
showFooter: boolean;
|
1033
1035
|
reqUrl: string;
|
1034
1036
|
customUrl: any;
|
1037
|
+
showHeader: () => true;
|
1035
1038
|
cellStyle: () => {};
|
1036
1039
|
headerCellStyle: () => {};
|
1037
1040
|
disableIds: () => any[];
|
1038
1041
|
searchForm: () => {};
|
1039
1042
|
selectKey: string;
|
1040
1043
|
paginationLayout: string;
|
1044
|
+
pagerCount: number;
|
1041
1045
|
treeProps: () => {};
|
1042
1046
|
}>>> & {
|
1043
1047
|
onGetTotal?: (...args: any[]) => any;
|
@@ -1268,6 +1272,7 @@ declare interface TableProps {
|
|
1268
1272
|
showFooter?: boolean;
|
1269
1273
|
reqUrl: string;
|
1270
1274
|
customUrl?: string;
|
1275
|
+
showHeader?: boolean;
|
1271
1276
|
cellStyle?: () => any;
|
1272
1277
|
headerCellStyle?: () => any;
|
1273
1278
|
disableIds?: [];
|
@@ -1275,6 +1280,7 @@ declare interface TableProps {
|
|
1275
1280
|
searchKey?: string;
|
1276
1281
|
selectKey?: string;
|
1277
1282
|
paginationLayout?: string;
|
1283
|
+
pagerCount?: number;
|
1278
1284
|
treeProps?: {
|
1279
1285
|
hasChildren?: string;
|
1280
1286
|
children?: string;
|