@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.
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +39 -34
- package/es/src/ap-grid/editable/form-item.vue.mjs +94 -83
- package/es/src/ap-grid/editable/index.vue.mjs +89 -78
- package/es/src/ap-grid/index.vue.mjs +47 -43
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +32 -32
- package/es/src/ap-table/ap-table.vue2.mjs +2 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/business/ap-status/interface.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +84 -76
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +91 -83
- package/es/src/editable-table/interface.d.ts +7 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/business/ap-status/interface.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -14
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -16
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +7 -0
- package/package.json +4 -4
- package/theme/antd-global-overwrite/admin/index.css +4 -17
- package/theme/antd-global-overwrite/admin/modal.css +4 -17
- package/theme/antd-global-overwrite/admin/modal.less +4 -19
- package/theme/antd-global-overwrite/aplus/index.css +4 -11
- package/theme/antd-global-overwrite/aplus/modal.css +4 -11
- package/theme/antd-global-overwrite/aplus/modal.less +4 -14
- package/theme/ap-form/ap-form-item.css +2 -2
- package/theme/ap-form/ap-form-item.less +2 -2
- package/theme/ap-form/index.css +5 -2
- package/theme/ap-form/search-form.css +5 -2
- package/theme/ap-form/search-form.less +3 -0
- package/theme/ap-grid/index.css +5 -2
- package/theme/ap-table/ap-table.css +8 -5
- package/theme/ap-table/setting/index.css +3 -3
- package/theme/ap-table/setting/modal.css +1 -2
- package/theme/ap-table/setting/modal.less +1 -2
- package/theme/ap-table/setting/select-group.css +2 -1
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table-modal/index.css +8 -5
- package/theme/ap-tag/ap-tag.css +1 -1
- package/theme/ap-tag/ap-tag.less +1 -1
- package/theme/editable-table/index.css +5 -2
- package/theme/index.css +9 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
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
|
|
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.
|
|
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.
|
|
69
|
+
"@aplus-frontend/utils": "1.0.57"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@aplus-frontend/antdv": "^1.1.
|
|
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.
|
|
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:
|
|
170
|
-
line-height:
|
|
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:
|
|
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:
|
|
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:
|
|
19
|
-
line-height:
|
|
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:
|
|
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:
|
|
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:
|
|
23
|
-
line-height:
|
|
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:
|
|
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:
|
|
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:
|
|
200
|
-
line-height:
|
|
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:
|
|
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
|
|
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:
|
|
19
|
-
line-height:
|
|
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:
|
|
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
|
|
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:
|
|
23
|
-
line-height:
|
|
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:
|
|
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
|
|
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:
|
|
92
|
-
line-height:
|
|
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;
|
package/theme/ap-form/index.css
CHANGED
|
@@ -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:
|
|
101
|
-
line-height:
|
|
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:
|
|
92
|
-
line-height:
|
|
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
|
}
|
package/theme/ap-grid/index.css
CHANGED
|
@@ -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:
|
|
101
|
-
line-height:
|
|
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
|
|
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:
|
|
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:
|
|
289
|
-
line-height:
|
|
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
|
|
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:
|
|
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;
|
|
@@ -81,8 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
.aplus-ap-column-setting-left__content {
|
|
83
83
|
flex: 1;
|
|
84
|
-
padding
|
|
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:
|
|
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:
|
|
289
|
-
line-height:
|
|
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
|
}
|