cosey 0.4.8 → 0.4.10

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.
@@ -26,6 +26,10 @@ declare const _TableAction: {
26
26
  type: BooleanConstructor;
27
27
  default: boolean;
28
28
  };
29
+ visible: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
29
33
  icon: {
30
34
  type: StringConstructor;
31
35
  };
@@ -125,6 +129,10 @@ declare const _TableAction: {
125
129
  type: BooleanConstructor;
126
130
  default: boolean;
127
131
  };
132
+ visible: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
128
136
  icon: {
129
137
  type: StringConstructor;
130
138
  };
@@ -221,6 +229,10 @@ declare const _TableAction: {
221
229
  type: BooleanConstructor;
222
230
  default: boolean;
223
231
  };
232
+ visible: {
233
+ type: BooleanConstructor;
234
+ default: boolean;
235
+ };
224
236
  icon: {
225
237
  type: StringConstructor;
226
238
  };
@@ -25,6 +25,10 @@ export declare const tableActionItemProps: {
25
25
  type: BooleanConstructor;
26
26
  default: boolean;
27
27
  };
28
+ visible: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
28
32
  icon: {
29
33
  type: StringConstructor;
30
34
  };
@@ -23,6 +23,10 @@ const tableActionItemProps = {
23
23
  type: Boolean,
24
24
  default: false
25
25
  },
26
+ visible: {
27
+ type: Boolean,
28
+ default: true
29
+ },
26
30
  icon: {
27
31
  type: String
28
32
  }
@@ -23,6 +23,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
23
23
  type: BooleanConstructor;
24
24
  default: boolean;
25
25
  };
26
+ visible: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
26
30
  icon: {
27
31
  type: StringConstructor;
28
32
  };
@@ -113,6 +117,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
113
117
  type: BooleanConstructor;
114
118
  default: boolean;
115
119
  };
120
+ visible: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
116
124
  icon: {
117
125
  type: StringConstructor;
118
126
  };
@@ -180,6 +188,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
180
188
  };
181
189
  }>> & Readonly<{}>, {
182
190
  hidden: boolean;
191
+ visible: boolean;
183
192
  round: boolean;
184
193
  dark: boolean;
185
194
  text: boolean;
@@ -25,6 +25,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
25
25
  return omit(props, "icon");
26
26
  });
27
27
  const loading = ref(false);
28
+ const mergedVisible = computed(() => {
29
+ return props.hidden ? false : props.visible;
30
+ });
28
31
  const onConfirm = async (e, confirm) => {
29
32
  loading.value = true;
30
33
  try {
@@ -39,7 +42,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
39
42
  };
40
43
  return (_ctx, _cache) => {
41
44
  const _component_el_popconfirm = resolveComponent("el-popconfirm");
42
- return !_ctx.hidden ? (openBlock(), createElementBlock(Fragment, {
45
+ return mergedVisible.value ? (openBlock(), createElementBlock(Fragment, {
43
46
  key: 0
44
47
  }, [_ctx.popconfirm ? (openBlock(), createBlock(_component_el_popconfirm, normalizeProps(mergeProps({
45
48
  key: 0
@@ -25,6 +25,10 @@ declare const _default: import("vue").DefineComponent<TableActionProps, {}, {},
25
25
  type: BooleanConstructor;
26
26
  default: boolean;
27
27
  };
28
+ visible: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
28
32
  icon: {
29
33
  type: StringConstructor;
30
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",