@aplus-frontend/ui 0.1.23 → 0.1.25
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/es/index.mjs +86 -80
- package/es/src/ap-download/ap-download.vue.d.ts +0 -3
- package/es/src/ap-download/ap-download.vue.mjs +10 -10
- package/es/src/ap-field/number/index.vue.mjs +20 -19
- package/es/src/ap-form/ap-form-item.vue.mjs +27 -25
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +18 -18
- package/es/src/ap-form/interface.d.ts +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.mjs +1 -0
- package/es/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
- package/es/src/ap-layout/ApInfoLayout.vue.mjs +41 -0
- package/es/src/ap-layout/ApInfoLayout.vue2.mjs +4 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +4 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +42 -0
- package/es/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
- package/es/src/ap-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +4 -0
- package/es/src/ap-layout/index.d.ts +2 -1
- package/es/src/ap-layout/index.mjs +2 -1
- package/es/src/ap-layout/interface.d.ts +8 -2
- package/es/src/ap-layout/interface.mjs +1 -0
- package/es/src/ap-layout/style/ap-info-layout.css +17 -0
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.d.ts +97 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +82 -0
- package/es/src/business/ap-attachment/constans.d.ts +44 -0
- package/es/src/business/ap-attachment/constans.mjs +42 -0
- package/es/src/business/ap-attachment/index.d.ts +3 -0
- package/es/src/business/ap-attachment/interface.d.ts +13 -0
- package/es/src/business/ap-attachment/style.css +62 -0
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +2 -0
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +37 -24
- package/es/src/business/ap-input-radio/interface.d.ts +9 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
- package/es/src/business/ap-ladder/ApLadder.vue.mjs +4 -0
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +146 -0
- package/es/src/business/ap-ladder/interface.d.ts +92 -0
- package/es/src/business/ap-ladder/style.css +56 -0
- package/es/src/business/hooks/index.d.ts +2 -0
- package/es/src/business/hooks/index.mjs +6 -0
- package/es/src/business/hooks/usePageListApTable.d.ts +46 -0
- package/es/src/business/hooks/usePageListApTable.mjs +68 -0
- package/es/src/business/hooks/useTableRefresh.d.ts +18 -0
- package/es/src/business/hooks/useTableRefresh.mjs +16 -0
- package/es/src/business/index.d.ts +835 -5
- package/es/src/business/index.mjs +34 -28
- package/es/src/components.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.mjs +80 -77
- package/es/src/editable-table/hooks/use-get-columns.mjs +30 -30
- package/es/src/editable-table/interface.d.ts +2 -2
- package/es/src/index.mjs +219 -213
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +8 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/es/src/theme/ap-attachment/ap-attachment.css +62 -0
- package/es/src/theme/ap-ladder/ap-ladder.css +56 -0
- package/es/src/theme/ap-layout/ap-info-layout.css +17 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-download/ap-download.vue.d.ts +0 -3
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +2 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
- package/lib/src/ap-layout/ApInfoLayout.vue.js +1 -0
- package/lib/src/ap-layout/ApInfoLayout.vue2.js +1 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +1 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -0
- package/lib/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
- package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue2.js → ap-info-layout-aplus/ap-info-layout.vue.js} +1 -1
- package/lib/src/ap-layout/index.d.ts +2 -1
- package/lib/src/ap-layout/index.js +1 -1
- package/lib/src/ap-layout/interface.d.ts +8 -2
- package/lib/src/ap-layout/interface.js +1 -0
- package/lib/src/ap-layout/style/ap-info-layout.css +17 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +97 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -0
- package/lib/src/business/ap-attachment/constans.d.ts +44 -0
- package/lib/src/business/ap-attachment/constans.js +1 -0
- package/lib/src/business/ap-attachment/index.d.ts +3 -0
- package/lib/src/business/ap-attachment/interface.d.ts +13 -0
- package/lib/src/business/ap-attachment/style.css +62 -0
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +2 -0
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/interface.d.ts +9 -2
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
- package/lib/src/business/ap-ladder/ApLadder.vue.js +1 -0
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -0
- package/lib/src/business/ap-ladder/interface.d.ts +92 -0
- package/lib/src/business/ap-ladder/style.css +56 -0
- package/lib/src/business/hooks/index.d.ts +2 -0
- package/lib/src/business/hooks/index.js +1 -0
- package/lib/src/business/hooks/usePageListApTable.d.ts +46 -0
- package/lib/src/business/hooks/usePageListApTable.js +1 -0
- package/lib/src/business/hooks/useTableRefresh.d.ts +18 -0
- package/lib/src/business/hooks/useTableRefresh.js +1 -0
- package/lib/src/business/index.d.ts +835 -5
- package/lib/src/business/index.js +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/interface.d.ts +2 -2
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +8 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/lib/src/theme/ap-attachment/ap-attachment.css +62 -0
- package/lib/src/theme/ap-ladder/ap-ladder.css +56 -0
- package/lib/src/theme/ap-layout/ap-info-layout.css +17 -0
- package/package.json +2 -2
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +0 -4
- /package/es/src/ap-layout/{ap-info-layout/ap-info-layout.vue.mjs → ap-info-layout-aplus/ap-info-layout.vue2.mjs} +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.mjs +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.mjs +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
- /package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue.js → ap-info-layout-aplus/ap-info-layout.vue2.js} +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.js +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.js +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* Tooltip 需要的属性
|
|
5
|
+
*/
|
|
6
|
+
export type TooltipNeedProps = Required<Pick<TooltipProps, 'title' | 'align' | 'arrowPointAtCenter' | 'arrow' | 'autoAdjustOverflow' | 'color' | 'destroyTooltipOnHide' | 'getPopupContainer' | 'mouseEnterDelay' | 'mouseLeaveDelay' | 'overlayClassName' | 'overlayStyle' | 'overlayInnerStyle' | 'placement' | 'trigger'>>;
|
|
7
|
+
/**
|
|
8
|
+
* 健值对
|
|
9
|
+
*/
|
|
10
|
+
export interface ApLadderLabelValue {
|
|
11
|
+
/**
|
|
12
|
+
* 健名称
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/**
|
|
16
|
+
* 值
|
|
17
|
+
*/
|
|
18
|
+
value: string | number | undefined | null;
|
|
19
|
+
/**
|
|
20
|
+
* 自定义单位
|
|
21
|
+
*/
|
|
22
|
+
unit?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 自定义单位颜色
|
|
25
|
+
*/
|
|
26
|
+
unitColor?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 自定义健颜色
|
|
29
|
+
*/
|
|
30
|
+
labelColor?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 自定义值颜色
|
|
33
|
+
*/
|
|
34
|
+
valueColor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 跳转第三方链接
|
|
37
|
+
*/
|
|
38
|
+
link?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 自定义链接颜色
|
|
41
|
+
*/
|
|
42
|
+
linkColor?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* ApLadder Props 属性类型声明
|
|
46
|
+
*/
|
|
47
|
+
export interface ApLadderProps {
|
|
48
|
+
/**
|
|
49
|
+
* 重要信息
|
|
50
|
+
* @description 如 操作人名称、供应商名称...
|
|
51
|
+
*/
|
|
52
|
+
major: string;
|
|
53
|
+
/**
|
|
54
|
+
* 次要信息
|
|
55
|
+
* @description 如 操作人邮箱、供应商编码...
|
|
56
|
+
*/
|
|
57
|
+
minor: string;
|
|
58
|
+
/**
|
|
59
|
+
* 自定义重要信息颜色
|
|
60
|
+
*/
|
|
61
|
+
majorColor: string;
|
|
62
|
+
/**
|
|
63
|
+
* 自定义次要信息颜色
|
|
64
|
+
*/
|
|
65
|
+
minorColor: string;
|
|
66
|
+
/**
|
|
67
|
+
* 布局方式
|
|
68
|
+
* - `vertical` 垂直布局
|
|
69
|
+
* - `horizontal` 水平布局
|
|
70
|
+
* @default `vertical`
|
|
71
|
+
*/
|
|
72
|
+
layout: 'vertical' | 'horizontal';
|
|
73
|
+
/**
|
|
74
|
+
* 是否展示气泡
|
|
75
|
+
* @description 默认展示
|
|
76
|
+
*/
|
|
77
|
+
tooltip: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* 健值对 - 数组展示
|
|
80
|
+
*/
|
|
81
|
+
labelValues: Array<ApLadderLabelValue>;
|
|
82
|
+
/**
|
|
83
|
+
* 扩展 Tooltip
|
|
84
|
+
*/
|
|
85
|
+
tooltipProps: TooltipNeedProps;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* ApLadder Slots 类型声明
|
|
89
|
+
*/
|
|
90
|
+
export interface ApLadderSlots {
|
|
91
|
+
title?: VNode;
|
|
92
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.aplus-ap-ladder {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: inherit;
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
/** 自动溢出省略 */
|
|
6
|
+
/** Aplus端样式 */
|
|
7
|
+
/** Admin端样式 */
|
|
8
|
+
}
|
|
9
|
+
.aplus-ap-ladder__ellipsis {
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
text-overflow: ellipsis;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
word-break: break-all;
|
|
14
|
+
}
|
|
15
|
+
.aplus-ap-ladder__major {
|
|
16
|
+
line-height: 22px;
|
|
17
|
+
color: #182948;
|
|
18
|
+
}
|
|
19
|
+
.aplus-ap-ladder__minor {
|
|
20
|
+
line-height: 22px;
|
|
21
|
+
color: #8896B0;
|
|
22
|
+
}
|
|
23
|
+
.aplus-ap-ladder__label {
|
|
24
|
+
color: #8896B0;
|
|
25
|
+
word-break: break-all;
|
|
26
|
+
}
|
|
27
|
+
.aplus-ap-ladder__value {
|
|
28
|
+
color: #182948;
|
|
29
|
+
word-break: break-all;
|
|
30
|
+
}
|
|
31
|
+
.aplus-ap-ladder__unit {
|
|
32
|
+
margin-left: 5px;
|
|
33
|
+
color: #182948;
|
|
34
|
+
}
|
|
35
|
+
.aplus-ap-ladder__link {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
color: #0070ff;
|
|
38
|
+
}
|
|
39
|
+
.aplus-ap-ladder--admin .aplus-ap-ladder__major {
|
|
40
|
+
color: #333333;
|
|
41
|
+
}
|
|
42
|
+
.aplus-ap-ladder--admin .aplus-ap-ladder__minor {
|
|
43
|
+
color: #999999;
|
|
44
|
+
}
|
|
45
|
+
.aplus-ap-ladder--admin .aplus-ap-ladder__label {
|
|
46
|
+
color: #999999;
|
|
47
|
+
}
|
|
48
|
+
.aplus-ap-ladder--admin .aplus-ap-ladder__value {
|
|
49
|
+
color: #333333;
|
|
50
|
+
}
|
|
51
|
+
.aplus-ap-ladder--admin .aplus-ap-ladder__unit {
|
|
52
|
+
color: #333333;
|
|
53
|
+
}
|
|
54
|
+
.aplus-ap-ladder--admin .aplus-ap-ladder__link {
|
|
55
|
+
color: #34b77c;
|
|
56
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ApTableProps } from '../../';
|
|
2
|
+
import { Recordable } from '../../type';
|
|
3
|
+
export interface UsePageListApTable extends ApTableProps {
|
|
4
|
+
/** 是否显示默认的行选择配置
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
isShowRowSelection?: boolean;
|
|
8
|
+
/** 转化ApTable查询参数 */
|
|
9
|
+
transformSearchFormValues?: (values: any) => any;
|
|
10
|
+
/** ApTable数据接口 */
|
|
11
|
+
api?(record: any): Promise<any>;
|
|
12
|
+
/** 发起请求的时候情况行选中
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
clearSelectionOnRequest?: boolean;
|
|
16
|
+
/** 用于覆盖默认的class */
|
|
17
|
+
class?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 集成了列表页面的ApTable的默认配置
|
|
21
|
+
* 表格header吸顶效果,表格可拖动,表格行选择
|
|
22
|
+
* @version 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
export declare function usePageListApTable(props?: UsePageListApTable): [ApTableProps, {
|
|
25
|
+
reload: () => void;
|
|
26
|
+
reset: () => void;
|
|
27
|
+
getSearchFormValues: () => any;
|
|
28
|
+
getApTableInstance: () => {
|
|
29
|
+
submit: () => void;
|
|
30
|
+
reset: () => void;
|
|
31
|
+
setSearchFormValues: (fields: Partial< Recordable>) => void;
|
|
32
|
+
getSearchFormValues: () => Partial< Recordable>;
|
|
33
|
+
dataSource: any;
|
|
34
|
+
rowSelection?: {
|
|
35
|
+
select: (item: any) => void;
|
|
36
|
+
selectedRows: any[];
|
|
37
|
+
unSelect: (item: any) => void;
|
|
38
|
+
isSelected: (item: any) => boolean;
|
|
39
|
+
selectAll: () => void;
|
|
40
|
+
unSelectAll: () => void;
|
|
41
|
+
clearAll: () => void;
|
|
42
|
+
toggleSelect: (item: any) => void;
|
|
43
|
+
} | undefined;
|
|
44
|
+
} | null;
|
|
45
|
+
clearSelection: () => void;
|
|
46
|
+
}];
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { merge as m } from "lodash-unified";
|
|
2
|
+
import { ref as d } from "vue";
|
|
3
|
+
function y(n) {
|
|
4
|
+
const r = d(null), {
|
|
5
|
+
isShowRowSelection: c = !0,
|
|
6
|
+
clearSelectionOnRequest: u = !0,
|
|
7
|
+
transformSearchFormValues: o,
|
|
8
|
+
api: a,
|
|
9
|
+
...i
|
|
10
|
+
} = n || {}, l = () => {
|
|
11
|
+
var e, t;
|
|
12
|
+
(t = (e = r.value) == null ? void 0 : e.rowSelection) == null || t.clearAll();
|
|
13
|
+
};
|
|
14
|
+
return [m(
|
|
15
|
+
{
|
|
16
|
+
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
17
|
+
scroll: { x: "100%", y: "100%" },
|
|
18
|
+
tableLayout: "fixed",
|
|
19
|
+
columnResizable: !0,
|
|
20
|
+
// 表格header吸顶效果
|
|
21
|
+
class: "ap-table--sticky",
|
|
22
|
+
request: a ? async (e) => {
|
|
23
|
+
const t = o ? o(e) : e;
|
|
24
|
+
try {
|
|
25
|
+
if (!a) throw new Error("api is not defined");
|
|
26
|
+
const { records: s, total: p } = await a(t);
|
|
27
|
+
return u && l(), {
|
|
28
|
+
data: s,
|
|
29
|
+
total: p
|
|
30
|
+
};
|
|
31
|
+
} catch (s) {
|
|
32
|
+
return console.error(s), {
|
|
33
|
+
data: [],
|
|
34
|
+
total: 0
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
} : void 0,
|
|
38
|
+
rowSelection: c ? {
|
|
39
|
+
mode: "internal",
|
|
40
|
+
fixed: "left",
|
|
41
|
+
columnWidth: 50
|
|
42
|
+
} : void 0,
|
|
43
|
+
ref(e) {
|
|
44
|
+
r.value = e;
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
i
|
|
48
|
+
), {
|
|
49
|
+
reload: () => {
|
|
50
|
+
var e;
|
|
51
|
+
(e = r.value) == null || e.submit();
|
|
52
|
+
},
|
|
53
|
+
reset: () => {
|
|
54
|
+
var e;
|
|
55
|
+
(e = r.value) == null || e.reset();
|
|
56
|
+
},
|
|
57
|
+
getSearchFormValues: () => {
|
|
58
|
+
var t;
|
|
59
|
+
const e = ((t = r.value) == null ? void 0 : t.getSearchFormValues()) || {};
|
|
60
|
+
return o ? o(e) : e;
|
|
61
|
+
},
|
|
62
|
+
getApTableInstance: () => r.value,
|
|
63
|
+
clearSelection: l
|
|
64
|
+
}];
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
y as usePageListApTable
|
|
68
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ApTableExpose } from '../..';
|
|
3
|
+
interface UseTableRefreshOption {
|
|
4
|
+
/**
|
|
5
|
+
* apTable实例
|
|
6
|
+
*/
|
|
7
|
+
apTableRef?: Ref<ApTableExpose | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* 刷新类型,reset:重置,submit:提交
|
|
10
|
+
*/
|
|
11
|
+
refreskType?: 'reset' | 'submit';
|
|
12
|
+
/**
|
|
13
|
+
* 刷新前执行,返回false则不执行
|
|
14
|
+
*/
|
|
15
|
+
refreshBefore?: () => boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function useTableRefresh(option?: UseTableRefreshOption): void;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { onActivated as l } from "vue";
|
|
2
|
+
function c(e) {
|
|
3
|
+
const a = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreskType) ? e == null ? void 0 : e.refreskType : "submit") ?? "submit", r = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
|
|
4
|
+
let s = !0;
|
|
5
|
+
l(() => {
|
|
6
|
+
var u, f;
|
|
7
|
+
if (s) {
|
|
8
|
+
s = !1;
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
r != null && r() && ((f = (u = e == null ? void 0 : e.apTableRef) == null ? void 0 : u.value) == null || f[a]());
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
c as useTableRefresh
|
|
16
|
+
};
|