@aplus-frontend/ui 0.0.13 → 0.0.15
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 +53 -55
- package/es/src/ap-action/interface.d.ts +11 -0
- package/es/src/ap-action/item/index.vue.d.ts +2 -4
- package/es/src/ap-action/item/index.vue2.mjs +34 -28
- package/es/src/ap-action/item-modal/index.vue.d.ts +8 -3
- package/es/src/ap-action/item-modal/index.vue.mjs +20 -13
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +8 -3
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +23 -16
- package/es/src/ap-field/checkbox/index.vue.mjs +2 -0
- package/es/src/ap-field/date/index.vue.mjs +2 -0
- package/es/src/ap-field/date-range/index.vue.mjs +2 -0
- package/es/src/ap-field/interface.d.ts +2 -0
- package/es/src/ap-field/number/index.vue.mjs +2 -0
- package/es/src/ap-field/radio/index.vue.mjs +9 -7
- package/es/src/ap-field/rate/index.vue.mjs +4 -2
- package/es/src/ap-field/segmented/index.vue.mjs +15 -13
- package/es/src/ap-field/select/index.vue.mjs +18 -16
- package/es/src/ap-field/slider/index.vue.mjs +11 -9
- package/es/src/ap-field/switch/index.vue.mjs +10 -8
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue2.mjs +12 -10
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.mjs +16 -14
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +2 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +45 -42
- package/es/src/ap-form/modal-form/index.vue.mjs +68 -66
- package/es/src/ap-table/ap-table.vue.mjs +90 -92
- package/es/src/ap-table/constants.d.ts +715 -487
- package/es/src/ap-table/style/ap-table.css +6 -0
- package/es/src/ap-table/utils.d.ts +3 -3
- package/es/src/business/index.d.ts +2 -5
- package/es/src/business/index.mjs +4 -5
- package/es/src/business/title/ApTitle.vue.mjs +2 -48
- package/es/src/business/title/ApTitle.vue2.mjs +48 -2
- package/es/src/config-provider/config-provider-props.d.ts +1 -1
- package/es/src/config-provider/config-provider-props.mjs +5 -6
- package/es/src/config-provider/config-provider.d.ts +11 -11
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +31 -31
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/index.d.ts +3 -3
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/style/index.css +7 -8
- package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
- package/es/src/icon-picker/index.d.ts +26 -26
- package/es/src/index.mjs +50 -52
- package/es/src/modal/basic.vue.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/index.d.ts +2 -2
- package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +12 -12
- package/es/src/theme/ap-table/ap-table.css +6 -0
- package/es/src/theme/editable-table/index.css +7 -8
- package/es/src/utils/config-provider-preset.d.ts +12 -12
- package/lib/index.js +1 -1
- package/lib/src/ap-action/interface.d.ts +11 -0
- package/lib/src/ap-action/item/index.vue.d.ts +2 -4
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +8 -3
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +8 -3
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +2 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +715 -487
- package/lib/src/ap-table/style/ap-table.css +6 -0
- package/lib/src/ap-table/utils.d.ts +3 -3
- package/lib/src/business/index.d.ts +2 -5
- package/lib/src/business/index.js +1 -1
- package/lib/src/business/title/ApTitle.vue.js +1 -1
- package/lib/src/business/title/ApTitle.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +1 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +11 -11
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +31 -31
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/index.d.ts +3 -3
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/style/index.css +7 -8
- package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
- package/lib/src/icon-picker/index.d.ts +26 -26
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/index.d.ts +2 -2
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +12 -12
- package/lib/src/theme/ap-table/ap-table.css +6 -0
- package/lib/src/theme/editable-table/index.css +7 -8
- package/lib/src/utils/config-provider-preset.d.ts +12 -12
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "./src/hooks/index.mjs";
|
|
|
3
3
|
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 n, tableDefaultConfig as u } from "./src/config-provider/constants.mjs";
|
|
6
|
-
import { keysOf as c, provideGlobalConfig as
|
|
6
|
+
import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as T } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
7
|
import { buildLocaleContext as S, buildTranslator as I, localeContextKey as b, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { defaultNamespace as R, namespaceContextKey as v, useGetDerivedNamespace as M, useNamespace as h } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as B } from "./src/config-provider/config-provider.mjs";
|
|
@@ -13,13 +13,13 @@ import { CollapseContainer as L, ScrollContainer as X } from "./src/container/in
|
|
|
13
13
|
import { IconPicker as Y } from "./src/icon-picker/index.mjs";
|
|
14
14
|
import { default as H } from "./src/locale/lang/zh-cn.mjs";
|
|
15
15
|
import { default as z } from "./src/locale/lang/en.mjs";
|
|
16
|
-
import { BasicArrow as V, BasicHelp as
|
|
17
|
-
import { default as
|
|
18
|
-
import { ExpandTransition as
|
|
16
|
+
import { BasicArrow as V, BasicHelp as $, BasicTitle as j } from "./src/basic/index.mjs";
|
|
17
|
+
import { default as J } from "./src/transition/collapse-transition.vue.mjs";
|
|
18
|
+
import { ExpandTransition as Z, ExpandXTransition as _, FadeTransition as ee, ScaleRotateTransition as oe, ScaleTransition as re, ScrollXReverseTransition as te, ScrollXTransition as ae, ScrollYReverseTransition as pe, ScrollYTransition as fe, SlideXReverseTransition as me, SlideXTransition as le, SlideYReverseTransition as se, SlideYTransition as de } from "./src/transition/index.mjs";
|
|
19
19
|
import { useDescription as ie } from "./src/description/use-description.mjs";
|
|
20
20
|
import { Description as ue } from "./src/description/index.mjs";
|
|
21
21
|
import { useComponentRegister as ce } from "./src/pro-form/hooks/use-component-register.mjs";
|
|
22
|
-
import { useForm as
|
|
22
|
+
import { useForm as Te } from "./src/pro-form/hooks/use-form.mjs";
|
|
23
23
|
import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
|
|
24
24
|
import { Field as ge } from "./src/pro-form/index.mjs";
|
|
25
25
|
import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
@@ -33,17 +33,17 @@ import { default as Ke } from "./src/pro-form/components/api-tree-select.vue.mjs
|
|
|
33
33
|
import { default as Oe } from "./src/pro-form/table-form.vue.mjs";
|
|
34
34
|
import { default as We } from "./src/pro-form/table-form-inner.vue.mjs";
|
|
35
35
|
import { default as Ue } from "./src/base-button/modal-button.vue.mjs";
|
|
36
|
-
import { default as
|
|
37
|
-
import { BaseButton as
|
|
38
|
-
import { StrengthMeter as
|
|
39
|
-
import { useModalContext as
|
|
36
|
+
import { default as $e } from "./src/base-button/pop-confirm-button.vue.mjs";
|
|
37
|
+
import { BaseButton as qe } from "./src/base-button/index.mjs";
|
|
38
|
+
import { StrengthMeter as Qe } from "./src/strength-meter/index.mjs";
|
|
39
|
+
import { useModalContext as _e } from "./src/modal/hooks/use-modal-context.mjs";
|
|
40
40
|
import { useModal as oo, useModalInner as ro } from "./src/modal/hooks/use-modal.mjs";
|
|
41
41
|
import { BaseModal as ao } from "./src/modal/index.mjs";
|
|
42
42
|
import { CropperAvatar as fo, CropperImage as mo } from "./src/cropper/index.mjs";
|
|
43
43
|
import { CountdownButton as so, CountdownInput as xo } from "./src/count-down/index.mjs";
|
|
44
44
|
import { createPrompt as no } from "./src/prompt/index.mjs";
|
|
45
45
|
import { Dropdown as Ao } from "./src/dropdown/index.mjs";
|
|
46
|
-
import { default as
|
|
46
|
+
import { default as Fo } from "./src/pro-table/pro-table.vue.mjs";
|
|
47
47
|
import { default as Co } 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
49
|
import { default as go } from "./src/pro-table/components/table-image.vue.mjs";
|
|
@@ -58,10 +58,10 @@ import { default as Ko } from "./src/ap-form/items/select/index.vue.mjs";
|
|
|
58
58
|
import { default as Oo } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
59
59
|
import { default as Wo } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
60
60
|
import { default as Uo } from "./src/ap-form/items/text/password.vue.mjs";
|
|
61
|
-
import { ApForm as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
61
|
+
import { ApForm as $o } from "./src/ap-form/index.mjs";
|
|
62
|
+
import { default as qo } from "./src/ap-form/ap-form-item.vue.mjs";
|
|
63
|
+
import { default as Qo } from "./src/ap-form/ap-form-item-group/index.vue.mjs";
|
|
64
|
+
import { default as _o } from "./src/ap-form/ap-form-list.vue.mjs";
|
|
65
65
|
import { default as or } from "./src/ap-form/search-form/index.vue.mjs";
|
|
66
66
|
import { default as tr } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
67
67
|
import { ApField as pr } from "./src/ap-field/index.mjs";
|
|
@@ -70,7 +70,7 @@ import { default as sr } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
|
70
70
|
import { default as xr } 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 Ar } from "./src/ap-field/radio/index.vue.mjs";
|
|
73
|
-
import { default as
|
|
73
|
+
import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
|
|
74
74
|
import { default as Cr } 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
76
|
import { default as gr } from "./src/ap-field/select/index.vue.mjs";
|
|
@@ -85,9 +85,9 @@ import { default as Yr } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
|
85
85
|
import { default as Hr } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
86
86
|
import { default as zr } from "./src/ap-action/group/index.vue.mjs";
|
|
87
87
|
import { generateTableList as Vr } from "./src/ap-custom-column/utils.mjs";
|
|
88
|
-
import { useCacheColumnSetting as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
88
|
+
import { useCacheColumnSetting as jr } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
|
|
89
|
+
import { default as Jr } from "./src/ap-custom-column/custom-column.vue.mjs";
|
|
90
|
+
import { default as Zr } from "./src/ap-custom-column/column-select.vue.mjs";
|
|
91
91
|
import { DictCode as et } from "./src/work-order-modal/interfaces.mjs";
|
|
92
92
|
import { createWorkOrderModal as rt } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
93
93
|
import { default as at } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
@@ -97,14 +97,13 @@ import { default as dt } from "./src/ap-layout/ap-info-layout/ap-info-layout.vue
|
|
|
97
97
|
import { NeedNameKeyDefault as it } from "./src/ap-upload/apUploadTypes.mjs";
|
|
98
98
|
import { default as ut } from "./src/ap-upload/apUpload.vue.mjs";
|
|
99
99
|
import { default as ct } from "./src/ap-download/ap-download.vue.mjs";
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import { default as Pt } from "./src/
|
|
104
|
-
import { default as Rt } from "./src/editable-table/
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import { useControllableValue as kt } from "./src/hooks/useControllableValue.mjs";
|
|
100
|
+
import { ApTitle as Tt } from "./src/business/index.mjs";
|
|
101
|
+
import { useTablePaging as St } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
102
|
+
import { default as bt } from "./src/ap-table/ap-table.vue.mjs";
|
|
103
|
+
import { default as Pt } from "./src/editable-table/index.vue.mjs";
|
|
104
|
+
import { default as Rt } from "./src/editable-table/form-item.vue.mjs";
|
|
105
|
+
import { useMessage as Mt } from "./src/hooks/useMessage.mjs";
|
|
106
|
+
import { useControllableValue as wt } from "./src/hooks/useControllableValue.mjs";
|
|
108
107
|
const p = {
|
|
109
108
|
install: (r) => {
|
|
110
109
|
for (const t in o) {
|
|
@@ -120,8 +119,8 @@ export {
|
|
|
120
119
|
Hr as ApActionItemDropdown,
|
|
121
120
|
Xr as ApActionItemModal,
|
|
122
121
|
Yr as ApActionItemPopconfirm,
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
Jr as ApCustomColumn,
|
|
123
|
+
Zr as ApCustomSelect,
|
|
125
124
|
ct as ApDownload,
|
|
126
125
|
pr as ApField,
|
|
127
126
|
sr as ApFieldCheckbox,
|
|
@@ -134,15 +133,15 @@ export {
|
|
|
134
133
|
hr as ApFieldSegmented,
|
|
135
134
|
gr as ApFieldSelect,
|
|
136
135
|
vr as ApFieldSlider,
|
|
137
|
-
|
|
136
|
+
Fr as ApFieldSwitch,
|
|
138
137
|
mr as ApFieldText,
|
|
139
138
|
Cr as ApFieldTextArea,
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
$o as ApForm,
|
|
140
|
+
qo as ApFormItem,
|
|
142
141
|
Wo as ApFormItemCheckbox,
|
|
143
142
|
Go as ApFormItemDate,
|
|
144
143
|
yo as ApFormItemDateRange,
|
|
145
|
-
|
|
144
|
+
Qo as ApFormItemGroup,
|
|
146
145
|
Bo as ApFormItemNumber,
|
|
147
146
|
Lo as ApFormItemRadio,
|
|
148
147
|
Ko as ApFormItemSelect,
|
|
@@ -150,14 +149,14 @@ export {
|
|
|
150
149
|
vo as ApFormItemText,
|
|
151
150
|
ho as ApFormItemTextArea,
|
|
152
151
|
Uo as ApFormItemTextPassword,
|
|
153
|
-
|
|
152
|
+
_o as ApFormList,
|
|
154
153
|
tr as ApFormModalForm,
|
|
155
154
|
or as ApFormSearchForm,
|
|
156
155
|
dt as ApInfoLayout,
|
|
157
|
-
|
|
156
|
+
bt as ApTable,
|
|
158
157
|
ft as ApTag,
|
|
159
158
|
lt as ApTagGroup,
|
|
160
|
-
|
|
159
|
+
Tt as ApTitle,
|
|
161
160
|
ut as ApUpload,
|
|
162
161
|
De as ApiCascader,
|
|
163
162
|
ve as ApiRadioGroup,
|
|
@@ -165,13 +164,13 @@ export {
|
|
|
165
164
|
Be as ApiTransfer,
|
|
166
165
|
Ge as ApiTree,
|
|
167
166
|
Ke as ApiTreeSelect,
|
|
168
|
-
|
|
167
|
+
qe as BaseButton,
|
|
169
168
|
ao as BaseModal,
|
|
170
169
|
V as BasicArrow,
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
$ as BasicHelp,
|
|
171
|
+
j as BasicTitle,
|
|
173
172
|
L as CollapseContainer,
|
|
174
|
-
|
|
173
|
+
J as CollapseTransition,
|
|
175
174
|
B as ConfigProvider,
|
|
176
175
|
so as CountdownButton,
|
|
177
176
|
xo as CountdownInput,
|
|
@@ -181,19 +180,19 @@ export {
|
|
|
181
180
|
et as DictCode,
|
|
182
181
|
Ao as Dropdown,
|
|
183
182
|
Io as EditTableHeaderIcon,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
Pt as EditableTable,
|
|
184
|
+
Rt as EditableTableFormItem,
|
|
185
|
+
Z as ExpandTransition,
|
|
186
|
+
_ as ExpandXTransition,
|
|
188
187
|
ee as FadeTransition,
|
|
189
188
|
ge as Field,
|
|
190
189
|
l as Icon,
|
|
191
190
|
Y as IconPicker,
|
|
192
191
|
Ue as ModalButton,
|
|
193
192
|
it as NeedNameKeyDefault,
|
|
194
|
-
|
|
193
|
+
$e as PopConfirmButton,
|
|
195
194
|
Le as ProForm,
|
|
196
|
-
|
|
195
|
+
Fo as ProTable,
|
|
197
196
|
Oe as ProTableForm,
|
|
198
197
|
We as ProTableFormInner,
|
|
199
198
|
ye as RadioButtonGroup,
|
|
@@ -209,12 +208,11 @@ export {
|
|
|
209
208
|
le as SlideXTransition,
|
|
210
209
|
se as SlideYReverseTransition,
|
|
211
210
|
de as SlideYTransition,
|
|
212
|
-
|
|
211
|
+
Qe as StrengthMeter,
|
|
213
212
|
s as SvgIcon,
|
|
214
213
|
Co as TableAction,
|
|
215
214
|
go as TableImg,
|
|
216
215
|
at as WorkOrderModal,
|
|
217
|
-
Ft as _ApTitle,
|
|
218
216
|
Gr as adminToken,
|
|
219
217
|
Nr as aplusToken,
|
|
220
218
|
S as buildLocaleContext,
|
|
@@ -232,23 +230,23 @@ export {
|
|
|
232
230
|
c as keysOf,
|
|
233
231
|
b as localeContextKey,
|
|
234
232
|
v as namespaceContextKey,
|
|
235
|
-
|
|
233
|
+
F as provideGlobalConfig,
|
|
236
234
|
u as tableDefaultConfig,
|
|
237
235
|
g as translate,
|
|
238
|
-
|
|
236
|
+
jr as useCacheColumnSetting,
|
|
239
237
|
ce as useComponentRegister,
|
|
240
|
-
|
|
238
|
+
wt as useControllableValue,
|
|
241
239
|
ie as useDescription,
|
|
242
|
-
|
|
240
|
+
Te as useForm,
|
|
243
241
|
M as useGetDerivedNamespace,
|
|
244
|
-
|
|
242
|
+
T as useGlobalConfig,
|
|
245
243
|
P as useLocale,
|
|
246
|
-
|
|
244
|
+
Mt as useMessage,
|
|
247
245
|
oo as useModal,
|
|
248
|
-
|
|
246
|
+
_e as useModalContext,
|
|
249
247
|
ro as useModalInner,
|
|
250
248
|
h as useNamespace,
|
|
251
249
|
Do as useTable,
|
|
252
|
-
|
|
250
|
+
St as useTablePaging,
|
|
253
251
|
H as zhCn
|
|
254
252
|
};
|
|
@@ -80,3 +80,14 @@ export type ApActionItemModalProps = ApActionItemProps & {
|
|
|
80
80
|
export type ApActionItemPopconfirmProps = ApActionItemProps & {
|
|
81
81
|
popconfirmProps?: PopconfirmProps;
|
|
82
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* ApActionItem支持的插槽
|
|
85
|
+
*/
|
|
86
|
+
export type ApActionItemSlots = {
|
|
87
|
+
default?: any;
|
|
88
|
+
trigger?: (options: {
|
|
89
|
+
loading: boolean;
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
onClick: (e: MouseEvent) => void;
|
|
92
|
+
}) => any;
|
|
93
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApActionItemProps, ActionColor } from '../interface';
|
|
1
|
+
import { ApActionItemProps, ApActionItemSlots, ActionColor } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemProps>, {
|
|
@@ -16,9 +16,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
visible: boolean;
|
|
18
18
|
loading: boolean;
|
|
19
|
-
}, {}>,
|
|
20
|
-
default?(_: {}): any;
|
|
21
|
-
}>;
|
|
19
|
+
}, {}>, Readonly<ApActionItemSlots> & ApActionItemSlots>;
|
|
22
20
|
export default _default;
|
|
23
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
22
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, ref as v, unref as l, computed as d, renderSlot as u, openBlock as t, createElementBlock as c, normalizeClass as B, createBlock as m, createCommentVNode as f, isVNode as A, resolveDynamicComponent as h, toDisplayString as I } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import
|
|
3
|
+
import L from "ant-design-vue/es/button/LoadingIcon";
|
|
4
4
|
import "../style/item.css";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
import { useGlobalConfig as
|
|
7
|
-
const
|
|
5
|
+
import { useNamespace as N } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useGlobalConfig as x } from "../../config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
const D = { key: 1 }, G = /* @__PURE__ */ y({
|
|
8
8
|
name: "ApActionItem",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -16,33 +16,39 @@ const _ = { key: 1 }, G = /* @__PURE__ */ C({
|
|
|
16
16
|
onClick: {},
|
|
17
17
|
loading: { type: Boolean, default: !1 }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
function
|
|
19
|
+
setup(p) {
|
|
20
|
+
const o = p, { b: g, m: s, bm: b } = N("action-item"), k = x("uiMode", "aplus"), a = v(!1);
|
|
21
|
+
function r(e) {
|
|
22
22
|
var i;
|
|
23
|
-
n
|
|
23
|
+
l(n) || o.disabled || ((i = o.onClick) == null || i.call(o, e), o.onAction && (a.value = !0, o.onAction(e).finally(() => a.value = !1)));
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
const n = d(() => o.loading || l(a)), C = d(() => [
|
|
26
|
+
g(),
|
|
27
|
+
b(l(k), o.color),
|
|
28
|
+
o.disabled ? s("disabled") : null,
|
|
29
|
+
n.value ? s("loading") : null
|
|
30
30
|
].filter(Boolean));
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, [
|
|
36
|
-
|
|
31
|
+
return (e, i) => u(e.$slots, "trigger", {
|
|
32
|
+
loading: n.value,
|
|
33
|
+
disabled: e.disabled,
|
|
34
|
+
onClick: r
|
|
35
|
+
}, () => [
|
|
36
|
+
e.visible ? (t(), c("span", {
|
|
37
37
|
key: 0,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
onClick: r,
|
|
39
|
+
class: B(C.value)
|
|
40
|
+
}, [
|
|
41
|
+
n.value ? (t(), m(l(L), {
|
|
42
|
+
key: 0,
|
|
43
|
+
prefixCls: "btn",
|
|
44
|
+
existIcon: !1,
|
|
45
|
+
loading: ""
|
|
46
|
+
})) : f("", !0),
|
|
47
|
+
u(e.$slots, "default", {}, () => [
|
|
48
|
+
A(e.text) ? (t(), m(h(e.text), { key: 0 })) : (t(), c("span", D, I(e.text || ""), 1))
|
|
49
|
+
])
|
|
50
|
+
], 2)) : f("", !0)
|
|
51
|
+
]);
|
|
46
52
|
}
|
|
47
53
|
});
|
|
48
54
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApActionItemModalProps, ActionColor } from '../interface';
|
|
1
|
+
import { ApActionItemModalProps, ApActionItemSlots, ActionColor } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ModalFuncProps } from 'ant-design-vue';
|
|
4
4
|
|
|
5
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
|
|
6
6
|
color: string;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
visible: boolean;
|
|
@@ -20,7 +20,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
20
20
|
visible: boolean;
|
|
21
21
|
loading: boolean;
|
|
22
22
|
modalProps: Omit< ModalFuncProps, "type">;
|
|
23
|
-
}, {}>;
|
|
23
|
+
}, {}>, Readonly<ApActionItemSlots> & ApActionItemSlots>;
|
|
24
24
|
export default _default;
|
|
25
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
26
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -39,3 +39,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
39
39
|
type __VLS_Prettify<T> = {
|
|
40
40
|
[K in keyof T]: T[K];
|
|
41
41
|
} & {};
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Modal as
|
|
1
|
+
import { defineComponent as c, useSlots as m, openBlock as d, createBlock as p, mergeProps as f, unref as u, createSlots as _, renderList as A, withCtx as P, renderSlot as y, normalizeProps as k, guardReactiveProps as B } from "vue";
|
|
2
|
+
import { Modal as x } from "ant-design-vue";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
4
|
+
import { omit as g } from "lodash-unified";
|
|
5
|
+
import h from "../item/index.vue2.mjs";
|
|
6
|
+
const M = /* @__PURE__ */ c({
|
|
7
7
|
name: "ApActionItemModal",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -16,20 +16,27 @@ const P = /* @__PURE__ */ i({
|
|
|
16
16
|
loading: { type: Boolean, default: !1 },
|
|
17
17
|
modalProps: { default: () => ({}) }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const o =
|
|
21
|
-
async function
|
|
22
|
-
|
|
19
|
+
setup(a) {
|
|
20
|
+
const l = m(), o = a;
|
|
21
|
+
async function i(t) {
|
|
22
|
+
x.confirm({
|
|
23
23
|
...o.modalProps,
|
|
24
24
|
onOk: async () => {
|
|
25
|
-
var n,
|
|
26
|
-
(
|
|
25
|
+
var n, r, e;
|
|
26
|
+
(r = (n = o.modalProps).onOk) == null || r.call(n), await ((e = o.onAction) == null ? void 0 : e.call(o, t));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
return (
|
|
30
|
+
return (t, n) => (d(), p(h, f(u(g)(o, ["modalProps", "onAction"]), { onAction: i }), _({ _: 2 }, [
|
|
31
|
+
A(l, (r, e) => ({
|
|
32
|
+
name: e,
|
|
33
|
+
fn: P((s) => [
|
|
34
|
+
y(t.$slots, e, k(B(s || {})))
|
|
35
|
+
])
|
|
36
|
+
}))
|
|
37
|
+
]), 1040));
|
|
31
38
|
}
|
|
32
39
|
});
|
|
33
40
|
export {
|
|
34
|
-
|
|
41
|
+
M as default
|
|
35
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApActionItemPopconfirmProps, ActionColor } from '../interface';
|
|
1
|
+
import { ApActionItemPopconfirmProps, ApActionItemSlots, ActionColor } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
|
|
3
3
|
import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
4
4
|
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
@@ -10,7 +10,7 @@ import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
|
10
10
|
import { PresetColorType } from 'ant-design-vue/es/_util/colors';
|
|
11
11
|
import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
|
|
12
12
|
|
|
13
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
|
|
14
14
|
color: string;
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
visible: boolean;
|
|
@@ -322,7 +322,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
322
322
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
323
323
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
324
324
|
}>>;
|
|
325
|
-
}, {}>;
|
|
325
|
+
}, {}>, Readonly<ApActionItemSlots> & ApActionItemSlots>;
|
|
326
326
|
export default _default;
|
|
327
327
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
328
328
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -341,3 +341,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
341
341
|
type __VLS_Prettify<T> = {
|
|
342
342
|
[K in keyof T]: T[K];
|
|
343
343
|
} & {};
|
|
344
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
345
|
+
new (): {
|
|
346
|
+
$slots: S;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popconfirm as
|
|
1
|
+
import { defineComponent as d, useSlots as u, openBlock as P, createBlock as _, unref as i, mergeProps as y, withCtx as a, createVNode as C, normalizeProps as p, guardReactiveProps as s, createSlots as x, renderList as A, renderSlot as B } from "vue";
|
|
2
|
+
import { Popconfirm as b } from "ant-design-vue";
|
|
3
3
|
import "../item/index.vue.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
4
|
+
import { omit as g } from "lodash-unified";
|
|
5
|
+
import h from "../item/index.vue2.mjs";
|
|
6
|
+
const I = /* @__PURE__ */ d({
|
|
7
7
|
name: "ApActionItemPopconfirm",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -16,24 +16,31 @@ const h = /* @__PURE__ */ m({
|
|
|
16
16
|
loading: { type: Boolean, default: !1 },
|
|
17
17
|
popconfirmProps: { default: () => ({}) }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const o =
|
|
21
|
-
async function
|
|
22
|
-
var
|
|
23
|
-
(
|
|
19
|
+
setup(l) {
|
|
20
|
+
const f = u(), o = l;
|
|
21
|
+
async function m(n) {
|
|
22
|
+
var r, t, e;
|
|
23
|
+
(t = (r = o.popconfirmProps).onConfirm) == null || t.call(r, n), await ((e = o.onAction) == null ? void 0 : e.call(o, n));
|
|
24
24
|
}
|
|
25
|
-
return (
|
|
26
|
-
onConfirm:
|
|
25
|
+
return (n, r) => (P(), _(i(b), y(o.popconfirmProps, {
|
|
26
|
+
onConfirm: m,
|
|
27
27
|
disabled: !o.popconfirmProps,
|
|
28
28
|
"overlay-style": { zIndex: 1060 }
|
|
29
29
|
}), {
|
|
30
|
-
default:
|
|
31
|
-
|
|
30
|
+
default: a(() => [
|
|
31
|
+
C(h, p(s(i(g)(o, ["popconfirmProps", "onAction"]))), x({ _: 2 }, [
|
|
32
|
+
A(f, (t, e) => ({
|
|
33
|
+
name: e,
|
|
34
|
+
fn: a((c) => [
|
|
35
|
+
B(n.$slots, e, p(s(c || {})))
|
|
36
|
+
])
|
|
37
|
+
}))
|
|
38
|
+
]), 1040)
|
|
32
39
|
]),
|
|
33
|
-
_:
|
|
40
|
+
_: 3
|
|
34
41
|
}, 16, ["disabled"]));
|
|
35
42
|
}
|
|
36
43
|
});
|
|
37
44
|
export {
|
|
38
|
-
|
|
45
|
+
I as default
|
|
39
46
|
};
|
|
@@ -9,6 +9,8 @@ import { InputPasswordProps } from './text/input-password-props';
|
|
|
9
9
|
export type FieldMode = 'read' | 'edit';
|
|
10
10
|
export type BasicApFieldProps<FieldPropsType = any> = {
|
|
11
11
|
mode?: FieldMode;
|
|
12
|
+
class?: unknown;
|
|
13
|
+
style?: unknown;
|
|
12
14
|
} & FieldPropsType;
|
|
13
15
|
export type ApFieldTextProps = BasicApFieldProps<InputProps> & {
|
|
14
16
|
emptyText?: string;
|
|
@@ -9,6 +9,8 @@ const j = /* @__PURE__ */ V({
|
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
mode: { default: "edit" },
|
|
12
|
+
class: {},
|
|
13
|
+
style: {},
|
|
12
14
|
prefixCls: {},
|
|
13
15
|
value: {},
|
|
14
16
|
size: {},
|
|
@@ -25,10 +27,10 @@ const j = /* @__PURE__ */ V({
|
|
|
25
27
|
},
|
|
26
28
|
emits: ["update:value"],
|
|
27
29
|
setup(c, { expose: v, emit: y }) {
|
|
28
|
-
const t = c, g = y,
|
|
30
|
+
const t = c, g = y, l = i(), u = i((t == null ? void 0 : t.options) || []), { value: s, updateValue: x } = O(t, g), r = i(!1);
|
|
29
31
|
q(() => {
|
|
30
32
|
var e;
|
|
31
|
-
t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) =>
|
|
33
|
+
t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => u.value = a).finally(() => {
|
|
32
34
|
r.value = !1;
|
|
33
35
|
}));
|
|
34
36
|
});
|
|
@@ -37,18 +39,18 @@ const j = /* @__PURE__ */ V({
|
|
|
37
39
|
const e = o(s);
|
|
38
40
|
if (S(e))
|
|
39
41
|
return t.emptyText;
|
|
40
|
-
const a = (p =
|
|
42
|
+
const a = (p = u.value) == null ? void 0 : p.find(
|
|
41
43
|
(_) => e === F(_)
|
|
42
44
|
);
|
|
43
45
|
return N(a) || t.emptyText;
|
|
44
46
|
});
|
|
45
47
|
function b() {
|
|
46
48
|
var e;
|
|
47
|
-
(e =
|
|
49
|
+
(e = l.value) == null || e.focus();
|
|
48
50
|
}
|
|
49
51
|
function T() {
|
|
50
52
|
var e;
|
|
51
|
-
(e =
|
|
53
|
+
(e = l.value) == null || e.blur();
|
|
52
54
|
}
|
|
53
55
|
return v({
|
|
54
56
|
focus: b,
|
|
@@ -62,9 +64,9 @@ const j = /* @__PURE__ */ V({
|
|
|
62
64
|
})) : (n(), f(o(G), U({ key: 1 }, o(z)(t, ["value", "onUpdate:value", "options", "request"]), {
|
|
63
65
|
value: o(s),
|
|
64
66
|
"onUpdate:value": o(x),
|
|
65
|
-
options:
|
|
67
|
+
options: u.value,
|
|
66
68
|
ref_key: "radioGroupRef",
|
|
67
|
-
ref:
|
|
69
|
+
ref: l
|
|
68
70
|
}), null, 16, ["value", "onUpdate:value", "options"]))
|
|
69
71
|
], 64));
|
|
70
72
|
}
|