@aplus-frontend/ui 0.0.1-beta.33 → 0.0.1-beta.35
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-action/interface.d.ts +2 -1
- package/es/src/ap-action/item/index.vue2.mjs +20 -20
- package/es/src/ap-table/hooks/use-table-paging.d.ts +57 -0
- package/es/src/ap-table/interface.d.ts +11 -8
- package/es/src/ap-table/style/ap-table.css +14 -0
- package/es/src/ap-table/utils.d.ts +8 -0
- package/es/src/basic/help.vue.d.ts +4 -4
- package/es/src/basic/index.d.ts +8 -8
- package/es/src/modal/basic.vue2.mjs +10 -11
- package/es/src/modal/style/index.css +0 -103
- package/es/src/pro-form/style/index.css +0 -3
- package/es/src/pro-form/style/table-form.css +3 -0
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -82
- package/es/src/theme/antd-global-overwrite/admin/alert.css +32 -6
- package/es/src/theme/antd-global-overwrite/admin/form.css +9 -1
- package/es/src/theme/antd-global-overwrite/admin/index.css +51 -10
- package/es/src/theme/antd-global-overwrite/admin/modal.css +1 -1
- package/es/src/theme/antd-global-overwrite/admin/steps.css +2 -2
- package/es/src/theme/antd-global-overwrite/admin/table.css +7 -0
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +28 -6
- package/es/src/theme/antd-global-overwrite/aplus/form.css +45 -12
- package/es/src/theme/antd-global-overwrite/aplus/index.css +84 -21
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +1 -1
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +2 -2
- package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/es/src/theme/ap-table/ap-table.css +14 -0
- package/es/src/theme/modal/index.css +0 -103
- package/es/src/theme/pro-form/form.css +0 -3
- package/es/src/theme/pro-form/table-form-inner.css +3 -0
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -26
- package/lib/src/ap-action/interface.d.ts +2 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +57 -0
- package/lib/src/ap-table/interface.d.ts +11 -8
- package/lib/src/ap-table/style/ap-table.css +14 -0
- package/lib/src/ap-table/utils.d.ts +8 -0
- package/lib/src/basic/help.vue.d.ts +4 -4
- package/lib/src/basic/index.d.ts +8 -8
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/style/index.css +0 -103
- package/lib/src/pro-form/style/index.css +0 -3
- package/lib/src/pro-form/style/table-form.css +3 -0
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -82
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +32 -6
- package/lib/src/theme/antd-global-overwrite/admin/form.css +9 -1
- package/lib/src/theme/antd-global-overwrite/admin/index.css +51 -10
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +2 -2
- package/lib/src/theme/antd-global-overwrite/admin/table.css +7 -0
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +28 -6
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +45 -12
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +84 -21
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +1 -1
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +2 -2
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/lib/src/theme/ap-table/ap-table.css +14 -0
- package/lib/src/theme/modal/index.css +0 -103
- package/lib/src/theme/pro-form/form.css +0 -3
- package/lib/src/theme/pro-form/table-form-inner.css +3 -0
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +0 -343
- package/es/src/ap-field/select/index.vue.d.ts +0 -235
- package/es/src/ap-form/modal-form/index.vue.d.ts +0 -378
- package/es/src/config-provider/config-provider-props.d.ts +0 -152
- package/es/src/config-provider/config-provider.d.ts +0 -323
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -154
- package/es/src/config-provider/index.d.ts +0 -691
- package/es/src/modal/basic.vue.d.ts +0 -465
- package/es/src/modal/components/modal-footer.vue.d.ts +0 -457
- package/es/src/modal/components/modal.d.ts +0 -443
- package/es/src/modal/index.d.ts +0 -963
- package/es/src/modal/props.d.ts +0 -283
- package/es/src/pro-form/hooks/use-label-width.d.ts +0 -312
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +0 -343
- package/lib/src/ap-field/select/index.vue.d.ts +0 -235
- package/lib/src/ap-form/modal-form/index.vue.d.ts +0 -378
- package/lib/src/config-provider/config-provider-props.d.ts +0 -152
- package/lib/src/config-provider/config-provider.d.ts +0 -323
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -154
- package/lib/src/config-provider/index.d.ts +0 -691
- package/lib/src/modal/basic.vue.d.ts +0 -465
- package/lib/src/modal/components/modal-footer.vue.d.ts +0 -457
- package/lib/src/modal/components/modal.d.ts +0 -443
- package/lib/src/modal/index.d.ts +0 -963
- package/lib/src/modal/props.d.ts +0 -283
- package/lib/src/pro-form/hooks/use-label-width.d.ts +0 -312
|
@@ -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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, ref as g, unref as r, computed as s, openBlock as n, createElementBlock as c, normalizeClass as C, createBlock as d, createCommentVNode as u, renderSlot as b, isVNode as v, resolveDynamicComponent as B, toDisplayString as A } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import x from "ant-design-vue/es/button/LoadingIcon";
|
|
4
4
|
import "../style/item.css";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
const
|
|
5
|
+
import { useNamespace as h } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const I = { key: 1 }, V = /* @__PURE__ */ y({
|
|
7
7
|
name: "ApActionItem",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -15,35 +15,35 @@ const S = /* @__PURE__ */ p({
|
|
|
15
15
|
onClick: {},
|
|
16
16
|
loading: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const e =
|
|
20
|
-
function
|
|
21
|
-
var
|
|
22
|
-
|
|
18
|
+
setup(f) {
|
|
19
|
+
const e = f, { b: m, m: t } = h("action-item"), l = g(!1);
|
|
20
|
+
function p(o) {
|
|
21
|
+
var i;
|
|
22
|
+
r(a) || e.disabled || ((i = e.onClick) == null || i.call(e, o), e.onAction && (l.value = !0, e.onAction(o).finally(() => l.value = !1)));
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const a = s(() => e.loading || r(l)), k = s(() => [
|
|
25
|
+
m(),
|
|
26
26
|
t(e.color),
|
|
27
27
|
e.disabled ? t("disabled") : null,
|
|
28
|
-
|
|
28
|
+
a.value ? t("loading") : null
|
|
29
29
|
].filter(Boolean));
|
|
30
|
-
return (o,
|
|
30
|
+
return (o, i) => o.visible ? (n(), c("span", {
|
|
31
31
|
key: 0,
|
|
32
|
-
onClick:
|
|
33
|
-
class: C(
|
|
32
|
+
onClick: p,
|
|
33
|
+
class: C(k.value)
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
a.value ? (n(), d(r(x), {
|
|
36
36
|
key: 0,
|
|
37
37
|
prefixCls: "btn",
|
|
38
38
|
existIcon: !1,
|
|
39
39
|
loading: ""
|
|
40
|
-
})) :
|
|
41
|
-
|
|
42
|
-
v(B(o.text || ""), 1)
|
|
40
|
+
})) : u("", !0),
|
|
41
|
+
b(o.$slots, "default", {}, () => [
|
|
42
|
+
v(o.text) ? (n(), d(B(o.text), { key: 0 })) : (n(), c("span", I, A(o.text || ""), 1))
|
|
43
43
|
])
|
|
44
|
-
], 2)) :
|
|
44
|
+
], 2)) : u("", !0);
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
V as default
|
|
49
49
|
};
|
|
@@ -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<
|
|
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<
|
|
94
|
+
type: PropType<VNode< RendererNode, RendererElement, {
|
|
95
95
|
[key: string]: any;
|
|
96
|
-
}> | VNodeChild>;
|
|
96
|
+
}> | string[] | VNodeChild>;
|
|
97
97
|
};
|
|
98
98
|
}>>, {
|
|
99
99
|
color: string;
|
package/es/src/basic/index.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare const BasicHelp: {
|
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
text: {
|
|
26
|
-
type: PropType<
|
|
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<
|
|
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<
|
|
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<
|
|
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;
|
|
@@ -10,13 +10,12 @@ import { omit as g } from "lodash-unified";
|
|
|
10
10
|
import { deepMerge as oe } from "@aplus-frontend/utils";
|
|
11
11
|
import { isFunction as te } from "@fruits-chain/utils";
|
|
12
12
|
import "../config-provider/index.mjs";
|
|
13
|
-
import "./style/index.css";
|
|
14
13
|
import { useNamespace as ne } from "../config-provider/hooks/use-namespace.mjs";
|
|
15
14
|
import le from "./components/modal-wrapper.vue2.mjs";
|
|
16
15
|
import ae from "./components/modal-close.vue2.mjs";
|
|
17
16
|
import re from "./components/modal-header.vue2.mjs";
|
|
18
17
|
import se from "./components/modal-footer.vue2.mjs";
|
|
19
|
-
const
|
|
18
|
+
const be = /* @__PURE__ */ q({
|
|
20
19
|
name: "BasicModal",
|
|
21
20
|
inheritAttrs: !1,
|
|
22
21
|
__name: "basic",
|
|
@@ -39,9 +38,9 @@ const Me = /* @__PURE__ */ q({
|
|
|
39
38
|
o(i) && o(i).setModalHeight();
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
const
|
|
41
|
+
}, f = J();
|
|
42
|
+
f && r("register", F, f.uid);
|
|
43
|
+
const p = d(() => ({
|
|
45
44
|
...t,
|
|
46
45
|
...o(v)
|
|
47
46
|
})), {
|
|
@@ -51,10 +50,10 @@ const Me = /* @__PURE__ */ q({
|
|
|
51
50
|
} = ee({
|
|
52
51
|
modalWrapperRef: i,
|
|
53
52
|
extHeightRef: w,
|
|
54
|
-
wrapClassName: K(
|
|
53
|
+
wrapClassName: K(p.value, "wrapClassName")
|
|
55
54
|
}), l = d(() => ({
|
|
56
55
|
...{
|
|
57
|
-
...o(
|
|
56
|
+
...o(p),
|
|
58
57
|
open: o(n),
|
|
59
58
|
okButtonProps: void 0,
|
|
60
59
|
cancelButtonProps: void 0,
|
|
@@ -64,7 +63,7 @@ const Me = /* @__PURE__ */ q({
|
|
|
64
63
|
})), b = d(() => {
|
|
65
64
|
const e = {
|
|
66
65
|
...B,
|
|
67
|
-
...o(
|
|
66
|
+
...o(p),
|
|
68
67
|
open: o(n)
|
|
69
68
|
};
|
|
70
69
|
return e.wrapClassName = `${(e == null ? void 0 : e.wrapClassName) || ""} ${o(P)}vben-basic-modal-wrap`, o(c) ? g(e, ["height", "title"]) : g(e, "title");
|
|
@@ -77,7 +76,7 @@ const Me = /* @__PURE__ */ q({
|
|
|
77
76
|
}), U(
|
|
78
77
|
() => o(n),
|
|
79
78
|
(e) => {
|
|
80
|
-
r("open-change", e), r("update:open", e),
|
|
79
|
+
r("open-change", e), r("update:open", e), f && F.emitOpen && F.emitOpen(e, f.uid), S(() => {
|
|
81
80
|
t.scrollTop && e && o(i) && o(i).scrollTop();
|
|
82
81
|
});
|
|
83
82
|
},
|
|
@@ -164,7 +163,7 @@ const Me = /* @__PURE__ */ q({
|
|
|
164
163
|
fn: s(() => [
|
|
165
164
|
h(re, {
|
|
166
165
|
helpMessage: l.value.helpMessage,
|
|
167
|
-
title:
|
|
166
|
+
title: p.value.title,
|
|
168
167
|
onDblclick: z
|
|
169
168
|
}, null, 8, ["helpMessage", "title"])
|
|
170
169
|
]),
|
|
@@ -197,5 +196,5 @@ const Me = /* @__PURE__ */ q({
|
|
|
197
196
|
}
|
|
198
197
|
});
|
|
199
198
|
export {
|
|
200
|
-
|
|
199
|
+
be as default
|
|
201
200
|
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
.fullscreen-modal {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
}
|
|
4
|
-
.fullscreen-modal .ant-modal {
|
|
5
|
-
inset: 0 !important;
|
|
6
|
-
width: 100% !important;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
.fullscreen-modal .ant-modal-content {
|
|
11
|
-
height: 100%;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
}
|
|
14
|
-
.fullscreen-modal .ant-modal-footer {
|
|
15
|
-
margin-top: 0;
|
|
16
|
-
}
|
|
17
|
-
.aplus-basic-modal {
|
|
18
|
-
width: 520px;
|
|
19
|
-
padding-bottom: 0;
|
|
20
|
-
}
|
|
21
|
-
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
|
|
22
|
-
padding: 20px;
|
|
23
|
-
padding-bottom: 0;
|
|
24
|
-
}
|
|
25
|
-
.aplus-basic-modal .ant-modal-title {
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
font-weight: bold;
|
|
28
|
-
}
|
|
29
|
-
.aplus-basic-modal .ant-modal-title .aplus-basic-title {
|
|
30
|
-
cursor: move !important;
|
|
31
|
-
padding-left: 0;
|
|
32
|
-
}
|
|
33
|
-
.aplus-basic-modal .ant-modal-body {
|
|
34
|
-
padding: 0;
|
|
35
|
-
}
|
|
36
|
-
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
.aplus-basic-modal .ant-modal-large {
|
|
40
|
-
top: 60px;
|
|
41
|
-
}
|
|
42
|
-
.aplus-basic-modal .ant-modal-large .ant-modal--mini {
|
|
43
|
-
top: 16px;
|
|
44
|
-
}
|
|
45
|
-
.aplus-basic-modal .ant-modal-header {
|
|
46
|
-
padding: 15px 20px;
|
|
47
|
-
margin-bottom: 0;
|
|
48
|
-
border-bottom: 1px solid #dee4ed;
|
|
49
|
-
}
|
|
50
|
-
.aplus-basic-modal .ant-modal-content {
|
|
51
|
-
padding: 0 !important;
|
|
52
|
-
}
|
|
53
|
-
.aplus-basic-modal .ant-modal-footer {
|
|
54
|
-
padding: 20px;
|
|
55
|
-
margin-top: 0;
|
|
56
|
-
}
|
|
57
|
-
.aplus-basic-modal .ant-modal-footer button + button {
|
|
58
|
-
margin-left: 10px;
|
|
59
|
-
}
|
|
60
|
-
.aplus-basic-modal .ant-modal-close {
|
|
61
|
-
top: 0 !important;
|
|
62
|
-
right: 0 !important;
|
|
63
|
-
width: auto !important;
|
|
64
|
-
outline: none;
|
|
65
|
-
background: transparent !important;
|
|
66
|
-
font-weight: normal;
|
|
67
|
-
}
|
|
68
|
-
.aplus-basic-modal .ant-modal-close-x {
|
|
69
|
-
display: inline-block;
|
|
70
|
-
width: 96px;
|
|
71
|
-
height: 56px;
|
|
72
|
-
line-height: 56px !important;
|
|
73
|
-
}
|
|
74
|
-
.aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
75
|
-
color: #909399;
|
|
76
|
-
}
|
|
77
|
-
.aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
78
|
-
color: #ed6f6f;
|
|
79
|
-
}
|
|
80
|
-
.aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
|
|
81
|
-
margin-right: 0;
|
|
82
|
-
}
|
|
83
|
-
.aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
84
|
-
color: #efbd47;
|
|
85
|
-
}
|
|
86
|
-
.aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
87
|
-
color: #34b77c;
|
|
88
|
-
}
|
|
89
|
-
@media screen and (height <= 600px) {
|
|
90
|
-
.ant-modal {
|
|
91
|
-
top: 60px;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
@media screen and (height <= 540px) {
|
|
95
|
-
.ant-modal {
|
|
96
|
-
top: 30px;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
@media screen and (height <= 480px) {
|
|
100
|
-
.ant-modal {
|
|
101
|
-
top: 10px;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -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,84 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BasicColumn } from '../../types/table';
|
|
3
|
-
import { Recordable } from '../../../type';
|
|
4
|
-
import { ComponentType } from '../../component-map';
|
|
1
|
+
import { DefineSetupFnComponent, PublicProps } from 'vue';
|
|
5
2
|
|
|
6
|
-
declare const _default:
|
|
7
|
-
value: {
|
|
8
|
-
type: PropType<string | number | boolean | Record<string, any>>;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
record: {
|
|
12
|
-
type: any;
|
|
13
|
-
};
|
|
14
|
-
column: {
|
|
15
|
-
type: PropType<BasicColumn>;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
index: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
}, {
|
|
23
|
-
isEdit: Ref<boolean>;
|
|
24
|
-
ns: {
|
|
25
|
-
namespace: ComputedRef<string>;
|
|
26
|
-
b: (blockSuffix?: string) => string;
|
|
27
|
-
e: (element?: string | undefined) => string;
|
|
28
|
-
m: (modifier?: string | undefined) => string;
|
|
29
|
-
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
30
|
-
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
31
|
-
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
32
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
33
|
-
is: {
|
|
34
|
-
(name: string, state: boolean | undefined): string;
|
|
35
|
-
(name: string): string;
|
|
36
|
-
};
|
|
37
|
-
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
38
|
-
cssVarName: (name: string) => string;
|
|
39
|
-
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
40
|
-
cssVarBlockName: (name: string) => string;
|
|
41
|
-
};
|
|
42
|
-
handleEdit: (e: Event) => void;
|
|
43
|
-
currentValueRef: Ref<any>;
|
|
44
|
-
handleSubmit: (needEmit?: boolean, valid?: boolean) => Promise<false | undefined>;
|
|
45
|
-
handleChange: (e: any) => Promise<void>;
|
|
46
|
-
handleCancel: () => void;
|
|
47
|
-
elRef: Ref<any>;
|
|
48
|
-
getComponent: ComputedRef<ComponentType>;
|
|
49
|
-
getRule: ComputedRef<boolean | ((text: string, record: Recordable<any>) => Promise<string>) | undefined>;
|
|
50
|
-
onClickOutside: () => void;
|
|
51
|
-
ruleMessage: Ref<string>;
|
|
52
|
-
getRuleVisible: ComputedRef<boolean | "">;
|
|
53
|
-
getComponentProps: ComputedRef<any>;
|
|
54
|
-
handleOptionsChange: (options: any) => void;
|
|
55
|
-
getWrapperStyle: ComputedRef<CSSProperties>;
|
|
56
|
-
getWrapperClass: ComputedRef<string>;
|
|
57
|
-
getRowEditable: ComputedRef<boolean>;
|
|
58
|
-
getValues: ComputedRef<any>;
|
|
59
|
-
handleEnter: () => Promise<void>;
|
|
60
|
-
handleSubmitClick: () => void;
|
|
61
|
-
spinning: Ref<boolean>;
|
|
62
|
-
getDisable: ComputedRef<boolean>;
|
|
63
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
64
|
-
value: {
|
|
65
|
-
type: PropType<string | number | boolean | Record<string, any>>;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
record: {
|
|
69
|
-
type: any;
|
|
70
|
-
};
|
|
71
|
-
column: {
|
|
72
|
-
type: PropType<BasicColumn>;
|
|
73
|
-
default: () => {};
|
|
74
|
-
};
|
|
75
|
-
index: {
|
|
76
|
-
type: NumberConstructor;
|
|
77
|
-
required: true;
|
|
78
|
-
};
|
|
79
|
-
}>>, {
|
|
80
|
-
value: string | number | boolean | Record<string, any>;
|
|
81
|
-
column: BasicColumn;
|
|
82
|
-
record: any;
|
|
83
|
-
}, {}>;
|
|
3
|
+
declare const _default: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
84
4
|
export default _default;
|
|
@@ -1,21 +1,47 @@
|
|
|
1
1
|
.ant-alert {
|
|
2
|
+
align-items: flex-start;
|
|
2
3
|
width: 100%;
|
|
3
|
-
|
|
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: #
|
|
9
|
-
font-weight:
|
|
13
|
+
color: #333333;
|
|
14
|
+
font-weight: normal !important;
|
|
10
15
|
font-size: 12px;
|
|
11
|
-
line-height:
|
|
16
|
+
line-height: 18px;
|
|
12
17
|
}
|
|
13
18
|
.ant-alert .ant-alert-message .href {
|
|
14
|
-
color: #
|
|
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
|
+
}
|
|
32
|
+
.ant-alert-warning {
|
|
33
|
+
background: rgba(250, 173, 20, 0.1);
|
|
34
|
+
border: 1px solid rgba(250, 173, 20, 0.4);
|
|
35
|
+
}
|
|
36
|
+
.ant-alert-info {
|
|
37
|
+
background: rgba(24, 144, 255, 0.1);
|
|
38
|
+
border: 1px solid rgba(24, 144, 255, 0.4);
|
|
39
|
+
}
|
|
40
|
+
.ant-alert-success {
|
|
41
|
+
background: rgba(52, 183, 124, 0.1);
|
|
42
|
+
border: 1px solid rgba(52, 183, 124, 0.4);
|
|
43
|
+
}
|
|
44
|
+
.ant-alert-error {
|
|
45
|
+
background: rgba(255, 77, 79, 0.1);
|
|
46
|
+
border: 1px solid rgba(255, 77, 79, 0.4);
|
|
47
|
+
}
|
|
@@ -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
|
}
|