@aplus-frontend/ui 0.0.2 → 0.0.4
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/src/ap-table/ap-table.vue.d.ts +1 -5
- package/es/src/ap-table/ap-table.vue.mjs +133 -123
- package/es/src/ap-table/components/interface.d.ts +12 -0
- package/es/src/ap-table/components/status/index.vue.d.ts +14 -0
- package/es/src/ap-table/components/status/index.vue.mjs +4 -0
- package/es/src/ap-table/components/status/index.vue2.mjs +17 -0
- package/es/src/ap-table/constants.d.ts +20 -25
- package/es/src/ap-table/constants.mjs +19 -16
- package/es/src/ap-table/interface.d.ts +32 -7
- package/es/src/ap-table/utils.d.ts +204 -2
- package/es/src/ap-table/utils.mjs +87 -40
- package/es/src/ap-tag/style/ap-tag-group.css +1 -0
- package/es/src/ap-tag/style/ap-tag.css +1 -0
- package/es/src/pro-form/components/form-action.vue2.mjs +37 -35
- package/es/src/pro-form/hooks/use-advanced.mjs +45 -45
- package/es/src/pro-table/style/pro-table.css +3 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +104 -49
- package/es/src/theme/antd-global-overwrite/admin/pagination.css +30 -14
- package/es/src/theme/antd-global-overwrite/admin/steps.css +39 -15
- package/es/src/theme/antd-global-overwrite/admin/table.css +35 -20
- package/es/src/theme/antd-global-overwrite/aplus/index.css +110 -53
- package/es/src/theme/antd-global-overwrite/aplus/pagination.css +38 -18
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +37 -15
- package/es/src/theme/antd-global-overwrite/aplus/table.css +35 -20
- package/es/src/theme/ap-tag/ap-tag-group.css +1 -0
- package/es/src/theme/ap-tag/ap-tag.css +1 -0
- package/es/src/theme/pro-table/pro-table.css +3 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -5
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/interface.d.ts +12 -0
- package/lib/src/ap-table/components/status/index.vue.d.ts +14 -0
- package/lib/src/ap-table/components/status/index.vue.js +1 -0
- package/lib/src/ap-table/components/status/index.vue2.js +1 -0
- package/lib/src/ap-table/constants.d.ts +20 -25
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/interface.d.ts +32 -7
- package/lib/src/ap-table/utils.d.ts +204 -2
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/style/ap-tag-group.css +1 -0
- package/lib/src/ap-tag/style/ap-tag.css +1 -0
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/hooks/use-advanced.js +1 -1
- package/lib/src/pro-table/style/pro-table.css +3 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +104 -49
- package/lib/src/theme/antd-global-overwrite/admin/pagination.css +30 -14
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +39 -15
- package/lib/src/theme/antd-global-overwrite/admin/table.css +35 -20
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +110 -53
- package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +38 -18
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +37 -15
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +35 -20
- package/lib/src/theme/ap-tag/ap-tag-group.css +1 -0
- package/lib/src/theme/ap-tag/ap-tag.css +1 -0
- package/lib/src/theme/pro-table/pro-table.css +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
[class$='-basic-table'],
|
|
2
|
+
[class$='-basic-table-form-container'] {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
|
|
7
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
|
|
8
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title,
|
|
9
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title {
|
|
3
10
|
display: flex;
|
|
4
11
|
align-items: center;
|
|
5
12
|
justify-content: space-between;
|
|
@@ -7,15 +14,18 @@
|
|
|
7
14
|
padding: 0 0 10px;
|
|
8
15
|
border: none;
|
|
9
16
|
}
|
|
10
|
-
.ant-table-wrapper .ant-table
|
|
17
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table,
|
|
18
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
|
|
11
19
|
width: 100%;
|
|
12
20
|
overflow-x: hidden;
|
|
13
21
|
border-radius: 0;
|
|
14
22
|
}
|
|
15
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-header
|
|
23
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
24
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
|
|
16
25
|
border-radius: 0;
|
|
17
26
|
}
|
|
18
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th
|
|
27
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th,
|
|
28
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th {
|
|
19
29
|
color: #182948;
|
|
20
30
|
font-weight: 700;
|
|
21
31
|
font-size: 14px;
|
|
@@ -24,18 +34,22 @@
|
|
|
24
34
|
text-transform: none;
|
|
25
35
|
background: #f2f6f9;
|
|
26
36
|
}
|
|
27
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before
|
|
37
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before,
|
|
38
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before {
|
|
28
39
|
display: none;
|
|
29
40
|
width: 0;
|
|
30
41
|
visibility: hidden;
|
|
31
42
|
}
|
|
32
|
-
.ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover
|
|
43
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover,
|
|
44
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover {
|
|
33
45
|
background: #f6f9fa;
|
|
34
46
|
}
|
|
35
|
-
.ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td
|
|
47
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td,
|
|
48
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td {
|
|
36
49
|
background: #f6f9fa;
|
|
37
50
|
}
|
|
38
|
-
.ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td
|
|
51
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td,
|
|
52
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
|
|
39
53
|
color: #182948;
|
|
40
54
|
font-weight: 400;
|
|
41
55
|
font-size: 14px;
|
|
@@ -44,35 +58,36 @@
|
|
|
44
58
|
text-transform: none;
|
|
45
59
|
transition: unset;
|
|
46
60
|
}
|
|
47
|
-
.ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th
|
|
61
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th,
|
|
62
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
|
|
48
63
|
padding: 12px 16px;
|
|
49
64
|
line-height: 22px;
|
|
50
65
|
}
|
|
51
|
-
.ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td
|
|
66
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
|
|
67
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
|
|
52
68
|
border-top: 1px solid;
|
|
53
69
|
border-top-color: transparent;
|
|
54
70
|
}
|
|
55
|
-
.ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell
|
|
71
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell,
|
|
72
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
56
73
|
padding: 12px 16px;
|
|
57
74
|
line-height: 22px;
|
|
58
75
|
}
|
|
59
|
-
.ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th
|
|
76
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th,
|
|
77
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th {
|
|
60
78
|
padding: 10.5px 16px;
|
|
61
79
|
line-height: 18px;
|
|
62
80
|
}
|
|
63
|
-
.ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td
|
|
81
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
|
|
82
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
|
|
64
83
|
border-top: 1px solid;
|
|
65
84
|
border-top-color: transparent;
|
|
66
85
|
}
|
|
67
|
-
.ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell
|
|
86
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell,
|
|
87
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
68
88
|
padding: 10.5px 16px;
|
|
69
89
|
line-height: 18px;
|
|
70
90
|
}
|
|
71
|
-
[class$='-basic-table'],
|
|
72
|
-
[class$='-basic-table-form-container'] {
|
|
73
|
-
width: 100%;
|
|
74
|
-
height: 100%;
|
|
75
|
-
}
|
|
76
91
|
[class$='-basic-table-row__striped'] td {
|
|
77
92
|
background-color: #f6f9fa;
|
|
78
93
|
}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
border-radius: 2px;
|
|
17
17
|
background-color: #fff;
|
|
18
18
|
}
|
|
19
|
+
.aplus-pro-table-form-container .ant-form .ant-form-item {
|
|
20
|
+
margin-bottom: 16px;
|
|
21
|
+
}
|
|
19
22
|
.aplus-pro-table-form-container-no-divide .ant-form {
|
|
20
23
|
border-bottom-left-radius: 0 !important;
|
|
21
24
|
border-bottom-right-radius: 0 !important;
|
|
@@ -140,11 +140,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
140
140
|
};
|
|
141
141
|
align: {
|
|
142
142
|
type: PropType<AlignType>;
|
|
143
|
-
default: AlignType;
|
|
144
|
-
* tips
|
|
145
|
-
* 通常情况下,表格渲染是不需要请求网络数据的,因此这里删掉request,
|
|
146
|
-
* 如果需要做映射,可以在外部发起一次网络请求,然后使用valueEnum设置匹配枚举。
|
|
147
|
-
*/
|
|
143
|
+
default: AlignType;
|
|
148
144
|
};
|
|
149
145
|
builtinPlacements: {
|
|
150
146
|
type: PropType<BuildInPlacements>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("ant-design-vue"),E=require("../ap-form/index.js"),i=require("./constants.js");require("../config-provider/index.js");const O=require("./hooks/use-table-paging.js"),S=require("lodash-unified");require("./style/ap-table.css");const z=require("@ant-design/icons-vue"),d=require("./utils.js"),L=require("../config-provider/hooks/use-locale.js"),D=require("../config-provider/hooks/use-namespace.js"),j=require("../config-provider/hooks/use-global-config.js"),M={key:0},_=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:!1},size:{default:"middle"}},setup(w,{expose:F}){const r=w,{t:R}=L.useLocale(),{e:m,b:c}=D.useNamespace("ap-table"),B=j.useGlobalConfig("uiMode"),p=e.computed(()=>{var o;let a=((o=r.columns)==null?void 0:o.filter(t=>!t.hideInTable))||[];return a=a.map(t=>({...d.apColumnToColumn(t),customRender({value:n,...l}){let s;if(t.customRender)s=t.customRender({value:n,...l,column:t});else{const C=d.getTableRenderType(t),N=i.apTableRenderItemMap[C],V=d.getTableRenderProps(t,{value:n,...l});s=e.createVNode(N,e.mergeProps(V,{mode:"read"}),null)}return q(t,n,s)}})),a}),g=e.computed(()=>{var a,o,t;return((t=(o=(a=r.columns)==null?void 0:a.filter(n=>!n.hideInSearch&&n.dataIndex&&(n.valueType||n.customRenderFormItem)&&!i.noRenderAsFormItemValueList.includes(n.valueType)))==null?void 0:o.sort((n,l)=>{let s=d.getColumnOrder(n.order);return d.getColumnOrder(l.order)-s}))==null?void 0:t.map(n=>{const l=d.updateFormProps(n,d.getFieldProps(n.fieldProps));return{...n,fieldProps:{label:n.title,name:n.dataIndex,...l||{},placeholder:d.getPlaceholder(R,n.valueType,l==null?void 0:l.placeholder)}}}))||[]}),x=e.computed(()=>e.unref(p).filter(a=>a.sorter===!0).map(a=>a.dataIndex)),T=e.computed(()=>e.unref(p).filter(a=>a.filters&&!a.onFilter).map(a=>a.dataIndex)),{formRef:y,submit:b,reset:h,tableProps:u,handleTableChange:P,data:k}=O.useTablePaging({async request(a){var t,n;const o=await((t=r.request)==null?void 0:t.call(r,a));return(n=r.onLoad)==null||n.call(r,(o==null?void 0:o.data)||[]),{data:(o==null?void 0:o.data)||[],total:(o==null?void 0:o.total)||0}},filterFields:e.unref(T),sortFields:e.unref(x),defaultParams:r.params,defaultData:r.defaultData,manual:r.manual,defaultCurrent:r.pagination?r.pagination.defaultCurrent:void 0,defaultPageSize:r.pagination?r.pagination.defaultPageSize:void 0,formatParams:r.beforeSearchSubmit}),I=e.computed(()=>({...r,...e.unref(u),loading:S.isUndefined(r.loading)?e.unref(u).loading:r.loading,pagination:r.pagination===!1?!1:e.unref(u).pagination}));function q(a,o,t){return i.noRenderAsFormItemValueList.includes(a.valueType)?t:a.copyable||a.ellipsis?e.createVNode(f.Typography.Text,{copyable:a.copyable?{text:o,tooltip:!1}:!1,ellipsis:a.ellipsis?{tooltip:o}:!1,content:t},null):t}e.watch(()=>e.unref(k).loading,a=>{var o;(o=r.onLoadingChange)==null||o.call(r,a)});function v(a){var o,t,n;(n=(t=(o=y.value)==null?void 0:o.apForm)==null?void 0:t.setFieldsValue)==null||n.call(t,a)}return F({submit:()=>b(),reset:()=>h(),setSearchFormValues:v}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.card?null:e.unref(c)("wrapper"))},[a.searchForm!==!1&&g.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.card?e.unref(m)("search-wrapper"):null),style:e.normalizeStyle(a.searchFormWrapperStyle)},[e.createVNode(e.unref(E.ApForm).SearchForm,e.mergeProps(a.searchForm||{},{ref_key:"formRef",ref:y,"custom-reset":"",onSubmit:e.unref(b),onReset:e.unref(h),"submit-loading":e.unref(u).loading}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.customRenderFormItem?t.customRenderFormItem(t):e.unref(i.apTableFormItemMap)[t.valueType||"text"]),e.mergeProps({key:t.dataIndex,ref_for:!0},t.fieldProps||{},{span:t.span}),null,16,["span"]))),128))]),_:1},16,["onSubmit","onReset","submit-loading"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(a.card?e.unref(m)("table-wrapper"):null),style:e.normalizeStyle(a.tableWrapperStyle)},[e.renderSlot(a.$slots,"title"),e.createVNode(e.unref(f.Table),e.mergeProps({class:e.unref(B)==="admin"?e.unref(c)("table-admin"):e.unref(c)("table")},I.value,{onChange:e.unref(P),columns:p.value}),e.createSlots({headerCell:e.withCtx(({column:t,title:n})=>[t.tooltip?(e.openBlock(),e.createElementBlock("span",M,[e.createElementVNode("span",null,e.toDisplayString(n),1),e.createVNode(e.unref(f.Tooltip),{title:t.tooltip,placement:"bottom"},{default:e.withCtx(()=>[e.createVNode(e.unref(z.QuestionCircleOutlined),{style:{color:"#0070ff","padding-left":"4px"}})]),_:2},1032,["title"])])):e.createCommentVNode("",!0)]),_:2},[e.renderList(e.unref(S.omit)(a.$slots,"title"),(t,n)=>({name:n,fn:e.withCtx(l=>[e.renderSlot(a.$slots,n,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040,["class","onChange","columns"])],6)],2))}});exports.default=_;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ValueEnum } from '../interface';
|
|
2
|
+
|
|
1
3
|
export type ApTablePaginationProps = {
|
|
2
4
|
/** dataSource的总数量 */
|
|
3
5
|
total?: number;
|
|
@@ -18,3 +20,13 @@ export type ApTableIndexProps = {
|
|
|
18
20
|
*/
|
|
19
21
|
value?: any;
|
|
20
22
|
};
|
|
23
|
+
export type ApTableStatusProps = {
|
|
24
|
+
/**
|
|
25
|
+
* 配置的值到配置的枚举值
|
|
26
|
+
*/
|
|
27
|
+
valueEnum: ValueEnum;
|
|
28
|
+
/**
|
|
29
|
+
* 当前的值
|
|
30
|
+
*/
|
|
31
|
+
value?: any;
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApTableStatusProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<ApTableStatusProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ApTableStatusProps>>>, {}, {}>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
8
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
9
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
10
|
+
} : {
|
|
11
|
+
type: PropType<T[K]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("ant-design-vue"),o=e.defineComponent({name:"_ApTableStatus",__name:"index",props:{valueEnum:{},value:{}},setup(n){const t=n,u=e.computed(()=>t.valueEnum[t.value]);return(a,l)=>u.value?(e.openBlock(),e.createBlock(e.unref(r.Badge),e.normalizeProps(e.mergeProps({key:0},u.value)),null,16)):e.createCommentVNode("",!0)}});exports.default=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApTableValueFields } from './interface';
|
|
1
|
+
import { ApTableValueFields, ValueEnum } from './interface';
|
|
2
2
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, DefineComponent, PublicProps, VNode, RendererNode, RendererElement, CSSProperties, ComputedRef } from 'vue';
|
|
3
3
|
import { ColSize } from 'ant-design-vue/es/grid';
|
|
4
4
|
import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFieldTextAreaProps, ApFieldCheckboxProps, FieldMode } from '../ap-field';
|
|
@@ -2482,9 +2482,6 @@ export declare const apTableFormItemMap: {
|
|
|
2482
2482
|
addonAfter?: any;
|
|
2483
2483
|
prefix?: any;
|
|
2484
2484
|
default?: any;
|
|
2485
|
-
/**
|
|
2486
|
-
* 表格到查询表单的映射
|
|
2487
|
-
*/
|
|
2488
2485
|
upIcon?: any;
|
|
2489
2486
|
downIcon?: any;
|
|
2490
2487
|
}> & {
|
|
@@ -2492,9 +2489,6 @@ export declare const apTableFormItemMap: {
|
|
|
2492
2489
|
addonAfter?: any;
|
|
2493
2490
|
prefix?: any;
|
|
2494
2491
|
default?: any;
|
|
2495
|
-
/**
|
|
2496
|
-
* 表格到查询表单的映射
|
|
2497
|
-
*/
|
|
2498
2492
|
upIcon?: any;
|
|
2499
2493
|
downIcon?: any;
|
|
2500
2494
|
};
|
|
@@ -5305,17 +5299,13 @@ export declare const apTableFormItemMap: {
|
|
|
5305
5299
|
validateFirst: boolean;
|
|
5306
5300
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
5307
5301
|
$slots: Readonly<{
|
|
5308
|
-
addonAfter: any;
|
|
5309
|
-
* 表格到查询表单的映射
|
|
5310
|
-
*/
|
|
5302
|
+
addonAfter: any;
|
|
5311
5303
|
addonBefore: any;
|
|
5312
5304
|
prefix: any;
|
|
5313
5305
|
suffix: any;
|
|
5314
5306
|
clearIcon: any;
|
|
5315
5307
|
}> & {
|
|
5316
|
-
addonAfter: any;
|
|
5317
|
-
* 表格到查询表单的映射
|
|
5318
|
-
*/
|
|
5308
|
+
addonAfter: any;
|
|
5319
5309
|
addonBefore: any;
|
|
5320
5310
|
prefix: any;
|
|
5321
5311
|
suffix: any;
|
|
@@ -9820,9 +9810,6 @@ export declare const apTableRenderItemMap: {
|
|
|
9820
9810
|
default: any;
|
|
9821
9811
|
type: PropType<any>;
|
|
9822
9812
|
};
|
|
9823
|
-
/**
|
|
9824
|
-
* 表格自定义渲染
|
|
9825
|
-
*/
|
|
9826
9813
|
icon: {
|
|
9827
9814
|
default: any;
|
|
9828
9815
|
type: PropType<any>;
|
|
@@ -10193,9 +10180,6 @@ export declare const apTableRenderItemMap: {
|
|
|
10193
10180
|
default: any;
|
|
10194
10181
|
type: PropType<any>;
|
|
10195
10182
|
};
|
|
10196
|
-
/**
|
|
10197
|
-
* 表格自定义渲染
|
|
10198
|
-
*/
|
|
10199
10183
|
icon: {
|
|
10200
10184
|
default: any;
|
|
10201
10185
|
type: PropType<any>;
|
|
@@ -10577,9 +10561,6 @@ export declare const apTableRenderItemMap: {
|
|
|
10577
10561
|
default: any;
|
|
10578
10562
|
type: PropType<any>;
|
|
10579
10563
|
};
|
|
10580
|
-
/**
|
|
10581
|
-
* 表格自定义渲染
|
|
10582
|
-
*/
|
|
10583
10564
|
icon: {
|
|
10584
10565
|
default: any;
|
|
10585
10566
|
type: PropType<any>;
|
|
@@ -10958,9 +10939,6 @@ export declare const apTableRenderItemMap: {
|
|
|
10958
10939
|
default: any;
|
|
10959
10940
|
type: PropType<any>;
|
|
10960
10941
|
};
|
|
10961
|
-
/**
|
|
10962
|
-
* 表格自定义渲染
|
|
10963
|
-
*/
|
|
10964
10942
|
icon: {
|
|
10965
10943
|
default: any;
|
|
10966
10944
|
type: PropType<any>;
|
|
@@ -12333,6 +12311,23 @@ export declare const apTableRenderItemMap: {
|
|
|
12333
12311
|
}>>, {
|
|
12334
12312
|
bordered: boolean;
|
|
12335
12313
|
}, {}>;
|
|
12314
|
+
status: DefineComponent<{
|
|
12315
|
+
valueEnum: {
|
|
12316
|
+
type: PropType<ValueEnum>;
|
|
12317
|
+
required: true;
|
|
12318
|
+
};
|
|
12319
|
+
value: {
|
|
12320
|
+
type: PropType<any>;
|
|
12321
|
+
};
|
|
12322
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
12323
|
+
valueEnum: {
|
|
12324
|
+
type: PropType<ValueEnum>;
|
|
12325
|
+
required: true;
|
|
12326
|
+
};
|
|
12327
|
+
value: {
|
|
12328
|
+
type: PropType<any>;
|
|
12329
|
+
};
|
|
12330
|
+
}>>, {}, {}>;
|
|
12336
12331
|
};
|
|
12337
12332
|
/**
|
|
12338
12333
|
* 不需要渲染到Form表单的valueType字段
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");const e=require("../ap-form/items/date/index.vue.js"),t=require("../ap-form/items/date-range/index.vue.js"),_=require("../ap-form/items/number/index.vue.js"),u=require("../ap-form/items/radio/index.vue.js"),r=require("../ap-form/items/select/index.vue.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../ap-action/index.js");require("../ap-field/index.js");require("../ap-form/index.js");require("./components/index/index.vue.js");require("./components/status/index.vue.js");const e=require("../ap-form/items/date/index.vue.js"),t=require("../ap-form/items/date-range/index.vue.js"),_=require("../ap-form/items/number/index.vue.js"),u=require("../ap-form/items/radio/index.vue.js"),r=require("../ap-form/items/select/index.vue.js"),i=require("../ap-form/items/switch/index.vue.js"),n=require("../ap-form/items/text/index.vue.js"),s=require("../ap-form/items/text-area/index.vue.js"),a=require("../ap-form/items/checkbox/index.vue.js"),p=require("../ap-field/date/index.vue.js"),c=require("../ap-field/date-range/index.vue.js"),d=require("../ap-field/number/index.vue.js"),l=require("../ap-field/radio/index.vue.js"),v=require("../ap-field/select/index.vue.js"),o=require("../ap-field/switch/index.vue.js"),x=require("../ap-field/text/index.vue.js"),g=require("../ap-field/text-area/index.vue.js"),q=require("../ap-field/checkbox/index.vue.js"),f=require("../ap-action/group/index.vue.js"),y=require("./components/index/index.vue2.js"),$=require("./components/status/index.vue2.js"),m={date:e.default,dateRange:t.default,number:_.default,radio:u.default,select:r.default,switch:i.default,text:n.default,textArea:s.default,checkbox:a.default},b={date:p.default,dateRange:c.default,number:d.default,radio:l.default,select:v.default,switch:o.default,text:x.default,textArea:g.default,checkbox:q.default,action:f.default,index:y.default,status:$.default},I=["action","index"];exports.apTableFormItemMap=m;exports.apTableRenderItemMap=b;exports.noRenderAsFormItemValueList=I;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnType, TableProps } from 'ant-design-vue/es/table';
|
|
2
2
|
import { CompareFn, SortOrder } from 'ant-design-vue/es/table/interface';
|
|
3
3
|
import { ApFormSearchFormProps } from '../ap-form';
|
|
4
|
-
import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextProps } from '
|
|
4
|
+
import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextProps } from '../ap-form/items/interface';
|
|
5
5
|
import { Recordable } from '../type';
|
|
6
6
|
import { CSSProperties } from 'vue';
|
|
7
7
|
import { ApActionGroupProps } from '../ap-action';
|
|
@@ -9,7 +9,13 @@ import { ApTableIndexProps } from './components/interface';
|
|
|
9
9
|
|
|
10
10
|
export type ValueEnumType = {
|
|
11
11
|
text: string;
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* 当前枚举值与定义的状态,等同于Badge的status
|
|
14
|
+
*/
|
|
15
|
+
status?: 'success' | 'error' | 'processing' | 'warning' | 'default';
|
|
16
|
+
/**
|
|
17
|
+
* 如果status预定义的颜色无法满足需求,你可以自定义徽标的颜色,注意`color`比`status`的优先级更高
|
|
18
|
+
*/
|
|
13
19
|
color?: string;
|
|
14
20
|
disabled?: boolean;
|
|
15
21
|
};
|
|
@@ -45,15 +51,15 @@ export type ApTableValueFields = {
|
|
|
45
51
|
index: ApTableIndexProps;
|
|
46
52
|
};
|
|
47
53
|
export type ValueEnum = Record<string, ValueEnumType>;
|
|
48
|
-
export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children'> & {
|
|
54
|
+
export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children' | 'filters'> & {
|
|
49
55
|
sorter?: string | boolean | CompareFn<T> | {
|
|
50
56
|
compare?: CompareFn<T>;
|
|
51
57
|
/** Config multiple sorter order priority */
|
|
52
58
|
multiple?: number;
|
|
53
59
|
};
|
|
54
60
|
};
|
|
55
|
-
export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text'> = ExtraProColumnType<any> & {
|
|
56
|
-
children?: ApColumnType[];
|
|
61
|
+
export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text', RecordType = any> = ExtraProColumnType<any> & {
|
|
62
|
+
children?: ApColumnType<any, RecordType>[];
|
|
57
63
|
/**
|
|
58
64
|
* 表单项所占据的格子数(1-24格)
|
|
59
65
|
*/
|
|
@@ -89,7 +95,23 @@ export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text'> =
|
|
|
89
95
|
/**
|
|
90
96
|
* 值类型额外配置的参数(用于查询表单渲染)
|
|
91
97
|
*/
|
|
92
|
-
fieldProps?: ApTableValueFields[ValueType]
|
|
98
|
+
fieldProps?: ApTableValueFields[ValueType] | ((opt?: {
|
|
99
|
+
value: any;
|
|
100
|
+
text: any;
|
|
101
|
+
record: RecordType;
|
|
102
|
+
index: number;
|
|
103
|
+
renderIndex: number;
|
|
104
|
+
column: ApColumnType<ValueType, RecordType>;
|
|
105
|
+
}) => ApTableValueFields[ValueType]);
|
|
106
|
+
/**
|
|
107
|
+
* 用于表单项排序的字段
|
|
108
|
+
* @description 值越大,越排在前面,请设置正整数,设置为0或负数将会无效
|
|
109
|
+
*/
|
|
110
|
+
order?: number;
|
|
111
|
+
/**
|
|
112
|
+
* 表头的菜单筛选项,设置为true后会尝试使用valueEnum生成filters
|
|
113
|
+
*/
|
|
114
|
+
filters?: ColumnType<RecordType>['filters'] | true;
|
|
93
115
|
};
|
|
94
116
|
export type RequestData<T> = {
|
|
95
117
|
data: T[] | undefined;
|
|
@@ -99,7 +121,7 @@ export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends k
|
|
|
99
121
|
/**
|
|
100
122
|
* 列配置
|
|
101
123
|
*/
|
|
102
|
-
columns?: ApColumnType<any>[];
|
|
124
|
+
columns?: ApColumnType<any, RecordType>[];
|
|
103
125
|
/**
|
|
104
126
|
* 是否启用卡片样式
|
|
105
127
|
*/
|
|
@@ -178,3 +200,6 @@ export type ApTableExpose = {
|
|
|
178
200
|
submit: () => void;
|
|
179
201
|
reset: () => void;
|
|
180
202
|
};
|
|
203
|
+
export type FixedApColumnType<ValueType extends keyof ApTableValueFields = 'text', RecordType = any> = Omit<ApColumnType<ValueType, RecordType>, 'filters'> & {
|
|
204
|
+
filters?: ColumnType<RecordType>['filters'];
|
|
205
|
+
};
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import { ValueEnum, ValueEnumType } from './interface';
|
|
1
|
+
import { ApColumnType, ApTableValueFields, ValueEnum, ValueEnumType } from './interface';
|
|
2
|
+
import { Translator } from '../config-provider';
|
|
3
|
+
import { AlignType, FixedType, Key, CellEllipsisType, DataIndex, ColumnType, GetComponentProps, ColumnGroupType } from 'ant-design-vue/es/vc-table/interface';
|
|
4
|
+
import { ColumnTitle, CompareFn, SortOrder, FilterDropdownProps, FilterValue, FilterSearchType, ColumnFilterItem } from 'ant-design-vue/es/table/interface';
|
|
5
|
+
import { Breakpoint } from 'ant-design-vue/es/_util/responsiveObserve';
|
|
6
|
+
import { ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
7
|
+
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
8
|
+
import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
|
|
9
|
+
import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
|
|
10
|
+
import { LiteralUnion, VueNode } from 'ant-design-vue/es/_util/type';
|
|
11
|
+
import { PresetColorType } from 'ant-design-vue/es/_util/colors';
|
|
12
|
+
import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
|
|
13
|
+
import { TableColumnType } from 'ant-design-vue';
|
|
2
14
|
|
|
3
15
|
export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
|
|
4
16
|
export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
|
|
@@ -28,5 +40,195 @@ export declare const objectToMap: (value: ValueEnum | undefined) => ValueEnumMap
|
|
|
28
40
|
* @param valueEnumParams
|
|
29
41
|
* @returns
|
|
30
42
|
*/
|
|
31
|
-
export declare const valueEnumToArray: (valueEnumParams: ValueEnum) => OptionType;
|
|
43
|
+
export declare const valueEnumToArray: (valueEnumParams: ValueEnum) => Partial<OptionType>[];
|
|
44
|
+
/**
|
|
45
|
+
* 获取列在查询表单中的排序
|
|
46
|
+
* @param order
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
export declare const getColumnOrder: (order?: number) => number;
|
|
50
|
+
/**
|
|
51
|
+
* 获取查询表单的placeholder
|
|
52
|
+
* @param t
|
|
53
|
+
* @param valueType
|
|
54
|
+
* @param placeholder
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
export declare const getPlaceholder: (t: Translator, valueType?: keyof ApTableValueFields, placeholder?: string) => string | string[] | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* 获取对象形式的FieldProps
|
|
60
|
+
* @param fieldProps
|
|
61
|
+
* @param record
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType<any, any>['fieldProps'], opt?: {
|
|
65
|
+
value: any;
|
|
66
|
+
text: any;
|
|
67
|
+
record: any;
|
|
68
|
+
index: number;
|
|
69
|
+
renderIndex: number;
|
|
70
|
+
column: ApColumnType<any, RecordType>;
|
|
71
|
+
}): any;
|
|
72
|
+
/**
|
|
73
|
+
* 获取表格的渲染类型
|
|
74
|
+
* @param item
|
|
75
|
+
* @returns
|
|
76
|
+
*/
|
|
77
|
+
export declare function getTableRenderType(item: ApColumnType<any, any>): "number" | "text" | "select" | "switch" | "index" | "status" | "checkbox" | "radio" | "date" | "action" | "dateRange" | "textArea";
|
|
78
|
+
/**
|
|
79
|
+
* 处理表格render组件的props
|
|
80
|
+
* @param item
|
|
81
|
+
* @param renderOption
|
|
82
|
+
* @returns
|
|
83
|
+
*/
|
|
84
|
+
export declare function getTableRenderProps(item: ApColumnType<any, any>, renderOption: any): any;
|
|
85
|
+
/**
|
|
86
|
+
* 将apColumn转化为column
|
|
87
|
+
* @param column
|
|
88
|
+
* @returns
|
|
89
|
+
*/
|
|
90
|
+
export declare function apColumnToColumn(column: ApColumnType<any>): {
|
|
91
|
+
align?: AlignType | undefined;
|
|
92
|
+
class?: string | undefined;
|
|
93
|
+
title?: ColumnTitle<any>;
|
|
94
|
+
width?: string | number | undefined;
|
|
95
|
+
slots?: {
|
|
96
|
+
filterIcon?: string | undefined;
|
|
97
|
+
filterDropdown?: string | undefined;
|
|
98
|
+
customRender?: string | undefined;
|
|
99
|
+
title?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
fixed?: FixedType | undefined;
|
|
102
|
+
key?: Key | undefined;
|
|
103
|
+
responsive?: Breakpoint[] | undefined;
|
|
104
|
+
maxWidth?: number | undefined;
|
|
105
|
+
minWidth?: number | undefined;
|
|
106
|
+
ellipsis?: CellEllipsisType | undefined;
|
|
107
|
+
colSpan?: number | undefined;
|
|
108
|
+
dataIndex?: DataIndex | undefined;
|
|
109
|
+
customRender?: ((opt: {
|
|
110
|
+
value: any;
|
|
111
|
+
text: any;
|
|
112
|
+
record: any;
|
|
113
|
+
index: number;
|
|
114
|
+
renderIndex: number;
|
|
115
|
+
column: ColumnType<any>;
|
|
116
|
+
}) => any) | undefined;
|
|
117
|
+
rowSpan?: number | undefined;
|
|
118
|
+
resizable?: boolean | undefined;
|
|
119
|
+
customCell?: GetComponentProps<any> | undefined;
|
|
120
|
+
onCellClick?: ((record: any, e: MouseEvent) => void) | undefined;
|
|
121
|
+
className?: string | undefined;
|
|
122
|
+
customHeaderCell?: GetComponentProps< ColumnType<any> | ColumnGroupType<any>> | undefined;
|
|
123
|
+
customFilterDropdown?: boolean | undefined;
|
|
124
|
+
__originColumn__?: any;
|
|
125
|
+
sorter?: ((boolean | CompareFn<any> | {
|
|
126
|
+
compare?: CompareFn<any> | undefined;
|
|
127
|
+
multiple?: number | undefined;
|
|
128
|
+
}) & (string | boolean | CompareFn<any> | {
|
|
129
|
+
compare?: CompareFn<any> | undefined;
|
|
130
|
+
multiple?: number | undefined;
|
|
131
|
+
})) | undefined;
|
|
132
|
+
sortOrder?: SortOrder | undefined;
|
|
133
|
+
defaultSortOrder?: SortOrder | undefined;
|
|
134
|
+
sortDirections?: SortOrder[] | undefined;
|
|
135
|
+
showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
|
|
136
|
+
title: VueTypeValidableDef<any>;
|
|
137
|
+
trigger: PropType< TriggerType | TriggerType[]>;
|
|
138
|
+
open: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: any;
|
|
141
|
+
};
|
|
142
|
+
visible: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: any;
|
|
145
|
+
};
|
|
146
|
+
placement: PropType<TooltipPlacement>;
|
|
147
|
+
color: PropType<LiteralUnion<PresetColorType>>;
|
|
148
|
+
transitionName: StringConstructor;
|
|
149
|
+
overlayStyle: {
|
|
150
|
+
type: PropType<CSSProperties>;
|
|
151
|
+
default: CSSProperties;
|
|
152
|
+
};
|
|
153
|
+
overlayInnerStyle: {
|
|
154
|
+
type: PropType<CSSProperties>;
|
|
155
|
+
default: CSSProperties;
|
|
156
|
+
};
|
|
157
|
+
overlayClassName: StringConstructor;
|
|
158
|
+
openClassName: StringConstructor;
|
|
159
|
+
prefixCls: StringConstructor;
|
|
160
|
+
mouseEnterDelay: NumberConstructor;
|
|
161
|
+
mouseLeaveDelay: NumberConstructor;
|
|
162
|
+
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
163
|
+
arrowPointAtCenter: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: any;
|
|
166
|
+
};
|
|
167
|
+
arrow: {
|
|
168
|
+
type: PropType<boolean | {
|
|
169
|
+
pointAtCenter?: boolean | undefined;
|
|
170
|
+
}>;
|
|
171
|
+
default: boolean | {
|
|
172
|
+
pointAtCenter?: boolean | undefined;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
autoAdjustOverflow: {
|
|
176
|
+
type: PropType<boolean | AdjustOverflow>;
|
|
177
|
+
default: boolean | AdjustOverflow;
|
|
178
|
+
};
|
|
179
|
+
destroyTooltipOnHide: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: any;
|
|
182
|
+
};
|
|
183
|
+
align: {
|
|
184
|
+
type: PropType<AlignType>;
|
|
185
|
+
default: AlignType;
|
|
186
|
+
};
|
|
187
|
+
builtinPlacements: {
|
|
188
|
+
type: PropType<BuildInPlacements>;
|
|
189
|
+
default: BuildInPlacements;
|
|
190
|
+
};
|
|
191
|
+
children: ArrayConstructor;
|
|
192
|
+
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
193
|
+
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
194
|
+
onOpenChange: PropType<(vis: boolean) => void>;
|
|
195
|
+
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
196
|
+
}>> | undefined;
|
|
197
|
+
filtered?: boolean | undefined;
|
|
198
|
+
filterDropdown?: VueNode | ((props: FilterDropdownProps<any>) => VueNode);
|
|
199
|
+
filterMultiple?: boolean | undefined;
|
|
200
|
+
filteredValue?: FilterValue | null | undefined;
|
|
201
|
+
defaultFilteredValue?: FilterValue | null | undefined;
|
|
202
|
+
filterIcon?: VueNode | ((opt: {
|
|
203
|
+
filtered: boolean;
|
|
204
|
+
column: TableColumnType<any>;
|
|
205
|
+
}) => VueNode);
|
|
206
|
+
filterMode?: "menu" | "tree" | undefined;
|
|
207
|
+
filterSearch?: FilterSearchType<ColumnFilterItem> | undefined;
|
|
208
|
+
onFilter?: ((value: string | number | boolean, record: any) => boolean) | undefined;
|
|
209
|
+
filterDropdownOpen?: boolean | undefined;
|
|
210
|
+
onFilterDropdownOpenChange?: ((visible: boolean) => void) | undefined;
|
|
211
|
+
filterResetToDefaultFilteredValue?: boolean | undefined;
|
|
212
|
+
filterDropdownVisible?: boolean | undefined;
|
|
213
|
+
onFilterDropdownVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
214
|
+
children?: ApColumnType<any, any>[] | undefined;
|
|
215
|
+
span?: number | undefined;
|
|
216
|
+
tooltip?: string | undefined;
|
|
217
|
+
copyable?: boolean | undefined;
|
|
218
|
+
hideInSearch?: boolean | undefined;
|
|
219
|
+
hideInTable?: boolean | undefined;
|
|
220
|
+
valueEnum?: ValueEnum | undefined;
|
|
221
|
+
customRenderFormItem?: ((config: ApColumnType<"text", any>) => any) | undefined;
|
|
222
|
+
valueType?: keyof ApTableValueFields | undefined;
|
|
223
|
+
fieldProps?: any;
|
|
224
|
+
order?: number | undefined;
|
|
225
|
+
filters?: true | ColumnFilterItem[] | undefined;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* 更新查询表单的的props
|
|
229
|
+
* @param item
|
|
230
|
+
* @param fieldProps
|
|
231
|
+
* @returns
|
|
232
|
+
*/
|
|
233
|
+
export declare function updateFormProps(item: ApColumnType<any, any>, fieldProps: any): any;
|
|
32
234
|
export {};
|