@aplus-frontend/ui 0.0.2 → 0.0.3
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 +139 -125
- package/es/src/ap-table/interface.d.ts +16 -4
- package/es/src/ap-table/utils.d.ts +30 -1
- package/es/src/ap-table/utils.mjs +61 -41
- 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 +35 -20
- package/es/src/theme/antd-global-overwrite/admin/table.css +35 -20
- package/es/src/theme/antd-global-overwrite/aplus/index.css +35 -20
- 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/interface.d.ts +16 -4
- package/lib/src/ap-table/utils.d.ts +30 -1
- 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 +35 -20
- package/lib/src/theme/antd-global-overwrite/admin/table.css +35 -20
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +35 -20
- 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"),m=require("ant-design-vue"),L=require("../ap-form/index.js"),c=require("./constants.js");require("../config-provider/index.js");const D=require("./hooks/use-table-paging.js"),g=require("lodash-unified");require("./style/ap-table.css");const j=require("@ant-design/icons-vue"),s=require("./utils.js"),M=require("../config-provider/hooks/use-locale.js"),_=require("../config-provider/hooks/use-namespace.js"),A=require("../config-provider/hooks/use-global-config.js"),W={key:0},K=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(x,{expose:F}){const r=x,{t:B}=M.useLocale(),{e:y,b:p}=_.useNamespace("ap-table"),R=A.useGlobalConfig("uiMode"),f=e.computed(()=>{var o;let a=((o=r.columns)==null?void 0:o.filter(t=>!t.hideInTable))||[];return a=a.map(t=>({...t,customRender({value:n,...l}){let d;if(t.customRender)d=t.customRender({value:n,...l,column:t});else{const w=c.apTableRenderItemMap[t.valueType||"text"],i=s.getFieldProps(t.fieldProps,{value:n,...l}),V=(i==null?void 0:i.field)||i||{},E=t.valueType==="switch",O=t.valueType==="index",z=E?{checked:n}:{value:O?l.index+1:n};d=e.createVNode(w,e.mergeProps(g.omit(V,["request"]),z,{mode:"read"}),null)}return q(t,n,d)}})),a}),h=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)&&!c.noRenderAsFormItemValueList.includes(n.valueType)))==null?void 0:o.sort((n,l)=>{let d=s.getColumnOrder(n.order);return s.getColumnOrder(l.order)-d}))==null?void 0:t.map(n=>{const l=s.getFieldProps(n.fieldProps);return{...n,fieldProps:{...l||{},label:n.title,name:n.dataIndex,placeholder:s.getPlaceholder(B,n.valueType,l==null?void 0:l.placeholder)}}}))||[]}),T=e.computed(()=>e.unref(f).filter(a=>a.sorter===!0).map(a=>a.dataIndex)),P=e.computed(()=>e.unref(f).filter(a=>a.filters&&!a.onFilter).map(a=>a.dataIndex)),{formRef:b,submit:C,reset:S,tableProps:u,handleTableChange:k,data:I}=D.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(P),sortFields:e.unref(T),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}),v=e.computed(()=>({...r,...e.unref(u),loading:g.isUndefined(r.loading)?e.unref(u).loading:r.loading,pagination:r.pagination===!1?!1:e.unref(u).pagination}));function q(a,o,t){return c.noRenderAsFormItemValueList.includes(a.valueType)?t:a.copyable||a.ellipsis?e.createVNode(m.Typography.Text,{copyable:a.copyable?{text:o,tooltip:!1}:!1,ellipsis:a.ellipsis?{tooltip:o}:!1,content:t},null):t}e.watch(()=>e.unref(I).loading,a=>{var o;(o=r.onLoadingChange)==null||o.call(r,a)});function N(a){var o,t,n;(n=(t=(o=b.value)==null?void 0:o.apForm)==null?void 0:t.setFieldsValue)==null||n.call(t,a)}return F({submit:()=>C(),reset:()=>S(),setSearchFormValues:N}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.card?null:e.unref(p)("wrapper"))},[a.searchForm!==!1&&h.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.card?e.unref(y)("search-wrapper"):null),style:e.normalizeStyle(a.searchFormWrapperStyle)},[e.createVNode(e.unref(L.ApForm).SearchForm,e.mergeProps(a.searchForm||{},{ref_key:"formRef",ref:b,"custom-reset":"",onSubmit:e.unref(C),onReset:e.unref(S),"submit-loading":e.unref(u).loading}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,t=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.customRenderFormItem?t.customRenderFormItem(t):e.unref(c.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(y)("table-wrapper"):null),style:e.normalizeStyle(a.tableWrapperStyle)},[e.renderSlot(a.$slots,"title"),e.createVNode(e.unref(m.Table),e.mergeProps({class:e.unref(R)==="admin"?e.unref(p)("table-admin"):e.unref(p)("table")},v.value,{onChange:e.unref(k),columns:f.value}),e.createSlots({headerCell:e.withCtx(({column:t,title:n})=>[t.tooltip?(e.openBlock(),e.createElementBlock("span",W,[e.createElementVNode("span",null,e.toDisplayString(n),1),e.createVNode(e.unref(m.Tooltip),{title:t.tooltip,placement:"bottom"},{default:e.withCtx(()=>[e.createVNode(e.unref(j.QuestionCircleOutlined),{style:{color:"#0070ff","padding-left":"4px"}})]),_:2},1032,["title"])])):e.createCommentVNode("",!0)]),_:2},[e.renderList(e.unref(g.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=K;
|
|
@@ -52,8 +52,8 @@ export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children'> & {
|
|
|
52
52
|
multiple?: number;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text'> = ExtraProColumnType<any> & {
|
|
56
|
-
children?: ApColumnType[];
|
|
55
|
+
export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text', RecordType = any> = ExtraProColumnType<any> & {
|
|
56
|
+
children?: ApColumnType<any, RecordType>[];
|
|
57
57
|
/**
|
|
58
58
|
* 表单项所占据的格子数(1-24格)
|
|
59
59
|
*/
|
|
@@ -89,7 +89,19 @@ export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text'> =
|
|
|
89
89
|
/**
|
|
90
90
|
* 值类型额外配置的参数(用于查询表单渲染)
|
|
91
91
|
*/
|
|
92
|
-
fieldProps?: ApTableValueFields[ValueType]
|
|
92
|
+
fieldProps?: ApTableValueFields[ValueType] | ((opt?: {
|
|
93
|
+
value: any;
|
|
94
|
+
text: any;
|
|
95
|
+
record: RecordType;
|
|
96
|
+
index: number;
|
|
97
|
+
renderIndex: number;
|
|
98
|
+
column: ApColumnType<ValueType, RecordType>;
|
|
99
|
+
}) => ApTableValueFields[ValueType]);
|
|
100
|
+
/**
|
|
101
|
+
* 用于表单项排序的字段
|
|
102
|
+
* @description 值越大,越排在前面,请设置正整数,设置为0或负数将会无效
|
|
103
|
+
*/
|
|
104
|
+
order?: number;
|
|
93
105
|
};
|
|
94
106
|
export type RequestData<T> = {
|
|
95
107
|
data: T[] | undefined;
|
|
@@ -99,7 +111,7 @@ export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends k
|
|
|
99
111
|
/**
|
|
100
112
|
* 列配置
|
|
101
113
|
*/
|
|
102
|
-
columns?: ApColumnType<any>[];
|
|
114
|
+
columns?: ApColumnType<any, RecordType>[];
|
|
103
115
|
/**
|
|
104
116
|
* 是否启用卡片样式
|
|
105
117
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ValueEnum, ValueEnumType } from './interface';
|
|
1
|
+
import { ApColumnType, ApTableValueFields, ValueEnum, ValueEnumType } from './interface';
|
|
2
|
+
import { Translator } from '../config-provider';
|
|
2
3
|
|
|
3
4
|
export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
|
|
4
5
|
export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
|
|
@@ -29,4 +30,32 @@ export declare const objectToMap: (value: ValueEnum | undefined) => ValueEnumMap
|
|
|
29
30
|
* @returns
|
|
30
31
|
*/
|
|
31
32
|
export declare const valueEnumToArray: (valueEnumParams: ValueEnum) => OptionType;
|
|
33
|
+
/**
|
|
34
|
+
* 获取列在查询表单中的排序
|
|
35
|
+
* @param order
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export declare const getColumnOrder: (order?: number) => number;
|
|
39
|
+
/**
|
|
40
|
+
* 获取查询表单的placeholder
|
|
41
|
+
* @param t
|
|
42
|
+
* @param valueType
|
|
43
|
+
* @param placeholder
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
export declare const getPlaceholder: (t: Translator, valueType?: keyof ApTableValueFields, placeholder?: string) => string | string[] | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* 获取对象形式的FieldProps
|
|
49
|
+
* @param fieldProps
|
|
50
|
+
* @param record
|
|
51
|
+
* @returns
|
|
52
|
+
*/
|
|
53
|
+
export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType<any, any>['fieldProps'], opt?: {
|
|
54
|
+
value: any;
|
|
55
|
+
text: any;
|
|
56
|
+
record: any;
|
|
57
|
+
index: number;
|
|
58
|
+
renderIndex: number;
|
|
59
|
+
column: ApColumnType<any, RecordType>;
|
|
60
|
+
}): any;
|
|
32
61
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("lodash-unified"),a=(e,t,r)=>{let s={};return c.isObject(e)?Object.keys(e).forEach(o=>{c.isObject(e[o])?s[o]=a(e[o],t[o],r):s[o]=r(e[o],t)}):s=r(e,t),s},i=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(r=>r.valueOf());case"dayjsDayRange":{const[r,s]=t;return[r.startOf("day").valueOf(),s.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return c.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function f(e){return c.isArray(e)?e.join("."):e}function l(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const u=e=>l(e)==="map"?e:new Map(Object.entries(e||{})),d=e=>{const t=[],r=u(e);return r.forEach((s,o)=>{const n=r.get(o)||r.get(`${o}`);if(n){if(typeof n=="object"&&(n!=null&&n.text)){t.push({text:n==null?void 0:n.text,value:o,label:n==null?void 0:n.text,disabled:n.disabled});return}t.push({text:n,label:n,value:o})}}),t},m=e=>c.isUndefined(e)||e<0?0:e,p=(e,t,r)=>{if(r)return r;const s=["select","date"],o=["text","textArea","number"];if(t==="dateRange")return[e("ap.common.chooseText"),e("ap.common.chooseText")];if(s.includes(t))return e("ap.common.chooseText");if(o.includes(t))return e("ap.common.inputText")};function b(e,t){return!e||!c.isFunction(e)?e:e(t)}exports.dataIndexToStr=f;exports.formatParamsValueType=a;exports.getColumnOrder=m;exports.getFieldProps=b;exports.getPlaceholder=p;exports.objectToMap=u;exports.parseFieldValue=i;exports.valueEnumToArray=d;
|
|
@@ -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"),c=require("ant-design-vue"),r=require("../../base-button/index.js"),v=require("../../basic/index.js"),h=require("../hooks/use-form-context.js");require("../../config-provider/index.js");require("./style/form-action.css");const k=require("../../config-provider/hooks/use-global-config.js"),x=require("../../config-provider/hooks/use-locale.js"),A=require("../../config-provider/hooks/use-namespace.js"),b=e.defineComponent({name:"BasicFormAction",__name:"form-action",props:{showActionButtonGroup:{type:Boolean,default:!0},showResetButton:{type:Boolean,default:!0},showSubmitButton:{type:Boolean,default:!0},showAdvancedButton:{type:Boolean,default:!0},resetButtonOptions:{default:()=>({})},submitButtonOptions:{},actionColOptions:{default:()=>({})},actionSpan:{default:6},isAdvanced:{type:Boolean},hideAdvanceBtn:{type:Boolean}},emits:["toggle-advanced"],setup(i,{emit:d}){const n=i,p=d,m=k.useGlobalConfig("uiMode"),B=e.computed(()=>m.value==="aplus"?{}:{color:"#34b77c"}),{t:o}=x.useLocale(),{em:s}=A.useNamespace("form-action"),{resetAction:f,submitAction:y}=h.useFormContext(),a=e.computed(()=>{const{actionColOptions:t}=n;return{style:{textAlign:"right",flex:1,maxWidth:"100%",minWidth:"25%"},...t}}),u=e.computed(()=>Object.assign({text:o("ap.common.resetText")},n.resetButtonOptions)),l=e.computed(()=>Object.assign({text:o("ap.common.queryText")},n.submitButtonOptions));function C(){p("toggle-advanced")}return(t,g)=>t.showActionButtonGroup?(e.openBlock(),e.createBlock(e.unref(c.Col),e.normalizeProps(e.mergeProps({key:0},a.value)),{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{width:"100%"},{textAlign:a.value.style.textAlign}])},[e.createVNode(e.unref(c.Form).Item,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"resetBefore"),t.showResetButton?(e.openBlock(),e.createBlock(e.unref(r.BaseButton),e.mergeProps({key:0,type:"default",class:e.unref(s)("button","space")},u.value,{onClick:e.unref(f)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.text),1)]),_:1},16,["class","onClick"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"submitBefore"),t.showSubmitButton?(e.openBlock(),e.createBlock(e.unref(r.BaseButton),e.mergeProps({key:1,type:"primary",class:e.unref(s)("button","space")},l.value,{onClick:e.unref(y)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.text),1)]),_:1},16,["class","onClick"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"advanceBefore"),t.showAdvancedButton&&!t.hideAdvanceBtn?(e.openBlock(),e.createBlock(e.unref(r.BaseButton),{key:2,type:"link",size:"small",style:e.normalizeStyle(B.value),onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.isAdvanced?e.unref(o)("ap.common.closeText"):e.unref(o)("ap.common.expandText"))+" ",1),e.createVNode(e.unref(v.BasicArrow),{class:e.normalizeClass(e.unref(s)("item","space")),expand:!t.isAdvanced,up:""},null,8,["class","expand"])]),_:1},8,["style"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"advanceAfter")]),_:3})],4)]),_:3},16)):e.createCommentVNode("",!0)}});exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),l=require("lodash-unified"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),l=require("lodash-unified"),q=require("@vueuse/core"),A=require("./use-break-point.js"),o=24,h=18;function T({advanceState:r,emit:b,getProps:u,getSchema:v,formModel:L,defaultValueRef:E}){const p=n.getCurrentInstance(),{screenRef:y,realWidthRef:I}=A.useBreakpoint(),_=n.computed(()=>{if(!r.isAdvanced)return 0;const e=n.unref(u).emptySpan||0;if(l.isNumber(e))return e;if(l.isObject(e)){const{span:s=0}=e,t=n.unref(y);return e[t.toLowerCase()]||s||0}return 0}),O=q.useDebounceFn(R,30);n.watch([()=>n.unref(v),()=>r.isAdvanced,()=>n.unref(I)],()=>{const{showAdvancedButton:e}=n.unref(u);e&&O()},{immediate:!0});function w(e,s=0,t=!1){const c=n.unref(I),d=parseInt(e.md)||parseInt(e.xs)||parseInt(e.sm)||e.span||o,i=parseInt(e.lg)||d,f=parseInt(e.xl)||i,a=parseInt(e.xxl)||f;return c<=A.ScreenEnum.LG?s+=d:c<A.ScreenEnum.XL?s+=i:c<A.ScreenEnum.XXL?s+=f:s+=a,t?(r.hideAdvanceBtn=!1,s<=o+h?(r.hideAdvanceBtn=!0,r.isAdvanced=!0):s>o+h&&s<=o*(n.unref(u).autoAdvancedLine||3)?r.hideAdvanceBtn=!1:r.isLoad||(r.isLoad=!0,r.isAdvanced=!0),{isAdvanced:r.isAdvanced,itemColSum:s}):s>h*(n.unref(u).alwaysShowLines||1)?{isAdvanced:r.isAdvanced,itemColSum:s}:{isAdvanced:!0,itemColSum:s}}const x=n.shallowReactive({});function R(){var c;let e=0,s=0;const{baseColProps:t={}}=n.unref(u);for(const d of n.unref(v)){const{show:i,colProps:f}=d;let a=!0;if(l.isBoolean(i)&&(a=i),l.isFunction(i)&&(a=i({schema:d,model:L,field:d.field,values:{...n.unref(E),...L}})),a&&(f||t)){const{itemColSum:g,isAdvanced:B}=w({...t,...f},e);e=g||0,B&&(s=e),x[d.field]=B}}(c=p==null?void 0:p.proxy)==null||c.$forceUpdate(),r.actionSpan=s%o+n.unref(_),w(n.unref(u).actionColOptions||{span:o},e,!0),b("advanced-change")}function W(){r.isAdvanced=!r.isAdvanced}return{handleToggleAdvanced:W,fieldsIsAdvancedMap:x}}exports.default=T;
|
|
@@ -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;
|
|
@@ -442,13 +442,21 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
442
442
|
inset-inline-start: 13px;
|
|
443
443
|
margin: 6px 0;
|
|
444
444
|
}
|
|
445
|
-
|
|
445
|
+
[class$='-basic-table'],
|
|
446
|
+
[class$='-basic-table-form-container'] {
|
|
447
|
+
width: 100%;
|
|
448
|
+
height: 100%;
|
|
449
|
+
}
|
|
450
|
+
[class$='-basic-table'] .ant-table-wrapper,
|
|
451
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper {
|
|
446
452
|
padding: 12px 16px 16px;
|
|
447
453
|
background-color: #ffffff;
|
|
448
454
|
border-radius: 0;
|
|
449
455
|
}
|
|
450
|
-
.ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
|
|
451
|
-
.ant-table-wrapper .ant-table.ant-table-
|
|
456
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
|
|
457
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
|
|
458
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title,
|
|
459
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title {
|
|
452
460
|
display: flex;
|
|
453
461
|
align-items: center;
|
|
454
462
|
justify-content: space-between;
|
|
@@ -456,51 +464,58 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
|
|
|
456
464
|
padding: 0 0 12px;
|
|
457
465
|
border: none;
|
|
458
466
|
}
|
|
459
|
-
.ant-table-wrapper .ant-table
|
|
467
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table,
|
|
468
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
|
|
460
469
|
width: 100%;
|
|
461
470
|
overflow-x: hidden;
|
|
462
471
|
border-radius: 0;
|
|
463
472
|
}
|
|
464
|
-
.ant-table-wrapper .ant-table .ant-table-container
|
|
473
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container,
|
|
474
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container {
|
|
465
475
|
border-radius: 0;
|
|
466
476
|
}
|
|
467
|
-
.ant-table-wrapper .ant-table .ant-table-container table
|
|
477
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table,
|
|
478
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table {
|
|
468
479
|
border-radius: 0;
|
|
469
480
|
}
|
|
470
|
-
.ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child
|
|
481
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child,
|
|
482
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child {
|
|
471
483
|
border-radius: 0;
|
|
472
484
|
}
|
|
473
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-header
|
|
485
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
486
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
|
|
474
487
|
border-radius: 0;
|
|
475
488
|
}
|
|
476
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td
|
|
489
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td,
|
|
490
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td {
|
|
477
491
|
padding: 13.5px 16px;
|
|
478
492
|
line-height: 20px;
|
|
479
493
|
}
|
|
480
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th
|
|
494
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th,
|
|
495
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
481
496
|
padding: 13.5px 16px;
|
|
482
497
|
line-height: 20px;
|
|
483
498
|
}
|
|
484
|
-
.ant-table-wrapper .ant-table-footer
|
|
499
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer,
|
|
500
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer {
|
|
485
501
|
padding: 0;
|
|
486
502
|
}
|
|
487
|
-
.ant-table-wrapper .ant-table-footer .ant-table-wrapper
|
|
503
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper,
|
|
504
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper {
|
|
488
505
|
padding: 0;
|
|
489
506
|
}
|
|
490
|
-
.ant-table-wrapper .ant-table-footer table
|
|
507
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer table,
|
|
508
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer table {
|
|
491
509
|
border: none;
|
|
492
510
|
}
|
|
493
|
-
.ant-table-wrapper .ant-table-footer .ant-table-body
|
|
511
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-body,
|
|
512
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-body {
|
|
494
513
|
overflow-x: hidden;
|
|
495
514
|
}
|
|
496
|
-
.ant-table-wrapper .ant-table-footer td
|
|
515
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer td,
|
|
516
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer td {
|
|
497
517
|
padding: 12px 8px;
|
|
498
518
|
}
|
|
499
|
-
[class$='-basic-table'],
|
|
500
|
-
[class$='-basic-table-form-container'] {
|
|
501
|
-
width: 100%;
|
|
502
|
-
height: 100%;
|
|
503
|
-
}
|
|
504
519
|
[class$='-basic-table-form-container'] {
|
|
505
520
|
padding: 16px;
|
|
506
521
|
}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
[class$='-basic-table'],
|
|
2
|
+
[class$='-basic-table-form-container'] {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
[class$='-basic-table'] .ant-table-wrapper,
|
|
7
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper {
|
|
2
8
|
padding: 12px 16px 16px;
|
|
3
9
|
background-color: #ffffff;
|
|
4
10
|
border-radius: 0;
|
|
5
11
|
}
|
|
6
|
-
.ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
|
|
7
|
-
.ant-table-wrapper .ant-table.ant-table-
|
|
12
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
|
|
13
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
|
|
14
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title,
|
|
15
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title {
|
|
8
16
|
display: flex;
|
|
9
17
|
align-items: center;
|
|
10
18
|
justify-content: space-between;
|
|
@@ -12,51 +20,58 @@
|
|
|
12
20
|
padding: 0 0 12px;
|
|
13
21
|
border: none;
|
|
14
22
|
}
|
|
15
|
-
.ant-table-wrapper .ant-table
|
|
23
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table,
|
|
24
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
|
|
16
25
|
width: 100%;
|
|
17
26
|
overflow-x: hidden;
|
|
18
27
|
border-radius: 0;
|
|
19
28
|
}
|
|
20
|
-
.ant-table-wrapper .ant-table .ant-table-container
|
|
29
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container,
|
|
30
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container {
|
|
21
31
|
border-radius: 0;
|
|
22
32
|
}
|
|
23
|
-
.ant-table-wrapper .ant-table .ant-table-container table
|
|
33
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table,
|
|
34
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table {
|
|
24
35
|
border-radius: 0;
|
|
25
36
|
}
|
|
26
|
-
.ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child
|
|
37
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child,
|
|
38
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child {
|
|
27
39
|
border-radius: 0;
|
|
28
40
|
}
|
|
29
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-header
|
|
41
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
|
|
42
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
|
|
30
43
|
border-radius: 0;
|
|
31
44
|
}
|
|
32
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td
|
|
45
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td,
|
|
46
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td {
|
|
33
47
|
padding: 13.5px 16px;
|
|
34
48
|
line-height: 20px;
|
|
35
49
|
}
|
|
36
|
-
.ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th
|
|
50
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th,
|
|
51
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th {
|
|
37
52
|
padding: 13.5px 16px;
|
|
38
53
|
line-height: 20px;
|
|
39
54
|
}
|
|
40
|
-
.ant-table-wrapper .ant-table-footer
|
|
55
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer,
|
|
56
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer {
|
|
41
57
|
padding: 0;
|
|
42
58
|
}
|
|
43
|
-
.ant-table-wrapper .ant-table-footer .ant-table-wrapper
|
|
59
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper,
|
|
60
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper {
|
|
44
61
|
padding: 0;
|
|
45
62
|
}
|
|
46
|
-
.ant-table-wrapper .ant-table-footer table
|
|
63
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer table,
|
|
64
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer table {
|
|
47
65
|
border: none;
|
|
48
66
|
}
|
|
49
|
-
.ant-table-wrapper .ant-table-footer .ant-table-body
|
|
67
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-body,
|
|
68
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-body {
|
|
50
69
|
overflow-x: hidden;
|
|
51
70
|
}
|
|
52
|
-
.ant-table-wrapper .ant-table-footer td
|
|
71
|
+
[class$='-basic-table'] .ant-table-wrapper .ant-table-footer td,
|
|
72
|
+
[class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer td {
|
|
53
73
|
padding: 12px 8px;
|
|
54
74
|
}
|
|
55
|
-
[class$='-basic-table'],
|
|
56
|
-
[class$='-basic-table-form-container'] {
|
|
57
|
-
width: 100%;
|
|
58
|
-
height: 100%;
|
|
59
|
-
}
|
|
60
75
|
[class$='-basic-table-form-container'] {
|
|
61
76
|
padding: 16px;
|
|
62
77
|
}
|