@aplus-frontend/ui 0.1.31 → 0.1.33
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 +77 -72
- package/es/src/ap-button/ap-action-button.vue.d.ts +43 -0
- package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
- package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
- package/es/src/ap-button/ap-button.vue.mjs +52 -50
- package/es/src/ap-button/index.d.ts +2 -1
- package/es/src/ap-button/index.mjs +1 -0
- package/es/src/ap-button/interface.d.ts +1 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
- package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/es/src/ap-descriptions/helper.d.ts +19 -1
- package/es/src/ap-descriptions/helper.mjs +22 -12
- package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/es/src/ap-download/ap-download.vue.mjs +51 -40
- package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
- package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
- package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
- package/es/src/ap-form/ap-form.vue.d.ts +3 -1
- package/es/src/ap-form/ap-form.vue2.mjs +130 -80
- package/es/src/ap-form/interface.d.ts +51 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
- package/es/src/ap-form/items/date/index.vue.mjs +10 -9
- package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
- package/es/src/ap-form/items/number/index.vue.mjs +12 -11
- package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
- package/es/src/ap-form/items/select/index.vue.mjs +1 -0
- package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
- package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/utils/get.d.ts +1 -0
- package/es/src/ap-form/utils/get.mjs +12 -0
- package/es/src/ap-form/utils/set.d.ts +6 -0
- package/es/src/ap-form/utils/set.mjs +41 -0
- package/es/src/ap-list/index.vue.d.ts +3 -0
- package/es/src/ap-list/index.vue.mjs +51 -49
- package/es/src/ap-table/ap-table.vue.d.ts +4 -1
- package/es/src/ap-table/ap-table.vue.mjs +65 -59
- package/es/src/ap-table/constants.d.ts +121 -1
- package/es/src/ap-table/interface.d.ts +6 -1
- package/es/src/ap-table/utils.d.ts +121 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
- package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
- package/es/src/business/ap-card/ApCard.vue2.mjs +65 -0
- package/es/src/business/ap-card/index.css +10 -0
- package/es/src/business/ap-card/interface.d.ts +9 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
- package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/es/src/business/ap-expand-alert/style.css +9 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +59 -70
- package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
- package/es/src/business/{title → ap-title}/style.css +4 -4
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/es/src/business/index.d.ts +105 -188
- package/es/src/business/index.mjs +28 -23
- package/es/src/check-card/group.vue.d.ts +7 -1
- package/es/src/check-card/group.vue.mjs +26 -22
- package/es/src/check-card/index.vue.d.ts +5 -2
- package/es/src/check-card/index.vue2.mjs +69 -60
- package/es/src/check-card/interface.d.ts +12 -0
- package/es/src/check-card/style/index.css +8 -5
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/config-provider.mjs +20 -19
- package/es/src/config-provider/constants.d.ts +9 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +20 -1
- package/es/src/editable-table/interface.d.ts +3 -2
- package/es/src/index.mjs +215 -210
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/theme/ap-card/ap-card.css +10 -0
- package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/es/src/theme/ap-title/ap-title.css +4 -4
- package/es/src/theme/check-card/index.css +8 -5
- package/es/src/theme/css-var/index.mjs +33 -15
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +43 -0
- package/lib/src/ap-button/ap-action-button.vue.js +1 -0
- package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/index.d.ts +2 -1
- package/lib/src/ap-button/index.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/lib/src/ap-descriptions/helper.d.ts +19 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +51 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/utils/get.d.ts +1 -0
- package/lib/src/ap-form/utils/get.js +1 -0
- package/lib/src/ap-form/utils/set.d.ts +6 -0
- package/lib/src/ap-form/utils/set.js +1 -0
- package/lib/src/ap-list/index.vue.d.ts +3 -0
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +121 -1
- package/lib/src/ap-table/interface.d.ts +6 -1
- package/lib/src/ap-table/utils.d.ts +121 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/lib/src/business/ap-card/ApCard.vue.js +1 -0
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
- package/lib/src/business/ap-card/index.css +10 -0
- package/lib/src/business/ap-card/interface.d.ts +9 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/lib/src/business/ap-expand-alert/style.css +9 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
- package/lib/src/business/{title → ap-title}/style.css +4 -4
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/lib/src/business/index.d.ts +105 -188
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +7 -1
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +5 -2
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/check-card/interface.d.ts +12 -0
- package/lib/src/check-card/style/index.css +8 -5
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +9 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +20 -1
- package/lib/src/editable-table/interface.d.ts +3 -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/ap-card/ap-card.css +10 -0
- package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/lib/src/theme/ap-title/ap-title.css +4 -4
- package/lib/src/theme/check-card/index.css +8 -5
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +1 -1
- /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
- /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
- /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
package/es/index.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import * as o from "./src/index.mjs";
|
|
|
2
2
|
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
|
-
import { configProviderContextKey as
|
|
5
|
+
import { configProviderContextKey as n, tableDefaultConfig as i } 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
7
|
import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
-
import { defaultNamespace as
|
|
9
|
-
import { ConfigProvider as v, globalConfigCached as
|
|
8
|
+
import { defaultNamespace as P, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as B } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as v, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as k } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { Scrollbar as N } from "./src/scroll-bar/index.mjs";
|
|
12
12
|
import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
|
|
@@ -16,16 +16,16 @@ import { default as U } from "./src/locale/lang/en.mjs";
|
|
|
16
16
|
import { BasicArrow as $, BasicHelp as j, BasicTitle as q } from "./src/basic/index.mjs";
|
|
17
17
|
import { default as Q } from "./src/transition/collapse-transition.vue.mjs";
|
|
18
18
|
import { ExpandTransition as _, ExpandXTransition as ee, FadeTransition as oe, ScaleRotateTransition as re, ScaleTransition as te, ScrollXReverseTransition as ae, ScrollXTransition as pe, ScrollYReverseTransition as fe, ScrollYTransition as me, SlideXReverseTransition as le, SlideXTransition as se, SlideYReverseTransition as de, SlideYTransition as xe } from "./src/transition/index.mjs";
|
|
19
|
-
import { useDescription as
|
|
19
|
+
import { useDescription as ne } 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
23
|
import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
|
|
24
24
|
import { Field as De } from "./src/pro-form/index.mjs";
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as Pe } 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 Ge } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as we } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
29
|
import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
30
|
import { default as Ne } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
31
31
|
import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
|
|
@@ -41,16 +41,16 @@ import { useModal as ro, useModalInner as to } from "./src/modal/hooks/use-modal
|
|
|
41
41
|
import { BaseModal as po } from "./src/modal/index.mjs";
|
|
42
42
|
import { CropperAvatar as mo, CropperImage as lo } from "./src/cropper/index.mjs";
|
|
43
43
|
import { CountdownButton as xo, CountdownInput as uo } from "./src/count-down/index.mjs";
|
|
44
|
-
import { createPrompt as
|
|
44
|
+
import { createPrompt as io } 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
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
49
|
import { default as Do } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
|
-
import { useTable as
|
|
50
|
+
import { useTable as Po } 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 Go } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
|
-
import { default as
|
|
53
|
+
import { default as wo } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
54
|
import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
|
|
55
55
|
import { default as No } 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";
|
|
@@ -68,16 +68,16 @@ import { default as fr } from "./src/ap-form/dependency/index.vue.mjs";
|
|
|
68
68
|
import { ApField as lr } from "./src/ap-field/index.mjs";
|
|
69
69
|
import { ApFieldText as dr } from "./src/ap-field/text/index.mjs";
|
|
70
70
|
import { default as ur } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
71
|
-
import { default as
|
|
71
|
+
import { default as ir } from "./src/ap-field/date/index.vue.mjs";
|
|
72
72
|
import { default as cr } from "./src/ap-field/number/index.vue.mjs";
|
|
73
73
|
import { default as Fr } from "./src/ap-field/radio/index.vue.mjs";
|
|
74
74
|
import { default as br } from "./src/ap-field/switch/index.vue.mjs";
|
|
75
75
|
import { default as Ir } from "./src/ap-field/text-area/index.vue.mjs";
|
|
76
76
|
import { default as Dr } from "./src/ap-field/date-range/index.vue.mjs";
|
|
77
|
-
import { default as
|
|
77
|
+
import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
|
|
78
78
|
import { default as Rr } from "./src/ap-field/text/password.vue.mjs";
|
|
79
79
|
import { default as Gr } from "./src/ap-field/slider/index.vue.mjs";
|
|
80
|
-
import { default as
|
|
80
|
+
import { default as wr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
81
81
|
import { default as kr } from "./src/ap-field/rate/index.vue.mjs";
|
|
82
82
|
import { adminToken as Nr, aplusToken as Er } from "./src/design-token/index.mjs";
|
|
83
83
|
import { ApActionItem as Xr } from "./src/ap-action/index.mjs";
|
|
@@ -94,30 +94,32 @@ import { createWorkOrderModal as ft } from "./src/work-order-modal/createWorkOrd
|
|
|
94
94
|
import { default as lt } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
95
95
|
import { default as dt } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
96
96
|
import { default as ut } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
97
|
-
import { default as
|
|
97
|
+
import { default as it } from "./src/ap-layout/ApInfoLayout.vue.mjs";
|
|
98
98
|
import { NeedNameKeyDefault as ct } from "./src/ap-upload/apUploadTypes.mjs";
|
|
99
99
|
import { default as Ft } from "./src/ap-upload/apUpload.vue.mjs";
|
|
100
100
|
import { ApDownLoadNeedNameKeyDefault as bt } from "./src/ap-download/interface.mjs";
|
|
101
101
|
import { default as It } from "./src/ap-download/ap-download.vue.mjs";
|
|
102
102
|
import { CheckCard as Dt } from "./src/check-card/index.mjs";
|
|
103
|
-
import { default as
|
|
103
|
+
import { default as Pt } from "./src/check-card/group.vue.mjs";
|
|
104
104
|
import { ApModal as Rt } from "./src/ap-modal/index.mjs";
|
|
105
105
|
import { default as Gt } from "./src/ap-list/index.vue.mjs";
|
|
106
|
-
import { default as
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import { default as ia } from "./src/
|
|
118
|
-
import { default as
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
106
|
+
import { default as wt } from "./src/ap-button/ap-button.vue.mjs";
|
|
107
|
+
import { default as kt } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
108
|
+
import { usePageListApTable as Nt } from "./src/business/hooks/usePageListApTable.mjs";
|
|
109
|
+
import { useTableRefresh as Kt } from "./src/business/hooks/useTableRefresh.mjs";
|
|
110
|
+
import { handleExportDownload as Yt } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
111
|
+
import { default as Ot } from "./src/business/ap-table-modal/index.mjs";
|
|
112
|
+
import { useTableModal as zt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
113
|
+
import { useTableSelectModal as Vt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
114
|
+
import { ApAttachment as jt, ApBatchAction as qt, ApBatchActionGroup as Jt, ApCard as Qt, ApExpandAlert as Zt, ApExportGroup as _t, ApImage as ea, ApInputRadio as oa, ApLabel as ra, ApLabelGroup as ta, ApLadder as aa, ApSelectLayout as pa, ApStatus as fa, ApStatusGroup as ma, ApTitle as la } from "./src/business/index.mjs";
|
|
115
|
+
import { ApTransformDataHelper as da } from "./src/utils/ap-trans-data/index.mjs";
|
|
116
|
+
import { useTablePaging as ua } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
117
|
+
import { default as ia } from "./src/ap-table/ap-table.vue.mjs";
|
|
118
|
+
import { default as ca } from "./src/editable-table/index.vue.mjs";
|
|
119
|
+
import { default as Fa } from "./src/editable-table/form-item.vue.mjs";
|
|
120
|
+
import { default as ba } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
121
|
+
import { useMessage as Ia } from "./src/hooks/useMessage.mjs";
|
|
122
|
+
import { useControllableValue as Da } from "./src/hooks/useControllableValue.mjs";
|
|
121
123
|
const p = {
|
|
122
124
|
install: (r) => {
|
|
123
125
|
for (const t in o) {
|
|
@@ -128,32 +130,34 @@ const p = {
|
|
|
128
130
|
};
|
|
129
131
|
export {
|
|
130
132
|
k as APConfigProvider,
|
|
133
|
+
kt as ApActionButton,
|
|
131
134
|
$r as ApActionGroup,
|
|
132
135
|
Xr as ApActionItem,
|
|
133
136
|
Ur as ApActionItemDropdown,
|
|
134
137
|
Hr as ApActionItemModal,
|
|
135
138
|
Wr as ApActionItemPopconfirm,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
jt as ApAttachment,
|
|
140
|
+
qt as ApBatchAction,
|
|
141
|
+
Jt as ApBatchActionGroup,
|
|
142
|
+
wt as ApButton,
|
|
143
|
+
Qt as ApCard,
|
|
140
144
|
_r as ApCustomColumn,
|
|
141
145
|
ot as ApCustomSelect,
|
|
142
|
-
|
|
146
|
+
ba as ApDescriptions,
|
|
143
147
|
bt as ApDownLoadNeedNameKeyDefault,
|
|
144
148
|
It as ApDownload,
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
Zt as ApExpandAlert,
|
|
150
|
+
_t as ApExportGroup,
|
|
147
151
|
lr as ApField,
|
|
148
152
|
ur as ApFieldCheckbox,
|
|
149
|
-
|
|
153
|
+
ir as ApFieldDate,
|
|
150
154
|
Dr as ApFieldDateRange,
|
|
151
155
|
cr as ApFieldNumber,
|
|
152
156
|
Rr as ApFieldPassword,
|
|
153
157
|
Fr as ApFieldRadio,
|
|
154
158
|
kr as ApFieldRate,
|
|
155
|
-
|
|
156
|
-
|
|
159
|
+
wr as ApFieldSegmented,
|
|
160
|
+
Pr as ApFieldSelect,
|
|
157
161
|
Gr as ApFieldSlider,
|
|
158
162
|
br as ApFieldSwitch,
|
|
159
163
|
dr as ApFieldText,
|
|
@@ -165,7 +169,7 @@ export {
|
|
|
165
169
|
ko as ApFormItemDate,
|
|
166
170
|
No as ApFormItemDateRange,
|
|
167
171
|
Zo as ApFormItemGroup,
|
|
168
|
-
|
|
172
|
+
wo as ApFormItemNumber,
|
|
169
173
|
Ko as ApFormItemRadio,
|
|
170
174
|
Yo as ApFormItemSelect,
|
|
171
175
|
Oo as ApFormItemSwitch,
|
|
@@ -175,28 +179,28 @@ export {
|
|
|
175
179
|
er as ApFormList,
|
|
176
180
|
ar as ApFormModalForm,
|
|
177
181
|
rr as ApFormSearchForm,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
ea as ApImage,
|
|
183
|
+
it as ApInfoLayout,
|
|
184
|
+
oa as ApInputRadio,
|
|
185
|
+
ra as ApLabel,
|
|
186
|
+
ta as ApLabelGroup,
|
|
187
|
+
aa as ApLadder,
|
|
184
188
|
Gt as ApList,
|
|
185
189
|
Rt as ApModal,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
pa as ApSelectLayout,
|
|
191
|
+
fa as ApStatus,
|
|
192
|
+
ma as ApStatusGroup,
|
|
193
|
+
ia as ApTable,
|
|
194
|
+
Ot as ApTableModal,
|
|
191
195
|
dt as ApTag,
|
|
192
196
|
ut as ApTagGroup,
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
la as ApTitle,
|
|
198
|
+
da as ApTransformDataHelper,
|
|
195
199
|
Ft as ApUpload,
|
|
196
|
-
|
|
200
|
+
Pe as ApiCascader,
|
|
197
201
|
Re as ApiRadioGroup,
|
|
198
202
|
Ge as ApiSelect,
|
|
199
|
-
|
|
203
|
+
we as ApiTransfer,
|
|
200
204
|
ke as ApiTree,
|
|
201
205
|
Ye as ApiTreeSelect,
|
|
202
206
|
Je as BaseButton,
|
|
@@ -205,7 +209,7 @@ export {
|
|
|
205
209
|
j as BasicHelp,
|
|
206
210
|
q as BasicTitle,
|
|
207
211
|
Dt as CheckCard,
|
|
208
|
-
|
|
212
|
+
Pt as CheckCardGroup,
|
|
209
213
|
K as CollapseContainer,
|
|
210
214
|
Q as CollapseTransition,
|
|
211
215
|
v as ConfigProvider,
|
|
@@ -217,8 +221,8 @@ export {
|
|
|
217
221
|
tt as DictCode,
|
|
218
222
|
co as Dropdown,
|
|
219
223
|
Io as EditTableHeaderIcon,
|
|
220
|
-
|
|
221
|
-
|
|
224
|
+
ca as EditableTable,
|
|
225
|
+
Fa as EditableTableFormItem,
|
|
222
226
|
_ as ExpandTransition,
|
|
223
227
|
ee as ExpandXTransition,
|
|
224
228
|
oe as FadeTransition,
|
|
@@ -254,15 +258,16 @@ export {
|
|
|
254
258
|
Er as aplusToken,
|
|
255
259
|
b as buildLocaleContext,
|
|
256
260
|
S as buildTranslator,
|
|
257
|
-
|
|
261
|
+
n as configProviderContextKey,
|
|
258
262
|
x as configProviderProps,
|
|
259
|
-
|
|
263
|
+
io as createPrompt,
|
|
260
264
|
ft as createWorkOrderModal,
|
|
261
265
|
p as default,
|
|
262
|
-
|
|
266
|
+
P as defaultNamespace,
|
|
263
267
|
U as en,
|
|
264
268
|
qr as generateTableList,
|
|
265
|
-
|
|
269
|
+
w as globalConfigCached,
|
|
270
|
+
Yt as handleExportDownload,
|
|
266
271
|
Se as isComponentFormSchema,
|
|
267
272
|
Ie as isSlotFormSchema,
|
|
268
273
|
c as keysOf,
|
|
@@ -270,26 +275,26 @@ export {
|
|
|
270
275
|
I as localeContextKey,
|
|
271
276
|
M as namespaceContextKey,
|
|
272
277
|
T as provideGlobalConfig,
|
|
273
|
-
|
|
278
|
+
i as tableDefaultConfig,
|
|
274
279
|
g as translate,
|
|
275
280
|
Qr as useCacheColumnSetting,
|
|
276
281
|
Te as useComponentRegister,
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
Da as useControllableValue,
|
|
283
|
+
ne as useDescription,
|
|
279
284
|
Ce as useForm,
|
|
280
285
|
R as useGetDerivedNamespace,
|
|
281
286
|
F as useGlobalConfig,
|
|
282
287
|
D as useLocale,
|
|
283
|
-
|
|
288
|
+
Ia as useMessage,
|
|
284
289
|
ro as useModal,
|
|
285
290
|
eo as useModalContext,
|
|
286
291
|
to as useModalInner,
|
|
287
292
|
B as useNamespace,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
Nt as usePageListApTable,
|
|
294
|
+
Po as useTable,
|
|
295
|
+
zt as useTableModal,
|
|
296
|
+
ua as useTablePaging,
|
|
297
|
+
Kt as useTableRefresh,
|
|
298
|
+
Vt as useTableSelectModal,
|
|
294
299
|
W as zhCn
|
|
295
300
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ApButtonProps } from './interface';
|
|
3
|
+
import { ButtonType } from 'ant-design-vue/es/button';
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption< ApButtonProps>, {
|
|
11
|
+
type: string;
|
|
12
|
+
minWidth: boolean;
|
|
13
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption< ApButtonProps>, {
|
|
14
|
+
type: string;
|
|
15
|
+
minWidth: boolean;
|
|
16
|
+
}>>>, {
|
|
17
|
+
type: ButtonType | "borderLink";
|
|
18
|
+
minWidth: boolean | number | string;
|
|
19
|
+
}, {}>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
24
|
+
default: D[K];
|
|
25
|
+
}> : P[K];
|
|
26
|
+
};
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as s, openBlock as l, createBlock as i, normalizeProps as t, guardReactiveProps as r, createSlots as c, renderList as d, withCtx as m, renderSlot as u } from "vue";
|
|
2
|
+
import "./ap-button.vue2.mjs";
|
|
3
|
+
import f from "./ap-button.vue.mjs";
|
|
4
|
+
const k = /* @__PURE__ */ s({
|
|
5
|
+
__name: "ap-action-button",
|
|
6
|
+
props: {
|
|
7
|
+
prefixCls: {},
|
|
8
|
+
htmlType: {},
|
|
9
|
+
shape: {},
|
|
10
|
+
size: {},
|
|
11
|
+
loading: { type: [Boolean, Object] },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
ghost: { type: Boolean },
|
|
14
|
+
block: { type: Boolean },
|
|
15
|
+
danger: { type: Boolean },
|
|
16
|
+
icon: {},
|
|
17
|
+
href: {},
|
|
18
|
+
target: {},
|
|
19
|
+
title: {},
|
|
20
|
+
onMousedown: {},
|
|
21
|
+
type: { default: "borderLink" },
|
|
22
|
+
borderLinkColor: {},
|
|
23
|
+
minWidth: { type: [Boolean, Number, String], default: !0 },
|
|
24
|
+
onClick: {}
|
|
25
|
+
},
|
|
26
|
+
setup(n) {
|
|
27
|
+
const a = n;
|
|
28
|
+
return (e, y) => (l(), i(f, t(r({
|
|
29
|
+
...e.$attrs,
|
|
30
|
+
...a
|
|
31
|
+
})), c({ _: 2 }, [
|
|
32
|
+
d(Object.keys(e.$slots), (o) => ({
|
|
33
|
+
name: o,
|
|
34
|
+
fn: m((p) => [
|
|
35
|
+
u(e.$slots, o, t(r(p || {})))
|
|
36
|
+
])
|
|
37
|
+
}))
|
|
38
|
+
]), 1040));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
k as default
|
|
43
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as L, ref as $, computed as a, openBlock as M, createBlock as j, unref as c, mergeProps as w, createSlots as P, renderList as x, withCtx as _, renderSlot as N, normalizeProps as z, guardReactiveProps as A } from "vue";
|
|
2
2
|
import "./index.css";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as F } from "ant-design-vue";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
|
-
import { omit as
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
import { useGlobalConfig as
|
|
8
|
-
const
|
|
5
|
+
import { omit as O } from "lodash-unified";
|
|
6
|
+
import { useNamespace as S } from "../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useGlobalConfig as T } from "../config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
const G = 88, Q = /* @__PURE__ */ L({
|
|
9
9
|
__name: "ap-button",
|
|
10
10
|
props: {
|
|
11
11
|
prefixCls: {},
|
|
@@ -27,90 +27,92 @@ const D = 88, X = /* @__PURE__ */ x({
|
|
|
27
27
|
minWidth: { type: [Boolean, Number, String], default: !1 },
|
|
28
28
|
onClick: {}
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const e =
|
|
30
|
+
setup(y) {
|
|
31
|
+
const e = y, d = {
|
|
32
32
|
aplus: "#0070FF",
|
|
33
33
|
admin: "#34b77c"
|
|
34
|
-
}, { b: p } =
|
|
35
|
-
() => e.borderLinkColor || d[
|
|
36
|
-
), f =
|
|
37
|
-
() => e.type === "borderLink" ?
|
|
38
|
-
), m =
|
|
34
|
+
}, { b: p } = S("ap-action-button"), g = T("uiMode"), s = $(!1), h = a(
|
|
35
|
+
() => e.borderLinkColor || d[g.value] || d.aplus
|
|
36
|
+
), f = a(
|
|
37
|
+
() => e.type === "borderLink" ? h.value : void 0
|
|
38
|
+
), m = a(() => W(f.value)), v = a(() => e.minWidth === !0 ? `${G}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), k = a(
|
|
39
39
|
() => (e.type === "borderLink" ? "default" : e.type) || "default"
|
|
40
|
-
), b =
|
|
41
|
-
function
|
|
42
|
-
const
|
|
40
|
+
), b = a(() => e.loading ?? s.value ?? !1);
|
|
41
|
+
function C() {
|
|
42
|
+
const t = O(e, [
|
|
43
43
|
"type",
|
|
44
44
|
"borderLinkColor",
|
|
45
45
|
"minWidth",
|
|
46
46
|
"onClick",
|
|
47
47
|
"loading"
|
|
48
48
|
]);
|
|
49
|
-
return
|
|
50
|
-
...
|
|
51
|
-
type:
|
|
52
|
-
onclick:
|
|
49
|
+
return t ? {
|
|
50
|
+
...t,
|
|
51
|
+
type: k.value,
|
|
52
|
+
onclick: B
|
|
53
53
|
} : {};
|
|
54
54
|
}
|
|
55
|
-
async function
|
|
56
|
-
var
|
|
55
|
+
async function B() {
|
|
56
|
+
var t;
|
|
57
57
|
if (!b.value) {
|
|
58
|
-
|
|
58
|
+
s.value = !0;
|
|
59
59
|
try {
|
|
60
|
-
await ((
|
|
60
|
+
await ((t = e.onClick) == null ? void 0 : t.call(e));
|
|
61
61
|
} finally {
|
|
62
|
-
|
|
62
|
+
s.value = !1;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
var
|
|
66
|
+
function W(t, u = "0.7") {
|
|
67
|
+
var i;
|
|
68
68
|
try {
|
|
69
|
-
|
|
70
|
-
if (
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
let o = t == null ? void 0 : t.toLowerCase();
|
|
70
|
+
if (o && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(o)) {
|
|
71
|
+
if (o.length === 4) {
|
|
72
|
+
let r = "#";
|
|
73
|
+
for (let l = 1; l < 4; l += 1)
|
|
74
|
+
r += o.slice(l, l + 1).concat(o.slice(l, l + 1));
|
|
75
|
+
o = r;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
const n = [];
|
|
78
|
+
for (let r = 1; r < 7; r += 2)
|
|
79
|
+
n.push(parseInt("0x" + o.slice(r, r + 2)));
|
|
80
|
+
return "rgba(" + n.join(",") + "," + u + ")";
|
|
79
81
|
}
|
|
80
|
-
if (
|
|
81
|
-
let
|
|
82
|
-
return
|
|
82
|
+
if (o && o.startsWith("rgb")) {
|
|
83
|
+
let n = o.match(/(\d(\.\d+)?)+/g);
|
|
84
|
+
return n = (i = n == null ? void 0 : n.slice(0, 3)) == null ? void 0 : i.concat(u), "rgba(" + n.join(",") + ")";
|
|
83
85
|
}
|
|
84
|
-
return
|
|
86
|
+
return o;
|
|
85
87
|
} catch {
|
|
86
88
|
return;
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
|
-
return (
|
|
91
|
+
return (t, u) => (M(), j(c(F), w({
|
|
90
92
|
class: {
|
|
91
93
|
[c(p)()]: !0,
|
|
92
94
|
[`${c(p)()}-border-link`]: m.value
|
|
93
95
|
}
|
|
94
96
|
}, {
|
|
95
|
-
...
|
|
96
|
-
...
|
|
97
|
+
...t.$attrs,
|
|
98
|
+
...C()
|
|
97
99
|
}, {
|
|
98
100
|
style: {
|
|
99
101
|
color: f.value,
|
|
100
|
-
minWidth:
|
|
102
|
+
minWidth: v.value,
|
|
101
103
|
"--button-border-color": m.value
|
|
102
104
|
},
|
|
103
105
|
loading: b.value
|
|
104
|
-
}),
|
|
105
|
-
|
|
106
|
-
name:
|
|
107
|
-
fn:
|
|
108
|
-
|
|
106
|
+
}), P({ _: 2 }, [
|
|
107
|
+
x(Object.keys(t.$slots), (i) => ({
|
|
108
|
+
name: i,
|
|
109
|
+
fn: _((o) => [
|
|
110
|
+
N(t.$slots, i, z(A(o || {})))
|
|
109
111
|
])
|
|
110
112
|
}))
|
|
111
113
|
]), 1040, ["class", "style", "loading"]));
|
|
112
114
|
}
|
|
113
115
|
});
|
|
114
116
|
export {
|
|
115
|
-
|
|
117
|
+
Q as default
|
|
116
118
|
};
|