command-center-v3-common 0.0.23 → 0.0.25

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;
@@ -892,14 +892,14 @@ onVisibleChange?: (...args: any[]) => any;
892
892
  size: string;
893
893
  optionLabel: string;
894
894
  optionValue: string;
895
- placeholder: string;
896
895
  modelValue: any;
896
+ placeholder: string;
897
897
  clearable: boolean;
898
- selectedDataList: any[];
899
898
  requestParams: any;
900
899
  controller: string;
901
900
  filterDataList: any[];
902
901
  customDataList: any[];
902
+ selectedDataList: any[];
903
903
  requestimmediately: boolean;
904
904
  multiple: boolean;
905
905
  }, {}>;
@@ -926,10 +926,10 @@ setCheckedKeys: (keys: string[]) => void;
926
926
  setSelectedList: (dataList: any[]) => void;
927
927
  setChecked: (item: any, type: boolean) => void;
928
928
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
929
- onCurrentDepartment: (...args: any[]) => void;
930
929
  onCurrent: (...args: any[]) => void;
931
930
  onCurrentDelete: (...args: any[]) => void;
932
931
  onSelectedData: (...args: any[]) => void;
932
+ onCurrentDepartment: (...args: any[]) => void;
933
933
  }, string, PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<TreeCpnsProps & Props>, {
934
934
  highlightSelected: boolean;
935
935
  getData: FunctionConstructor;
@@ -948,24 +948,24 @@ defaultCheckedKeys: () => any[];
948
948
  disableDeviceList: () => any[];
949
949
  returnDisableDevice: boolean;
950
950
  }>>> & {
951
- onOnCurrentDepartment?: (...args: any[]) => any;
952
951
  onOnCurrent?: (...args: any[]) => any;
953
952
  onOnCurrentDelete?: (...args: any[]) => any;
954
953
  onOnSelectedData?: (...args: any[]) => any;
954
+ onOnCurrentDepartment?: (...args: any[]) => any;
955
955
  }, {
956
- hideDevice: boolean;
957
- hideOrgNoDevice: boolean;
956
+ defaultGetData: boolean;
957
+ getData: () => any;
958
+ checkStrictly: boolean;
958
959
  itemSize: number;
959
960
  defaultCheckedKeys: string[];
960
961
  highlightSelected: boolean;
961
- checkStrictly: boolean;
962
962
  showCheckbox: boolean;
963
963
  parentCheckbox: boolean;
964
964
  showRadio: boolean;
965
965
  showRadioButton: boolean;
966
966
  showCheckboxButton: boolean;
967
- getData: () => any;
968
- defaultGetData: boolean;
967
+ hideDevice: boolean;
968
+ hideOrgNoDevice: boolean;
969
969
  showOnlineOnly: boolean;
970
970
  disableDeviceList: Device[];
971
971
  returnDisableDevice: boolean;
@@ -1000,6 +1000,7 @@ 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[];
@@ -1032,6 +1033,7 @@ childrenProps: () => {};
1032
1033
  showFooter: boolean;
1033
1034
  reqUrl: string;
1034
1035
  customUrl: any;
1036
+ showHeader: () => true;
1035
1037
  cellStyle: () => {};
1036
1038
  headerCellStyle: () => {};
1037
1039
  disableIds: () => any[];
@@ -1268,6 +1270,7 @@ declare interface TableProps {
1268
1270
  showFooter?: boolean;
1269
1271
  reqUrl: string;
1270
1272
  customUrl?: string;
1273
+ showHeader?: boolean;
1271
1274
  cellStyle?: () => any;
1272
1275
  headerCellStyle?: () => any;
1273
1276
  disableIds?: [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "command-center-v3-common",
3
3
  "type": "module",
4
- "version": "0.0.23",
4
+ "version": "0.0.25",
5
5
  "main": "dist/command-center-v3-common.js",
6
6
  "module": "dist/command-center-v3-common.umd.cjs",
7
7
  "types": "dist/index.d.ts",