@aplus-frontend/ui 0.2.18 → 0.2.20
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/index.mjs +193 -189
- package/es/src/ap-field/number/index.vue.d.ts +4 -0
- package/es/src/ap-field/number/index.vue.mjs +5 -4
- package/es/src/ap-form/index.d.ts +5 -1
- package/es/src/ap-form/index.mjs +17 -9
- package/es/src/ap-form/interface.d.ts +9 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +20 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +1 -0
- package/es/src/ap-form/items/select/index.vue.mjs +26 -22
- 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.d.ts +29 -0
- package/es/src/ap-form/render/control.vue.mjs +23 -0
- package/es/src/ap-form/render/control.vue2.mjs +4 -0
- package/es/src/ap-form/render/item.vue.d.ts +62 -0
- package/es/src/ap-form/render/item.vue.mjs +64 -0
- package/es/src/ap-form/render/item.vue2.mjs +4 -0
- package/es/src/ap-table/constants.d.ts +75 -60
- package/es/src/ap-table/utils.d.ts +3 -0
- package/es/src/business/ap-group-search/index.d.ts +36 -36
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +7 -7
- package/es/src/business/batch-input-group/index.vue.mjs +45 -41
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
- package/es/src/config-provider/config-provider.d.ts +5 -0
- package/es/src/config-provider/css-var.d.ts +5 -0
- package/es/src/config-provider/css-var.mjs +20 -10
- package/es/src/config-provider/index.d.ts +30 -0
- package/es/src/index.mjs +154 -150
- package/es/src/locale/lang/en.mjs +3 -0
- package/es/src/locale/lang/zh-cn.mjs +3 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +4 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-form/index.d.ts +5 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +9 -0
- package/lib/src/ap-form/items/number/index.vue.d.ts +20 -10
- package/lib/src/ap-form/items/select/index.vue.d.ts +1 -0
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- 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.d.ts +29 -0
- package/lib/src/ap-form/render/control.vue.js +1 -0
- package/lib/src/ap-form/render/control.vue2.js +1 -0
- package/lib/src/ap-form/render/item.vue.d.ts +62 -0
- package/lib/src/ap-form/render/item.vue.js +1 -0
- package/lib/src/ap-form/render/item.vue2.js +1 -0
- package/lib/src/ap-table/constants.d.ts +75 -60
- package/lib/src/ap-table/utils.d.ts +3 -0
- package/lib/src/business/ap-group-search/index.d.ts +36 -36
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +7 -7
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/config-provider/config-provider.d.ts +5 -0
- package/lib/src/config-provider/css-var.d.ts +5 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +30 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +2 -2
package/es/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as o from "./src/index.mjs";
|
|
2
2
|
import { default as l } from "./src/path-map.mjs";
|
|
3
3
|
import "./src/hooks/index.mjs";
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
5
5
|
import { configProviderContextKey as s } from "./src/config-provider/constants.mjs";
|
|
6
|
-
import { keysOf as
|
|
7
|
-
import { buildLocaleContext as b, buildTranslator as I, localeContextKey as T, translate as
|
|
6
|
+
import { keysOf as n, provideGlobalConfig as i, useGlobalConfig as c } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
import { buildLocaleContext as b, buildTranslator as I, localeContextKey as T, translate as C, useLocale as g } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { defaultNamespace as S, namespaceContextKey as h, useGetDerivedNamespace as G, useNamespace as y } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as P, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
|
|
10
|
-
import { APConfigProvider as
|
|
11
|
-
import { ApFormItemText as
|
|
10
|
+
import { APConfigProvider as R } from "./src/config-provider/index.mjs";
|
|
11
|
+
import { ApFormItemText as w } from "./src/ap-form/items/text/index.mjs";
|
|
12
12
|
import { default as B } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as K } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
14
|
import { default as U } from "./src/ap-form/items/date/index.vue.mjs";
|
|
@@ -18,217 +18,221 @@ import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
|
|
|
18
18
|
import { default as J } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
19
19
|
import { default as X } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
20
20
|
import { default as Z } from "./src/ap-form/items/text/password.vue.mjs";
|
|
21
|
-
import { ApForm as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import {
|
|
57
|
-
import { default as
|
|
58
|
-
import {
|
|
59
|
-
import { default as
|
|
60
|
-
import {
|
|
61
|
-
import { default as
|
|
62
|
-
import {
|
|
63
|
-
import { default as
|
|
64
|
-
import {
|
|
65
|
-
import { default as
|
|
66
|
-
import {
|
|
67
|
-
import { default as
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import { default as ft } from "./src/
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
21
|
+
import { ApForm as ee } from "./src/ap-form/index.mjs";
|
|
22
|
+
import { default as re } from "./src/ap-form/item/index.vue.mjs";
|
|
23
|
+
import { default as pe } from "./src/ap-form/item-group/index.vue.mjs";
|
|
24
|
+
import { default as fe } from "./src/ap-form/list/index.vue.mjs";
|
|
25
|
+
import { default as le } from "./src/ap-form/search-form/index.vue.mjs";
|
|
26
|
+
import { default as de } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
27
|
+
import { default as se } from "./src/ap-form/dependency/index.vue.mjs";
|
|
28
|
+
import { default as ne } from "./src/ap-form/set/index.vue.mjs";
|
|
29
|
+
import { default as ce } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
|
+
import { default as be } from "./src/ap-form/render/control.vue.mjs";
|
|
31
|
+
import { default as Te } from "./src/ap-form/render/item.vue.mjs";
|
|
32
|
+
import { ApField as ge } from "./src/ap-field/index.mjs";
|
|
33
|
+
import { ApFieldText as Se } from "./src/ap-field/text/index.mjs";
|
|
34
|
+
import { default as Ge } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
35
|
+
import { default as Ne } from "./src/ap-field/date/index.vue.mjs";
|
|
36
|
+
import { default as Le } from "./src/ap-field/number/index.vue.mjs";
|
|
37
|
+
import { default as Re } from "./src/ap-field/radio/index.vue.mjs";
|
|
38
|
+
import { default as we } from "./src/ap-field/switch/index.vue.mjs";
|
|
39
|
+
import { default as Be } from "./src/ap-field/text-area/index.vue.mjs";
|
|
40
|
+
import { default as Ke } from "./src/ap-field/date-range/index.vue.mjs";
|
|
41
|
+
import { default as Ue } from "./src/ap-field/select/index.vue.mjs";
|
|
42
|
+
import { default as He } from "./src/ap-field/text/password.vue.mjs";
|
|
43
|
+
import { default as $e } from "./src/ap-field/slider/index.vue.mjs";
|
|
44
|
+
import { default as qe } from "./src/ap-field/segmented/index.vue.mjs";
|
|
45
|
+
import { default as Je } from "./src/ap-field/rate/index.vue.mjs";
|
|
46
|
+
import { adminToken as Xe, aplusToken as Ye } from "./src/design-token/index.mjs";
|
|
47
|
+
import { ApActionItem as _e } from "./src/ap-action/index.mjs";
|
|
48
|
+
import { default as oo } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
49
|
+
import { default as to } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
50
|
+
import { default as ao } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
51
|
+
import { default as mo } from "./src/ap-action/group/index.vue.mjs";
|
|
52
|
+
import { DictCode as xo, langMap as uo } from "./src/work-order-modal/interfaces.mjs";
|
|
53
|
+
import { createWorkOrderModal as Ao } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
54
|
+
import { default as io } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
55
|
+
import { default as Fo } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
56
|
+
import { default as Io } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
57
|
+
import { default as Co } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
58
|
+
import { NeedNameKeyDefault as Do } from "./src/ap-upload/apUploadTypes.mjs";
|
|
59
|
+
import { default as ho } from "./src/ap-upload/apUpload.vue.mjs";
|
|
60
|
+
import { ApDownLoadNeedNameKeyDefault as yo } from "./src/ap-download/interface.mjs";
|
|
61
|
+
import { default as Po } from "./src/ap-download/ap-download.vue.mjs";
|
|
62
|
+
import { CheckCard as Mo } from "./src/check-card/index.mjs";
|
|
63
|
+
import { default as ko } from "./src/check-card/group.vue.mjs";
|
|
64
|
+
import { ApModal as vo } from "./src/ap-modal/index.mjs";
|
|
65
|
+
import { default as Eo } from "./src/ap-list/index.vue.mjs";
|
|
66
|
+
import { default as Oo } from "./src/ap-button/ap-button.vue.mjs";
|
|
67
|
+
import { default as Wo } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
68
|
+
import { ApTransformDataHelper as Vo } from "./src/utils/ap-trans-data/index.mjs";
|
|
69
|
+
import { default as jo } from "./src/business/ap-table-modal/index.mjs";
|
|
70
|
+
import { useTableModal as zo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
71
|
+
import { useTableSelectModal as Qo } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
72
|
+
import { ApAttachment as Yo } from "./src/business/ap-attachment/index.mjs";
|
|
73
|
+
import { ApBatchAction as _o } from "./src/business/ap-batch-action/index.mjs";
|
|
74
|
+
import { ApBatchActionGroup as or } from "./src/business/ap-batch-action-group/index.mjs";
|
|
75
|
+
import { ApButtonGroup as tr } from "./src/business/ap-button-group/index.mjs";
|
|
76
|
+
import { ApCard as ar } from "./src/business/ap-card/index.mjs";
|
|
77
|
+
import { ApExpandAlert as mr } from "./src/business/ap-expand-alert/index.mjs";
|
|
78
|
+
import { ApExportGroupActionType as xr } from "./src/business/ap-export-group/interface.mjs";
|
|
79
|
+
import { ApExportGroup as ur } from "./src/business/ap-export-group/index.mjs";
|
|
80
|
+
import { handleExportDownload as Ar } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
81
|
+
import { ApImage as ir } from "./src/business/ap-image/index.mjs";
|
|
82
|
+
import { ApInputRadio as Fr } from "./src/business/ap-input-radio/index.mjs";
|
|
83
|
+
import { ApLabel as Ir, ApLabelGroup as Tr } from "./src/business/ap-label/index.mjs";
|
|
84
|
+
import { locales as gr } from "./src/business/ap-ladder/interface.mjs";
|
|
85
|
+
import { ApLadder as Sr } from "./src/business/ap-ladder/index.mjs";
|
|
86
|
+
import { ApSelectLayout as Gr } from "./src/business/ap-select-layout/index.mjs";
|
|
87
|
+
import { ApStatus as Nr, ApStatusGroup as Pr } from "./src/business/ap-status/index.mjs";
|
|
88
|
+
import { ApTitle as Mr } from "./src/business/ap-title/index.mjs";
|
|
89
|
+
import { usePageListApTable as kr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
90
|
+
import { useTableRefresh as vr } from "./src/business/hooks/useTableRefresh.mjs";
|
|
91
|
+
import { computedRecords as Er, flattenColumns as Kr, formatDataIndex as Or, formatNumber as Ur } from "./src/business/ap-summary/utils.mjs";
|
|
92
|
+
import { ApSummary as Hr } from "./src/business/ap-summary/index.mjs";
|
|
93
|
+
import { ApNeedNameKeyDefault as $r } from "./src/business/ap-appendix/interface.mjs";
|
|
94
|
+
import { ApAppendix as qr } from "./src/business/ap-appendix/index.mjs";
|
|
95
|
+
import { ApExtensionSelect as Jr, ApGroupSearch as Qr, ApPopoverSelect as Xr } from "./src/business/ap-group-search/index.mjs";
|
|
96
|
+
import { default as Zr } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
97
|
+
import { default as et } from "./src/business/batch-input-group/index.vue.mjs";
|
|
98
|
+
import { useTablePaging as rt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
99
|
+
import { ApTable as pt } from "./src/ap-table/index.mjs";
|
|
100
|
+
import { default as ft } from "./src/editable-table/index.vue.mjs";
|
|
101
|
+
import { default as lt } from "./src/editable-table/form-item.vue.mjs";
|
|
102
|
+
import { default as dt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
103
|
+
import { ApScrollBar as st } from "./src/ap-scroll-bar/index.mjs";
|
|
104
|
+
import { useMessage as nt } from "./src/hooks/useMessage.mjs";
|
|
105
|
+
import { useControllableValue as ct } from "./src/hooks/useControllableValue.mjs";
|
|
104
106
|
const a = {
|
|
105
107
|
install: (r) => {
|
|
106
|
-
for (const t in
|
|
107
|
-
const
|
|
108
|
-
|
|
108
|
+
for (const t in o) {
|
|
109
|
+
const e = o[t];
|
|
110
|
+
e.install && r.use(e);
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
114
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
115
|
+
R as APConfigProvider,
|
|
116
|
+
Wo as ApActionButton,
|
|
117
|
+
mo as ApActionGroup,
|
|
118
|
+
_e as ApActionItem,
|
|
119
|
+
ao as ApActionItemDropdown,
|
|
120
|
+
oo as ApActionItemModal,
|
|
121
|
+
to as ApActionItemPopconfirm,
|
|
122
|
+
qr as ApAppendix,
|
|
123
|
+
Yo as ApAttachment,
|
|
124
|
+
_o as ApBatchAction,
|
|
125
|
+
or as ApBatchActionGroup,
|
|
126
|
+
Oo as ApButton,
|
|
127
|
+
tr as ApButtonGroup,
|
|
128
|
+
ar as ApCard,
|
|
129
|
+
dt as ApDescriptions,
|
|
130
|
+
yo as ApDownLoadNeedNameKeyDefault,
|
|
131
|
+
Po as ApDownload,
|
|
132
|
+
mr as ApExpandAlert,
|
|
133
|
+
ur as ApExportGroup,
|
|
134
|
+
xr as ApExportGroupActionType,
|
|
135
|
+
Jr as ApExtensionSelect,
|
|
136
|
+
ge as ApField,
|
|
137
|
+
Ge as ApFieldCheckbox,
|
|
138
|
+
Ne as ApFieldDate,
|
|
139
|
+
Ke as ApFieldDateRange,
|
|
140
|
+
Le as ApFieldNumber,
|
|
141
|
+
He as ApFieldPassword,
|
|
142
|
+
Re as ApFieldRadio,
|
|
143
|
+
Je as ApFieldRate,
|
|
144
|
+
qe as ApFieldSegmented,
|
|
145
|
+
Ue as ApFieldSelect,
|
|
146
|
+
$e as ApFieldSlider,
|
|
147
|
+
we as ApFieldSwitch,
|
|
148
|
+
Se as ApFieldText,
|
|
149
|
+
Be as ApFieldTextArea,
|
|
150
|
+
ee as ApForm,
|
|
151
|
+
be as ApFormControlRender,
|
|
152
|
+
se as ApFormDependency,
|
|
153
|
+
ce as ApFormDrawerForm,
|
|
154
|
+
re as ApFormItem,
|
|
152
155
|
X as ApFormItemCheckbox,
|
|
153
156
|
U as ApFormItemDate,
|
|
154
157
|
H as ApFormItemDateRange,
|
|
155
|
-
|
|
158
|
+
pe as ApFormItemGroup,
|
|
156
159
|
K as ApFormItemNumber,
|
|
157
160
|
$ as ApFormItemRadio,
|
|
161
|
+
Te as ApFormItemRender,
|
|
158
162
|
q as ApFormItemSelect,
|
|
159
163
|
J as ApFormItemSwitch,
|
|
160
|
-
|
|
164
|
+
w as ApFormItemText,
|
|
161
165
|
B as ApFormItemTextArea,
|
|
162
166
|
Z as ApFormItemTextPassword,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
167
|
+
fe as ApFormList,
|
|
168
|
+
de as ApFormModalForm,
|
|
169
|
+
le as ApFormSearchForm,
|
|
170
|
+
ne as ApFormSet,
|
|
171
|
+
Qr as ApGroupSearch,
|
|
172
|
+
ir as ApImage,
|
|
173
|
+
Co as ApInfoLayout,
|
|
174
|
+
Fr as ApInputRadio,
|
|
175
|
+
Ir as ApLabel,
|
|
176
|
+
Tr as ApLabelGroup,
|
|
177
|
+
Sr as ApLadder,
|
|
178
|
+
Eo as ApList,
|
|
179
|
+
vo as ApModal,
|
|
180
|
+
$r as ApNeedNameKeyDefault,
|
|
181
|
+
Xr as ApPopoverSelect,
|
|
182
|
+
st as ApScrollBar,
|
|
183
|
+
Gr as ApSelectLayout,
|
|
184
|
+
Nr as ApStatus,
|
|
185
|
+
Pr as ApStatusGroup,
|
|
186
|
+
Hr as ApSummary,
|
|
187
|
+
pt as ApTable,
|
|
188
|
+
jo as ApTableModal,
|
|
189
|
+
Fo as ApTag,
|
|
190
|
+
Io as ApTagGroup,
|
|
191
|
+
Mr as ApTitle,
|
|
192
|
+
Vo as ApTransformDataHelper,
|
|
193
|
+
ho as ApUpload,
|
|
194
|
+
Zr as ApUploadSingle,
|
|
195
|
+
et as BatchInputGroup,
|
|
196
|
+
Mo as CheckCard,
|
|
197
|
+
ko as CheckCardGroup,
|
|
194
198
|
P as ConfigProvider,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
xo as DictCode,
|
|
200
|
+
ft as EditableTable,
|
|
201
|
+
lt as EditableTableFormItem,
|
|
202
|
+
Do as NeedNameKeyDefault,
|
|
203
|
+
io as WorkOrderModal,
|
|
204
|
+
Xe as adminToken,
|
|
205
|
+
Ye as aplusToken,
|
|
202
206
|
b as buildLocaleContext,
|
|
203
207
|
I as buildTranslator,
|
|
204
|
-
|
|
208
|
+
Er as computedRecords,
|
|
205
209
|
s as configProviderContextKey,
|
|
206
210
|
d as configProviderProps,
|
|
207
|
-
|
|
211
|
+
Ao as createWorkOrderModal,
|
|
208
212
|
a as default,
|
|
209
213
|
S as defaultNamespace,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
214
|
+
Kr as flattenColumns,
|
|
215
|
+
Or as formatDataIndex,
|
|
216
|
+
Ur as formatNumber,
|
|
213
217
|
L as globalConfigCached,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
Ar as handleExportDownload,
|
|
219
|
+
n as keysOf,
|
|
220
|
+
uo as langMap,
|
|
217
221
|
T as localeContextKey,
|
|
218
|
-
|
|
222
|
+
gr as locales,
|
|
219
223
|
h as namespaceContextKey,
|
|
220
224
|
l as pathMap,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
225
|
+
i as provideGlobalConfig,
|
|
226
|
+
C as translate,
|
|
227
|
+
ct as useControllableValue,
|
|
224
228
|
G as useGetDerivedNamespace,
|
|
225
229
|
c as useGlobalConfig,
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
g as useLocale,
|
|
231
|
+
nt as useMessage,
|
|
228
232
|
y as useNamespace,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
233
|
+
kr as usePageListApTable,
|
|
234
|
+
zo as useTableModal,
|
|
235
|
+
rt as useTablePaging,
|
|
236
|
+
vr as useTableRefresh,
|
|
237
|
+
Qo as useTableSelectModal
|
|
234
238
|
};
|
|
@@ -34,6 +34,7 @@ declare function __VLS_template(): {
|
|
|
34
34
|
addonBefore: VueTypeValidableDef<any>;
|
|
35
35
|
addonAfter: VueTypeValidableDef<any>;
|
|
36
36
|
prefix: VueTypeValidableDef<any>;
|
|
37
|
+
suffix: VueTypeValidableDef<any>;
|
|
37
38
|
'onUpdate:value': {
|
|
38
39
|
type: PropType<(value: ValueType) => void>;
|
|
39
40
|
default: (value: ValueType) => void;
|
|
@@ -154,6 +155,7 @@ declare function __VLS_template(): {
|
|
|
154
155
|
addonBefore: VueTypeValidableDef<any>;
|
|
155
156
|
addonAfter: VueTypeValidableDef<any>;
|
|
156
157
|
prefix: VueTypeValidableDef<any>;
|
|
158
|
+
suffix: VueTypeValidableDef<any>;
|
|
157
159
|
'onUpdate:value': {
|
|
158
160
|
type: PropType<(value: ValueType) => void>;
|
|
159
161
|
default: (value: ValueType) => void;
|
|
@@ -293,6 +295,7 @@ declare function __VLS_template(): {
|
|
|
293
295
|
addonBefore?: any;
|
|
294
296
|
addonAfter?: any;
|
|
295
297
|
prefix?: any;
|
|
298
|
+
suffix?: any;
|
|
296
299
|
default?: any;
|
|
297
300
|
upIcon?: any;
|
|
298
301
|
downIcon?: any;
|
|
@@ -319,6 +322,7 @@ declare function __VLS_template(): {
|
|
|
319
322
|
addonBefore: VueTypeValidableDef<any>;
|
|
320
323
|
addonAfter: VueTypeValidableDef<any>;
|
|
321
324
|
prefix: VueTypeValidableDef<any>;
|
|
325
|
+
suffix: VueTypeValidableDef<any>;
|
|
322
326
|
'onUpdate:value': {
|
|
323
327
|
type: PropType<(value: ValueType) => void>;
|
|
324
328
|
default: (value: ValueType) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, ref as C, computed as N, unref as t, openBlock as r, createElementBlock as n, Fragment as D, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as P, toDisplayString as V, createBlock as $, mergeProps as R, createSlots as A, renderList as I, withCtx as U, normalizeProps as z, guardReactiveProps as E } from "vue";
|
|
2
2
|
import { InputNumber as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, omit as T } from "lodash-unified";
|
|
@@ -8,7 +8,7 @@ import "../../config-provider/index.mjs";
|
|
|
8
8
|
import { useDefaultPlaceholder as W } from "../hooks/use-default-placeholder.mjs";
|
|
9
9
|
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
11
|
-
const te = /* @__PURE__ */
|
|
11
|
+
const te = /* @__PURE__ */ x({
|
|
12
12
|
name: "ApFieldNumber",
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: {
|
|
@@ -24,6 +24,7 @@ const te = /* @__PURE__ */ C({
|
|
|
24
24
|
addonBefore: {},
|
|
25
25
|
addonAfter: {},
|
|
26
26
|
prefix: {},
|
|
27
|
+
suffix: {},
|
|
27
28
|
"onUpdate:value": {},
|
|
28
29
|
valueModifiers: {},
|
|
29
30
|
status: {},
|
|
@@ -56,10 +57,10 @@ const te = /* @__PURE__ */ C({
|
|
|
56
57
|
},
|
|
57
58
|
emits: ["update:value"],
|
|
58
59
|
setup(f, { expose: c, emit: y }) {
|
|
59
|
-
const v = y, { b: i } = Z("field-number"), o = f, l =
|
|
60
|
+
const v = y, { b: i } = Z("field-number"), o = f, l = C(), { value: u, updateValue: b } = j(
|
|
60
61
|
o,
|
|
61
62
|
v
|
|
62
|
-
), B = W("Number", o), h =
|
|
63
|
+
), B = W("Number", o), h = N(() => {
|
|
63
64
|
let e = t(u);
|
|
64
65
|
if (M(e))
|
|
65
66
|
return o.emptyText;
|
|
@@ -8,6 +8,8 @@ import { default as useWatch } from './hooks/use-watch';
|
|
|
8
8
|
import { default as ApFormDependency } from './dependency/index.vue';
|
|
9
9
|
import { default as ApFormSet } from './set/index.vue';
|
|
10
10
|
import { default as ApFormDrawerForm } from './drawer-form/index.vue';
|
|
11
|
+
import { default as ApFormControlRender } from './render/control.vue';
|
|
12
|
+
import { default as ApFormItemRender } from './render/item.vue';
|
|
11
13
|
type ApFormMixedProps = typeof _ApForm & {
|
|
12
14
|
FormItem: typeof ApFormItem;
|
|
13
15
|
FormItemGroup: typeof ApFormItemGroup;
|
|
@@ -18,8 +20,10 @@ type ApFormMixedProps = typeof _ApForm & {
|
|
|
18
20
|
Dependency: typeof ApFormDependency;
|
|
19
21
|
Set: typeof ApFormSet;
|
|
20
22
|
DrawerForm: typeof ApFormDrawerForm;
|
|
23
|
+
ControlRender: typeof ApFormControlRender;
|
|
24
|
+
ItemRender: typeof ApFormItemRender;
|
|
21
25
|
};
|
|
22
26
|
declare const ApForm: ApFormMixedProps;
|
|
23
27
|
export * from './items';
|
|
24
28
|
export * from './interface';
|
|
25
|
-
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency, ApFormSet, ApFormDrawerForm };
|
|
29
|
+
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency, ApFormSet, ApFormDrawerForm, ApFormControlRender, ApFormItemRender };
|
package/es/src/ap-form/index.mjs
CHANGED
|
@@ -8,6 +8,8 @@ import r from "./hooks/use-watch.mjs";
|
|
|
8
8
|
import "./dependency/index.vue2.mjs";
|
|
9
9
|
import "./set/index.vue2.mjs";
|
|
10
10
|
import "./drawer-form/index.vue2.mjs";
|
|
11
|
+
import "./render/control.vue2.mjs";
|
|
12
|
+
import "./render/item.vue2.mjs";
|
|
11
13
|
import "./items/index.mjs";
|
|
12
14
|
import "./interface.mjs";
|
|
13
15
|
import o from "./ap-form.vue2.mjs";
|
|
@@ -15,28 +17,34 @@ import p from "./item/index.vue.mjs";
|
|
|
15
17
|
import t from "./item-group/index.vue.mjs";
|
|
16
18
|
import i from "./list/index.vue.mjs";
|
|
17
19
|
import a from "./search-form/index.vue.mjs";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
+
import e from "./modal-form/index.vue.mjs";
|
|
21
|
+
import s from "./dependency/index.vue.mjs";
|
|
20
22
|
import f from "./set/index.vue.mjs";
|
|
21
|
-
import
|
|
23
|
+
import n from "./drawer-form/index.vue.mjs";
|
|
24
|
+
import _ from "./render/control.vue.mjs";
|
|
25
|
+
import F from "./render/item.vue.mjs";
|
|
22
26
|
const m = o;
|
|
23
27
|
m.FormItem = p;
|
|
24
28
|
m.FormItemGroup = t;
|
|
25
29
|
m.FormList = i;
|
|
26
30
|
m.SearchForm = a;
|
|
27
|
-
m.ModalForm =
|
|
31
|
+
m.ModalForm = e;
|
|
28
32
|
m.useWatch = r;
|
|
29
|
-
m.Dependency =
|
|
33
|
+
m.Dependency = s;
|
|
30
34
|
m.Set = f;
|
|
31
|
-
m.DrawerForm =
|
|
35
|
+
m.DrawerForm = n;
|
|
36
|
+
m.ControlRender = _;
|
|
37
|
+
m.ItemRender = F;
|
|
32
38
|
export {
|
|
33
39
|
m as ApForm,
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
_ as ApFormControlRender,
|
|
41
|
+
s as ApFormDependency,
|
|
42
|
+
n as ApFormDrawerForm,
|
|
36
43
|
p as ApFormItem,
|
|
37
44
|
t as ApFormItemGroup,
|
|
45
|
+
F as ApFormItemRender,
|
|
38
46
|
i as ApFormList,
|
|
39
|
-
|
|
47
|
+
e as ApFormModalForm,
|
|
40
48
|
a as ApFormSearchForm,
|
|
41
49
|
f as ApFormSet
|
|
42
50
|
};
|
|
@@ -221,3 +221,12 @@ export type ApFormSetProps = {
|
|
|
221
221
|
*/
|
|
222
222
|
transform?: ApFormItemTransformType;
|
|
223
223
|
};
|
|
224
|
+
export type ApFormControlRenderProps = {
|
|
225
|
+
value?: any;
|
|
226
|
+
'onUpdate:value'?: (value: any, ...args: any[]) => void;
|
|
227
|
+
bordered?: boolean;
|
|
228
|
+
onFocus?: () => void;
|
|
229
|
+
onBlur?: () => void;
|
|
230
|
+
[key: string]: any;
|
|
231
|
+
};
|
|
232
|
+
export type ApFormItemRenderProps = ApFormItemProps;
|