@airpower/web 0.2.70 → 0.2.72
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.
|
@@ -49,6 +49,11 @@ export declare function useTableButton<E extends RootEntity>(params: {
|
|
|
49
49
|
* @param row 行数据
|
|
50
50
|
*/
|
|
51
51
|
disableEdit: (row: E) => boolean;
|
|
52
|
+
/**
|
|
53
|
+
* ### 禁用详情函数
|
|
54
|
+
* @param row 行数据
|
|
55
|
+
*/
|
|
56
|
+
disableDetail: (row: E) => boolean;
|
|
52
57
|
/**
|
|
53
58
|
* ### 禁用状态切换函数
|
|
54
59
|
* @param row 行数据
|
package/dist/main.js
CHANGED
|
@@ -17361,6 +17361,7 @@ function useTableButton(params) {
|
|
|
17361
17361
|
disableAddRow,
|
|
17362
17362
|
disableDelete,
|
|
17363
17363
|
disableEdit,
|
|
17364
|
+
disableDetail,
|
|
17364
17365
|
disableChangeStatus,
|
|
17365
17366
|
selectable
|
|
17366
17367
|
} = params;
|
|
@@ -17399,7 +17400,7 @@ function useTableButton(params) {
|
|
|
17399
17400
|
if (!hasPermission(detailPermission)) {
|
|
17400
17401
|
return true;
|
|
17401
17402
|
}
|
|
17402
|
-
return
|
|
17403
|
+
return disableDetail ? disableDetail(row) : false;
|
|
17403
17404
|
}
|
|
17404
17405
|
function isDisableChangeStatus(row) {
|
|
17405
17406
|
let permission;
|
|
@@ -17881,6 +17882,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
17881
17882
|
disableAddRow: props.disableAddRow,
|
|
17882
17883
|
disableDelete: props.disableDelete,
|
|
17883
17884
|
disableEdit: props.disableEdit,
|
|
17885
|
+
disableDetail: props.disableDetail,
|
|
17884
17886
|
disableChangeStatus: props.disableChangeStatus,
|
|
17885
17887
|
selectable: props.selectable,
|
|
17886
17888
|
isAddDisabled: props.disableAddRow
|