@airpower/web 0.2.69 → 0.2.70
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/components/button/Button.vue.d.ts +15 -0
- package/dist/main.js +11 -3
- package/package.json +1 -1
|
@@ -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" : "
|
|
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")
|
|
@@ -18325,7 +18332,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18325
18332
|
key: 1,
|
|
18326
18333
|
disabled: unref(isEditDisabled)(getRowEntity(scope)),
|
|
18327
18334
|
underline: false,
|
|
18328
|
-
type: "primary",
|
|
18329
18335
|
onClick: ($event) => emits("edit", getRowEntity(scope))
|
|
18330
18336
|
}, {
|
|
18331
18337
|
default: withCtx(() => [
|
|
@@ -18349,6 +18355,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18349
18355
|
key: 0,
|
|
18350
18356
|
disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
|
|
18351
18357
|
underline: false,
|
|
18358
|
+
type: "success",
|
|
18352
18359
|
onClick: ($event) => emits("enable", getRowEntity(scope))
|
|
18353
18360
|
}, {
|
|
18354
18361
|
default: withCtx(() => [
|
|
@@ -18359,6 +18366,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18359
18366
|
key: 1,
|
|
18360
18367
|
disabled: unref(isDisableChangeStatus)(getRowEntity(scope)),
|
|
18361
18368
|
underline: false,
|
|
18369
|
+
type: "warning",
|
|
18362
18370
|
onClick: ($event) => emits("disable", getRowEntity(scope))
|
|
18363
18371
|
}, {
|
|
18364
18372
|
default: withCtx(() => [
|