@aplus-frontend/ui 0.0.1-beta.33 → 0.0.1-beta.34

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 (37) hide show
  1. package/es/src/ap-action/interface.d.ts +2 -1
  2. package/es/src/ap-action/item/index.vue2.mjs +20 -20
  3. package/es/src/ap-table/constants.d.ts +5666 -0
  4. package/es/src/ap-table/hooks/use-table-paging.d.ts +57 -0
  5. package/es/src/ap-table/interface.d.ts +11 -8
  6. package/es/src/ap-table/style/ap-table.css +14 -0
  7. package/es/src/ap-table/utils.d.ts +8 -0
  8. package/es/src/basic/help.vue.d.ts +4 -4
  9. package/es/src/basic/index.d.ts +8 -8
  10. package/es/src/pro-form/style/table-form.css +3 -0
  11. package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -6
  12. package/es/src/theme/antd-global-overwrite/admin/form.css +9 -1
  13. package/es/src/theme/antd-global-overwrite/admin/index.css +25 -7
  14. package/es/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
  15. package/es/src/theme/antd-global-overwrite/aplus/form.css +36 -13
  16. package/es/src/theme/antd-global-overwrite/aplus/index.css +47 -18
  17. package/es/src/theme/ap-table/ap-table.css +14 -0
  18. package/es/src/theme/pro-form/table-form-inner.css +3 -0
  19. package/lib/src/ap-action/interface.d.ts +2 -1
  20. package/lib/src/ap-action/item/index.vue2.js +1 -1
  21. package/lib/src/ap-table/constants.d.ts +5666 -0
  22. package/lib/src/ap-table/hooks/use-table-paging.d.ts +57 -0
  23. package/lib/src/ap-table/interface.d.ts +11 -8
  24. package/lib/src/ap-table/style/ap-table.css +14 -0
  25. package/lib/src/ap-table/utils.d.ts +8 -0
  26. package/lib/src/basic/help.vue.d.ts +4 -4
  27. package/lib/src/basic/index.d.ts +8 -8
  28. package/lib/src/pro-form/style/table-form.css +3 -0
  29. package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -6
  30. package/lib/src/theme/antd-global-overwrite/admin/form.css +9 -1
  31. package/lib/src/theme/antd-global-overwrite/admin/index.css +25 -7
  32. package/lib/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
  33. package/lib/src/theme/antd-global-overwrite/aplus/form.css +36 -13
  34. package/lib/src/theme/antd-global-overwrite/aplus/index.css +47 -18
  35. package/lib/src/theme/ap-table/ap-table.css +14 -0
  36. package/lib/src/theme/pro-form/table-form-inner.css +3 -0
  37. package/package.json +1 -1
@@ -0,0 +1,57 @@
1
+ import { Ref } from 'vue';
2
+ import { RequestData } from '../interface';
3
+ import { ApFormExpose } from '../../ap-form';
4
+ import { TablePaginationConfig } from 'ant-design-vue';
5
+
6
+ export type UseTablePagingParams<DataType, ParamsType> = {
7
+ request: (params: any) => Promise<RequestData<DataType>>;
8
+ /**
9
+ * 是否手动执行,页面初始化后不执行网络请求,需要手动触发
10
+ * @param params
11
+ * @returns
12
+ */
13
+ manual?: boolean;
14
+ /**
15
+ * @description 默认情况下,请求第几页
16
+ * @default 1
17
+ */
18
+ defaultCurrent?: number;
19
+ /**
20
+ * 默认每页请求的数据条数
21
+ * @default 10
22
+ */
23
+ defaultPageSize?: number;
24
+ /**
25
+ * 额外的默认请求参数,这个参数变更不会触发网络请求
26
+ */
27
+ defaultParams?: ParamsType;
28
+ /**
29
+ * 数据请求前格式化请求参数
30
+ * @param values
31
+ * @returns
32
+ */
33
+ formatParams?: (values: any) => any;
34
+ /**
35
+ * 特殊类型参数类型对照表(会根据该对照表运行默认的参数格式化)
36
+ */
37
+ paramsValueTypeMap?: Record<string, any>;
38
+ /**
39
+ * 重设表单需要忽略的字段
40
+ */
41
+ resetFieldsIgnores?: string[];
42
+ };
43
+ export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, formatParams, paramsValueTypeMap, resetFieldsIgnores }: UseTablePagingParams<DataType, ParamsType>) => {
44
+ formRef: Ref<ApFormExpose<any> | undefined>;
45
+ submit: () => void;
46
+ reset: () => void;
47
+ refresh: () => void;
48
+ refreshByDelete: (n: number) => void;
49
+ data: Ref<{
50
+ total: number;
51
+ records: DataType[];
52
+ loading: boolean;
53
+ }>;
54
+ current: Ref<number>;
55
+ pageSize: Ref<number>;
56
+ onChange: (p: TablePaginationConfig) => void;
57
+ };
@@ -1,8 +1,8 @@
1
- import { CardProps } from 'ant-design-vue';
2
1
  import { ColumnType, TableProps } from 'ant-design-vue/es/table';
3
2
  import { CompareFn, SortOrder } from 'ant-design-vue/es/table/interface';
4
3
  import { ApFormSearchFormProps } from '../ap-form';
5
4
  import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextProps } from 'src/ap-form/items/interface';
5
+ import { CSSProperties } from 'vue';
6
6
 
7
7
  type ValueEnmuTyType = {
8
8
  text: string;
@@ -78,9 +78,8 @@ export type ApColumnType<ValueType extends keyof ApTableFormFields = 'text'> = E
78
78
  */
79
79
  fieldProps?: ApTableFormFields[ValueType];
80
80
  };
81
- type RequestData<T> = {
81
+ export type RequestData<T> = {
82
82
  data: T[] | undefined;
83
- success?: boolean;
84
83
  total?: number;
85
84
  } & Record<string, any>;
86
85
  export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends keyof ApTableFormFields = 'text'> = Omit<TableProps<RecordType>, 'columns' | 'pagination'> & {
@@ -89,13 +88,9 @@ export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends k
89
88
  */
90
89
  columns?: ApColumnType<ValueType>[];
91
90
  /**
92
- * 是否是卡片模式
91
+ * 是否启用卡片样式
93
92
  */
94
93
  card?: boolean;
95
- /**
96
- * 卡片模式下属性设置
97
- */
98
- cardProps?: CardProps;
99
94
  /**
100
95
  * request请求参数,修改后会自动触发更新
101
96
  */
@@ -148,5 +143,13 @@ export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends k
148
143
  * 是否显示分页器(特定的分页器)
149
144
  */
150
145
  pagination?: boolean;
146
+ /**
147
+ * 自定义查询表单容器样式
148
+ */
149
+ searchFormWrapperStyle?: CSSProperties;
150
+ /**
151
+ * 自定义表格样式
152
+ */
153
+ tableWrapperStyle?: CSSProperties;
151
154
  };
152
155
  export {};
@@ -0,0 +1,14 @@
1
+ .aplus-ap-table-wrapper {
2
+ padding: 16px;
3
+ background-color: #fff;
4
+ }
5
+ .aplus-ap-table__search-wrapper {
6
+ padding: 16px;
7
+ padding-bottom: 0;
8
+ background-color: #fff;
9
+ margin-bottom: 16px;
10
+ }
11
+ .aplus-ap-table__form-wrapper {
12
+ padding: 16px;
13
+ background-color: #fff;
14
+ }
@@ -0,0 +1,8 @@
1
+ export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
2
+ export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
3
+ /**
4
+ * 解析数值
5
+ * @param t 值类型
6
+ * @param value 值
7
+ */
8
+ export declare const parseFieldValue: (t: FieldValueType, value: any) => any;
@@ -44,9 +44,9 @@ declare const _default: DefineComponent<{
44
44
  * Help text list
45
45
  */
46
46
  text: {
47
- type: PropType<string[] | VNode< RendererNode, RendererElement, {
47
+ type: PropType<VNode< RendererNode, RendererElement, {
48
48
  [key: string]: any;
49
- }> | VNodeChild>;
49
+ }> | string[] | VNodeChild>;
50
50
  };
51
51
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
52
52
  /**
@@ -91,9 +91,9 @@ declare const _default: DefineComponent<{
91
91
  * Help text list
92
92
  */
93
93
  text: {
94
- type: PropType<string[] | VNode< RendererNode, RendererElement, {
94
+ type: PropType<VNode< RendererNode, RendererElement, {
95
95
  [key: string]: any;
96
- }> | VNodeChild>;
96
+ }> | string[] | VNodeChild>;
97
97
  };
98
98
  }>>, {
99
99
  color: string;
@@ -23,9 +23,9 @@ export declare const BasicHelp: {
23
23
  default: string;
24
24
  };
25
25
  text: {
26
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
26
+ type: PropType< VNode<RendererNode, RendererElement, {
27
27
  [key: string]: any;
28
- }> | VNodeChild>;
28
+ }> | string[] | VNodeChild>;
29
29
  };
30
30
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
31
31
  maxWidth: {
@@ -48,9 +48,9 @@ export declare const BasicHelp: {
48
48
  default: string;
49
49
  };
50
50
  text: {
51
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
51
+ type: PropType< VNode<RendererNode, RendererElement, {
52
52
  [key: string]: any;
53
- }> | VNodeChild>;
53
+ }> | string[] | VNodeChild>;
54
54
  };
55
55
  }>>, {
56
56
  color: string;
@@ -86,9 +86,9 @@ export declare const BasicHelp: {
86
86
  default: string;
87
87
  };
88
88
  text: {
89
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
89
+ type: PropType< VNode<RendererNode, RendererElement, {
90
90
  [key: string]: any;
91
- }> | VNodeChild>;
91
+ }> | string[] | VNodeChild>;
92
92
  };
93
93
  }>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
94
94
  color: string;
@@ -121,9 +121,9 @@ export declare const BasicHelp: {
121
121
  default: string;
122
122
  };
123
123
  text: {
124
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
124
+ type: PropType< VNode<RendererNode, RendererElement, {
125
125
  [key: string]: any;
126
- }> | VNodeChild>;
126
+ }> | string[] | VNodeChild>;
127
127
  };
128
128
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
129
129
  color: string;
@@ -1,3 +1,6 @@
1
+ .aplus-pro-table-form .table-form-admin .ant-table-wrapper {
2
+ padding: 0;
3
+ }
1
4
  .aplus-pro-table-form .table-form-admin .ant-table .ant-table-tbody > tr > td,
2
5
  .aplus-pro-table-form .table-form-admin .ant-table .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
3
6
  padding: 18px 16px 0px ;
@@ -1,21 +1,31 @@
1
1
  .ant-alert {
2
+ align-items: flex-start;
2
3
  width: 100%;
3
- margin: 0 0 4px;
4
- padding: 9px 12px;
4
+ padding: 6px 12px;
5
5
  border-radius: 4px;
6
6
  }
7
+ .ant-alert .ant-alert-icon {
8
+ font-size: 16px;
9
+ transform: translateY(1px);
10
+ margin-inline-end: 8px;
11
+ }
7
12
  .ant-alert .ant-alert-message {
8
- color: #182948;
9
- font-weight: bold;
13
+ color: #333333;
14
+ font-weight: normal !important;
10
15
  font-size: 12px;
11
- line-height: 12px;
16
+ line-height: 18px;
12
17
  }
13
18
  .ant-alert .ant-alert-message .href {
14
- color: #0070ff;
19
+ color: #1890ff;
15
20
  cursor: pointer;
16
21
  }
17
22
  .ant-alert .ant-alert-description {
23
+ color: #333333;
18
24
  font-weight: normal;
19
25
  font-size: 12px;
20
26
  line-height: 18px;
21
27
  }
28
+ .ant-alert-with-description .ant-alert-message {
29
+ margin-bottom: 4px;
30
+ font-weight: bold !important;
31
+ }
@@ -17,6 +17,9 @@
17
17
  .ant-form .ant-form-item-control .ant-radio-wrapper .ant-radio.ant-radio-checked .ant-radio-inner::after {
18
18
  background-color: #34b77c;
19
19
  }
20
+ .ant-form .ant-form-item-control .ant-select.ant-select-open .ant-select-selection-item {
21
+ color: #bfbfbf;
22
+ }
20
23
  .ant-input::-moz-placeholder {
21
24
  color: #bfbfbf;
22
25
  }
@@ -38,20 +41,25 @@
38
41
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
39
42
  color: #bfbfbf;
40
43
  }
44
+ input.ant-input[disabled] {
45
+ color: #666666;
46
+ }
41
47
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] {
42
48
  padding: 16px;
43
49
  }
44
50
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content {
45
51
  display: flex;
46
- justify-content: flex-end;
47
52
  align-items: center;
53
+ justify-content: flex-end;
48
54
  }
49
55
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-primary {
50
56
  order: 1;
51
57
  }
52
58
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-default {
53
59
  order: 2;
60
+ margin-right: 0;
54
61
  }
55
62
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-link {
56
63
  order: 3;
64
+ margin-left: 0.5rem;
57
65
  }
@@ -1,24 +1,34 @@
1
1
  .ant-alert {
2
+ align-items: flex-start;
2
3
  width: 100%;
3
- margin: 0 0 4px;
4
- padding: 9px 12px;
4
+ padding: 6px 12px;
5
5
  border-radius: 4px;
6
6
  }
7
+ .ant-alert .ant-alert-icon {
8
+ font-size: 16px;
9
+ transform: translateY(1px);
10
+ margin-inline-end: 8px;
11
+ }
7
12
  .ant-alert .ant-alert-message {
8
- color: #182948;
9
- font-weight: bold;
13
+ color: #333333;
14
+ font-weight: normal !important;
10
15
  font-size: 12px;
11
- line-height: 12px;
16
+ line-height: 18px;
12
17
  }
13
18
  .ant-alert .ant-alert-message .href {
14
- color: #0070ff;
19
+ color: #1890ff;
15
20
  cursor: pointer;
16
21
  }
17
22
  .ant-alert .ant-alert-description {
23
+ color: #333333;
18
24
  font-weight: normal;
19
25
  font-size: 12px;
20
26
  line-height: 18px;
21
27
  }
28
+ .ant-alert-with-description .ant-alert-message {
29
+ margin-bottom: 4px;
30
+ font-weight: bold !important;
31
+ }
22
32
  .ant-btn {
23
33
  min-width: 88px;
24
34
  box-shadow: none;
@@ -76,6 +86,9 @@
76
86
  .ant-form .ant-form-item-control .ant-radio-wrapper .ant-radio.ant-radio-checked .ant-radio-inner::after {
77
87
  background-color: #34b77c;
78
88
  }
89
+ .ant-form .ant-form-item-control .ant-select.ant-select-open .ant-select-selection-item {
90
+ color: #bfbfbf;
91
+ }
79
92
  .ant-input::-moz-placeholder {
80
93
  color: #bfbfbf;
81
94
  }
@@ -97,22 +110,27 @@
97
110
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
98
111
  color: #bfbfbf;
99
112
  }
113
+ input.ant-input[disabled] {
114
+ color: #666666;
115
+ }
100
116
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] {
101
117
  padding: 16px;
102
118
  }
103
119
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content {
104
120
  display: flex;
105
- justify-content: flex-end;
106
121
  align-items: center;
122
+ justify-content: flex-end;
107
123
  }
108
124
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-primary {
109
125
  order: 1;
110
126
  }
111
127
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-default {
112
128
  order: 2;
129
+ margin-right: 0;
113
130
  }
114
131
  div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.ant-btn-link {
115
132
  order: 3;
133
+ margin-left: 0.5rem;
116
134
  }
117
135
  .ant-message .ant-message-notice-content {
118
136
  padding: 10px 16px;
@@ -1,25 +1,31 @@
1
1
  .ant-alert {
2
+ align-items: flex-start;
2
3
  width: 100%;
3
- height: 32px;
4
- margin: 0 0 4px;
5
- padding: 7px 12px;
6
- line-height: 32px;
4
+ padding: 6px 12px;
7
5
  border-radius: 4px;
8
6
  }
9
7
  .ant-alert .ant-alert-icon {
10
- font-size: 14px;
8
+ font-size: 16px;
9
+ transform: translateY(1px);
10
+ margin-inline-end: 8px;
11
11
  }
12
12
  .ant-alert .ant-alert-message {
13
13
  color: #182948;
14
+ font-weight: normal !important;
14
15
  font-size: 12px;
15
- line-height: 12px;
16
+ line-height: 18px;
16
17
  }
17
18
  .ant-alert .ant-alert-message .href {
18
19
  color: #0070ff;
19
20
  cursor: pointer;
20
21
  }
21
22
  .ant-alert .ant-alert-description {
23
+ color: #182948;
22
24
  font-weight: normal;
23
25
  font-size: 12px;
24
26
  line-height: 18px;
25
27
  }
28
+ .ant-alert-with-description .ant-alert-message {
29
+ margin-bottom: 4px;
30
+ font-weight: bold !important;
31
+ }
@@ -38,20 +38,43 @@
38
38
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
39
39
  color: #abb7cc;
40
40
  }
41
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content {
42
- display: flex;
43
- justify-content: flex-end;
44
- align-items: center;
45
- }
46
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content button.ant-btn-primary {
47
- order: 1;
41
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item {
42
+ margin-bottom: 16px;
43
+ /** 适配Aplus UI */
44
+ }
45
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation {
46
+ border-radius: 4px 4px 4px 4px;
47
+ border: 1px solid #dee4ed;
48
+ }
49
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-label {
50
+ padding-left: 12px;
51
+ }
52
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-label label {
53
+ height: 30px;
54
+ color: #182948;
55
+ }
56
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input {
57
+ min-height: 30px;
58
+ }
59
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-select-selector,
60
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-input-affix-wrapper,
61
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-input-number,
62
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-picker {
63
+ height: 30px;
64
+ border: none;
65
+ border-color: #dee4ed;
66
+ box-shadow: none;
67
+ }
68
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-input-number,
69
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-picker {
70
+ width: 100%;
71
+ }
72
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.submit {
48
73
  margin-right: 0.5rem;
49
74
  }
50
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content button.ant-btn-default {
51
- order: 2;
52
- margin-right: 0.5rem;
75
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.reset {
76
+ margin-right: 0;
53
77
  }
54
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content button.ant-btn-link {
55
- order: 3;
56
- margin-right: 0.5rem;
78
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.collapse {
79
+ margin-left: 0.5rem;
57
80
  }
@@ -1,28 +1,34 @@
1
1
  .ant-alert {
2
+ align-items: flex-start;
2
3
  width: 100%;
3
- height: 32px;
4
- margin: 0 0 4px;
5
- padding: 7px 12px;
6
- line-height: 32px;
4
+ padding: 6px 12px;
7
5
  border-radius: 4px;
8
6
  }
9
7
  .ant-alert .ant-alert-icon {
10
- font-size: 14px;
8
+ font-size: 16px;
9
+ transform: translateY(1px);
10
+ margin-inline-end: 8px;
11
11
  }
12
12
  .ant-alert .ant-alert-message {
13
13
  color: #182948;
14
+ font-weight: normal !important;
14
15
  font-size: 12px;
15
- line-height: 12px;
16
+ line-height: 18px;
16
17
  }
17
18
  .ant-alert .ant-alert-message .href {
18
19
  color: #0070ff;
19
20
  cursor: pointer;
20
21
  }
21
22
  .ant-alert .ant-alert-description {
23
+ color: #182948;
22
24
  font-weight: normal;
23
25
  font-size: 12px;
24
26
  line-height: 18px;
25
27
  }
28
+ .ant-alert-with-description .ant-alert-message {
29
+ margin-bottom: 4px;
30
+ font-weight: bold !important;
31
+ }
26
32
  .ant-btn {
27
33
  min-width: 88px;
28
34
  box-shadow: none;
@@ -101,23 +107,46 @@
101
107
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
102
108
  color: #abb7cc;
103
109
  }
104
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content {
105
- display: flex;
106
- justify-content: flex-end;
107
- align-items: center;
110
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item {
111
+ margin-bottom: 16px;
112
+ /** 适配Aplus UI */
108
113
  }
109
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content button.ant-btn-primary {
110
- order: 1;
111
- margin-right: 0.5rem;
114
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation {
115
+ border-radius: 4px 4px 4px 4px;
116
+ border: 1px solid #dee4ed;
112
117
  }
113
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content button.ant-btn-default {
114
- order: 2;
115
- margin-right: 0.5rem;
118
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-label {
119
+ padding-left: 12px;
116
120
  }
117
- div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.custom-form-action-container .ant-form-item-control-input-content button.ant-btn-link {
118
- order: 3;
121
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-label label {
122
+ height: 30px;
123
+ color: #182948;
124
+ }
125
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input {
126
+ min-height: 30px;
127
+ }
128
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-select-selector,
129
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-input-affix-wrapper,
130
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-input-number,
131
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-picker {
132
+ height: 30px;
133
+ border: none;
134
+ border-color: #dee4ed;
135
+ box-shadow: none;
136
+ }
137
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-input-number,
138
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] .ant-form-item.aplus-ui-adaptation .ant-form-item-control-input .ant-picker {
139
+ width: 100%;
140
+ }
141
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.submit {
119
142
  margin-right: 0.5rem;
120
143
  }
144
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.reset {
145
+ margin-right: 0;
146
+ }
147
+ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] div.ant-col[tableaction] .ant-form-item-control-input-content button.collapse {
148
+ margin-left: 0.5rem;
149
+ }
121
150
  .ant-message .ant-message-notice-content {
122
151
  padding: 10px 16px;
123
152
  /* 文字颜色/一级-333333 */
@@ -0,0 +1,14 @@
1
+ .aplus-ap-table-wrapper {
2
+ padding: 16px;
3
+ background-color: #fff;
4
+ }
5
+ .aplus-ap-table__search-wrapper {
6
+ padding: 16px;
7
+ padding-bottom: 0;
8
+ background-color: #fff;
9
+ margin-bottom: 16px;
10
+ }
11
+ .aplus-ap-table__form-wrapper {
12
+ padding: 16px;
13
+ background-color: #fff;
14
+ }
@@ -1,3 +1,6 @@
1
+ .aplus-pro-table-form .table-form-admin .ant-table-wrapper {
2
+ padding: 0;
3
+ }
1
4
  .aplus-pro-table-form .table-form-admin .ant-table .ant-table-tbody > tr > td,
2
5
  .aplus-pro-table-form .table-form-admin .ant-table .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
3
6
  padding: 18px 16px 0px ;
@@ -1,11 +1,12 @@
1
1
  import { DropdownProps, ModalFuncProps, PopconfirmProps } from 'ant-design-vue';
2
+ import { VNode } from 'vue';
2
3
 
3
4
  export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
4
5
  export type ApActionItemProps = {
5
6
  /**
6
7
  * 文本
7
8
  */
8
- text?: string;
9
+ text?: string | VNode;
9
10
  /**
10
11
  * 预定义文本颜色
11
12
  */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const d=require("ant-design-vue/es/button/LoadingIcon");require("../style/item.css");const f=require("../../config-provider/hooks/use-namespace.js"),m=e.defineComponent({name:"ApActionItem",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1}},setup(r){const n=r,{b:u,m:t}=f.useNamespace("action-item"),l=e.ref(!1);function s(o){var i;e.unref(a)||n.disabled||((i=n.onClick)==null||i.call(n,o),n.onAction&&(l.value=!0,n.onAction(o).finally(()=>l.value=!1)))}const a=e.computed(()=>n.loading||e.unref(l)),c=e.computed(()=>[u(),t(n.color),n.disabled?t("disabled"):null,a.value?t("loading"):null].filter(Boolean));return(o,i)=>o.visible?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:s,class:e.normalizeClass(c.value)},[a.value?(e.openBlock(),e.createBlock(e.unref(d),{key:0,prefixCls:"btn",existIcon:!1,loading:""})):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.text||""),1)])],2)):e.createCommentVNode("",!0)}});exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const d=require("ant-design-vue/es/button/LoadingIcon");require("../style/item.css");const f=require("../../config-provider/hooks/use-namespace.js"),m={key:1},p=e.defineComponent({name:"ApActionItem",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1}},setup(r){const o=r,{b:s,m:t}=f.useNamespace("action-item"),l=e.ref(!1);function c(n){var i;e.unref(a)||o.disabled||((i=o.onClick)==null||i.call(o,n),o.onAction&&(l.value=!0,o.onAction(n).finally(()=>l.value=!1)))}const a=e.computed(()=>o.loading||e.unref(l)),u=e.computed(()=>[s(),t(o.color),o.disabled?t("disabled"):null,a.value?t("loading"):null].filter(Boolean));return(n,i)=>n.visible?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:c,class:e.normalizeClass(u.value)},[a.value?(e.openBlock(),e.createBlock(e.unref(d),{key:0,prefixCls:"btn",existIcon:!1,loading:""})):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},()=>[e.isVNode(n.text)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.text),{key:0})):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(n.text||""),1))])],2)):e.createCommentVNode("",!0)}});exports.default=p;