@aplus-frontend/ui 0.2.20 → 0.2.21
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-descriptions/help-message/index.vue2.mjs +18 -18
- package/es/src/ap-form/interface.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.mjs +48 -51
- package/es/src/ap-form/items/number/index.vue.d.ts +10 -10
- package/es/src/ap-form/items/text/index.vue.d.ts +10 -10
- package/es/src/ap-form/items/text/password.vue.d.ts +10 -10
- package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -9
- package/es/src/ap-form/render/control.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.d.ts +6 -5
- package/es/src/ap-form/render/item.vue.mjs +20 -12
- package/es/src/ap-form/render/style/css.d.ts +1 -0
- package/es/src/ap-form/render/style/css.js +1 -0
- package/es/src/ap-form/render/style/style.d.ts +1 -0
- package/es/src/ap-list/index.vue.d.ts +10 -2
- package/es/src/ap-list/index.vue.mjs +135 -85
- package/es/src/ap-list/interface.d.ts +22 -3
- package/es/src/ap-table/constants.d.ts +42 -42
- package/es/src/ap-tag/ap-tag.vue.mjs +16 -13
- package/es/src/path-map.mjs +3 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text/index.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text/password.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -9
- package/lib/src/ap-form/render/control.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +6 -5
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/render/style/css.d.ts +1 -0
- package/lib/src/ap-form/render/style/css.js +1 -0
- package/lib/src/ap-form/render/style/style.d.ts +1 -0
- package/lib/src/ap-list/index.vue.d.ts +10 -2
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +22 -3
- package/lib/src/ap-table/constants.d.ts +42 -42
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +3 -2
|
@@ -24,13 +24,21 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
24
24
|
empty?(_: {
|
|
25
25
|
loading: boolean;
|
|
26
26
|
}): any;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
renderItem?(_: {
|
|
28
|
+
item: RecordType;
|
|
29
|
+
index: number;
|
|
30
|
+
}): any;
|
|
31
|
+
renderItem?(_: {
|
|
32
|
+
item: RecordType;
|
|
33
|
+
index: number;
|
|
29
34
|
}): any;
|
|
30
35
|
renderItem?(_: {
|
|
31
36
|
item: RecordType;
|
|
32
37
|
index: number;
|
|
33
38
|
}): any;
|
|
39
|
+
renderContent?(_: {
|
|
40
|
+
dataSource: RecordType[];
|
|
41
|
+
}): any;
|
|
34
42
|
};
|
|
35
43
|
emit: {};
|
|
36
44
|
}>) => VNode<RendererNode, RendererElement, {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Empty as
|
|
1
|
+
import { defineComponent as H, ref as J, unref as t, computed as c, watch as Q, openBlock as i, createBlock as y, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as v, renderSlot as l, createVNode as h, createElementBlock as p, Fragment as B, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-table/index.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
|
-
import { isUndefined as
|
|
6
|
-
import { useOfflineList as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
5
|
+
import { isUndefined as O, isNumber as te, omit as ae } from "lodash-unified";
|
|
6
|
+
import { useOfflineList as ne } from "./hooks/use-offline-list.mjs";
|
|
7
|
+
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
|
8
|
+
import { RecycleScroller as re, DynamicScroller as oe, DynamicScrollerItem as ie } from "vue-virtual-scroller";
|
|
9
|
+
import { useNamespace as le } from "../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { useTablePaging as se } from "../ap-table/hooks/use-table-paging.mjs";
|
|
11
|
+
const he = /* @__PURE__ */ H({
|
|
10
12
|
__name: "index",
|
|
11
13
|
props: {
|
|
12
14
|
dataSource: {},
|
|
@@ -19,26 +21,29 @@ const fe = /* @__PURE__ */ M({
|
|
|
19
21
|
beforeSearchSubmit: {},
|
|
20
22
|
pagination: { type: [Boolean, Object], default: void 0 },
|
|
21
23
|
manual: { type: Boolean },
|
|
22
|
-
containerStyle: {},
|
|
23
|
-
|
|
24
|
+
containerStyle: { type: [Boolean, null, String, Object, Array] },
|
|
25
|
+
contentStyle: { type: [Boolean, null, String, Object, Array] },
|
|
26
|
+
footerWarpperStyle: { type: [Boolean, null, String, Object, Array] },
|
|
27
|
+
virtual: { default: void 0 },
|
|
28
|
+
rowKey: {}
|
|
24
29
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
formRef:
|
|
28
|
-
submit:
|
|
29
|
-
reset:
|
|
30
|
-
handleTableChange:
|
|
31
|
-
data:
|
|
30
|
+
setup(V, { expose: F }) {
|
|
31
|
+
const L = E.PRESENTED_IMAGE_SIMPLE, n = V, { b: d, e: N } = le("ap-list"), b = J(), {
|
|
32
|
+
formRef: k,
|
|
33
|
+
submit: D,
|
|
34
|
+
reset: z,
|
|
35
|
+
handleTableChange: R,
|
|
36
|
+
data: g,
|
|
32
37
|
refresh: T,
|
|
33
|
-
refreshByDelete:
|
|
38
|
+
refreshByDelete: $,
|
|
34
39
|
tableProps: C
|
|
35
|
-
} =
|
|
36
|
-
async request(
|
|
37
|
-
var
|
|
38
|
-
const
|
|
40
|
+
} = se({
|
|
41
|
+
async request(e) {
|
|
42
|
+
var r;
|
|
43
|
+
const a = await ((r = n.request) == null ? void 0 : r.call(n, e));
|
|
39
44
|
return {
|
|
40
|
-
data: (
|
|
41
|
-
total: (
|
|
45
|
+
data: (a == null ? void 0 : a.data) || [],
|
|
46
|
+
total: (a == null ? void 0 : a.total) || 0
|
|
42
47
|
};
|
|
43
48
|
},
|
|
44
49
|
defaultParams: n.params,
|
|
@@ -47,92 +52,137 @@ const fe = /* @__PURE__ */ M({
|
|
|
47
52
|
defaultCurrent: n.pagination ? n.pagination.defaultCurrent : void 0,
|
|
48
53
|
defaultPageSize: n.pagination ? n.pagination.defaultPageSize : void 0,
|
|
49
54
|
formatParams: n.beforeSearchSubmit
|
|
50
|
-
}),
|
|
51
|
-
pagination:
|
|
52
|
-
dataSource:
|
|
53
|
-
onChange:
|
|
54
|
-
} =
|
|
55
|
-
function
|
|
56
|
-
if (t(
|
|
57
|
-
|
|
55
|
+
}), j = { form: k }, {
|
|
56
|
+
pagination: I,
|
|
57
|
+
dataSource: q,
|
|
58
|
+
onChange: A
|
|
59
|
+
} = ne(n);
|
|
60
|
+
function K(e, a) {
|
|
61
|
+
if (t(m)) {
|
|
62
|
+
A(e, a);
|
|
58
63
|
return;
|
|
59
64
|
}
|
|
60
|
-
|
|
61
|
-
{ current:
|
|
65
|
+
R(
|
|
66
|
+
{ current: e, pageSize: a },
|
|
62
67
|
{},
|
|
63
68
|
{},
|
|
64
69
|
{ currentDataSource: [], action: "paginate" }
|
|
65
70
|
);
|
|
66
71
|
}
|
|
67
|
-
const
|
|
68
|
-
var
|
|
69
|
-
return n.pagination === !1 ? !1 : ((
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
() => t(
|
|
73
|
-
(
|
|
74
|
-
var
|
|
75
|
-
(
|
|
72
|
+
const s = c(() => t(m) ? t(q) : t(g).records), S = c(() => O(n.loading) ? t(g).loading : n.loading), M = c(() => {
|
|
73
|
+
var e, a;
|
|
74
|
+
return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(m) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > t(I).pageSize : t(g).total > t(C).pagination.pageSize;
|
|
75
|
+
}), m = c(() => !O(n.dataSource));
|
|
76
|
+
Q(
|
|
77
|
+
() => t(S),
|
|
78
|
+
(e) => {
|
|
79
|
+
var a;
|
|
80
|
+
(a = n.onLoadingChange) == null || a.call(n, e);
|
|
76
81
|
}
|
|
77
82
|
);
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
(
|
|
83
|
+
function W(e) {
|
|
84
|
+
var a, r;
|
|
85
|
+
(r = (a = b.value) == null ? void 0 : a.querySelector(e || ":first-child")) == null || r.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
81
86
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
const
|
|
85
|
-
return (
|
|
87
|
+
function G(e = !1) {
|
|
88
|
+
var o;
|
|
89
|
+
const a = (o = k.value) == null ? void 0 : o.apForm, r = e ? a == null ? void 0 : a.getFieldsValueTransformed : a == null ? void 0 : a.getFieldsValue;
|
|
90
|
+
return (r == null ? void 0 : r()) || {};
|
|
86
91
|
}
|
|
87
|
-
return
|
|
88
|
-
submit: () =>
|
|
89
|
-
reset: () =>
|
|
92
|
+
return F({
|
|
93
|
+
submit: () => D(),
|
|
94
|
+
reset: () => z(),
|
|
90
95
|
refresh: () => T(),
|
|
91
|
-
refreshByDelete: (
|
|
92
|
-
scrollToFirstRow:
|
|
93
|
-
getSearchFormValuesIfSetted:
|
|
94
|
-
}), (
|
|
95
|
-
spinning:
|
|
96
|
-
class: u(t(
|
|
96
|
+
refreshByDelete: (e) => $(e),
|
|
97
|
+
scrollToFirstRow: W,
|
|
98
|
+
getSearchFormValuesIfSetted: G
|
|
99
|
+
}), (e, a) => (i(), y(t(x), {
|
|
100
|
+
spinning: S.value,
|
|
101
|
+
class: u(t(d)("spin"))
|
|
97
102
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
|
|
100
|
-
class: u(t(
|
|
101
|
-
style:
|
|
103
|
+
default: f(() => [
|
|
104
|
+
X("div", {
|
|
105
|
+
class: u(t(d)()),
|
|
106
|
+
style: v(e.containerStyle)
|
|
102
107
|
}, [
|
|
103
|
-
|
|
104
|
-
formIns:
|
|
105
|
-
submit: t(
|
|
106
|
-
reset: t(
|
|
108
|
+
l(e.$slots, "header", {
|
|
109
|
+
formIns: j,
|
|
110
|
+
submit: t(D),
|
|
111
|
+
reset: t(z)
|
|
107
112
|
}),
|
|
108
|
-
|
|
113
|
+
s.value.length === 0 ? l(e.$slots, "empty", {
|
|
109
114
|
key: 0,
|
|
110
|
-
loading:
|
|
115
|
+
loading: S.value
|
|
111
116
|
}, () => [
|
|
112
|
-
|
|
113
|
-
]) : (
|
|
117
|
+
h(t(E), { image: t(L) }, null, 8, ["image"])
|
|
118
|
+
]) : (i(), p("div", {
|
|
114
119
|
key: 1,
|
|
115
120
|
ref_key: "contentRef",
|
|
116
|
-
ref:
|
|
117
|
-
|
|
121
|
+
ref: b,
|
|
122
|
+
style: v(e.contentStyle)
|
|
118
123
|
}, [
|
|
119
|
-
|
|
120
|
-
(
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
e.virtual ? (i(), p(B, { key: 0 }, [
|
|
125
|
+
t(te)(e.virtual) ? (i(), y(t(re), {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: u(t(d)("scroll-wrapper")),
|
|
128
|
+
items: s.value,
|
|
129
|
+
itemSize: e.virtual,
|
|
130
|
+
"key-field": n.rowKey || "id"
|
|
131
|
+
}, {
|
|
132
|
+
default: f(({ item: r, index: o }) => [
|
|
133
|
+
l(e.$slots, "renderItem", {
|
|
134
|
+
item: r,
|
|
135
|
+
index: o
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 8, ["class", "items", "itemSize", "key-field"])) : (i(), y(t(oe), {
|
|
140
|
+
key: 1,
|
|
141
|
+
items: s.value,
|
|
142
|
+
minItemSize: e.virtual.minItemSize,
|
|
143
|
+
class: u(t(d)("scroll-wrapper"))
|
|
144
|
+
}, {
|
|
145
|
+
default: f(({ item: r, index: o, active: U }) => {
|
|
146
|
+
var P, w;
|
|
147
|
+
return [
|
|
148
|
+
h(t(ie), {
|
|
149
|
+
item: r,
|
|
150
|
+
active: U,
|
|
151
|
+
dataIndex: o,
|
|
152
|
+
sizeDependencies: (w = (P = e.virtual).sizeDependencies) == null ? void 0 : w.call(P, r)
|
|
153
|
+
}, {
|
|
154
|
+
default: f(() => [
|
|
155
|
+
l(e.$slots, "renderItem", {
|
|
156
|
+
item: r,
|
|
157
|
+
index: o
|
|
158
|
+
})
|
|
159
|
+
]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, 1032, ["item", "active", "dataIndex", "sizeDependencies"])
|
|
162
|
+
];
|
|
163
|
+
}),
|
|
164
|
+
_: 3
|
|
165
|
+
}, 8, ["items", "minItemSize", "class"]))
|
|
166
|
+
], 64)) : l(e.$slots, "renderContent", {
|
|
167
|
+
key: 1,
|
|
168
|
+
dataSource: s.value
|
|
169
|
+
}, () => [
|
|
170
|
+
(i(!0), p(B, null, Y(s.value, (r, o) => l(e.$slots, "renderItem", {
|
|
171
|
+
item: r,
|
|
172
|
+
index: o
|
|
123
173
|
})), 256))
|
|
124
174
|
])
|
|
125
|
-
],
|
|
126
|
-
|
|
175
|
+
], 4)),
|
|
176
|
+
M.value ? (i(), p("div", {
|
|
127
177
|
key: 2,
|
|
128
|
-
class: u(t(
|
|
129
|
-
style:
|
|
178
|
+
class: u(t(N)("footer")),
|
|
179
|
+
style: v(e.footerWarpperStyle)
|
|
130
180
|
}, [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
{ onChange:
|
|
181
|
+
h(t(ee), Z(
|
|
182
|
+
m.value ? t(I) : t(ae)(t(C).pagination, ["showTotal"]),
|
|
183
|
+
{ onChange: K }
|
|
134
184
|
), null, 16)
|
|
135
|
-
], 6)) :
|
|
185
|
+
], 6)) : _("", !0)
|
|
136
186
|
], 6)
|
|
137
187
|
]),
|
|
138
188
|
_: 3
|
|
@@ -140,5 +190,5 @@ const fe = /* @__PURE__ */ M({
|
|
|
140
190
|
}
|
|
141
191
|
});
|
|
142
192
|
export {
|
|
143
|
-
|
|
193
|
+
he as default
|
|
144
194
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
2
|
import { RequestData } from '../ap-table';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
export type ApListProps<RecordType = any, ParamsType = Recordable> = {
|
|
@@ -62,11 +62,30 @@ export type ApListProps<RecordType = any, ParamsType = Recordable> = {
|
|
|
62
62
|
/**
|
|
63
63
|
* List容器的自定义样式
|
|
64
64
|
*/
|
|
65
|
-
containerStyle?:
|
|
65
|
+
containerStyle?: StyleValue;
|
|
66
|
+
/**
|
|
67
|
+
* List内容区域自定义样式
|
|
68
|
+
*/
|
|
69
|
+
contentStyle?: StyleValue;
|
|
66
70
|
/**
|
|
67
71
|
* 底部分页器容器的样式
|
|
68
72
|
*/
|
|
69
|
-
footerWarpperStyle?:
|
|
73
|
+
footerWarpperStyle?: StyleValue;
|
|
74
|
+
/**
|
|
75
|
+
* 列表是否开启虚拟滚动
|
|
76
|
+
* @description 设置此属性后,将不会展示分页器,同样`renderContent`插槽将不再可用;
|
|
77
|
+
* 如果值为`number`类型,则表示每个元素的尺寸,在尺寸不固定的情况下,则可以设置`minItemSize`和`sizeDependencies`两个属性
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
virtual?: number | {
|
|
81
|
+
minItemSize: number;
|
|
82
|
+
sizeDependencies?: (item: RecordType) => any[];
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* 列表数据的key
|
|
86
|
+
* @default "id"
|
|
87
|
+
*/
|
|
88
|
+
rowKey?: string;
|
|
70
89
|
};
|
|
71
90
|
export type ApListExpose = {
|
|
72
91
|
/**
|
|
@@ -10498,6 +10498,9 @@ export declare const apTableRenderItemMap: {
|
|
|
10498
10498
|
type: PropType<ValueType>;
|
|
10499
10499
|
default: number;
|
|
10500
10500
|
};
|
|
10501
|
+
suffix: {
|
|
10502
|
+
type: PropType<any>;
|
|
10503
|
+
};
|
|
10501
10504
|
defaultValue: {
|
|
10502
10505
|
type: PropType<ValueType>;
|
|
10503
10506
|
};
|
|
@@ -10516,9 +10519,6 @@ export declare const apTableRenderItemMap: {
|
|
|
10516
10519
|
addonAfter: {
|
|
10517
10520
|
type: PropType<any>;
|
|
10518
10521
|
};
|
|
10519
|
-
suffix: {
|
|
10520
|
-
type: PropType<any>;
|
|
10521
|
-
};
|
|
10522
10522
|
stringMode: {
|
|
10523
10523
|
type: PropType<boolean>;
|
|
10524
10524
|
};
|
|
@@ -10646,6 +10646,9 @@ export declare const apTableRenderItemMap: {
|
|
|
10646
10646
|
type: PropType<ValueType>;
|
|
10647
10647
|
default: number;
|
|
10648
10648
|
};
|
|
10649
|
+
suffix: {
|
|
10650
|
+
type: PropType<any>;
|
|
10651
|
+
};
|
|
10649
10652
|
defaultValue: {
|
|
10650
10653
|
type: PropType<ValueType>;
|
|
10651
10654
|
};
|
|
@@ -10664,9 +10667,6 @@ export declare const apTableRenderItemMap: {
|
|
|
10664
10667
|
addonAfter: {
|
|
10665
10668
|
type: PropType<any>;
|
|
10666
10669
|
};
|
|
10667
|
-
suffix: {
|
|
10668
|
-
type: PropType<any>;
|
|
10669
|
-
};
|
|
10670
10670
|
stringMode: {
|
|
10671
10671
|
type: PropType<boolean>;
|
|
10672
10672
|
};
|
|
@@ -10805,6 +10805,9 @@ export declare const apTableRenderItemMap: {
|
|
|
10805
10805
|
type: PropType<ValueType>;
|
|
10806
10806
|
default: number;
|
|
10807
10807
|
};
|
|
10808
|
+
suffix: {
|
|
10809
|
+
type: PropType<any>;
|
|
10810
|
+
};
|
|
10808
10811
|
defaultValue: {
|
|
10809
10812
|
type: PropType<ValueType>;
|
|
10810
10813
|
};
|
|
@@ -10823,9 +10826,6 @@ export declare const apTableRenderItemMap: {
|
|
|
10823
10826
|
addonAfter: {
|
|
10824
10827
|
type: PropType<any>;
|
|
10825
10828
|
};
|
|
10826
|
-
suffix: {
|
|
10827
|
-
type: PropType<any>;
|
|
10828
|
-
};
|
|
10829
10829
|
stringMode: {
|
|
10830
10830
|
type: PropType<boolean>;
|
|
10831
10831
|
};
|
|
@@ -10964,6 +10964,9 @@ export declare const apTableRenderItemMap: {
|
|
|
10964
10964
|
type: PropType<ValueType>;
|
|
10965
10965
|
default: number;
|
|
10966
10966
|
};
|
|
10967
|
+
suffix: {
|
|
10968
|
+
type: PropType<any>;
|
|
10969
|
+
};
|
|
10967
10970
|
defaultValue: {
|
|
10968
10971
|
type: PropType<ValueType>;
|
|
10969
10972
|
};
|
|
@@ -10982,9 +10985,6 @@ export declare const apTableRenderItemMap: {
|
|
|
10982
10985
|
addonAfter: {
|
|
10983
10986
|
type: PropType<any>;
|
|
10984
10987
|
};
|
|
10985
|
-
suffix: {
|
|
10986
|
-
type: PropType<any>;
|
|
10987
|
-
};
|
|
10988
10988
|
stringMode: {
|
|
10989
10989
|
type: PropType<boolean>;
|
|
10990
10990
|
};
|
|
@@ -12835,6 +12835,9 @@ export declare const apTableRenderItemMap: {
|
|
|
12835
12835
|
'onUpdate:value': {
|
|
12836
12836
|
type: PropType<(val: string) => void>;
|
|
12837
12837
|
};
|
|
12838
|
+
suffix: {
|
|
12839
|
+
type: PropType<any>;
|
|
12840
|
+
};
|
|
12838
12841
|
focused: {
|
|
12839
12842
|
type: PropType<boolean>;
|
|
12840
12843
|
};
|
|
@@ -12878,9 +12881,6 @@ export declare const apTableRenderItemMap: {
|
|
|
12878
12881
|
addonAfter: {
|
|
12879
12882
|
type: PropType<any>;
|
|
12880
12883
|
};
|
|
12881
|
-
suffix: {
|
|
12882
|
-
type: PropType<any>;
|
|
12883
|
-
};
|
|
12884
12884
|
clearIcon: {
|
|
12885
12885
|
type: PropType<any>;
|
|
12886
12886
|
};
|
|
@@ -12987,6 +12987,9 @@ export declare const apTableRenderItemMap: {
|
|
|
12987
12987
|
'onUpdate:value': {
|
|
12988
12988
|
type: PropType<(val: string) => void>;
|
|
12989
12989
|
};
|
|
12990
|
+
suffix: {
|
|
12991
|
+
type: PropType<any>;
|
|
12992
|
+
};
|
|
12990
12993
|
focused: {
|
|
12991
12994
|
type: PropType<boolean>;
|
|
12992
12995
|
};
|
|
@@ -13030,9 +13033,6 @@ export declare const apTableRenderItemMap: {
|
|
|
13030
13033
|
addonAfter: {
|
|
13031
13034
|
type: PropType<any>;
|
|
13032
13035
|
};
|
|
13033
|
-
suffix: {
|
|
13034
|
-
type: PropType<any>;
|
|
13035
|
-
};
|
|
13036
13036
|
clearIcon: {
|
|
13037
13037
|
type: PropType<any>;
|
|
13038
13038
|
};
|
|
@@ -13145,6 +13145,9 @@ export declare const apTableRenderItemMap: {
|
|
|
13145
13145
|
'onUpdate:value': {
|
|
13146
13146
|
type: PropType<(val: string) => void>;
|
|
13147
13147
|
};
|
|
13148
|
+
suffix: {
|
|
13149
|
+
type: PropType<any>;
|
|
13150
|
+
};
|
|
13148
13151
|
focused: {
|
|
13149
13152
|
type: PropType<boolean>;
|
|
13150
13153
|
};
|
|
@@ -13188,9 +13191,6 @@ export declare const apTableRenderItemMap: {
|
|
|
13188
13191
|
addonAfter: {
|
|
13189
13192
|
type: PropType<any>;
|
|
13190
13193
|
};
|
|
13191
|
-
suffix: {
|
|
13192
|
-
type: PropType<any>;
|
|
13193
|
-
};
|
|
13194
13194
|
clearIcon: {
|
|
13195
13195
|
type: PropType<any>;
|
|
13196
13196
|
};
|
|
@@ -13306,6 +13306,9 @@ export declare const apTableRenderItemMap: {
|
|
|
13306
13306
|
'onUpdate:value': {
|
|
13307
13307
|
type: PropType<(val: string) => void>;
|
|
13308
13308
|
};
|
|
13309
|
+
suffix: {
|
|
13310
|
+
type: PropType<any>;
|
|
13311
|
+
};
|
|
13309
13312
|
focused: {
|
|
13310
13313
|
type: PropType<boolean>;
|
|
13311
13314
|
};
|
|
@@ -13349,9 +13352,6 @@ export declare const apTableRenderItemMap: {
|
|
|
13349
13352
|
addonAfter: {
|
|
13350
13353
|
type: PropType<any>;
|
|
13351
13354
|
};
|
|
13352
|
-
suffix: {
|
|
13353
|
-
type: PropType<any>;
|
|
13354
|
-
};
|
|
13355
13355
|
clearIcon: {
|
|
13356
13356
|
type: PropType<any>;
|
|
13357
13357
|
};
|
|
@@ -13485,6 +13485,9 @@ export declare const apTableRenderItemMap: {
|
|
|
13485
13485
|
'onUpdate:value': {
|
|
13486
13486
|
type: PropType<(val: string) => void>;
|
|
13487
13487
|
};
|
|
13488
|
+
rows: {
|
|
13489
|
+
type: PropType<number>;
|
|
13490
|
+
};
|
|
13488
13491
|
focused: {
|
|
13489
13492
|
type: PropType<boolean>;
|
|
13490
13493
|
};
|
|
@@ -13529,9 +13532,6 @@ export declare const apTableRenderItemMap: {
|
|
|
13529
13532
|
type: PropType<boolean>;
|
|
13530
13533
|
default: boolean;
|
|
13531
13534
|
};
|
|
13532
|
-
rows: {
|
|
13533
|
-
type: PropType<number>;
|
|
13534
|
-
};
|
|
13535
13535
|
autoSize: {
|
|
13536
13536
|
type: PropType<boolean | AutoSizeType>;
|
|
13537
13537
|
};
|
|
@@ -13633,6 +13633,9 @@ export declare const apTableRenderItemMap: {
|
|
|
13633
13633
|
'onUpdate:value': {
|
|
13634
13634
|
type: PropType<(val: string) => void>;
|
|
13635
13635
|
};
|
|
13636
|
+
rows: {
|
|
13637
|
+
type: PropType<number>;
|
|
13638
|
+
};
|
|
13636
13639
|
focused: {
|
|
13637
13640
|
type: PropType<boolean>;
|
|
13638
13641
|
};
|
|
@@ -13677,9 +13680,6 @@ export declare const apTableRenderItemMap: {
|
|
|
13677
13680
|
type: PropType<boolean>;
|
|
13678
13681
|
default: boolean;
|
|
13679
13682
|
};
|
|
13680
|
-
rows: {
|
|
13681
|
-
type: PropType<number>;
|
|
13682
|
-
};
|
|
13683
13683
|
autoSize: {
|
|
13684
13684
|
type: PropType<boolean | AutoSizeType>;
|
|
13685
13685
|
};
|
|
@@ -13973,6 +13973,9 @@ export declare const apTableRenderItemMap: {
|
|
|
13973
13973
|
'onUpdate:value': {
|
|
13974
13974
|
type: PropType<(val: string) => void>;
|
|
13975
13975
|
};
|
|
13976
|
+
suffix: {
|
|
13977
|
+
type: PropType<any>;
|
|
13978
|
+
};
|
|
13976
13979
|
focused: {
|
|
13977
13980
|
type: PropType<boolean>;
|
|
13978
13981
|
};
|
|
@@ -14016,9 +14019,6 @@ export declare const apTableRenderItemMap: {
|
|
|
14016
14019
|
addonAfter: {
|
|
14017
14020
|
type: PropType<any>;
|
|
14018
14021
|
};
|
|
14019
|
-
suffix: {
|
|
14020
|
-
type: PropType<any>;
|
|
14021
|
-
};
|
|
14022
14022
|
clearIcon: {
|
|
14023
14023
|
type: PropType<any>;
|
|
14024
14024
|
};
|
|
@@ -14142,6 +14142,9 @@ export declare const apTableRenderItemMap: {
|
|
|
14142
14142
|
'onUpdate:value': {
|
|
14143
14143
|
type: PropType<(val: string) => void>;
|
|
14144
14144
|
};
|
|
14145
|
+
suffix: {
|
|
14146
|
+
type: PropType<any>;
|
|
14147
|
+
};
|
|
14145
14148
|
focused: {
|
|
14146
14149
|
type: PropType<boolean>;
|
|
14147
14150
|
};
|
|
@@ -14185,9 +14188,6 @@ export declare const apTableRenderItemMap: {
|
|
|
14185
14188
|
addonAfter: {
|
|
14186
14189
|
type: PropType<any>;
|
|
14187
14190
|
};
|
|
14188
|
-
suffix: {
|
|
14189
|
-
type: PropType<any>;
|
|
14190
|
-
};
|
|
14191
14191
|
clearIcon: {
|
|
14192
14192
|
type: PropType<any>;
|
|
14193
14193
|
};
|
|
@@ -14322,6 +14322,9 @@ export declare const apTableRenderItemMap: {
|
|
|
14322
14322
|
'onUpdate:value': {
|
|
14323
14323
|
type: PropType<(val: string) => void>;
|
|
14324
14324
|
};
|
|
14325
|
+
suffix: {
|
|
14326
|
+
type: PropType<any>;
|
|
14327
|
+
};
|
|
14325
14328
|
focused: {
|
|
14326
14329
|
type: PropType<boolean>;
|
|
14327
14330
|
};
|
|
@@ -14365,9 +14368,6 @@ export declare const apTableRenderItemMap: {
|
|
|
14365
14368
|
addonAfter: {
|
|
14366
14369
|
type: PropType<any>;
|
|
14367
14370
|
};
|
|
14368
|
-
suffix: {
|
|
14369
|
-
type: PropType<any>;
|
|
14370
|
-
};
|
|
14371
14371
|
clearIcon: {
|
|
14372
14372
|
type: PropType<any>;
|
|
14373
14373
|
};
|
|
@@ -14502,6 +14502,9 @@ export declare const apTableRenderItemMap: {
|
|
|
14502
14502
|
'onUpdate:value': {
|
|
14503
14503
|
type: PropType<(val: string) => void>;
|
|
14504
14504
|
};
|
|
14505
|
+
suffix: {
|
|
14506
|
+
type: PropType<any>;
|
|
14507
|
+
};
|
|
14505
14508
|
focused: {
|
|
14506
14509
|
type: PropType<boolean>;
|
|
14507
14510
|
};
|
|
@@ -14545,9 +14548,6 @@ export declare const apTableRenderItemMap: {
|
|
|
14545
14548
|
addonAfter: {
|
|
14546
14549
|
type: PropType<any>;
|
|
14547
14550
|
};
|
|
14548
|
-
suffix: {
|
|
14549
|
-
type: PropType<any>;
|
|
14550
|
-
};
|
|
14551
14551
|
clearIcon: {
|
|
14552
14552
|
type: PropType<any>;
|
|
14553
14553
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as $, computed as n, openBlock as b, createElementBlock as
|
|
1
|
+
import { defineComponent as $, computed as n, openBlock as b, createElementBlock as y, normalizeStyle as w, normalizeClass as p, createVNode as z, unref as B } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { TypographyText as v } from "@aplus-frontend/antdv";
|
|
4
|
+
import { useGlobalConfig as I } from "../config-provider/hooks/use-global-config.mjs";
|
|
5
|
+
import { useNamespace as _ } from "../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const A = /* @__PURE__ */ $({
|
|
6
7
|
name: "ApTag",
|
|
7
8
|
__name: "ap-tag",
|
|
8
9
|
props: {
|
|
@@ -12,7 +13,7 @@ const E = /* @__PURE__ */ $({
|
|
|
12
13
|
disabled: { type: Boolean, default: !1 }
|
|
13
14
|
},
|
|
14
15
|
setup(i) {
|
|
15
|
-
const e = i, o =
|
|
16
|
+
const e = i, o = I("uiMode"), { b: r, bm: a } = _("tag");
|
|
16
17
|
function l(t, s) {
|
|
17
18
|
t.length === 4 && (t = `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`);
|
|
18
19
|
const m = parseInt(t.slice(1, 3), 16), f = parseInt(t.slice(3, 5), 16), g = parseInt(t.slice(5, 7), 16), S = Math.round(s * 255).toString(16).padStart(2, "0");
|
|
@@ -21,20 +22,22 @@ const E = /* @__PURE__ */ $({
|
|
|
21
22
|
const c = n(() => ({
|
|
22
23
|
"--tag-main-color": e.color,
|
|
23
24
|
"--tag-main-color-opacity": l(e.color, 0.06)
|
|
24
|
-
})),
|
|
25
|
+
})), u = n(() => [r("wrapper"), a("wrapper", e.size)].filter(Boolean)), d = n(() => {
|
|
25
26
|
const t = [r("inner-wrapper"), a("inner-wrapper", e.size)];
|
|
26
27
|
return e.disabled && (o.value === "aplus" ? t.push(a("inner-wrapper", "disabled")) : t.push(a("inner-wrapper", "disabled-admin"))), t;
|
|
27
28
|
});
|
|
28
|
-
return (t, s) => (b(),
|
|
29
|
-
style:
|
|
30
|
-
class: p(
|
|
29
|
+
return (t, s) => (b(), y("span", {
|
|
30
|
+
style: w(c.value),
|
|
31
|
+
class: p(u.value)
|
|
31
32
|
}, [
|
|
32
|
-
z(
|
|
33
|
-
class: p(
|
|
34
|
-
|
|
33
|
+
z(B(v), {
|
|
34
|
+
class: p(d.value),
|
|
35
|
+
ellipsis: { tooltip: t.text },
|
|
36
|
+
content: t.text
|
|
37
|
+
}, null, 8, ["class", "ellipsis", "content"])
|
|
35
38
|
], 6));
|
|
36
39
|
}
|
|
37
40
|
});
|
|
38
41
|
export {
|
|
39
|
-
|
|
42
|
+
A as default
|
|
40
43
|
};
|
package/es/src/path-map.mjs
CHANGED
|
@@ -81,7 +81,9 @@ const e = {
|
|
|
81
81
|
ApPopoverSelect: ["business", "ap-group-search", "popover-select"],
|
|
82
82
|
ApExtensionSelect: ["business", "ap-group-search", "extension-select"],
|
|
83
83
|
ApUploadSingle: ["business", "ap-upload-file", "ap-upload-single"],
|
|
84
|
-
BatchInputGroup: ["business", "batch-input-group"]
|
|
84
|
+
BatchInputGroup: ["business", "batch-input-group"],
|
|
85
|
+
ApFormControlRender: ["ap-form", "render"],
|
|
86
|
+
ApFormItemRender: ["ap-form", "render"]
|
|
85
87
|
};
|
|
86
88
|
export {
|
|
87
89
|
e as default
|