@airpower/web 0.2.69 → 0.2.71

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.
@@ -46,6 +46,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
46
46
  type: BooleanConstructor;
47
47
  default: boolean;
48
48
  };
49
+ /**
50
+ * # 是否成功按钮
51
+ */
52
+ success: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
49
56
  /**
50
57
  * # 是否禁用按钮
51
58
  * 如不禁用,且传入了 `permission` 则按权限判断是否禁用 否则不禁用
@@ -97,6 +104,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
97
104
  type: BooleanConstructor;
98
105
  default: boolean;
99
106
  };
107
+ /**
108
+ * # 是否成功按钮
109
+ */
110
+ success: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
100
114
  /**
101
115
  * # 是否禁用按钮
102
116
  * 如不禁用,且传入了 `permission` 则按权限判断是否禁用 否则不禁用
@@ -118,6 +132,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
118
132
  primary: boolean;
119
133
  danger: boolean;
120
134
  warning: boolean;
135
+ success: boolean;
121
136
  disabled: boolean;
122
137
  icon: ButtonIcon;
123
138
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
package/dist/main.js CHANGED
@@ -1257,6 +1257,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1257
1257
  type: Boolean,
1258
1258
  default: false
1259
1259
  },
1260
+ /**
1261
+ * # 是否成功按钮
1262
+ */
1263
+ success: {
1264
+ type: Boolean,
1265
+ default: false
1266
+ },
1260
1267
  /**
1261
1268
  * # 是否禁用按钮
1262
1269
  * 如不禁用,且传入了 `permission` 则按权限判断是否禁用 否则不禁用
@@ -1321,7 +1328,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1321
1328
  return __props.link ? (openBlock(), createBlock(_component_ElLink, mergeProps({
1322
1329
  key: 0,
1323
1330
  disabled: isDisabled.value,
1324
- type: __props.danger ? "danger" : __props.warning ? "warning" : __props.primary ? "primary" : "info",
1331
+ type: __props.danger ? "danger" : __props.warning ? "warning" : __props.primary ? "primary" : __props.success ? "success" : "default",
1325
1332
  underline: false
1326
1333
  }, _ctx.$attrs, toHandlers(_ctx.$attrs)), {
1327
1334
  default: withCtx(() => [
@@ -1332,7 +1339,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1332
1339
  key: 1,
1333
1340
  disabled: isDisabled.value,
1334
1341
  icon: icon.value,
1335
- type: __props.danger ? "danger" : __props.warning ? "warning" : __props.primary ? "primary" : "default"
1342
+ type: __props.danger ? "danger" : __props.warning ? "warning" : __props.primary ? "primary" : __props.success ? "success" : "default"
1336
1343
  }, _ctx.$attrs, toHandlers(_ctx.$attrs)), {
1337
1344
  default: withCtx(() => [
1338
1345
  renderSlot(_ctx.$slots, "default")
@@ -17389,6 +17396,7 @@ function useTableButton(params) {
17389
17396
  return disableEdit ? disableEdit(row) : false;
17390
17397
  }
17391
17398
  function isDetailDisabled(row) {
17399
+ console.warn(`[ATable] 详情权限 (${detailPermission})`);
17392
17400
  if (!hasPermission(detailPermission)) {
17393
17401
  return true;
17394
17402
  }
@@ -18325,7 +18333,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
18325
18333
  key: 1,
18326
18334
  disabled: unref(isEditDisabled)(getRowEntity(scope)),
18327
18335
  underline: false,
18328
- type: "primary",
18329
18336
  onClick: ($event) => emits("edit", getRowEntity(scope))
18330
18337
  }, {
18331
18338
  default: withCtx(() => [
@@ -18349,6 +18356,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
18349
18356
  key: 0,
18350
18357
  disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
18351
18358
  underline: false,
18359
+ type: "success",
18352
18360
  onClick: ($event) => emits("enable", getRowEntity(scope))
18353
18361
  }, {
18354
18362
  default: withCtx(() => [
@@ -18359,6 +18367,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
18359
18367
  key: 1,
18360
18368
  disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
18361
18369
  underline: false,
18370
+ type: "warning",
18362
18371
  onClick: ($event) => emits("disable", getRowEntity(scope))
18363
18372
  }, {
18364
18373
  default: withCtx(() => [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "0.2.69",
4
+ "version": "0.2.71",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",