command-center-v3-common 0.0.29 → 0.0.30

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/dist/index.d.ts CHANGED
@@ -710,11 +710,7 @@ declare function getCropBlob(): Promise<Blob>;
710
710
 
711
711
  declare function getCropData(): Promise<string>;
712
712
 
713
- declare function getSearchForm(): {
714
- query: any;
715
- size: number;
716
- page: number;
717
- };
713
+ declare function getSearchForm(): any;
718
714
 
719
715
  declare function getTableData(queryInfo?: any): Promise<void>;
720
716
 
@@ -817,8 +813,8 @@ onChange?: (...args: any[]) => any;
817
813
  }, {
818
814
  className: string;
819
815
  size: string;
820
- disabled: boolean;
821
816
  placeholder: string;
817
+ disabled: boolean;
822
818
  contentType: boolean;
823
819
  }, {}>, {
824
820
  default?(_: {}): any;
@@ -893,15 +889,15 @@ size: string;
893
889
  optionLabel: string;
894
890
  optionValue: string;
895
891
  modelValue: any;
896
- placeholder: string;
897
- clearable: boolean;
898
892
  requestParams: any;
899
893
  controller: string;
900
894
  filterDataList: any[];
901
895
  customDataList: any[];
902
896
  selectedDataList: any[];
903
897
  requestimmediately: boolean;
898
+ clearable: boolean;
904
899
  multiple: boolean;
900
+ placeholder: string;
905
901
  }, {}>;
906
902
 
907
903
  export declare const HySelectDevice: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<TreeCpnsProps & Props>, {
@@ -953,8 +949,8 @@ onOnCurrentDelete?: (...args: any[]) => any;
953
949
  onOnSelectedData?: (...args: any[]) => any;
954
950
  onOnCurrentDepartment?: (...args: any[]) => any;
955
951
  }, {
956
- defaultGetData: boolean;
957
952
  getData: () => any;
953
+ defaultGetData: boolean;
958
954
  checkStrictly: boolean;
959
955
  itemSize: number;
960
956
  defaultCheckedKeys: string[];
@@ -1276,7 +1272,7 @@ declare interface TableProps {
1276
1272
  cellStyle?: () => any;
1277
1273
  headerCellStyle?: () => any;
1278
1274
  disableIds?: [];
1279
- searchForm?: object;
1275
+ searchForm?: any;
1280
1276
  searchKey?: string;
1281
1277
  selectKey?: string;
1282
1278
  paginationLayout?: string;
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.29",
4
+ "version": "0.0.30",
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",
@@ -1,108 +0,0 @@
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
- };