@aplus-frontend/ui 0.1.25 → 0.1.27
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-download/ap-download.vue.d.ts +7 -3
- package/es/src/ap-download/ap-download.vue.mjs +50 -35
- package/es/src/ap-download/interface.d.ts +3 -11
- package/es/src/ap-download/style/ap-download.css +3 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +26 -26
- package/es/src/ap-table/ap-table.vue.mjs +231 -183
- package/es/src/ap-table/components/interface.d.ts +33 -1
- package/es/src/ap-table/components/setting/images/icon_carst_down.svg.mjs +4 -0
- package/es/src/ap-table/components/setting/images/icon_fill_right.svg.mjs +4 -0
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +28 -0
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +152 -0
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +13 -0
- package/es/src/ap-table/components/setting/select-group/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +96 -0
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +13 -0
- package/es/src/ap-table/components/setting/sortable/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +51 -0
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +20 -0
- package/es/src/ap-table/components/setting/sortable/item.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +140 -0
- package/es/src/ap-table/components/setting/sorter/context.d.ts +11 -0
- package/es/src/ap-table/components/setting/sorter/context.mjs +20 -0
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +18 -0
- package/es/src/ap-table/components/setting/sorter/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +199 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +13 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +75 -0
- package/es/src/ap-table/components/setting/utils.d.ts +17 -0
- package/es/src/ap-table/components/setting/utils.mjs +48 -0
- package/es/src/ap-table/components/style/setting/modal.css +39 -0
- package/es/src/ap-table/components/style/setting/select-group.css +7 -0
- package/es/src/ap-table/components/style/setting/sortable-item-meta.css +50 -0
- package/es/src/ap-table/components/style/setting/sortable-item.css +3 -0
- package/es/src/ap-table/components/style/setting/sorter.css +26 -0
- package/es/src/ap-table/constants.d.ts +31 -8
- package/es/src/ap-table/constants.mjs +41 -53
- package/es/src/ap-table/context.d.ts +31 -0
- package/es/src/ap-table/context.mjs +20 -0
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +18 -0
- package/es/src/ap-table/hooks/use-table-column-state.mjs +46 -0
- package/es/src/ap-table/hooks/use-table-content-height.mjs +19 -19
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +87 -82
- package/es/src/ap-table/interface.d.ts +51 -1
- package/es/src/ap-table/style/ap-table.css +29 -1
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/ap-table/utils.mjs +82 -82
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +91 -89
- package/es/src/ap-upload/components/Picture.vue2.mjs +114 -112
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +10 -7
- package/es/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +45 -42
- package/es/src/business/ap-attachment/style.css +2 -0
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +114 -84
- package/es/src/business/ap-ladder/interface.d.ts +42 -0
- package/es/src/business/ap-ladder/interface.mjs +10 -0
- package/es/src/business/hooks/usePageListApTable.d.ts +8 -3
- package/es/src/business/hooks/usePageListApTable.mjs +27 -17
- package/es/src/business/hooks/useTableRefresh.d.ts +3 -4
- package/es/src/business/hooks/useTableRefresh.mjs +9 -9
- package/es/src/business/index.d.ts +4 -4
- package/es/src/editable-table/interface.d.ts +1 -1
- package/es/src/locale/lang/en.mjs +14 -0
- package/es/src/locale/lang/zh-cn.mjs +14 -0
- package/es/src/theme/ap-attachment/ap-attachment.css +2 -0
- package/es/src/theme/ap-download/ap-download.css +3 -0
- package/es/src/theme/ap-table/ap-table.css +29 -1
- package/es/src/theme/ap-table/setting/modal.css +39 -0
- package/es/src/theme/ap-table/setting/select-group.css +7 -0
- package/es/src/theme/ap-table/setting/sortable-item-meta.css +50 -0
- package/es/src/theme/ap-table/setting/sortable-item.css +3 -0
- package/es/src/theme/ap-table/setting/sorter.css +26 -0
- package/es/src/theme/css-var/index.mjs +22 -12
- package/lib/src/ap-download/ap-download.vue.d.ts +7 -3
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +3 -11
- package/lib/src/ap-download/style/ap-download.css +3 -0
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/interface.d.ts +33 -1
- package/lib/src/ap-table/components/setting/images/icon_carst_down.svg.js +1 -0
- package/lib/src/ap-table/components/setting/images/icon_fill_right.svg.js +1 -0
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +28 -0
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +13 -0
- package/lib/src/ap-table/components/setting/select-group/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +13 -0
- package/lib/src/ap-table/components/setting/sortable/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +20 -0
- package/lib/src/ap-table/components/setting/sortable/item.vue.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/sorter/context.d.ts +11 -0
- package/lib/src/ap-table/components/setting/sorter/context.js +1 -0
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +18 -0
- package/lib/src/ap-table/components/setting/sorter/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +13 -0
- package/lib/src/ap-table/components/setting/tree-select/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/utils.d.ts +17 -0
- package/lib/src/ap-table/components/setting/utils.js +1 -0
- package/lib/src/ap-table/components/style/setting/modal.css +39 -0
- package/lib/src/ap-table/components/style/setting/select-group.css +7 -0
- package/lib/src/ap-table/components/style/setting/sortable-item-meta.css +50 -0
- package/lib/src/ap-table/components/style/setting/sortable-item.css +3 -0
- package/lib/src/ap-table/components/style/setting/sorter.css +26 -0
- package/lib/src/ap-table/constants.d.ts +31 -8
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/context.d.ts +31 -0
- package/lib/src/ap-table/context.js +1 -0
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +18 -0
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -0
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +51 -1
- package/lib/src/ap-table/style/ap-table.css +29 -1
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/style.css +2 -0
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/interface.d.ts +42 -0
- package/lib/src/business/ap-ladder/interface.js +1 -0
- package/lib/src/business/hooks/usePageListApTable.d.ts +8 -3
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +3 -4
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/business/index.d.ts +4 -4
- package/lib/src/editable-table/interface.d.ts +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-attachment/ap-attachment.css +2 -0
- package/lib/src/theme/ap-download/ap-download.css +3 -0
- package/lib/src/theme/ap-table/ap-table.css +29 -1
- package/lib/src/theme/ap-table/setting/modal.css +39 -0
- package/lib/src/theme/ap-table/setting/select-group.css +7 -0
- package/lib/src/theme/ap-table/setting/sortable-item-meta.css +50 -0
- package/lib/src/theme/ap-table/setting/sortable-item.css +3 -0
- package/lib/src/theme/ap-table/setting/sorter.css +26 -0
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +3 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApDownLoadProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ButtonType } from 'ant-design-vue/es/button';
|
|
3
4
|
declare function __VLS_template(): {
|
|
4
5
|
slots: {
|
|
5
6
|
icon?(_: {}): any;
|
|
@@ -8,14 +9,17 @@ declare function __VLS_template(): {
|
|
|
8
9
|
attrs: Partial<{}>;
|
|
9
10
|
};
|
|
10
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps
|
|
12
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps>, {
|
|
13
|
+
type: string;
|
|
12
14
|
size: string;
|
|
13
15
|
disabled: boolean;
|
|
14
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps
|
|
16
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps>, {
|
|
17
|
+
type: string;
|
|
15
18
|
size: string;
|
|
16
19
|
disabled: boolean;
|
|
17
20
|
}>>>, {
|
|
18
|
-
size: "small" | "
|
|
21
|
+
size: "small" | "large" | "middle";
|
|
22
|
+
type: ButtonType;
|
|
19
23
|
disabled: boolean;
|
|
20
24
|
}, {}>;
|
|
21
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,54 +1,69 @@
|
|
|
1
|
-
import { defineComponent as b, useSlots as
|
|
1
|
+
import { defineComponent as b, useSlots as h, computed as t, unref as s, openBlock as l, createBlock as B, mergeProps as z, withCtx as k, createElementVNode as a, normalizeClass as w, createElementBlock as N, renderSlot as O, createCommentVNode as v, toDisplayString as F } from "vue";
|
|
2
|
+
import { Button as x } from "ant-design-vue";
|
|
2
3
|
import "../config-provider/index.mjs";
|
|
3
|
-
import { useOssInit as
|
|
4
|
+
import { useOssInit as A } from "./hooks/index.mjs";
|
|
4
5
|
import "./style/ap-download.css";
|
|
5
|
-
import { getFileInfo as
|
|
6
|
-
import { useStyle as
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import { useGlobalConfig as
|
|
6
|
+
import { getFileInfo as S } from "./utils/getFileInfo.mjs";
|
|
7
|
+
import { useStyle as I } from "./hooks/useStyle.mjs";
|
|
8
|
+
import { useLocale as M } from "../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useGlobalConfig as i } from "../config-provider/hooks/use-global-config.mjs";
|
|
9
10
|
const U = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "icon"
|
|
12
|
-
},
|
|
13
|
+
}, j = { class: "text" }, H = /* @__PURE__ */ b({
|
|
13
14
|
name: "ApDownload",
|
|
14
15
|
__name: "ap-download",
|
|
15
16
|
props: {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
prefixCls: {},
|
|
18
|
+
type: { default: "link" },
|
|
19
|
+
htmlType: {},
|
|
20
|
+
shape: {},
|
|
18
21
|
size: { default: "middle" },
|
|
22
|
+
loading: { type: [Boolean, Object] },
|
|
19
23
|
disabled: { type: Boolean, default: !1 },
|
|
24
|
+
ghost: { type: Boolean },
|
|
25
|
+
block: { type: Boolean },
|
|
26
|
+
danger: { type: Boolean },
|
|
27
|
+
icon: {},
|
|
28
|
+
href: {},
|
|
29
|
+
target: {},
|
|
30
|
+
title: {},
|
|
31
|
+
onClick: {},
|
|
32
|
+
onMousedown: {},
|
|
33
|
+
text: {},
|
|
34
|
+
color: {},
|
|
20
35
|
fileName: {},
|
|
21
36
|
needName: { type: [Boolean, Object] },
|
|
22
37
|
getOssAccess: {}
|
|
23
38
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const { lang:
|
|
26
|
-
C,
|
|
27
|
-
_,
|
|
28
|
-
g
|
|
29
|
-
), N = s(() => {
|
|
39
|
+
setup(c) {
|
|
40
|
+
const { lang: r } = M(), p = h(), d = t(() => r.value === "zh-cn" ? "zh_CN" : "en_US"), m = i("uiMode"), e = c, u = i("apUpload"), n = t(() => e.disabled), f = t(() => e.color ? e.color : m.value === "aplus" ? "#0070FF" : "#1890FF"), g = t(() => e.size), { getInnerWrapperClass: y } = I(f, g, n), C = t(() => {
|
|
30
41
|
var o;
|
|
31
|
-
return e.getOssAccess || ((o =
|
|
32
|
-
}),
|
|
33
|
-
e.disabled || await (await
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
)).downloadFile(
|
|
42
|
+
return e.getOssAccess || ((o = u.value) == null ? void 0 : o.getOssAccess);
|
|
43
|
+
}), _ = async () => {
|
|
44
|
+
e.disabled || await (await A(
|
|
45
|
+
C.value,
|
|
46
|
+
s(d)
|
|
47
|
+
)).downloadFile(S(e.needName, e.fileName));
|
|
37
48
|
};
|
|
38
|
-
return (o,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
return (o, D) => (l(), B(s(x), z(e, {
|
|
50
|
+
type: e.type,
|
|
51
|
+
size: e.size,
|
|
52
|
+
disabled: n.value,
|
|
53
|
+
onClick: _
|
|
54
|
+
}), {
|
|
55
|
+
default: k(() => [
|
|
56
|
+
a("div", {
|
|
57
|
+
class: w(s(y))
|
|
58
|
+
}, [
|
|
59
|
+
s(p).icon ? (l(), N("span", U, [
|
|
60
|
+
O(o.$slots, "icon")
|
|
61
|
+
])) : v("", !0),
|
|
62
|
+
a("span", j, F(o.text), 1)
|
|
63
|
+
], 2)
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 16, ["type", "size", "disabled"]));
|
|
52
67
|
}
|
|
53
68
|
});
|
|
54
69
|
export {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { accessCreate } from '@aplus-frontend/oss';
|
|
2
|
+
import { ButtonProps } from 'ant-design-vue/es/Button';
|
|
2
3
|
/**
|
|
3
4
|
* 类型转换为单例和数组
|
|
4
5
|
*/
|
|
5
6
|
type TypeToSingleAndArray<Type = any> = Type extends any ? Type | Type[] : never;
|
|
6
|
-
export
|
|
7
|
+
export type ApDownLoadProps<FileNameType extends Record<string, string> = Record<string, string>> = ButtonProps & {
|
|
7
8
|
/**
|
|
8
9
|
* 标签内容
|
|
9
10
|
*/
|
|
@@ -12,15 +13,6 @@ export interface ApDownLoadProps<FileNameType extends Record<string, string> = R
|
|
|
12
13
|
* 标签颜色
|
|
13
14
|
*/
|
|
14
15
|
color?: string;
|
|
15
|
-
/**
|
|
16
|
-
* 标签大小
|
|
17
|
-
*/
|
|
18
|
-
size?: 'small' | 'middle' | 'large';
|
|
19
|
-
/**
|
|
20
|
-
* 是否禁用
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
16
|
fileName: TypeToSingleAndArray<string | FileNameType>;
|
|
25
17
|
/**
|
|
26
18
|
* 是否需要fileName别名
|
|
@@ -30,7 +22,7 @@ export interface ApDownLoadProps<FileNameType extends Record<string, string> = R
|
|
|
30
22
|
*/
|
|
31
23
|
needName?: ApDownLoadNeedNameModel;
|
|
32
24
|
getOssAccess?: () => Promise<accessCreate>;
|
|
33
|
-
}
|
|
25
|
+
};
|
|
34
26
|
/**
|
|
35
27
|
* 别名配置项
|
|
36
28
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as j, ref as f, onMounted as q, computed as B, unref as l, watch as E, cloneVNode as K, openBlock as g, createBlock as
|
|
1
|
+
import { defineComponent as $, useSlots as j, ref as f, onMounted as q, computed as B, unref as l, watch as E, cloneVNode as K, openBlock as g, createBlock as V, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as G, createCommentVNode as H, createElementVNode as C, normalizeClass as J, createVNode as k, normalizeStyle as M, toDisplayString as W, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as ee } from "vue";
|
|
2
2
|
import { Form as oe, Tooltip as le } from "ant-design-vue";
|
|
3
3
|
import { useToken as te } from "ant-design-vue/es/theme/internal";
|
|
4
|
-
import { isFunction as ae,
|
|
5
|
-
import { apFormItemColPropKeys as
|
|
6
|
-
import { QuestionCircleOutlined as
|
|
4
|
+
import { isFunction as ae, cloneDeep as re, isArray as ne, omit as N } from "lodash-unified";
|
|
5
|
+
import { apFormItemColPropKeys as ie } from "./constant.mjs";
|
|
6
|
+
import { QuestionCircleOutlined as ue } from "@ant-design/icons-vue";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
|
-
import { useInjectForm as
|
|
8
|
+
import { useInjectForm as se } from "./context.mjs";
|
|
9
9
|
import "./style/ap-form-item.css";
|
|
10
|
-
import { isPromise as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
const
|
|
10
|
+
import { isPromise as de } from "@fruits-chain/utils";
|
|
11
|
+
import { useNamespace as me } from "../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
const fe = ["title"], ke = /* @__PURE__ */ $({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "ap-form-item",
|
|
15
15
|
props: {
|
|
@@ -54,15 +54,15 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
54
54
|
},
|
|
55
55
|
setup(P, { expose: S }) {
|
|
56
56
|
var b, F;
|
|
57
|
-
const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } =
|
|
57
|
+
const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } = se(), { m: p, b: w } = me("ap-form-item"), m = f(!1), a = f(), [, x] = te();
|
|
58
58
|
q(async () => {
|
|
59
59
|
let e = ae(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
60
|
-
|
|
60
|
+
de(e) && (e = await e), d == null || d.registerField({
|
|
61
61
|
name: o.name,
|
|
62
|
-
initialValue: e
|
|
62
|
+
initialValue: re(e)
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
|
-
const c = B(() => o.name ?
|
|
65
|
+
const c = B(() => o.name ? ne(o.name) ? o.name.reduce((e, r) => e == null ? void 0 : e[r], l(u)) : u == null ? void 0 : u.value[o.name] : null), v = f((F = (b = t.default) == null ? void 0 : b.call(t)) == null ? void 0 : F[0]);
|
|
66
66
|
E(
|
|
67
67
|
() => {
|
|
68
68
|
var e;
|
|
@@ -98,15 +98,15 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
98
98
|
var e;
|
|
99
99
|
(e = a.value) == null || e.onFieldBlur();
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function D() {
|
|
102
102
|
var e;
|
|
103
103
|
(e = a.value) == null || e.onFieldChange();
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function R() {
|
|
106
106
|
var e;
|
|
107
107
|
(e = a.value) == null || e.clearValidate();
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function T() {
|
|
110
110
|
var e;
|
|
111
111
|
(e = a.value) == null || e.resetField();
|
|
112
112
|
}
|
|
@@ -115,14 +115,14 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
115
115
|
}
|
|
116
116
|
return S({
|
|
117
117
|
onFieldBlur: A,
|
|
118
|
-
onFieldChange:
|
|
119
|
-
clearValidate:
|
|
120
|
-
resetField:
|
|
118
|
+
onFieldChange: D,
|
|
119
|
+
clearValidate: R,
|
|
120
|
+
resetField: T,
|
|
121
121
|
getFieldValue: L
|
|
122
|
-
}), (e, r) => (g(),
|
|
122
|
+
}), (e, r) => (g(), V(l(oe).Item, Q({
|
|
123
123
|
ref_key: "formItemRef",
|
|
124
124
|
ref: a
|
|
125
|
-
}, l(N)(o, [...l(
|
|
125
|
+
}, l(N)(o, [...l(ie), "tooltip", "label"]), {
|
|
126
126
|
class: {
|
|
127
127
|
[l(p)("bordered")]: e.bordered,
|
|
128
128
|
[l(p)("focused")]: e.bordered && m.value,
|
|
@@ -131,21 +131,21 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
131
131
|
colon: e.bordered ? !1 : o.colon
|
|
132
132
|
}), U({
|
|
133
133
|
default: i(() => [
|
|
134
|
-
y.value ? (g(),
|
|
134
|
+
y.value ? (g(), V(G(y.value), { key: 0 })) : H("", !0)
|
|
135
135
|
]),
|
|
136
136
|
_: 2
|
|
137
137
|
}, [
|
|
138
138
|
o.tooltip ? {
|
|
139
139
|
name: "tooltip",
|
|
140
140
|
fn: i(({ class: n }) => [
|
|
141
|
-
|
|
141
|
+
C("span", {
|
|
142
142
|
class: J(n)
|
|
143
143
|
}, [
|
|
144
144
|
k(l(le), {
|
|
145
145
|
title: o.tooltip
|
|
146
146
|
}, {
|
|
147
147
|
default: i(() => [
|
|
148
|
-
k(l(
|
|
148
|
+
k(l(ue), {
|
|
149
149
|
style: M({ color: l(x).colorPrimary })
|
|
150
150
|
}, null, 8, ["style"])
|
|
151
151
|
]),
|
|
@@ -158,14 +158,14 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
158
158
|
e.label ? {
|
|
159
159
|
name: "label",
|
|
160
160
|
fn: i(() => [
|
|
161
|
-
|
|
161
|
+
C("span", {
|
|
162
162
|
title: e.label,
|
|
163
163
|
style: {
|
|
164
164
|
whiteSpace: "nowrap",
|
|
165
165
|
overflow: "hidden",
|
|
166
166
|
textOverflow: "ellipsis"
|
|
167
167
|
}
|
|
168
|
-
}, W(e.label), 9,
|
|
168
|
+
}, W(e.label), 9, fe)
|
|
169
169
|
]),
|
|
170
170
|
key: "1"
|
|
171
171
|
} : void 0,
|
|
@@ -179,5 +179,5 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
export {
|
|
182
|
-
|
|
182
|
+
ke as default
|
|
183
183
|
};
|