@aplus-frontend/ui 0.6.0-beta.2 → 0.6.0-beta.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.
Files changed (52) hide show
  1. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +39 -34
  2. package/es/src/ap-grid/editable/form-item.vue.mjs +94 -83
  3. package/es/src/ap-grid/editable/index.vue.mjs +89 -78
  4. package/es/src/ap-grid/index.vue.mjs +47 -43
  5. package/es/src/ap-grid/interface.d.ts +1 -1
  6. package/es/src/ap-grid/utils/table.mjs +32 -32
  7. package/es/src/ap-table/ap-table.vue2.mjs +2 -0
  8. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  9. package/es/src/business/ap-status/interface.d.ts +1 -1
  10. package/es/src/editable-table/form-item.vue.d.ts +2 -14
  11. package/es/src/editable-table/form-item.vue.mjs +84 -76
  12. package/es/src/editable-table/index.vue.d.ts +2 -16
  13. package/es/src/editable-table/index.vue.mjs +91 -83
  14. package/es/src/editable-table/interface.d.ts +7 -0
  15. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  16. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  17. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  18. package/lib/src/ap-grid/index.vue.js +1 -1
  19. package/lib/src/ap-grid/interface.d.ts +1 -1
  20. package/lib/src/ap-grid/utils/table.js +1 -1
  21. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  22. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  23. package/lib/src/business/ap-status/interface.d.ts +1 -1
  24. package/lib/src/editable-table/form-item.vue.d.ts +2 -14
  25. package/lib/src/editable-table/form-item.vue.js +1 -1
  26. package/lib/src/editable-table/index.vue.d.ts +2 -16
  27. package/lib/src/editable-table/index.vue.js +1 -1
  28. package/lib/src/editable-table/interface.d.ts +7 -0
  29. package/package.json +4 -4
  30. package/theme/antd-global-overwrite/admin/index.css +4 -17
  31. package/theme/antd-global-overwrite/admin/modal.css +4 -17
  32. package/theme/antd-global-overwrite/admin/modal.less +4 -19
  33. package/theme/antd-global-overwrite/aplus/index.css +4 -11
  34. package/theme/antd-global-overwrite/aplus/modal.css +4 -11
  35. package/theme/antd-global-overwrite/aplus/modal.less +4 -14
  36. package/theme/ap-form/ap-form-item.css +2 -2
  37. package/theme/ap-form/ap-form-item.less +2 -2
  38. package/theme/ap-form/index.css +5 -2
  39. package/theme/ap-form/search-form.css +5 -2
  40. package/theme/ap-form/search-form.less +3 -0
  41. package/theme/ap-grid/index.css +5 -2
  42. package/theme/ap-table/ap-table.css +8 -5
  43. package/theme/ap-table/setting/index.css +3 -3
  44. package/theme/ap-table/setting/modal.css +1 -2
  45. package/theme/ap-table/setting/modal.less +1 -2
  46. package/theme/ap-table/setting/select-group.css +2 -1
  47. package/theme/ap-table/setting/select-group.less +2 -1
  48. package/theme/ap-table-modal/index.css +8 -5
  49. package/theme/ap-tag/ap-tag.css +1 -1
  50. package/theme/ap-tag/ap-tag.less +1 -1
  51. package/theme/editable-table/index.css +5 -2
  52. package/theme/index.css +9 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),E=require("@aplus-frontend/antdv"),p=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");const P=require("../ap-form/context.js"),h=require("../utils/index.js"),j=require("./hooks/use-get-columns.js"),A=require("./utils.js"),O=require("../config-provider/hooks/use-namespace.js"),z=require("../config-provider/hooks/use-global-config.js"),G=t.defineComponent({name:"EditableTableInner",__name:"form-item",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"small"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},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:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},onFieldChange:{},label:{},name:{},formItem:{default:()=>({})}},setup(g,{expose:x}){const n=g;function b(e,a){return d.isArray(a)?a.reduce((l,o)=>l==null?void 0:l[o],e):e==null?void 0:e[a]}const{internalInstance:u,model:w}=P.useInjectForm(),i=t.ref(b(t.unref(w),n.name)||[]),C=t.useSlots(),y=t.toRef(n,"name"),R=p.ApForm.useWatch(y);t.watch(()=>R.value,async e=>{var a;await t.nextTick(),i.value=e,(a=n.onChange)==null||a.call(n,e)},{deep:!0});const{b:B}=O.useNamespace("editable-table"),m=t.ref(),F=z.useGlobalConfig("valueTypeMap"),T=j.default(n,F);function q(e,a){var s;const l=((s=t.unref(i))==null?void 0:s.length)||0;if(h.isDef(n.maxLength)&&l>=n.maxLength)return;const o={...e||{}};u==null||u.setFieldValue(n.name,o,!0,(r,f)=>{if(!r[f]){r[f]=[o];return}d.isUndefined(a)?r[f].push(o):r[f].splice(a,0,o)})}function v(e,a="suffix"){var r;const l=((r=t.unref(i))==null?void 0:r.length)||0,o=d.isNumber(e)?e:e.length;if(h.isDef(n.maxLength)&&l+o>n.maxLength)return;const s=d.isNumber(e)?new Array(e).fill(0).map(()=>({})):d.cloneDeep(e);u==null||u.setFieldValue(n.name,s,!0,(f,c)=>{if(!f[c]){f[c]=[...s];return}a==="suffix"?f[c].push(...s):f[c].unshift(...s)})}function D(e){const a=new Set(d.isNumber(e)?[e]:e);u==null||u.setFieldValue(n.name,void 0,!0,(l,o)=>{l[o]=l[o].filter((s,r)=>!a.has(r))})}function N(){return t.unref(i)}function S(e){var a;return(a=t.unref(i))==null?void 0:a[e]}function L(e,a,l=!0){u==null||u.setFieldValue(n.name,void 0,!0,(o,s)=>{!o[s]||!o[s][e]||(o[s][e]={...l?o[s][e]:{},...a})})}function V(e){u==null||u.setFieldValue(n.name,e)}function _(e,a){var o;const l=e==="end"?i.value.length-1:e;A.scrollToRowIndex(l,(o=m.value)==null?void 0:o.$el,a)}function k(){var e;(e=u==null?void 0:u.setFieldValue)==null||e.call(u,n.name,[])}return x({add:q,remove:D,getRowData:S,getRowsData:N,setRowData:L,addMultiple:v,scrollTo:_,setTableData:V,clear:k}),(e,a)=>(t.openBlock(),t.createBlock(t.unref(p.ApForm).FormItem,t.mergeProps(e.formItem,{name:e.name,label:e.label}),{default:t.withCtx(()=>[t.createVNode(t.unref(E.Table),t.mergeProps(t.unref(d.omit)(n,["name","maxLength","onChange"]),{ref_key:"tableRef",ref:m,class:t.unref(B)(),columns:t.unref(T),"data-source":i.value}),t.createSlots({_:2},[t.renderList(t.unref(d.omit)(C,["headerCell"]),(l,o)=>({name:o,fn:t.withCtx(s=>[t.renderSlot(e.$slots,o,t.normalizeProps(t.guardReactiveProps(s||{})))])}))]),1040,["class","columns","data-source"])]),_:3},16,["name","label"]))}});exports.default=G;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),j=require("@aplus-frontend/antdv"),p=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");const k=require("../ap-form/context.js"),h=require("../utils/index.js"),A=require("./hooks/use-get-columns.js"),z=require("./utils.js"),K=require("../config-provider/hooks/use-namespace.js"),O=require("../config-provider/hooks/use-global-config.js"),G=o.defineComponent({name:"EditableTableInner",__name:"form-item",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"small"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},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:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},onFieldChange:{},label:{},name:{},formItem:{default:()=>({})}},setup(g,{expose:x}){const l=g;function b(e,u){return d.isArray(u)?u.reduce((n,a)=>n==null?void 0:n[a],e):e==null?void 0:e[u]}const{internalInstance:t,model:w}=k.useInjectForm(),i=o.ref(b(o.unref(w),l.name)||[]),y=o.useSlots(),C=o.toRef(l,"name"),R=p.ApForm.useWatch(C);o.watch(()=>R.value,async e=>{var u;await o.nextTick(),i.value=e,(u=l.onChange)==null||u.call(l,e)},{deep:!0});const{b:B}=K.useNamespace("editable-table"),m=o.ref(),F=O.useGlobalConfig("valueTypeMap"),T=A.default(l,F);function v(e,u){var s;const n=((s=o.unref(i))==null?void 0:s.length)||0;if(h.isDef(l.maxLength)&&n>=l.maxLength)return;const a={...e||{}};t==null||t.setFieldValue(l.name,a,!0,(r,f)=>{if(!r[f]){r[f]=[a];return}d.isUndefined(u)?r[f].push(a):r[f].splice(u,0,a)})}function D(e,u="suffix"){var r;const n=((r=o.unref(i))==null?void 0:r.length)||0,a=d.isNumber(e)?e:e.length;if(h.isDef(l.maxLength)&&n+a>l.maxLength)return;const s=d.isNumber(e)?new Array(e).fill(0).map(()=>({})):d.cloneDeep(e);t==null||t.setFieldValue(l.name,s,!0,(f,c)=>{if(!f[c]){f[c]=[...s];return}u==="suffix"?f[c].push(...s):f[c].unshift(...s)})}function q(e){const u=new Set(d.isNumber(e)?[e]:e);t==null||t.setFieldValue(l.name,void 0,!0,(n,a)=>{n[a]=n[a].filter((s,r)=>!u.has(r))})}function N(e){var n;const u=new Set(d.isArray(e)?e:[e]);u.size!==0&&((n=t==null?void 0:t.setFieldValue)==null||n.call(t,l.name,void 0,!0,(a,s)=>{a[s]=a[s].filter(r=>!u.has(r[l.rowKey]))}))}function S(){return o.unref(i)}function V(e){var u;return(u=o.unref(i))==null?void 0:u[e]}function L(e,u,n=!0){t==null||t.setFieldValue(l.name,void 0,!0,(a,s)=>{!a[s]||!a[s][e]||(a[s][e]={...n?a[s][e]:{},...u})})}function _(e){t==null||t.setFieldValue(l.name,e)}function E(e,u){var a;const n=e==="end"?i.value.length-1:e;z.scrollToRowIndex(n,(a=m.value)==null?void 0:a.$el,u)}function P(){var e;(e=t==null?void 0:t.setFieldValue)==null||e.call(t,l.name,[])}return x({add:v,remove:q,getRowData:V,getRowsData:S,setRowData:L,addMultiple:D,scrollTo:E,setTableData:_,clear:P,removeByKey:N}),(e,u)=>(o.openBlock(),o.createBlock(o.unref(p.ApForm).FormItem,o.mergeProps(e.formItem,{name:e.name,label:e.label}),{default:o.withCtx(()=>[o.createVNode(o.unref(j.Table),o.mergeProps(o.unref(d.omit)(l,["name","maxLength","onChange"]),{ref_key:"tableRef",ref:m,class:o.unref(B)(),columns:o.unref(T),"data-source":i.value}),o.createSlots({_:2},[o.renderList(o.unref(d.omit)(y,["headerCell"]),(n,a)=>({name:a,fn:o.withCtx(s=>[o.renderSlot(e.$slots,a,o.normalizeProps(o.guardReactiveProps(s||{})))])}))]),1040,["class","columns","data-source"])]),_:3},16,["name","label"]))}});exports.default=G;
@@ -1,25 +1,11 @@
1
- import { EditableTableProps, EditableColumnType } from './interface';
2
- import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
1
+ import { EditableTableProps, EditableColumnType, EditableTableExpose } from './interface';
3
2
  import { Recordable } from '../type';
4
- import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
5
3
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
6
4
  declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
6
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
9
7
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType> & Partial<{}>> & PublicProps;
10
- expose(exposed: ShallowUnwrapRef<{
11
- resetFields: () => void;
12
- validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
13
- add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
14
- remove: (index: number | number[]) => void;
15
- getRowData: (index: number) => RecordType;
16
- getRowsData: () => RecordType[];
17
- setRowData: (index: number, payload: any, merge?: boolean) => void;
18
- addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
19
- scrollTo: (index: number | "end", options?: StandardBehaviorOptions) => void;
20
- clear: () => void;
21
- setTableData: (nextTableData: RecordType[]) => void;
22
- }>): void;
8
+ expose(exposed: ShallowUnwrapRef<EditableTableExpose>): void;
23
9
  attrs: any;
24
10
  slots: Readonly<{
25
11
  default: any;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),O=require("@aplus-frontend/antdv"),x=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const v=require("../utils/index.js"),z=require("./utils.js"),U=require("./hooks/use-get-columns.js"),G=require("../config-provider/hooks/use-namespace.js"),K=require("../hooks/useControllableValue.js"),$=require("../config-provider/hooks/use-global-config.js"),H=n.defineComponent({name:"EditableTable",__name:"index",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"small"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},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:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},name:{default:"ap-editable-table-inner-name"},onFieldChange:{}},emits:["update:value"],setup(w,{expose:C,emit:b}){const l=w,{b:y}=G.useNamespace("editable-table"),R=n.useSlots(),F=b,g=n.ref(),{value:p,updateValue:q}=K.useControllableValue(l,F),i=n.ref(),B=$.useGlobalConfig("valueTypeMap"),h=x.ApForm.useWatch(l.name,i);n.watch(()=>h.value,e=>{var t;q(e),(t=l.onChange)==null||t.call(l,e)},{deep:!0,flush:"post"}),n.watch(p,e=>{var t;e!==n.unref(h)&&(d.isEqual(e,n.unref(h))||(t=i.value)==null||t.setFieldValue(l.name,e))},{deep:!0});const V=U.default(l,B);function N(){var e;(e=i.value)==null||e.resetFields()}function T(e){return e?(d.isArray(e)?e:[e]).map(o=>d.isArray(o)?[l.name,...o]:[l.name,o]):void 0}async function _(e,t){var a;const o=await((a=i.value)==null?void 0:a.validateFields(T(e),t));return o==null?void 0:o[l.name]}function S(e,t){var u,r,s;const o=((u=n.unref(p))==null?void 0:u.length)||0;if(v.isDef(l.maxLength)&&o>=l.maxLength)return;const a={...e||{}};(s=(r=i.value)==null?void 0:r.setFieldValue)==null||s.call(r,l.name,a,!0,(f,c)=>{if(!f[c]){f[c]=[a];return}d.isUndefined(t)?f[c].push(a):f[c].splice(t,0,a)})}function A(e,t="suffix"){var r,s,f;const o=((r=n.unref(p))==null?void 0:r.length)||0,a=d.isNumber(e)?e:e.length;if(v.isDef(l.maxLength)&&o+a>l.maxLength)return;const u=d.isNumber(e)?new Array(e).fill(0).map(()=>({})):d.cloneDeep(e);(f=(s=i.value)==null?void 0:s.setFieldValue)==null||f.call(s,l.name,u,!0,(c,m)=>{if(!c[m]){c[m]=[...u];return}t==="suffix"?c[m].push(...u):c[m].unshift(...u)})}function D(e){var o,a;const t=new Set(d.isNumber(e)?[e]:e);(a=(o=i.value)==null?void 0:o.setFieldValue)==null||a.call(o,l.name,void 0,!0,(u,r)=>{u[r]=u[r].filter((s,f)=>!t.has(f))})}function L(){return n.unref(p)}function E(e){var t;(t=i.value)==null||t.setFieldValue(l.name,e)}function k(e){var t;return(t=n.unref(p))==null?void 0:t[e]}function P(e,t,o=!0){var a,u;(u=(a=i.value)==null?void 0:a.setFieldValue)==null||u.call(a,l.name,void 0,!0,(r,s)=>{!r[s]||!r[s][e]||(r[s][e]={...o?r[s][e]:{},...t})})}function j(e,t){var a;const o=e==="end"?p.value.length-1:e;z.scrollToRowIndex(o,(a=g.value)==null?void 0:a.$el,t)}function I(){var e,t;(t=(e=i.value)==null?void 0:e.setFieldValue)==null||t.call(e,l.name,[])}return C({resetFields:N,validateFields:_,add:S,remove:D,getRowData:k,getRowsData:L,setRowData:P,addMultiple:A,scrollTo:j,clear:I,setTableData:E}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(x.ApForm),{ref_key:"formRef",ref:i,"initial-values":{[l.name]:n.unref(p)}},{default:n.withCtx(()=>[n.createVNode(n.unref(x.ApForm).FormItem,{name:e.name,"no-style":""},{default:n.withCtx(()=>[n.createVNode(n.unref(O.Table),n.mergeProps(n.unref(d.omit)(l,["name","value","onUpdate:value","maxLength","onChange"]),{ref_key:"tableRef",ref:g,class:n.unref(y)(),columns:n.unref(V),"data-source":n.unref(p)}),n.createSlots({_:2},[n.renderList(n.unref(d.omit)(R,["headerCell"]),(o,a)=>({name:a,fn:n.withCtx(u=>[n.renderSlot(e.$slots,a,n.normalizeProps(n.guardReactiveProps(u||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["name"])]),_:3},8,["initial-values"]))}});exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),K=require("@aplus-frontend/antdv"),v=require("../ap-form/index.js"),f=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const g=require("../utils/index.js"),O=require("./utils.js"),U=require("./hooks/use-get-columns.js"),G=require("../config-provider/hooks/use-namespace.js"),$=require("../hooks/useControllableValue.js"),H=require("../config-provider/hooks/use-global-config.js"),W=t.defineComponent({name:"EditableTable",__name:"index",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"small"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},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:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},name:{default:"ap-editable-table-inner-name"},onFieldChange:{}},emits:["update:value"],setup(w,{expose:y,emit:C}){const o=w,{b}=G.useNamespace("editable-table"),R=t.useSlots(),F=C,x=t.ref(),{value:p,updateValue:B}=$.useControllableValue(o,F),i=t.ref(),V=H.useGlobalConfig("valueTypeMap"),h=v.ApForm.useWatch(o.name,i);t.watch(()=>h.value,e=>{var n;B(e),(n=o.onChange)==null||n.call(o,e)},{deep:!0,flush:"post"}),t.watch(p,e=>{var n;e!==t.unref(h)&&(f.isEqual(e,t.unref(h))||(n=i.value)==null||n.setFieldValue(o.name,e))},{deep:!0});const q=U.default(o,V);function N(){var e;(e=i.value)==null||e.resetFields()}function T(e){return e?(f.isArray(e)?e:[e]).map(a=>f.isArray(a)?[o.name,...a]:[o.name,a]):void 0}async function S(e,n){var l;const a=await((l=i.value)==null?void 0:l.validateFields(T(e),n));return a==null?void 0:a[o.name]}function _(e,n){var u,r,s;const a=((u=t.unref(p))==null?void 0:u.length)||0;if(g.isDef(o.maxLength)&&a>=o.maxLength)return;const l={...e||{}};(s=(r=i.value)==null?void 0:r.setFieldValue)==null||s.call(r,o.name,l,!0,(d,c)=>{if(!d[c]){d[c]=[l];return}f.isUndefined(n)?d[c].push(l):d[c].splice(n,0,l)})}function A(e,n="suffix"){var r,s,d;const a=((r=t.unref(p))==null?void 0:r.length)||0,l=f.isNumber(e)?e:e.length;if(g.isDef(o.maxLength)&&a+l>o.maxLength)return;const u=f.isNumber(e)?new Array(e).fill(0).map(()=>({})):f.cloneDeep(e);(d=(s=i.value)==null?void 0:s.setFieldValue)==null||d.call(s,o.name,u,!0,(c,m)=>{if(!c[m]){c[m]=[...u];return}n==="suffix"?c[m].push(...u):c[m].unshift(...u)})}function D(e){var a,l;const n=new Set(f.isNumber(e)?[e]:e);(l=(a=i.value)==null?void 0:a.setFieldValue)==null||l.call(a,o.name,void 0,!0,(u,r)=>{u[r]=u[r].filter((s,d)=>!n.has(d))})}function L(e){var a,l;const n=new Set(f.isArray(e)?e:[e]);n.size!==0&&((l=(a=i.value)==null?void 0:a.setFieldValue)==null||l.call(a,o.name,void 0,!0,(u,r)=>{u[r]=u[r].filter(s=>!n.has(s[o.rowKey]))}))}function E(){return t.unref(p)}function k(e){var n;(n=i.value)==null||n.setFieldValue(o.name,e)}function P(e){var n;return(n=t.unref(p))==null?void 0:n[e]}function j(e,n,a=!0){var l,u;(u=(l=i.value)==null?void 0:l.setFieldValue)==null||u.call(l,o.name,void 0,!0,(r,s)=>{!r[s]||!r[s][e]||(r[s][e]={...a?r[s][e]:{},...n})})}function z(e,n){var l;const a=e==="end"?p.value.length-1:e;O.scrollToRowIndex(a,(l=x.value)==null?void 0:l.$el,n)}function I(){var e,n;(n=(e=i.value)==null?void 0:e.setFieldValue)==null||n.call(e,o.name,[])}return y({resetFields:N,validateFields:S,add:_,remove:D,getRowData:P,getRowsData:E,setRowData:j,addMultiple:A,scrollTo:z,clear:I,setTableData:k,removeByKey:L}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(v.ApForm),{ref_key:"formRef",ref:i,"initial-values":{[o.name]:t.unref(p)}},{default:t.withCtx(()=>[t.createVNode(t.unref(v.ApForm).FormItem,{name:e.name,"no-style":""},{default:t.withCtx(()=>[t.createVNode(t.unref(K.Table),t.mergeProps(t.unref(f.omit)(o,["name","value","onUpdate:value","maxLength","onChange"]),{ref_key:"tableRef",ref:x,class:t.unref(b)(),columns:t.unref(q),"data-source":t.unref(p)}),t.createSlots({_:2},[t.renderList(t.unref(f.omit)(R,["headerCell"]),(a,l)=>({name:l,fn:t.withCtx(u=>[t.renderSlot(e.$slots,l,t.normalizeProps(t.guardReactiveProps(u||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["name"])]),_:3},8,["initial-values"]))}});exports.default=W;
@@ -7,6 +7,7 @@ import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
7
7
  import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../type';
9
9
  import { ApFormItemProps } from '../ap-form';
10
+ import { Key } from '@aplus-frontend/antdv/es/_util/type';
10
11
  export type EditableColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<ColumnType<RecordType>, 'children' | 'customRender' | 'ellipsis'> & {
11
12
  children?: EditableColumnType<RecordType, ExtraValueType, ValueType, MergedValueType>[];
12
13
  /**
@@ -138,6 +139,12 @@ export type EditableTableExpose<ModelType = any, RecordType = any> = {
138
139
  * @returns
139
140
  */
140
141
  remove: (index: number | number[]) => void;
142
+ /**
143
+ * 通过key删除数据
144
+ * @param key
145
+ * @returns
146
+ */
147
+ removeByKey: (key: Key | Key[]) => void;
141
148
  /**
142
149
  * 清空所有数据
143
150
  * @returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.6.0-beta.2",
3
+ "version": "0.6.0-beta.4",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -66,10 +66,10 @@
66
66
  "vue-virtual-scroller": "2.0.0-beta.8",
67
67
  "vuedraggable": "^4.1.0",
68
68
  "@aplus-frontend/hooks": "1.0.7",
69
- "@aplus-frontend/utils": "1.0.55"
69
+ "@aplus-frontend/utils": "1.0.57"
70
70
  },
71
71
  "peerDependencies": {
72
- "@aplus-frontend/antdv": "^1.1.4",
72
+ "@aplus-frontend/antdv": "^1.1.5",
73
73
  "@aplus-frontend/icon": "^1.2.3",
74
74
  "@aplus-frontend/oss": "^1.1.2",
75
75
  "vue": "^3.5.13",
@@ -77,7 +77,7 @@
77
77
  "vxe-table": "4.11.29"
78
78
  },
79
79
  "devDependencies": {
80
- "@aplus-frontend/antdv": "^1.1.4",
80
+ "@aplus-frontend/antdv": "^1.1.5",
81
81
  "@aplus-frontend/icon": "^1.2.3",
82
82
  "@aplus-frontend/oss": "^1.1.2",
83
83
  "@types/sortablejs": "^1.15.8",
@@ -166,8 +166,8 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
166
166
  .ant-modal-root .ant-modal .ant-modal-close-x {
167
167
  display: inline-block;
168
168
  width: 96px;
169
- height: 54px;
170
- line-height: 54px;
169
+ height: 47px;
170
+ line-height: 47px;
171
171
  text-align: start;
172
172
  }
173
173
  .ant-modal-root .ant-modal .ant-modal-close-x > div {
@@ -188,22 +188,9 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
188
188
  }
189
189
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header {
190
190
  margin-bottom: 0;
191
- padding: 15px 20px;
191
+ padding: 12px 20px;
192
192
  border-bottom: 1px solid #E9E9E9;
193
193
  }
194
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title {
195
- color: #333333;
196
- font-weight: normal;
197
- font-size: 16px;
198
- line-height: 24px;
199
- }
200
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title > span {
201
- padding-left: 0;
202
- color: #333333;
203
- font-weight: normal;
204
- font-size: 16px;
205
- line-height: 24px;
206
- }
207
194
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body {
208
195
  padding: 20px !important;
209
196
  }
@@ -222,7 +209,7 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
222
209
  }
223
210
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer {
224
211
  margin-top: 0;
225
- padding: 11px 20px;
212
+ padding: 12px 20px;
226
213
  border-top: 1px solid #E9E9E9;
227
214
  }
228
215
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer button {
@@ -15,8 +15,8 @@
15
15
  .ant-modal-root .ant-modal .ant-modal-close-x {
16
16
  display: inline-block;
17
17
  width: 96px;
18
- height: 54px;
19
- line-height: 54px;
18
+ height: 47px;
19
+ line-height: 47px;
20
20
  text-align: start;
21
21
  }
22
22
  .ant-modal-root .ant-modal .ant-modal-close-x > div {
@@ -37,22 +37,9 @@
37
37
  }
38
38
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header {
39
39
  margin-bottom: 0;
40
- padding: 15px 20px;
40
+ padding: 12px 20px;
41
41
  border-bottom: 1px solid #E9E9E9;
42
42
  }
43
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title {
44
- color: #333333;
45
- font-weight: normal;
46
- font-size: 16px;
47
- line-height: 24px;
48
- }
49
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title > span {
50
- padding-left: 0;
51
- color: #333333;
52
- font-weight: normal;
53
- font-size: 16px;
54
- line-height: 24px;
55
- }
56
43
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body {
57
44
  padding: 20px !important;
58
45
  }
@@ -71,7 +58,7 @@
71
58
  }
72
59
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer {
73
60
  margin-top: 0;
74
- padding: 11px 20px;
61
+ padding: 12px 20px;
75
62
  border-top: 1px solid #E9E9E9;
76
63
  }
77
64
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer button {
@@ -19,8 +19,8 @@
19
19
  .ant-modal-close-x {
20
20
  display: inline-block;
21
21
  width: 96px;
22
- height: 54px;
23
- line-height: 54px;
22
+ height: 47px;
23
+ line-height: 47px;
24
24
  text-align: start;
25
25
 
26
26
  & > div {
@@ -45,23 +45,8 @@
45
45
 
46
46
  .ant-modal-header {
47
47
  margin-bottom: 0;
48
- padding: 15px 20px;
48
+ padding: 12px 20px;
49
49
  border-bottom: 1px solid#E9E9E9;
50
-
51
- .ant-modal-title {
52
- color: #333333;
53
- font-weight: normal;
54
- font-size: 16px;
55
- line-height: 24px;
56
-
57
- & > span {
58
- padding-left: 0;
59
- color: #333333;
60
- font-weight: normal;
61
- font-size: 16px;
62
- line-height: 24px;
63
- }
64
- }
65
50
  }
66
51
 
67
52
  .ant-modal-body {
@@ -87,7 +72,7 @@
87
72
 
88
73
  .ant-modal-footer {
89
74
  margin-top: 0;
90
- padding: 11px 20px;
75
+ padding: 12px 20px;
91
76
  border-top: 1px solid#E9E9E9;
92
77
 
93
78
  button {
@@ -196,8 +196,8 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
196
196
  .ant-modal-root .ant-modal .ant-modal-close-x {
197
197
  display: inline-block;
198
198
  width: 96px;
199
- height: 54px;
200
- line-height: 54px;
199
+ height: 47px;
200
+ line-height: 47px;
201
201
  text-align: start;
202
202
  }
203
203
  .ant-modal-root .ant-modal .ant-modal-close-x > div {
@@ -218,16 +218,9 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
218
218
  }
219
219
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header {
220
220
  margin-bottom: 0;
221
- padding: 15px 20px;
221
+ padding: 12px 20px;
222
222
  border-bottom: 1px solid #E9EDF3;
223
223
  }
224
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title > span {
225
- padding-left: 0;
226
- color: #182948;
227
- font-weight: bold;
228
- font-size: 16px;
229
- line-height: 24px;
230
- }
231
224
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body {
232
225
  padding: 20px !important;
233
226
  }
@@ -246,7 +239,7 @@ div[class$='-basic-table-form-container ap-table--sticky'] form[class$='-basic-f
246
239
  }
247
240
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer {
248
241
  margin-top: 0;
249
- padding: 0 20px 20px;
242
+ padding: 0 20px 12px;
250
243
  border-top: none;
251
244
  }
252
245
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer button {
@@ -15,8 +15,8 @@
15
15
  .ant-modal-root .ant-modal .ant-modal-close-x {
16
16
  display: inline-block;
17
17
  width: 96px;
18
- height: 54px;
19
- line-height: 54px;
18
+ height: 47px;
19
+ line-height: 47px;
20
20
  text-align: start;
21
21
  }
22
22
  .ant-modal-root .ant-modal .ant-modal-close-x > div {
@@ -37,16 +37,9 @@
37
37
  }
38
38
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header {
39
39
  margin-bottom: 0;
40
- padding: 15px 20px;
40
+ padding: 12px 20px;
41
41
  border-bottom: 1px solid #E9EDF3;
42
42
  }
43
- .ant-modal-root .ant-modal .ant-modal-content .ant-modal-header .ant-modal-title > span {
44
- padding-left: 0;
45
- color: #182948;
46
- font-weight: bold;
47
- font-size: 16px;
48
- line-height: 24px;
49
- }
50
43
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-body {
51
44
  padding: 20px !important;
52
45
  }
@@ -65,7 +58,7 @@
65
58
  }
66
59
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer {
67
60
  margin-top: 0;
68
- padding: 0 20px 20px;
61
+ padding: 0 20px 12px;
69
62
  border-top: none;
70
63
  }
71
64
  .ant-modal-root .ant-modal .ant-modal-content .ant-modal-footer button {
@@ -19,8 +19,8 @@
19
19
  .ant-modal-close-x {
20
20
  display: inline-block;
21
21
  width: 96px;
22
- height: 54px;
23
- line-height: 54px;
22
+ height: 47px;
23
+ line-height: 47px;
24
24
  text-align: start;
25
25
 
26
26
  & > div {
@@ -45,18 +45,8 @@
45
45
 
46
46
  .ant-modal-header {
47
47
  margin-bottom: 0;
48
- padding: 15px 20px;
48
+ padding: 12px 20px;
49
49
  border-bottom: 1px solid#E9EDF3;
50
-
51
- .ant-modal-title {
52
- & > span {
53
- padding-left: 0;
54
- color: #182948;
55
- font-weight: bold;
56
- font-size: 16px;
57
- line-height: 24px;
58
- }
59
- }
60
50
  }
61
51
 
62
52
  .ant-modal-body {
@@ -82,7 +72,7 @@
82
72
 
83
73
  .ant-modal-footer {
84
74
  margin-top: 0;
85
- padding: 0 20px 20px;
75
+ padding: 0 20px 12px;
86
76
  border-top: none;
87
77
 
88
78
  button {
@@ -88,8 +88,8 @@
88
88
  box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
89
89
  }
90
90
  .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
91
- font-size: 10px;
92
- line-height: 1.6;
91
+ font-size: 12px;
92
+ line-height: 16px;
93
93
  }
94
94
  .aplus-ap-form-item .ant-col .ant-form-item-extra {
95
95
  line-height: 22px;
@@ -75,8 +75,8 @@
75
75
  }
76
76
  .ant-form-show-help {
77
77
  .ant-form-item-explain-error {
78
- font-size: @font-size-small;
79
- line-height: @line-height-small;
78
+ font-size: @font-size-base;
79
+ line-height: 16px;
80
80
  }
81
81
  }
82
82
  .ant-col .ant-form-item-extra {
@@ -97,8 +97,8 @@
97
97
  box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
98
98
  }
99
99
  .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
100
- font-size: 10px;
101
- line-height: 1.6;
100
+ font-size: 12px;
101
+ line-height: 16px;
102
102
  }
103
103
  .aplus-ap-form-item .ant-col .ant-form-item-extra {
104
104
  line-height: 22px;
@@ -271,6 +271,9 @@
271
271
  .aplus-ap-form-search-form__popover-footer-confirm-btn {
272
272
  margin-left: 10px;
273
273
  }
274
+ .aplus-ap-form-search-form__popover-footer button.ant-btn {
275
+ padding-inline: 16px;
276
+ }
274
277
  .aplus-ap-form-search-form-column-setting-trigger-wrapper {
275
278
  flex-shrink: 0;
276
279
  }
@@ -88,8 +88,8 @@
88
88
  box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
89
89
  }
90
90
  .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
91
- font-size: 10px;
92
- line-height: 1.6;
91
+ font-size: 12px;
92
+ line-height: 16px;
93
93
  }
94
94
  .aplus-ap-form-item .ant-col .ant-form-item-extra {
95
95
  line-height: 22px;
@@ -226,6 +226,9 @@
226
226
  .aplus-ap-form-search-form__popover-footer-confirm-btn {
227
227
  margin-left: 10px;
228
228
  }
229
+ .aplus-ap-form-search-form__popover-footer button.ant-btn {
230
+ padding-inline: 16px;
231
+ }
229
232
  .aplus-ap-form-search-form-column-setting-trigger-wrapper {
230
233
  flex-shrink: 0;
231
234
  }
@@ -37,6 +37,9 @@
37
37
  &-confirm-btn {
38
38
  margin-left: 10px;
39
39
  }
40
+ & button.ant-btn {
41
+ padding-inline: @spacing-xl;
42
+ }
40
43
  }
41
44
  }
42
45
  &-column-setting-trigger-wrapper {
@@ -97,8 +97,8 @@
97
97
  box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
98
98
  }
99
99
  .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
100
- font-size: 10px;
101
- line-height: 1.6;
100
+ font-size: 12px;
101
+ line-height: 16px;
102
102
  }
103
103
  .aplus-ap-form-item .ant-col .ant-form-item-extra {
104
104
  line-height: 22px;
@@ -271,6 +271,9 @@
271
271
  .aplus-ap-form-search-form__popover-footer-confirm-btn {
272
272
  margin-left: 10px;
273
273
  }
274
+ .aplus-ap-form-search-form__popover-footer button.ant-btn {
275
+ padding-inline: 16px;
276
+ }
274
277
  .aplus-ap-form-search-form-column-setting-trigger-wrapper {
275
278
  flex-shrink: 0;
276
279
  }
@@ -81,8 +81,7 @@
81
81
  }
82
82
  .aplus-ap-column-setting-left__content {
83
83
  flex: 1;
84
- padding-inline: 12px;
85
- padding-block: 16px;
84
+ padding: 12px;
86
85
  overflow-y: auto;
87
86
  }
88
87
  .aplus-ap-column-setting-left__content .ant-checkbox-wrapper {
@@ -101,8 +100,9 @@
101
100
  background-color: #F2F6F9;
102
101
  padding: 4px 12px;
103
102
  border-radius: 4px;
104
- margin-bottom: 16px;
103
+ margin-bottom: 12px;
105
104
  margin-inline: -12px;
105
+ display: flex;
106
106
  }
107
107
  .aplus-sortable-item-meta {
108
108
  padding: 6px 8px;
@@ -285,8 +285,8 @@
285
285
  box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
286
286
  }
287
287
  .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
288
- font-size: 10px;
289
- line-height: 1.6;
288
+ font-size: 12px;
289
+ line-height: 16px;
290
290
  }
291
291
  .aplus-ap-form-item .ant-col .ant-form-item-extra {
292
292
  line-height: 22px;
@@ -459,6 +459,9 @@
459
459
  .aplus-ap-form-search-form__popover-footer-confirm-btn {
460
460
  margin-left: 10px;
461
461
  }
462
+ .aplus-ap-form-search-form__popover-footer button.ant-btn {
463
+ padding-inline: 16px;
464
+ }
462
465
  .aplus-ap-form-search-form-column-setting-trigger-wrapper {
463
466
  flex-shrink: 0;
464
467
  }
@@ -69,8 +69,7 @@
69
69
  }
70
70
  .aplus-ap-column-setting-left__content {
71
71
  flex: 1;
72
- padding-inline: 12px;
73
- padding-block: 16px;
72
+ padding: 12px;
74
73
  overflow-y: auto;
75
74
  }
76
75
  .aplus-ap-column-setting-left__content .ant-checkbox-wrapper {
@@ -89,8 +88,9 @@
89
88
  background-color: #F2F6F9;
90
89
  padding: 4px 12px;
91
90
  border-radius: 4px;
92
- margin-bottom: 16px;
91
+ margin-bottom: 12px;
93
92
  margin-inline: -12px;
93
+ display: flex;
94
94
  }
95
95
  .aplus-sortable-item-meta {
96
96
  padding: 6px 8px;
@@ -69,8 +69,7 @@
69
69
  }
70
70
  .aplus-ap-column-setting-left__content {
71
71
  flex: 1;
72
- padding-inline: 12px;
73
- padding-block: 16px;
72
+ padding: 12px;
74
73
  overflow-y: auto;
75
74
  }
76
75
  .aplus-ap-column-setting-left__content .ant-checkbox-wrapper {
@@ -41,8 +41,7 @@
41
41
  }
42
42
  &__content {
43
43
  flex: 1;
44
- padding-inline: 12px;
45
- padding-block: 16px;
44
+ padding: 12px;
46
45
  overflow-y: auto;
47
46
  // 覆盖全局样式
48
47
  .ant-checkbox-wrapper {
@@ -30,6 +30,7 @@
30
30
  background-color: #F2F6F9;
31
31
  padding: 4px 12px;
32
32
  border-radius: 4px;
33
- margin-bottom: 16px;
33
+ margin-bottom: 12px;
34
34
  margin-inline: -12px;
35
+ display: flex;
35
36
  }
@@ -5,7 +5,8 @@
5
5
  background-color: #F2F6F9;
6
6
  padding: 4px 12px;
7
7
  border-radius: 4px;
8
- margin-bottom: 16px;
8
+ margin-bottom: 12px;
9
9
  margin-inline: -12px;
10
+ display: flex;
10
11
  }
11
12
  });
@@ -81,8 +81,7 @@
81
81
  }
82
82
  .aplus-ap-column-setting-left__content {
83
83
  flex: 1;
84
- padding-inline: 12px;
85
- padding-block: 16px;
84
+ padding: 12px;
86
85
  overflow-y: auto;
87
86
  }
88
87
  .aplus-ap-column-setting-left__content .ant-checkbox-wrapper {
@@ -101,8 +100,9 @@
101
100
  background-color: #F2F6F9;
102
101
  padding: 4px 12px;
103
102
  border-radius: 4px;
104
- margin-bottom: 16px;
103
+ margin-bottom: 12px;
105
104
  margin-inline: -12px;
105
+ display: flex;
106
106
  }
107
107
  .aplus-sortable-item-meta {
108
108
  padding: 6px 8px;
@@ -285,8 +285,8 @@
285
285
  box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
286
286
  }
287
287
  .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
288
- font-size: 10px;
289
- line-height: 1.6;
288
+ font-size: 12px;
289
+ line-height: 16px;
290
290
  }
291
291
  .aplus-ap-form-item .ant-col .ant-form-item-extra {
292
292
  line-height: 22px;
@@ -459,6 +459,9 @@
459
459
  .aplus-ap-form-search-form__popover-footer-confirm-btn {
460
460
  margin-left: 10px;
461
461
  }
462
+ .aplus-ap-form-search-form__popover-footer button.ant-btn {
463
+ padding-inline: 16px;
464
+ }
462
465
  .aplus-ap-form-search-form-column-setting-trigger-wrapper {
463
466
  flex-shrink: 0;
464
467
  }
@@ -44,7 +44,7 @@
44
44
  }
45
45
  .aplus-tag-wrapper .aplus-tag-inner-wrapper--middle {
46
46
  line-height: 1.5;
47
- padding: 4px;
47
+ padding: 3px 4px;
48
48
  font-size: 12px;
49
49
  }
50
50
  .aplus-tag-wrapper .aplus-tag-inner-wrapper--small {