@aplus-frontend/ui 0.0.1 → 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.
Files changed (73) hide show
  1. package/es/src/ap-field/date/index.vue.d.ts +63 -5
  2. package/es/src/ap-field/date/index.vue.mjs +115 -46
  3. package/es/src/ap-field/date-range/index.vue.d.ts +68 -6
  4. package/es/src/ap-field/date-range/index.vue.mjs +135 -62
  5. package/es/src/ap-field/interface.d.ts +3 -7
  6. package/es/src/ap-field/select/index.vue.d.ts +45 -179
  7. package/es/src/ap-field/select/index.vue.mjs +137 -66
  8. package/es/src/ap-form/items/date/index.vue.mjs +27 -29
  9. package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -1
  10. package/es/src/ap-form/items/date-range/index.vue.mjs +27 -29
  11. package/es/src/ap-form/items/interface.d.ts +1 -1
  12. package/es/src/ap-form/items/select/index.vue.mjs +32 -32
  13. package/es/src/ap-table/ap-table.vue.d.ts +7 -7
  14. package/es/src/ap-table/ap-table.vue.mjs +141 -117
  15. package/es/src/ap-table/constants.d.ts +3092 -1827
  16. package/es/src/ap-table/hooks/use-table-paging.mjs +23 -23
  17. package/es/src/ap-table/interface.d.ts +21 -13
  18. package/es/src/ap-table/utils.d.ts +47 -0
  19. package/es/src/ap-table/utils.mjs +68 -20
  20. package/es/src/ap-tag/style/ap-tag-group.css +1 -0
  21. package/es/src/ap-tag/style/ap-tag.css +1 -0
  22. package/es/src/pro-form/components/form-action.vue2.mjs +37 -35
  23. package/es/src/pro-form/hooks/use-advanced.mjs +45 -45
  24. package/es/src/pro-table/style/pro-table.css +3 -0
  25. package/es/src/theme/antd-global-overwrite/admin/button.css +0 -11
  26. package/es/src/theme/antd-global-overwrite/admin/index.css +35 -31
  27. package/es/src/theme/antd-global-overwrite/admin/table.css +35 -20
  28. package/es/src/theme/antd-global-overwrite/aplus/button.css +0 -11
  29. package/es/src/theme/antd-global-overwrite/aplus/index.css +35 -31
  30. package/es/src/theme/antd-global-overwrite/aplus/table.css +35 -20
  31. package/es/src/theme/ap-tag/ap-tag-group.css +1 -0
  32. package/es/src/theme/ap-tag/ap-tag.css +1 -0
  33. package/es/src/theme/pro-table/pro-table.css +3 -0
  34. package/es/src/utils/index.d.ts +8 -0
  35. package/es/src/utils/index.mjs +40 -32
  36. package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -8
  37. package/lib/src/ap-field/date/index.vue.d.ts +63 -5
  38. package/lib/src/ap-field/date/index.vue.js +1 -1
  39. package/lib/src/ap-field/date-range/index.vue.d.ts +68 -6
  40. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  41. package/lib/src/ap-field/interface.d.ts +3 -7
  42. package/lib/src/ap-field/select/index.vue.d.ts +45 -179
  43. package/lib/src/ap-field/select/index.vue.js +1 -1
  44. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  45. package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -1
  46. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  47. package/lib/src/ap-form/items/interface.d.ts +1 -1
  48. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  49. package/lib/src/ap-table/ap-table.vue.d.ts +7 -7
  50. package/lib/src/ap-table/ap-table.vue.js +1 -1
  51. package/lib/src/ap-table/constants.d.ts +3092 -1827
  52. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  53. package/lib/src/ap-table/interface.d.ts +21 -13
  54. package/lib/src/ap-table/utils.d.ts +47 -0
  55. package/lib/src/ap-table/utils.js +1 -1
  56. package/lib/src/ap-tag/style/ap-tag-group.css +1 -0
  57. package/lib/src/ap-tag/style/ap-tag.css +1 -0
  58. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  59. package/lib/src/pro-form/hooks/use-advanced.js +1 -1
  60. package/lib/src/pro-table/style/pro-table.css +3 -0
  61. package/lib/src/theme/antd-global-overwrite/admin/button.css +0 -11
  62. package/lib/src/theme/antd-global-overwrite/admin/index.css +35 -31
  63. package/lib/src/theme/antd-global-overwrite/admin/table.css +35 -20
  64. package/lib/src/theme/antd-global-overwrite/aplus/button.css +0 -11
  65. package/lib/src/theme/antd-global-overwrite/aplus/index.css +35 -31
  66. package/lib/src/theme/antd-global-overwrite/aplus/table.css +35 -20
  67. package/lib/src/theme/ap-tag/ap-tag-group.css +1 -0
  68. package/lib/src/theme/ap-tag/ap-tag.css +1 -0
  69. package/lib/src/theme/pro-table/pro-table.css +3 -0
  70. package/lib/src/utils/index.d.ts +8 -0
  71. package/lib/src/utils/index.js +1 -1
  72. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  73. package/package.json +3 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),y=require("../utils.js"),I=require("lodash-unified");require("../../config-provider/index.js");const K=require("../../config-provider/hooks/use-locale.js"),N=({manual:O=!1,defaultCurrent:j=1,defaultPageSize:F=10,request:$,defaultParams:D={},defaultData:L=[],formatParams:S,paramsValueTypeMap:T,resetFieldsIgnores:P,filterFields:M=[],sortFields:R=[]})=>{let v=0,f={};const x=e=>S?S(e):e,c=r.ref(),i=r.ref(j),g=r.ref(F),{t:b}=K.useLocale(),o=r.ref({total:0,records:L,loading:!1}),z=async e=>{var n;const a=x(e),t=Date.now();v=t,o.value.loading=!0;try{const s=await $({...D,...a});v===t&&(o.value.total=s.total||((n=s.data)==null?void 0:n.length)||0,o.value.records=[...s.data||[]])}catch{v===t&&(o.value.records=[],o.value.total=0)}finally{o.value.loading=!1}},q=e=>{const a={};return Object.entries(e).forEach(([t,n])=>{if(a[t]=n,T&&n){const s=T[t];s&&(a[t]=y.parseFieldValue(s,n))}}),a},A=e=>{var n,s,d,p,h,l,u;const a=((s=(n=c.value)==null?void 0:n.apForm)==null?void 0:s.getFieldsValue())||{},t={};Object.entries(a).forEach(([w,H])=>{P&&P.indexOf(w)>-1&&(t[w]=H)}),(p=(d=c.value)==null?void 0:d.apForm)==null||p.resetFields(),(u=(l=(h=c.value)==null?void 0:h.apForm)==null?void 0:l.setFieldsValue)==null||u.call(l,t),e==null||e()},m=e=>{f=e;const a=q(e);z(a)},B=e=>{m({...f,...e})},C=()=>{var a,t;const e=((t=(a=c.value)==null?void 0:a.apForm)==null?void 0:t.getFieldsValue(!0))||{};m({...e,pageCurrent:1,pageSize:f.pageSize||F})},E=()=>{A(C)},J=()=>{m(f)},Q=e=>{const a=r.unref(o).total-e,t=Math.ceil(a/r.unref(g)),n=r.unref(i)>t?t:r.unref(i);B({current:n>0?n:1})},V=(e,a,t)=>{var h,l;const n=((l=(h=c.value)==null?void 0:h.apForm)==null?void 0:l.getFieldsValue(!0))||{};i.value=e.current,g.value=e.pageSize;const s=I.isArray(t)?[...t]:[t],d={};for(const u of s)R.includes(u.field)&&(d[y.dataIndexToStr(u.field)]=u.order);const p={};for(const u of Object.keys(a))M.includes(u)&&(p[u]=a[u]);m({...n,filter:p,sort:d,current:e.current,pageSize:e.pageSize})};r.onMounted(()=>{var a,t;const e=((t=(a=c.value)==null?void 0:a.apForm)==null?void 0:t.getFieldsValue(!0))||{};if(f={current:r.unref(i),pageSize:r.unref(g),...e},!O){const n=q(f);z(n)}});const U=r.computed(()=>r.unref(o).total===0?"-":`${r.unref(i.value)}/${Math.ceil(r.unref(o).total/r.unref(g))}`),G=r.computed(()=>({loading:r.unref(o).loading,pagination:{current:r.unref(i),pageSize:r.unref(g),total:r.unref(o).total,showSizeChanger:!0,showQuickJumper:!0,showTotal:e=>`${b("ap.apTable.pagination.totalLeft",{total:e})} ${b("ap.apTable.pagination.totalRight",{page:r.unref(U)})}`},onChange:V,dataSource:r.unref(o).records}));return{formRef:c,submit:C,reset:E,refresh:J,refreshByDelete:Q,data:o,current:i,pageSize:g,handleTableChange:V,tableProps:G}};exports.useTablePaging=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),C=require("../utils.js"),I=require("lodash-unified");require("../../config-provider/index.js");const K=require("../../config-provider/hooks/use-locale.js"),N=({manual:O=!1,defaultCurrent:j=1,defaultPageSize:F=10,request:$,defaultParams:D={},defaultData:L=[],formatParams:S,paramsValueTypeMap:T,resetFieldsIgnores:P,filterFields:M=[],sortFields:R=[]})=>{let v=0,f={};const x=e=>S?S(e):e,c=r.ref(),i=r.ref(j),g=r.ref(F),{t:b}=K.useLocale(),o=r.ref({total:0,records:L,loading:!1}),z=async e=>{var n;const a=x(e),t=Date.now();v=t,o.value.loading=!0;try{const s=await $({...D,...a});v===t&&(o.value.total=s.total||((n=s.data)==null?void 0:n.length)||0,o.value.records=[...s.data||[]])}catch{v===t&&(o.value.records=[],o.value.total=0)}finally{o.value.loading=!1}},q=e=>{const a={};return Object.entries(e).forEach(([t,n])=>{if(a[t]=n,T&&n){const s=T[t];s&&(a[t]=C.parseFieldValue(s,n))}}),a},A=e=>{var n,s,d,p,h,l,u;const a=((s=(n=c.value)==null?void 0:n.apForm)==null?void 0:s.getFieldsValue())||{},t={};Object.entries(a).forEach(([y,H])=>{P&&P.indexOf(y)>-1&&(t[y]=H)}),(p=(d=c.value)==null?void 0:d.apForm)==null||p.resetFields(),(u=(l=(h=c.value)==null?void 0:h.apForm)==null?void 0:l.setFieldsValue)==null||u.call(l,t),e==null||e()},m=e=>{f=e;const a=q(e);z(a)},B=e=>{m({...f,...e})},V=()=>{var a,t;const e=((t=(a=c.value)==null?void 0:a.apForm)==null?void 0:t.getFieldsValue(!0))||{};m({...e,current:1,pageSize:f.pageSize||F})},E=()=>{A(V)},J=()=>{m(f)},Q=e=>{const a=r.unref(o).total-e,t=Math.ceil(a/r.unref(g)),n=r.unref(i)>t?t:r.unref(i);B({current:n>0?n:1})},w=(e,a,t)=>{var h,l;const n=((l=(h=c.value)==null?void 0:h.apForm)==null?void 0:l.getFieldsValue(!0))||{};i.value=e.current,g.value=e.pageSize;const s=I.isArray(t)?[...t]:[t],d={};for(const u of s)R.includes(u.field)&&(d[C.dataIndexToStr(u.field)]=u.order);const p={};for(const u of Object.keys(a))M.includes(u)&&(p[u]=a[u]);m({...n,filter:p,sort:d,current:e.current,pageSize:e.pageSize})};r.onMounted(()=>{var a,t;const e=((t=(a=c.value)==null?void 0:a.apForm)==null?void 0:t.getFieldsValue(!0))||{};if(f={current:r.unref(i),pageSize:r.unref(g),...e},!O){const n=q(f);z(n)}});const U=r.computed(()=>r.unref(o).total===0?"-":`${r.unref(i.value)}/${Math.ceil(r.unref(o).total/r.unref(g))}`),G=r.computed(()=>({loading:r.unref(o).loading,pagination:{current:r.unref(i),pageSize:r.unref(g),total:r.unref(o).total,showSizeChanger:!0,showQuickJumper:!0,showTotal:e=>`${b("ap.apTable.pagination.totalLeft",{total:e})} ${b("ap.apTable.pagination.totalRight",{page:r.unref(U)})}`},onChange:w,dataSource:r.unref(o).records}));return{formRef:c,submit:V,reset:E,refresh:J,refreshByDelete:Q,data:o,current:i,pageSize:g,handleTableChange:w,tableProps:G}};exports.useTablePaging=N;
@@ -7,7 +7,7 @@ import { CSSProperties } from 'vue';
7
7
  import { ApActionGroupProps } from '../ap-action';
8
8
  import { ApTableIndexProps } from './components/interface';
9
9
 
10
- type ValueEnmuTyType = {
10
+ export type ValueEnumType = {
11
11
  text: string;
12
12
  status?: string;
13
13
  color?: string;
@@ -44,7 +44,7 @@ export type ApTableValueFields = {
44
44
  */
45
45
  index: ApTableIndexProps;
46
46
  };
47
- export type ValueEnum = Record<string, ValueEnmuTyType>;
47
+ export type ValueEnum = Record<string, ValueEnumType>;
48
48
  export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children'> & {
49
49
  sorter?: string | boolean | CompareFn<T> | {
50
50
  compare?: CompareFn<T>;
@@ -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
  */
@@ -75,8 +75,7 @@ export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text'> =
75
75
  */
76
76
  hideInTable?: boolean;
77
77
  /**
78
- * 值的枚举,会自动转化把值当成 key 来取出要显示的内容(也会作为select的选项)
79
- * @deprecated 未实现请使用`fieldProps.options`
78
+ * 值的枚举,会自动转化把值当成 key 来取出要显示的内容(也会作为select等组件的选项)
80
79
  */
81
80
  valueEnum?: ValueEnum;
82
81
  /**
@@ -90,7 +89,19 @@ export type ApColumnType<ValueType extends keyof ApTableValueFields = 'text'> =
90
89
  /**
91
90
  * 值类型额外配置的参数(用于查询表单渲染)
92
91
  */
93
- 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;
94
105
  };
95
106
  export type RequestData<T> = {
96
107
  data: T[] | undefined;
@@ -100,7 +111,7 @@ export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends k
100
111
  /**
101
112
  * 列配置
102
113
  */
103
- columns?: ApColumnType<any>[];
114
+ columns?: ApColumnType<any, RecordType>[];
104
115
  /**
105
116
  * 是否启用卡片样式
106
117
  */
@@ -111,9 +122,7 @@ export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends k
111
122
  params?: ParamsType;
112
123
  /**
113
124
  * 自定义渲染搜索表单
114
- * @param props
115
- * @param defaultDom
116
- * @returns
125
+ * @deprecated 未实现 暂不可用
117
126
  */
118
127
  searchFormRender?: (props: ApTableProps<RecordType, ParamsType, ValueType>, defaultDom: any) => any;
119
128
  /**
@@ -129,7 +138,7 @@ export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends k
129
138
  }) => Promise<Partial<RequestData<RecordType>>>;
130
139
  /**
131
140
  * 数据加载完成后触发
132
- * @param data
141
+ * @deprecated 已弃用,请自行实现类似效果
133
142
  * @returns
134
143
  */
135
144
  onLoad?: (data: RecordType[]) => void;
@@ -181,4 +190,3 @@ export type ApTableExpose = {
181
190
  submit: () => void;
182
191
  reset: () => void;
183
192
  };
184
- export {};
@@ -1,3 +1,6 @@
1
+ import { ApColumnType, ApTableValueFields, ValueEnum, ValueEnumType } from './interface';
2
+ import { Translator } from '../config-provider';
3
+
1
4
  export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
2
5
  export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
3
6
  /**
@@ -12,3 +15,47 @@ export declare const parseFieldValue: (t: FieldValueType, value: any) => any;
12
15
  * @returns
13
16
  */
14
17
  export declare function dataIndexToStr(dataIndex: string | number | (string | number)[]): string | number;
18
+ type OptionType = {
19
+ label?: string;
20
+ text?: string;
21
+ value?: any;
22
+ disabled?: boolean;
23
+ [key: string]: any;
24
+ };
25
+ type ValueEnumMap = Map<string | number | boolean, ValueEnumType>;
26
+ export declare const objectToMap: (value: ValueEnum | undefined) => ValueEnumMap;
27
+ /**
28
+ * valueEnum转options array
29
+ * @param valueEnumParams
30
+ * @returns
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;
61
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lodash-unified"),o=(e,r,a)=>{let s={};return n.isObject(e)?Object.keys(e).forEach(t=>{n.isObject(e[t])?s[t]=o(e[t],r[t],a):s[t]=a(e[t],r)}):s=a(e,r),s},c=(e,r)=>{switch(e){case"dayjs":return r.valueOf();case"dayjsRange":return r.map(a=>a.valueOf());case"dayjsDayRange":{const[a,s]=r;return[a.startOf("day").valueOf(),s.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return n.isArray(r)?r:[r];case"boolean":return r;case"object":return r;default:return r}};function u(e){return n.isArray(e)?e.join("."):e}exports.dataIndexToStr=u;exports.formatParamsValueType=o;exports.parseFieldValue=c;
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;
@@ -2,5 +2,6 @@
2
2
  text-wrap: nowrap;
3
3
  display: flex;
4
4
  flex-wrap: nowrap;
5
+ white-space: nowrap;
5
6
  align-items: center;
6
7
  }
@@ -1,5 +1,6 @@
1
1
  .aplus-tag-wrapper {
2
2
  text-wrap: nowrap;
3
+ white-space: nowrap;
3
4
  display: inline-block;
4
5
  }
5
6
  .aplus-tag-inner-wrapper {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("ant-design-vue"),s=require("../../base-button/index.js"),h=require("../../basic/index.js"),A=require("../hooks/use-form-context.js");require("../../config-provider/index.js");require("./style/form-action.css");const k=require("../../config-provider/hooks/use-locale.js"),S=require("../../config-provider/hooks/use-namespace.js"),w=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(p,{emit:m}){const n=p,B=m,{t:o}=k.useLocale(),{em:a}=S.useNamespace("form-action"),{resetAction:f,submitAction:v}=A.useFormContext(),r=e.computed(()=>{const{showAdvancedButton:t,actionSpan:l,actionColOptions:g}=n,i=24-l,y=t?{span:i<6?24:i}:{};return{style:{textAlign:"right"},span:t?6:4,...y,...g}}),u=e.computed(()=>Object.assign({text:o("ap.common.resetText")},n.resetButtonOptions)),c=e.computed(()=>Object.assign({text:o("ap.common.queryText")},n.submitButtonOptions));function C(){B("toggle-advanced")}return(t,l)=>t.showActionButtonGroup?(e.openBlock(),e.createBlock(e.unref(d.Col),e.normalizeProps(e.mergeProps({key:0},r.value)),{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{width:"100%"},{textAlign:r.value.style.textAlign}])},[e.createVNode(e.unref(d.Form).Item,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"resetBefore"),t.showResetButton?(e.openBlock(),e.createBlock(e.unref(s.BaseButton),e.mergeProps({key:0,type:"default",class:e.unref(a)("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(s.BaseButton),e.mergeProps({key:1,type:"primary",class:e.unref(a)("button","space")},c.value,{onClick:e.unref(v)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.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(s.BaseButton),{key:2,type:"link",size:"small",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(h.BasicArrow),{class:e.normalizeClass(e.unref(a)("item","space")),expand:!t.isAdvanced,up:""},null,8,["class","expand"])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"advanceAfter")]),_:3})],4)]),_:3},16)):e.createCommentVNode("",!0)}});exports.default=w;
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"),_=require("@vueuse/core"),A=require("./use-break-point.js"),u=24;function R({advanceState:r,emit:B,getProps:o,getSchema:h,formModel:v,defaultValueRef:b}){const p=n.getCurrentInstance(),{screenRef:y,realWidthRef:I}=A.useBreakpoint(),E=n.computed(()=>{if(!r.isAdvanced)return 0;const e=n.unref(o).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}),W=_.useDebounceFn(g,30);n.watch([()=>n.unref(h),()=>r.isAdvanced,()=>n.unref(I)],()=>{const{showAdvancedButton:e}=n.unref(o);e&&W()},{immediate:!0});function L(e,s=0,t=!1){const d=n.unref(I),c=parseInt(e.md)||parseInt(e.xs)||parseInt(e.sm)||e.span||u,i=parseInt(e.lg)||c,f=parseInt(e.xl)||i,a=parseInt(e.xxl)||f;return d<=A.ScreenEnum.LG?s+=c:d<A.ScreenEnum.XL?s+=i:d<A.ScreenEnum.XXL?s+=f:s+=a,t?(r.hideAdvanceBtn=!1,s<=u*2?(r.hideAdvanceBtn=!0,r.isAdvanced=!0):s>u*2&&s<=u*(n.unref(o).autoAdvancedLine||3)?r.hideAdvanceBtn=!1:r.isLoad||(r.isLoad=!0,r.isAdvanced=!r.isAdvanced),{isAdvanced:r.isAdvanced,itemColSum:s}):s>u*(n.unref(o).alwaysShowLines||1)?{isAdvanced:r.isAdvanced,itemColSum:s}:{isAdvanced:!0,itemColSum:s}}const w=n.shallowReactive({});function g(){var d;let e=0,s=0;const{baseColProps:t={}}=n.unref(o);for(const c of n.unref(h)){const{show:i,colProps:f}=c;let a=!0;if(l.isBoolean(i)&&(a=i),l.isFunction(i)&&(a=i({schema:c,model:v,field:c.field,values:{...n.unref(b),...v}})),a&&(f||t)){const{itemColSum:O,isAdvanced:x}=L({...t,...f},e);e=O||0,x&&(s=e),w[c.field]=x}}(d=p==null?void 0:p.proxy)==null||d.$forceUpdate(),r.actionSpan=s%u+n.unref(E),L(n.unref(o).actionColOptions||{span:u},e,!0),B("advanced-change")}function q(){r.isAdvanced=!r.isAdvanced}return{handleToggleAdvanced:q,fieldsIsAdvancedMap:w}}exports.default=R;
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;
@@ -1,5 +1,4 @@
1
1
  .ant-btn {
2
- min-width: 88px;
3
2
  box-shadow: none;
4
3
  }
5
4
  .ant-btn-primary[disabled],
@@ -26,13 +25,3 @@
26
25
  .ant-btn-text[disabled]:hover {
27
26
  color: rgba(24, 144, 255, 0.2) !important;
28
27
  }
29
- .ant-form-item-control-input-content [text='重置'],
30
- .ant-form-item-control-input-content [text='查询'],
31
- .ant-form-item-control-input-content [text='Reset'],
32
- .ant-form-item-control-input-content [text='Search'] {
33
- min-width: 0;
34
- }
35
- .ant-btn-link,
36
- .ant-btn-text {
37
- min-width: 0;
38
- }
@@ -46,7 +46,6 @@
46
46
  border: 1px solid rgba(255, 77, 79, 0.4);
47
47
  }
48
48
  .ant-btn {
49
- min-width: 88px;
50
49
  box-shadow: none;
51
50
  }
52
51
  .ant-btn-primary[disabled],
@@ -73,16 +72,6 @@
73
72
  .ant-btn-text[disabled]:hover {
74
73
  color: rgba(24, 144, 255, 0.2) !important;
75
74
  }
76
- .ant-form-item-control-input-content [text='重置'],
77
- .ant-form-item-control-input-content [text='查询'],
78
- .ant-form-item-control-input-content [text='Reset'],
79
- .ant-form-item-control-input-content [text='Search'] {
80
- min-width: 0;
81
- }
82
- .ant-btn-link,
83
- .ant-btn-text {
84
- min-width: 0;
85
- }
86
75
  .ant-form .ant-form-item label {
87
76
  font-weight: normal;
88
77
  }
@@ -453,13 +442,21 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
453
442
  inset-inline-start: 13px;
454
443
  margin: 6px 0;
455
444
  }
456
- .ant-table-wrapper {
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 {
457
452
  padding: 12px 16px 16px;
458
453
  background-color: #ffffff;
459
454
  border-radius: 0;
460
455
  }
461
- .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
462
- .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title {
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 {
463
460
  display: flex;
464
461
  align-items: center;
465
462
  justify-content: space-between;
@@ -467,51 +464,58 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
467
464
  padding: 0 0 12px;
468
465
  border: none;
469
466
  }
470
- .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 {
471
469
  width: 100%;
472
470
  overflow-x: hidden;
473
471
  border-radius: 0;
474
472
  }
475
- .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 {
476
475
  border-radius: 0;
477
476
  }
478
- .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 {
479
479
  border-radius: 0;
480
480
  }
481
- .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 {
482
483
  border-radius: 0;
483
484
  }
484
- .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 {
485
487
  border-radius: 0;
486
488
  }
487
- .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 {
488
491
  padding: 13.5px 16px;
489
492
  line-height: 20px;
490
493
  }
491
- .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 {
492
496
  padding: 13.5px 16px;
493
497
  line-height: 20px;
494
498
  }
495
- .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 {
496
501
  padding: 0;
497
502
  }
498
- .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 {
499
505
  padding: 0;
500
506
  }
501
- .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 {
502
509
  border: none;
503
510
  }
504
- .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 {
505
513
  overflow-x: hidden;
506
514
  }
507
- .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 {
508
517
  padding: 12px 8px;
509
518
  }
510
- [class$='-basic-table'],
511
- [class$='-basic-table-form-container'] {
512
- width: 100%;
513
- height: 100%;
514
- }
515
519
  [class$='-basic-table-form-container'] {
516
520
  padding: 16px;
517
521
  }
@@ -1,10 +1,18 @@
1
- .ant-table-wrapper {
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-small > .ant-table-title {
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
  }
@@ -1,5 +1,4 @@
1
1
  .ant-btn {
2
- min-width: 88px;
3
2
  box-shadow: none;
4
3
  }
5
4
  .ant-btn-primary[disabled],
@@ -26,13 +25,3 @@
26
25
  .ant-btn-text[disabled]:hover {
27
26
  color: #cce2ff !important;
28
27
  }
29
- .ant-form-item-control-input-content [text='重置'],
30
- .ant-form-item-control-input-content [text='查询'],
31
- .ant-form-item-control-input-content [text='Reset'],
32
- .ant-form-item-control-input-content [text='Search'] {
33
- min-width: 0;
34
- }
35
- .ant-btn-link,
36
- .ant-btn-text {
37
- min-width: 0;
38
- }
@@ -46,7 +46,6 @@
46
46
  border: 1px solid rgba(255, 77, 79, 0.4);
47
47
  }
48
48
  .ant-btn {
49
- min-width: 88px;
50
49
  box-shadow: none;
51
50
  }
52
51
  .ant-btn-primary[disabled],
@@ -73,16 +72,6 @@
73
72
  .ant-btn-text[disabled]:hover {
74
73
  color: #cce2ff !important;
75
74
  }
76
- .ant-form-item-control-input-content [text='重置'],
77
- .ant-form-item-control-input-content [text='查询'],
78
- .ant-form-item-control-input-content [text='Reset'],
79
- .ant-form-item-control-input-content [text='Search'] {
80
- min-width: 0;
81
- }
82
- .ant-btn-link,
83
- .ant-btn-text {
84
- min-width: 0;
85
- }
86
75
  .ant-form .ant-form-item label {
87
76
  font-weight: normal;
88
77
  }
@@ -485,8 +474,15 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
485
474
  inset-inline-start: 13px;
486
475
  margin: 6px 0;
487
476
  }
488
- .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
489
- .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title {
477
+ [class$='-basic-table'],
478
+ [class$='-basic-table-form-container'] {
479
+ width: 100%;
480
+ height: 100%;
481
+ }
482
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
483
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
484
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title,
485
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title {
490
486
  display: flex;
491
487
  align-items: center;
492
488
  justify-content: space-between;
@@ -494,15 +490,18 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
494
490
  padding: 0 0 10px;
495
491
  border: none;
496
492
  }
497
- .ant-table-wrapper .ant-table {
493
+ [class$='-basic-table'] .ant-table-wrapper .ant-table,
494
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
498
495
  width: 100%;
499
496
  overflow-x: hidden;
500
497
  border-radius: 0;
501
498
  }
502
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
499
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
500
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
503
501
  border-radius: 0;
504
502
  }
505
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th {
503
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th,
504
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th {
506
505
  color: #182948;
507
506
  font-weight: 700;
508
507
  font-size: 14px;
@@ -511,18 +510,22 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
511
510
  text-transform: none;
512
511
  background: #f2f6f9;
513
512
  }
514
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before {
513
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before,
514
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before {
515
515
  display: none;
516
516
  width: 0;
517
517
  visibility: hidden;
518
518
  }
519
- .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover {
519
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover,
520
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover {
520
521
  background: #f6f9fa;
521
522
  }
522
- .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td {
523
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td,
524
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td {
523
525
  background: #f6f9fa;
524
526
  }
525
- .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
527
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td,
528
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
526
529
  color: #182948;
527
530
  font-weight: 400;
528
531
  font-size: 14px;
@@ -531,35 +534,36 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
531
534
  text-transform: none;
532
535
  transition: unset;
533
536
  }
534
- .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
537
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th,
538
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
535
539
  padding: 12px 16px;
536
540
  line-height: 22px;
537
541
  }
538
- .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
542
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
543
+ [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 {
539
544
  border-top: 1px solid;
540
545
  border-top-color: transparent;
541
546
  }
542
- .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell {
547
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell,
548
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell {
543
549
  padding: 12px 16px;
544
550
  line-height: 22px;
545
551
  }
546
- .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th {
552
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th,
553
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th {
547
554
  padding: 10.5px 16px;
548
555
  line-height: 18px;
549
556
  }
550
- .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
557
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
558
+ [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 {
551
559
  border-top: 1px solid;
552
560
  border-top-color: transparent;
553
561
  }
554
- .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
562
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell,
563
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
555
564
  padding: 10.5px 16px;
556
565
  line-height: 18px;
557
566
  }
558
- [class$='-basic-table'],
559
- [class$='-basic-table-form-container'] {
560
- width: 100%;
561
- height: 100%;
562
- }
563
567
  [class$='-basic-table-row__striped'] td {
564
568
  background-color: #f6f9fa;
565
569
  }