@aplus-frontend/ui 0.1.23 → 0.1.25
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 +86 -80
- package/es/src/ap-download/ap-download.vue.d.ts +0 -3
- package/es/src/ap-download/ap-download.vue.mjs +10 -10
- package/es/src/ap-field/number/index.vue.mjs +20 -19
- package/es/src/ap-form/ap-form-item.vue.mjs +27 -25
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +18 -18
- package/es/src/ap-form/interface.d.ts +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.mjs +1 -0
- package/es/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
- package/es/src/ap-layout/ApInfoLayout.vue.mjs +41 -0
- package/es/src/ap-layout/ApInfoLayout.vue2.mjs +4 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +4 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +42 -0
- package/es/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
- package/es/src/ap-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +4 -0
- package/es/src/ap-layout/index.d.ts +2 -1
- package/es/src/ap-layout/index.mjs +2 -1
- package/es/src/ap-layout/interface.d.ts +8 -2
- package/es/src/ap-layout/interface.mjs +1 -0
- package/es/src/ap-layout/style/ap-info-layout.css +17 -0
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.d.ts +97 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +82 -0
- package/es/src/business/ap-attachment/constans.d.ts +44 -0
- package/es/src/business/ap-attachment/constans.mjs +42 -0
- package/es/src/business/ap-attachment/index.d.ts +3 -0
- package/es/src/business/ap-attachment/interface.d.ts +13 -0
- package/es/src/business/ap-attachment/style.css +62 -0
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +2 -0
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +37 -24
- package/es/src/business/ap-input-radio/interface.d.ts +9 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
- package/es/src/business/ap-ladder/ApLadder.vue.mjs +4 -0
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +146 -0
- package/es/src/business/ap-ladder/interface.d.ts +92 -0
- package/es/src/business/ap-ladder/style.css +56 -0
- package/es/src/business/hooks/index.d.ts +2 -0
- package/es/src/business/hooks/index.mjs +6 -0
- package/es/src/business/hooks/usePageListApTable.d.ts +46 -0
- package/es/src/business/hooks/usePageListApTable.mjs +68 -0
- package/es/src/business/hooks/useTableRefresh.d.ts +18 -0
- package/es/src/business/hooks/useTableRefresh.mjs +16 -0
- package/es/src/business/index.d.ts +835 -5
- package/es/src/business/index.mjs +34 -28
- package/es/src/components.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.mjs +80 -77
- package/es/src/editable-table/hooks/use-get-columns.mjs +30 -30
- package/es/src/editable-table/interface.d.ts +2 -2
- package/es/src/index.mjs +219 -213
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +8 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/es/src/theme/ap-attachment/ap-attachment.css +62 -0
- package/es/src/theme/ap-ladder/ap-ladder.css +56 -0
- package/es/src/theme/ap-layout/ap-info-layout.css +17 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-download/ap-download.vue.d.ts +0 -3
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +2 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
- package/lib/src/ap-layout/ApInfoLayout.vue.js +1 -0
- package/lib/src/ap-layout/ApInfoLayout.vue2.js +1 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +1 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -0
- package/lib/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
- package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue2.js → ap-info-layout-aplus/ap-info-layout.vue.js} +1 -1
- package/lib/src/ap-layout/index.d.ts +2 -1
- package/lib/src/ap-layout/index.js +1 -1
- package/lib/src/ap-layout/interface.d.ts +8 -2
- package/lib/src/ap-layout/interface.js +1 -0
- package/lib/src/ap-layout/style/ap-info-layout.css +17 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +97 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -0
- package/lib/src/business/ap-attachment/constans.d.ts +44 -0
- package/lib/src/business/ap-attachment/constans.js +1 -0
- package/lib/src/business/ap-attachment/index.d.ts +3 -0
- package/lib/src/business/ap-attachment/interface.d.ts +13 -0
- package/lib/src/business/ap-attachment/style.css +62 -0
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +2 -0
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/interface.d.ts +9 -2
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
- package/lib/src/business/ap-ladder/ApLadder.vue.js +1 -0
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -0
- package/lib/src/business/ap-ladder/interface.d.ts +92 -0
- package/lib/src/business/ap-ladder/style.css +56 -0
- package/lib/src/business/hooks/index.d.ts +2 -0
- package/lib/src/business/hooks/index.js +1 -0
- package/lib/src/business/hooks/usePageListApTable.d.ts +46 -0
- package/lib/src/business/hooks/usePageListApTable.js +1 -0
- package/lib/src/business/hooks/useTableRefresh.d.ts +18 -0
- package/lib/src/business/hooks/useTableRefresh.js +1 -0
- package/lib/src/business/index.d.ts +835 -5
- package/lib/src/business/index.js +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/interface.d.ts +2 -2
- 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/lib/src/theme/antd-global-overwrite/aplus/index.css +8 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/lib/src/theme/ap-attachment/ap-attachment.css +62 -0
- package/lib/src/theme/ap-ladder/ap-ladder.css +56 -0
- package/lib/src/theme/ap-layout/ap-info-layout.css +17 -0
- package/package.json +2 -2
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +0 -4
- /package/es/src/ap-layout/{ap-info-layout/ap-info-layout.vue.mjs → ap-info-layout-aplus/ap-info-layout.vue2.mjs} +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.mjs +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.mjs +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
- /package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue.js → ap-info-layout-aplus/ap-info-layout.vue2.js} +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.js +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.js +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
package/es/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import { Icon as l, SvgIcon as s } from "./src/icon/index.mjs";
|
|
|
4
4
|
import { configProviderProps as x } from "./src/config-provider/config-provider-props.mjs";
|
|
5
5
|
import { configProviderContextKey as u, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { buildLocaleContext as
|
|
8
|
-
import { defaultNamespace as
|
|
9
|
-
import { ConfigProvider as B, globalConfigCached as
|
|
10
|
-
import { APConfigProvider as
|
|
7
|
+
import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as D, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as G } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as B, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
|
|
10
|
+
import { APConfigProvider as k } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
|
|
12
12
|
import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
|
|
13
13
|
import { IconPicker as H } from "./src/icon-picker/index.mjs";
|
|
@@ -20,13 +20,13 @@ import { useDescription as ue } from "./src/description/use-description.mjs";
|
|
|
20
20
|
import { Description as Ae } from "./src/description/index.mjs";
|
|
21
21
|
import { useComponentRegister as Te } from "./src/pro-form/hooks/use-component-register.mjs";
|
|
22
22
|
import { useForm as Ce } from "./src/pro-form/hooks/use-form.mjs";
|
|
23
|
-
import { isComponentFormSchema as
|
|
24
|
-
import { Field as
|
|
25
|
-
import { default as
|
|
23
|
+
import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
|
|
24
|
+
import { Field as Pe } from "./src/pro-form/index.mjs";
|
|
25
|
+
import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
26
|
import { default as Re } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
27
|
import { default as ve } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
28
|
+
import { default as Le } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
|
+
import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
30
|
import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
31
31
|
import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
|
|
32
32
|
import { default as Ye } from "./src/pro-form/components/api-tree-select.vue.mjs";
|
|
@@ -44,14 +44,14 @@ import { CountdownButton as xo, CountdownInput as io } from "./src/count-down/in
|
|
|
44
44
|
import { createPrompt as no } from "./src/prompt/index.mjs";
|
|
45
45
|
import { Dropdown as co } from "./src/dropdown/index.mjs";
|
|
46
46
|
import { default as Fo } from "./src/pro-table/pro-table.vue.mjs";
|
|
47
|
-
import { default as
|
|
47
|
+
import { default as bo } from "./src/pro-table/components/table-action.vue.mjs";
|
|
48
48
|
import { default as Io } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
|
|
49
|
-
import { default as
|
|
50
|
-
import { useTable as
|
|
49
|
+
import { default as Po } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
|
+
import { useTable as Do } from "./src/pro-table/hooks/use-table.mjs";
|
|
51
51
|
import { ApFormItemText as Ro } from "./src/ap-form/items/text/index.mjs";
|
|
52
52
|
import { default as vo } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
53
|
+
import { default as Lo } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
|
+
import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
|
|
55
55
|
import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
56
56
|
import { default as Ko } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
57
57
|
import { default as Yo } from "./src/ap-form/items/select/index.vue.mjs";
|
|
@@ -71,14 +71,14 @@ import { default as ir } from "./src/ap-field/date/index.vue.mjs";
|
|
|
71
71
|
import { default as nr } from "./src/ap-field/number/index.vue.mjs";
|
|
72
72
|
import { default as cr } from "./src/ap-field/radio/index.vue.mjs";
|
|
73
73
|
import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
|
|
74
|
-
import { default as
|
|
74
|
+
import { default as br } from "./src/ap-field/text-area/index.vue.mjs";
|
|
75
75
|
import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
76
|
+
import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
|
|
77
|
+
import { default as Dr } from "./src/ap-field/text/password.vue.mjs";
|
|
78
78
|
import { default as Rr } from "./src/ap-field/slider/index.vue.mjs";
|
|
79
79
|
import { default as vr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
80
|
-
import { default as
|
|
81
|
-
import { adminToken as
|
|
80
|
+
import { default as Lr } from "./src/ap-field/rate/index.vue.mjs";
|
|
81
|
+
import { adminToken as kr, aplusToken as Nr } from "./src/design-token/index.mjs";
|
|
82
82
|
import { ApActionItem as Er } from "./src/ap-action/index.mjs";
|
|
83
83
|
import { default as Xr } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
84
84
|
import { default as Hr } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
@@ -93,27 +93,29 @@ import { createWorkOrderModal as tt } from "./src/work-order-modal/createWorkOrd
|
|
|
93
93
|
import { default as pt } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
94
94
|
import { default as mt } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
95
95
|
import { default as st } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
96
|
-
import { default as xt } from "./src/ap-layout/
|
|
96
|
+
import { default as xt } from "./src/ap-layout/ApInfoLayout.vue.mjs";
|
|
97
97
|
import { NeedNameKeyDefault as ut } from "./src/ap-upload/apUploadTypes.mjs";
|
|
98
98
|
import { default as At } from "./src/ap-upload/apUpload.vue.mjs";
|
|
99
99
|
import { ApDownLoadNeedNameKeyDefault as Tt } from "./src/ap-download/interface.mjs";
|
|
100
100
|
import { default as Ct } from "./src/ap-download/ap-download.vue.mjs";
|
|
101
|
-
import { CheckCard as
|
|
101
|
+
import { CheckCard as St } from "./src/check-card/index.mjs";
|
|
102
102
|
import { default as gt } from "./src/check-card/group.vue.mjs";
|
|
103
|
-
import { ApModal as
|
|
103
|
+
import { ApModal as ht } from "./src/ap-modal/index.mjs";
|
|
104
104
|
import { default as Mt } from "./src/ap-list/index.vue.mjs";
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
105
|
+
import { usePageListApTable as Gt } from "./src/business/hooks/usePageListApTable.mjs";
|
|
106
|
+
import { useTableRefresh as Bt } from "./src/business/hooks/useTableRefresh.mjs";
|
|
107
|
+
import { default as wt } from "./src/business/ap-table-modal/index.mjs";
|
|
108
|
+
import { useTableModal as Nt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
109
|
+
import { useTableSelectModal as Et } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
110
|
+
import { ApAttachment as Xt, ApBatchAction as Yt, ApBatchActionGroup as Ht, ApExpandAlert as Ot, ApExportGroup as Wt, ApImage as zt, ApInputRadio as Ut, ApLabel as Vt, ApLabelGroup as $t, ApLadder as jt, ApSelectLayout as qt, ApStatus as Jt, ApStatusGroup as Qt, ApTitle as Zt } from "./src/business/index.mjs";
|
|
111
|
+
import { ApTransformDataHelper as ea } from "./src/utils/ap-trans-data/index.mjs";
|
|
112
|
+
import { useTablePaging as ra } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
113
|
+
import { default as aa } from "./src/ap-table/ap-table.vue.mjs";
|
|
114
|
+
import { default as fa } from "./src/editable-table/index.vue.mjs";
|
|
115
|
+
import { default as la } from "./src/editable-table/form-item.vue.mjs";
|
|
116
|
+
import { default as da } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
117
|
+
import { useMessage as ia } from "./src/hooks/useMessage.mjs";
|
|
118
|
+
import { useControllableValue as na } from "./src/hooks/useControllableValue.mjs";
|
|
117
119
|
const p = {
|
|
118
120
|
install: (r) => {
|
|
119
121
|
for (const t in o) {
|
|
@@ -123,42 +125,43 @@ const p = {
|
|
|
123
125
|
}
|
|
124
126
|
};
|
|
125
127
|
export {
|
|
126
|
-
|
|
128
|
+
k as APConfigProvider,
|
|
127
129
|
Ur as ApActionGroup,
|
|
128
130
|
Er as ApActionItem,
|
|
129
131
|
Wr as ApActionItemDropdown,
|
|
130
132
|
Xr as ApActionItemModal,
|
|
131
133
|
Hr as ApActionItemPopconfirm,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
Xt as ApAttachment,
|
|
135
|
+
Yt as ApBatchAction,
|
|
136
|
+
Ht as ApBatchActionGroup,
|
|
134
137
|
Qr as ApCustomColumn,
|
|
135
138
|
_r as ApCustomSelect,
|
|
136
|
-
|
|
139
|
+
da as ApDescriptions,
|
|
137
140
|
Tt as ApDownLoadNeedNameKeyDefault,
|
|
138
141
|
Ct as ApDownload,
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
Ot as ApExpandAlert,
|
|
143
|
+
Wt as ApExportGroup,
|
|
141
144
|
fr as ApField,
|
|
142
145
|
dr as ApFieldCheckbox,
|
|
143
146
|
ir as ApFieldDate,
|
|
144
147
|
Ir as ApFieldDateRange,
|
|
145
148
|
nr as ApFieldNumber,
|
|
146
|
-
|
|
149
|
+
Dr as ApFieldPassword,
|
|
147
150
|
cr as ApFieldRadio,
|
|
148
|
-
|
|
151
|
+
Lr as ApFieldRate,
|
|
149
152
|
vr as ApFieldSegmented,
|
|
150
|
-
|
|
153
|
+
Pr as ApFieldSelect,
|
|
151
154
|
Rr as ApFieldSlider,
|
|
152
155
|
Fr as ApFieldSwitch,
|
|
153
156
|
lr as ApFieldText,
|
|
154
|
-
|
|
157
|
+
br as ApFieldTextArea,
|
|
155
158
|
jo as ApForm,
|
|
156
159
|
Jo as ApFormItem,
|
|
157
160
|
zo as ApFormItemCheckbox,
|
|
158
|
-
|
|
161
|
+
ko as ApFormItemDate,
|
|
159
162
|
yo as ApFormItemDateRange,
|
|
160
163
|
Zo as ApFormItemGroup,
|
|
161
|
-
|
|
164
|
+
Lo as ApFormItemNumber,
|
|
162
165
|
Ko as ApFormItemRadio,
|
|
163
166
|
Yo as ApFormItemSelect,
|
|
164
167
|
Oo as ApFormItemSwitch,
|
|
@@ -168,35 +171,36 @@ export {
|
|
|
168
171
|
er as ApFormList,
|
|
169
172
|
ar as ApFormModalForm,
|
|
170
173
|
rr as ApFormSearchForm,
|
|
171
|
-
|
|
174
|
+
zt as ApImage,
|
|
172
175
|
xt as ApInfoLayout,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
Ut as ApInputRadio,
|
|
177
|
+
Vt as ApLabel,
|
|
178
|
+
$t as ApLabelGroup,
|
|
179
|
+
jt as ApLadder,
|
|
176
180
|
Mt as ApList,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
ht as ApModal,
|
|
182
|
+
qt as ApSelectLayout,
|
|
183
|
+
Jt as ApStatus,
|
|
184
|
+
Qt as ApStatusGroup,
|
|
185
|
+
aa as ApTable,
|
|
186
|
+
wt as ApTableModal,
|
|
183
187
|
mt as ApTag,
|
|
184
188
|
st as ApTagGroup,
|
|
185
|
-
|
|
186
|
-
|
|
189
|
+
Zt as ApTitle,
|
|
190
|
+
ea as ApTransformDataHelper,
|
|
187
191
|
At as ApUpload,
|
|
188
|
-
|
|
192
|
+
De as ApiCascader,
|
|
189
193
|
Re as ApiRadioGroup,
|
|
190
194
|
ve as ApiSelect,
|
|
191
|
-
|
|
192
|
-
|
|
195
|
+
Le as ApiTransfer,
|
|
196
|
+
ke as ApiTree,
|
|
193
197
|
Ye as ApiTreeSelect,
|
|
194
198
|
Je as BaseButton,
|
|
195
199
|
po as BaseModal,
|
|
196
200
|
$ as BasicArrow,
|
|
197
201
|
j as BasicHelp,
|
|
198
202
|
q as BasicTitle,
|
|
199
|
-
|
|
203
|
+
St as CheckCard,
|
|
200
204
|
gt as CheckCardGroup,
|
|
201
205
|
K as CollapseContainer,
|
|
202
206
|
Q as CollapseTransition,
|
|
@@ -209,12 +213,12 @@ export {
|
|
|
209
213
|
ot as DictCode,
|
|
210
214
|
co as Dropdown,
|
|
211
215
|
Io as EditTableHeaderIcon,
|
|
212
|
-
|
|
213
|
-
|
|
216
|
+
fa as EditableTable,
|
|
217
|
+
la as EditableTableFormItem,
|
|
214
218
|
_ as ExpandTransition,
|
|
215
219
|
ee as ExpandXTransition,
|
|
216
220
|
oe as FadeTransition,
|
|
217
|
-
|
|
221
|
+
Pe as Field,
|
|
218
222
|
l as Icon,
|
|
219
223
|
H as IconPicker,
|
|
220
224
|
Ve as ModalButton,
|
|
@@ -239,23 +243,23 @@ export {
|
|
|
239
243
|
xe as SlideYTransition,
|
|
240
244
|
Ze as StrengthMeter,
|
|
241
245
|
s as SvgIcon,
|
|
242
|
-
|
|
243
|
-
|
|
246
|
+
bo as TableAction,
|
|
247
|
+
Po as TableImg,
|
|
244
248
|
pt as WorkOrderModal,
|
|
245
|
-
|
|
249
|
+
kr as adminToken,
|
|
246
250
|
Nr as aplusToken,
|
|
247
|
-
|
|
248
|
-
|
|
251
|
+
b as buildLocaleContext,
|
|
252
|
+
S as buildTranslator,
|
|
249
253
|
u as configProviderContextKey,
|
|
250
254
|
x as configProviderProps,
|
|
251
255
|
no as createPrompt,
|
|
252
256
|
tt as createWorkOrderModal,
|
|
253
257
|
p as default,
|
|
254
|
-
|
|
258
|
+
D as defaultNamespace,
|
|
255
259
|
U as en,
|
|
256
260
|
$r as generateTableList,
|
|
257
|
-
|
|
258
|
-
|
|
261
|
+
L as globalConfigCached,
|
|
262
|
+
Se as isComponentFormSchema,
|
|
259
263
|
Ie as isSlotFormSchema,
|
|
260
264
|
c as keysOf,
|
|
261
265
|
I as localeContextKey,
|
|
@@ -265,20 +269,22 @@ export {
|
|
|
265
269
|
g as translate,
|
|
266
270
|
qr as useCacheColumnSetting,
|
|
267
271
|
Te as useComponentRegister,
|
|
268
|
-
|
|
272
|
+
na as useControllableValue,
|
|
269
273
|
ue as useDescription,
|
|
270
274
|
Ce as useForm,
|
|
271
275
|
R as useGetDerivedNamespace,
|
|
272
276
|
F as useGlobalConfig,
|
|
273
|
-
|
|
274
|
-
|
|
277
|
+
P as useLocale,
|
|
278
|
+
ia as useMessage,
|
|
275
279
|
ro as useModal,
|
|
276
280
|
eo as useModalContext,
|
|
277
281
|
to as useModalInner,
|
|
278
282
|
G as useNamespace,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
Gt as usePageListApTable,
|
|
284
|
+
Do as useTable,
|
|
285
|
+
Nt as useTableModal,
|
|
286
|
+
ra as useTablePaging,
|
|
287
|
+
Bt as useTableRefresh,
|
|
288
|
+
Et as useTableSelectModal,
|
|
283
289
|
W as zhCn
|
|
284
290
|
};
|
|
@@ -10,15 +10,12 @@ declare function __VLS_template(): {
|
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps<Record<string, string>>>, {
|
|
12
12
|
size: string;
|
|
13
|
-
color: string;
|
|
14
13
|
disabled: boolean;
|
|
15
14
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps<Record<string, string>>>, {
|
|
16
15
|
size: string;
|
|
17
|
-
color: string;
|
|
18
16
|
disabled: boolean;
|
|
19
17
|
}>>>, {
|
|
20
18
|
size: "small" | "middle" | "large";
|
|
21
|
-
color: string;
|
|
22
19
|
disabled: boolean;
|
|
23
20
|
}, {}>;
|
|
24
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, useSlots as F, computed as s, unref as t, openBlock as n, createElementBlock as a, normalizeStyle as O, normalizeClass as l, createElementVNode as r, renderSlot as h, createCommentVNode as A, toDisplayString as k } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import { useOssInit as v } from "./hooks/index.mjs";
|
|
4
4
|
import "./style/ap-download.css";
|
|
@@ -9,12 +9,12 @@ import { useGlobalConfig as c } from "../config-provider/hooks/use-global-config
|
|
|
9
9
|
const U = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "icon"
|
|
12
|
-
}, D = { class: "text" }, H = /* @__PURE__ */
|
|
12
|
+
}, D = { class: "text" }, H = /* @__PURE__ */ b({
|
|
13
13
|
name: "ApDownload",
|
|
14
14
|
__name: "ap-download",
|
|
15
15
|
props: {
|
|
16
16
|
text: {},
|
|
17
|
-
color: {
|
|
17
|
+
color: {},
|
|
18
18
|
size: { default: "middle" },
|
|
19
19
|
disabled: { type: Boolean, default: !1 },
|
|
20
20
|
fileName: {},
|
|
@@ -22,26 +22,26 @@ const U = {
|
|
|
22
22
|
getOssAccess: {}
|
|
23
23
|
},
|
|
24
24
|
setup(i) {
|
|
25
|
-
const { lang: p } = I(), d =
|
|
25
|
+
const { lang: p } = I(), d = F(), m = s(() => p.value === "zh-cn" ? "zh_CN" : "en_US"), u = c("uiMode"), e = i, f = c("apUpload"), g = s(() => e.disabled), C = s(() => e.color ? e.color : u.value === "aplus" ? "#0070FF" : "#1890FF"), _ = s(() => e.size), { wrapperStyle: y, getWrapperClass: w, getInnerWrapperClass: z } = x(
|
|
26
26
|
C,
|
|
27
27
|
_,
|
|
28
28
|
g
|
|
29
|
-
),
|
|
29
|
+
), N = s(() => {
|
|
30
30
|
var o;
|
|
31
31
|
return e.getOssAccess || ((o = f.value) == null ? void 0 : o.getOssAccess);
|
|
32
|
-
}),
|
|
32
|
+
}), S = async () => {
|
|
33
33
|
e.disabled || await (await v(
|
|
34
|
-
|
|
34
|
+
N.value,
|
|
35
35
|
t(m)
|
|
36
36
|
)).downloadFile(B(e.needName, e.fileName));
|
|
37
37
|
};
|
|
38
38
|
return (o, E) => (n(), a("span", {
|
|
39
39
|
style: O(t(y)),
|
|
40
|
-
class: l(t(
|
|
41
|
-
onClick:
|
|
40
|
+
class: l(t(w)),
|
|
41
|
+
onClick: S
|
|
42
42
|
}, [
|
|
43
43
|
r("span", {
|
|
44
|
-
class: l(t(
|
|
44
|
+
class: l(t(z))
|
|
45
45
|
}, [
|
|
46
46
|
t(d).icon ? (n(), a("span", U, [
|
|
47
47
|
h(o.$slots, "icon")
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as C, ref as N, computed as x, unref as
|
|
1
|
+
import { defineComponent as C, ref as N, computed as x, 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 "ant-design-vue";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
4
|
import { isNil as M, omit as T } from "lodash-unified";
|
|
5
|
-
import {
|
|
6
|
-
import { addZeroToDecimalPlaces as
|
|
5
|
+
import { roundWith as _, toDecimalMark as w } from "@fruits-chain/utils";
|
|
6
|
+
import { addZeroToDecimalPlaces as L } from "./helper.mjs";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import "./style.css";
|
|
9
|
-
import { useDefaultPlaceholder as
|
|
9
|
+
import { useDefaultPlaceholder as W } from "../hooks/use-default-placeholder.mjs";
|
|
10
10
|
import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
12
|
-
const
|
|
12
|
+
const ae = /* @__PURE__ */ C({
|
|
13
13
|
name: "ApFieldNumber",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -57,15 +57,16 @@ const oe = /* @__PURE__ */ C({
|
|
|
57
57
|
},
|
|
58
58
|
emits: ["update:value"],
|
|
59
59
|
setup(f, { expose: c, emit: y }) {
|
|
60
|
-
const v = y, { b: i } = Z("field-number"),
|
|
61
|
-
|
|
60
|
+
const v = y, { b: i } = Z("field-number"), o = f, l = N(), { value: u, updateValue: b } = j(
|
|
61
|
+
o,
|
|
62
62
|
v
|
|
63
|
-
), B =
|
|
64
|
-
let e =
|
|
63
|
+
), B = W("Number", o), h = x(() => {
|
|
64
|
+
let e = t(u);
|
|
65
65
|
if (M(e))
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
return o.emptyText;
|
|
67
|
+
o.precision && (e = _(e, o.precision));
|
|
68
|
+
let a = o.thousands ? w(e) : String(e);
|
|
69
|
+
return o.precision && o.limitDecimalsRetain && (a = L(a, o.precision)), a;
|
|
69
70
|
});
|
|
70
71
|
function k() {
|
|
71
72
|
var e;
|
|
@@ -78,21 +79,21 @@ const oe = /* @__PURE__ */ C({
|
|
|
78
79
|
return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(D, { key: 0 }, [
|
|
79
80
|
e.$slots.prefix ? (r(), n("span", {
|
|
80
81
|
key: 0,
|
|
81
|
-
class: d(
|
|
82
|
+
class: d(t(i)("label-left"))
|
|
82
83
|
}, [
|
|
83
84
|
s(e.$slots, "prefix")
|
|
84
85
|
], 2)) : m("", !0),
|
|
85
86
|
P("span", null, V(h.value), 1),
|
|
86
87
|
e.$slots.addonAfter ? (r(), n("span", {
|
|
87
88
|
key: 1,
|
|
88
|
-
class: d(
|
|
89
|
+
class: d(t(i)("label-right"))
|
|
89
90
|
}, [
|
|
90
91
|
s(e.$slots, "addonAfter")
|
|
91
92
|
], 2)) : m("", !0)
|
|
92
|
-
], 64)) : (r(), $(
|
|
93
|
-
placeholder:
|
|
94
|
-
value:
|
|
95
|
-
"onUpdate:value":
|
|
93
|
+
], 64)) : (r(), $(t(F), R({ key: 1 }, t(T)(o, ["value", "onUpdate:value"]), {
|
|
94
|
+
placeholder: t(B),
|
|
95
|
+
value: t(u),
|
|
96
|
+
"onUpdate:value": t(b),
|
|
96
97
|
ref_key: "inputRef",
|
|
97
98
|
ref: l
|
|
98
99
|
}), A({ _: 2 }, [
|
|
@@ -106,5 +107,5 @@ const oe = /* @__PURE__ */ C({
|
|
|
106
107
|
}
|
|
107
108
|
});
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
+
ae as default
|
|
110
111
|
};
|
|
@@ -1,14 +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 C, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as G, createCommentVNode as H, createElementVNode 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 C, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as G, createCommentVNode as H, createElementVNode as V, 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 {
|
|
5
|
-
import { apFormItemColPropKeys as
|
|
6
|
-
import { QuestionCircleOutlined as
|
|
4
|
+
import { isFunction as ae, isArray as re, omit as N } from "lodash-unified";
|
|
5
|
+
import { apFormItemColPropKeys as ne } from "./constant.mjs";
|
|
6
|
+
import { QuestionCircleOutlined as ie } from "@ant-design/icons-vue";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
|
-
import { useInjectForm as
|
|
8
|
+
import { useInjectForm as ue } from "./context.mjs";
|
|
9
9
|
import "./style/ap-form-item.css";
|
|
10
|
-
import {
|
|
11
|
-
|
|
10
|
+
import { isPromise as se } from "@fruits-chain/utils";
|
|
11
|
+
import { useNamespace as de } from "../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
12
13
|
name: "ApFormItem",
|
|
13
14
|
__name: "ap-form-item",
|
|
14
15
|
props: {
|
|
@@ -53,14 +54,15 @@ const se = ["title"], Be = /* @__PURE__ */ $({
|
|
|
53
54
|
},
|
|
54
55
|
setup(P, { expose: S }) {
|
|
55
56
|
var b, F;
|
|
56
|
-
const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } =
|
|
57
|
-
q(() => {
|
|
58
|
-
|
|
57
|
+
const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } = ue(), { m: p, b: w } = de("ap-form-item"), m = f(!1), a = f(), [, x] = te();
|
|
58
|
+
q(async () => {
|
|
59
|
+
let e = ae(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
60
|
+
se(e) && (e = await e), d == null || d.registerField({
|
|
59
61
|
name: o.name,
|
|
60
|
-
initialValue:
|
|
62
|
+
initialValue: e
|
|
61
63
|
});
|
|
62
64
|
});
|
|
63
|
-
const c = B(() => o.name ?
|
|
65
|
+
const c = B(() => o.name ? re(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]);
|
|
64
66
|
E(
|
|
65
67
|
() => {
|
|
66
68
|
var e;
|
|
@@ -70,10 +72,10 @@ const se = ["title"], Be = /* @__PURE__ */ $({
|
|
|
70
72
|
v.value = e == null ? void 0 : e[0];
|
|
71
73
|
}
|
|
72
74
|
);
|
|
73
|
-
function
|
|
75
|
+
function I(e) {
|
|
74
76
|
s == null || s(o.name, e);
|
|
75
77
|
}
|
|
76
|
-
function
|
|
78
|
+
function _() {
|
|
77
79
|
m.value = !0;
|
|
78
80
|
}
|
|
79
81
|
function z() {
|
|
@@ -86,9 +88,9 @@ const se = ["title"], Be = /* @__PURE__ */ $({
|
|
|
86
88
|
const e = l(v);
|
|
87
89
|
return e ? K(e, {
|
|
88
90
|
[o.valuePropName]: l(c),
|
|
89
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
91
|
+
[`onUpdate:${o.valuePropName}`]: I,
|
|
90
92
|
bordered: o.bordered ? !1 : (n = e == null ? void 0 : e.props) == null ? void 0 : n.bordered,
|
|
91
|
-
onFocus:
|
|
93
|
+
onFocus: _,
|
|
92
94
|
onBlur: z
|
|
93
95
|
}) : null;
|
|
94
96
|
});
|
|
@@ -120,11 +122,11 @@ const se = ["title"], Be = /* @__PURE__ */ $({
|
|
|
120
122
|
}), (e, r) => (g(), C(l(oe).Item, Q({
|
|
121
123
|
ref_key: "formItemRef",
|
|
122
124
|
ref: a
|
|
123
|
-
}, l(N)(o, [...l(
|
|
125
|
+
}, l(N)(o, [...l(ne), "tooltip", "label"]), {
|
|
124
126
|
class: {
|
|
125
127
|
[l(p)("bordered")]: e.bordered,
|
|
126
128
|
[l(p)("focused")]: e.bordered && m.value,
|
|
127
|
-
[l(
|
|
129
|
+
[l(w)()]: !0
|
|
128
130
|
},
|
|
129
131
|
colon: e.bordered ? !1 : o.colon
|
|
130
132
|
}), U({
|
|
@@ -136,15 +138,15 @@ const se = ["title"], Be = /* @__PURE__ */ $({
|
|
|
136
138
|
o.tooltip ? {
|
|
137
139
|
name: "tooltip",
|
|
138
140
|
fn: i(({ class: n }) => [
|
|
139
|
-
|
|
141
|
+
V("span", {
|
|
140
142
|
class: J(n)
|
|
141
143
|
}, [
|
|
142
|
-
|
|
144
|
+
k(l(le), {
|
|
143
145
|
title: o.tooltip
|
|
144
146
|
}, {
|
|
145
147
|
default: i(() => [
|
|
146
|
-
|
|
147
|
-
style: M({ color: l(
|
|
148
|
+
k(l(ie), {
|
|
149
|
+
style: M({ color: l(x).colorPrimary })
|
|
148
150
|
}, null, 8, ["style"])
|
|
149
151
|
]),
|
|
150
152
|
_: 1
|
|
@@ -156,14 +158,14 @@ const se = ["title"], Be = /* @__PURE__ */ $({
|
|
|
156
158
|
e.label ? {
|
|
157
159
|
name: "label",
|
|
158
160
|
fn: i(() => [
|
|
159
|
-
|
|
161
|
+
V("span", {
|
|
160
162
|
title: e.label,
|
|
161
163
|
style: {
|
|
162
164
|
whiteSpace: "nowrap",
|
|
163
165
|
overflow: "hidden",
|
|
164
166
|
textOverflow: "ellipsis"
|
|
165
167
|
}
|
|
166
|
-
}, W(e.label), 9,
|
|
168
|
+
}, W(e.label), 9, me)
|
|
167
169
|
]),
|
|
168
170
|
key: "1"
|
|
169
171
|
} : void 0,
|
|
@@ -177,5 +179,5 @@ const se = ["title"], Be = /* @__PURE__ */ $({
|
|
|
177
179
|
}
|
|
178
180
|
});
|
|
179
181
|
export {
|
|
180
|
-
|
|
182
|
+
Ve as default
|
|
181
183
|
};
|
|
@@ -909,7 +909,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
909
909
|
}> | undefined;
|
|
910
910
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
911
911
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
912
|
-
setFieldValue: (
|
|
912
|
+
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
913
913
|
registerWatch: typeof registerWatch;
|
|
914
914
|
getInternalInstance: typeof getInternalInstance;
|
|
915
915
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormProps>, {
|