@aplus-frontend/ui 7.0.0-beta.3 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/hooks/use-columns-def.mjs +71 -70
- package/es/src/ag-grid/index.vue.mjs +1 -0
- package/es/src/ag-grid/interface.d.ts +1 -0
- package/es/src/ag-grid/style/custom-header.d.ts +2 -2
- package/es/src/ag-grid/style/editable.d.ts +2 -2
- package/es/src/ag-grid/style/index.d.ts +2 -2
- package/es/src/ap-action/item-dropdown/index.vue.mjs +18 -17
- package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
- package/es/src/ap-action/style/index.d.ts +2 -2
- package/es/src/ap-button/style/index.d.ts +2 -2
- package/es/src/ap-button/utils/index.mjs +16 -16
- package/es/src/ap-descriptions/style/index.d.ts +2 -2
- package/es/src/ap-download/ap-download.vue.d.ts +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +27 -27
- package/es/src/ap-download/interface.d.ts +4 -0
- package/es/src/ap-download/style/index.d.ts +2 -2
- package/es/src/ap-drawer/style/index.d.ts +2 -2
- package/es/src/ap-field/style/index.d.ts +2 -2
- package/es/src/ap-form/style/drawer-form.d.ts +2 -2
- package/es/src/ap-form/style/item-group.d.ts +2 -2
- package/es/src/ap-form/style/item-text-group.d.ts +2 -2
- package/es/src/ap-form/style/item.d.ts +2 -2
- package/es/src/ap-form/style/modal-form.d.ts +2 -2
- package/es/src/ap-form/style/search-form-sorter.d.ts +2 -2
- package/es/src/ap-form/style/search-form.d.ts +2 -2
- package/es/src/ap-grid/style/editable.d.ts +2 -2
- package/es/src/ap-grid/style/index.d.ts +2 -2
- package/es/src/ap-grid/utils/col.mjs +33 -33
- package/es/src/ap-list/style/index.d.ts +2 -2
- package/es/src/ap-modal/interface.d.ts +31 -11
- package/es/src/ap-modal/utils/createModal.mjs +52 -45
- package/es/src/ap-pro-card/style/divider.d.ts +2 -2
- package/es/src/ap-pro-card/style/index.d.ts +2 -2
- package/es/src/ap-pro-card/style/operation.d.ts +2 -2
- package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
- package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
- package/es/src/ap-pro-card/style/title.d.ts +2 -2
- package/es/src/ap-table/style/ellipsis.d.ts +2 -2
- package/es/src/ap-table/style/index-comp.d.ts +2 -2
- package/es/src/ap-table/style/index.d.ts +2 -2
- package/es/src/ap-table/style/setting.d.ts +2 -2
- package/es/src/ap-tag/style/group.d.ts +2 -2
- package/es/src/ap-tag/style/index.d.ts +2 -2
- package/es/src/ap-upload/style/index.d.ts +2 -2
- package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
- package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
- package/es/src/business/ag-grid-modal/utils.mjs +23 -23
- package/es/src/business/ap-appendix/style/index.d.ts +3 -3
- package/es/src/business/ap-appendix/style/index.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +70 -66
- package/es/src/business/ap-attachment/style/index.d.ts +2 -2
- package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
- package/es/src/business/ap-batch-action/style/index.mjs +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
- package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
- package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
- package/es/src/business/ap-card/style/index.d.ts +3 -3
- package/es/src/business/ap-card/style/index.mjs +8 -8
- package/es/src/business/ap-copy/style/index.d.ts +2 -2
- package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
- package/es/src/business/ap-expand-alert/index.d.ts +5 -2
- package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
- package/es/src/business/ap-image/style/index.d.ts +3 -3
- package/es/src/business/ap-image/style/index.mjs +6 -6
- package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
- package/es/src/business/ap-label/style/index.d.ts +2 -2
- package/es/src/business/ap-ladder/style/index.d.ts +2 -2
- package/es/src/business/ap-product-info/style/index.d.ts +2 -2
- package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
- package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
- package/es/src/business/ap-size-input/style/index.d.ts +2 -2
- package/es/src/business/ap-status/style/index.d.ts +2 -2
- package/es/src/business/ap-summary/style/index.d.ts +2 -2
- package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
- package/es/src/business/ap-title/style/index.d.ts +2 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
- package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
- package/es/src/business/ap-view/style/index.d.ts +3 -3
- package/es/src/business/ap-view/style/index.mjs +1 -1
- package/es/src/business/batch-input-group/style/index.d.ts +2 -2
- package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
- package/es/src/check-card/style/index.d.ts +2 -2
- package/es/src/editable-table/style/index.d.ts +2 -2
- package/es/src/full-screen/style/index.d.ts +2 -2
- package/es/src/mask/style/index.d.ts +2 -2
- package/es/src/scroll-bar/style/index.d.ts +2 -2
- package/es/src/scroll-view/style/index.d.ts +2 -2
- package/es/src/splitter/style/index.d.ts +2 -2
- package/es/src/text/style/group.d.ts +2 -2
- package/es/src/text/style/index.d.ts +2 -2
- package/es/src/utils/cssinjs/index.d.ts +2 -2
- package/es/src/utils/cssinjs/index.mjs +41 -35
- package/es/src/utils/cssinjs/plugin-specificity.mjs +13 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +1 -0
- package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
- package/lib/src/ag-grid/style/editable.d.ts +2 -2
- package/lib/src/ag-grid/style/index.d.ts +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
- package/lib/src/ap-action/style/index.d.ts +2 -2
- package/lib/src/ap-button/style/index.d.ts +2 -2
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/style/index.d.ts +2 -2
- package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +4 -0
- package/lib/src/ap-download/style/index.d.ts +2 -2
- package/lib/src/ap-drawer/style/index.d.ts +2 -2
- package/lib/src/ap-field/style/index.d.ts +2 -2
- package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
- package/lib/src/ap-form/style/item-group.d.ts +2 -2
- package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
- package/lib/src/ap-form/style/item.d.ts +2 -2
- package/lib/src/ap-form/style/modal-form.d.ts +2 -2
- package/lib/src/ap-form/style/search-form-sorter.d.ts +2 -2
- package/lib/src/ap-form/style/search-form.d.ts +2 -2
- package/lib/src/ap-grid/style/editable.d.ts +2 -2
- package/lib/src/ap-grid/style/index.d.ts +2 -2
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-list/style/index.d.ts +2 -2
- package/lib/src/ap-modal/interface.d.ts +31 -11
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
- package/lib/src/ap-pro-card/style/index.d.ts +2 -2
- package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
- package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
- package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
- package/lib/src/ap-pro-card/style/title.d.ts +2 -2
- package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
- package/lib/src/ap-table/style/index-comp.d.ts +2 -2
- package/lib/src/ap-table/style/index.d.ts +2 -2
- package/lib/src/ap-table/style/setting.d.ts +2 -2
- package/lib/src/ap-tag/style/group.d.ts +2 -2
- package/lib/src/ap-tag/style/index.d.ts +2 -2
- package/lib/src/ap-upload/style/index.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/utils.js +1 -1
- package/lib/src/business/ap-appendix/style/index.d.ts +3 -3
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
- package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
- package/lib/src/business/ap-batch-action/style/index.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
- package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
- package/lib/src/business/ap-card/style/index.d.ts +3 -3
- package/lib/src/business/ap-card/style/index.js +1 -1
- package/lib/src/business/ap-copy/style/index.d.ts +2 -2
- package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
- package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
- package/lib/src/business/ap-image/style/index.d.ts +3 -3
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
- package/lib/src/business/ap-label/style/index.d.ts +2 -2
- package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
- package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
- package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
- package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
- package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
- package/lib/src/business/ap-status/style/index.d.ts +2 -2
- package/lib/src/business/ap-summary/style/index.d.ts +2 -2
- package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/style/index.d.ts +2 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
- package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
- package/lib/src/business/ap-view/style/index.d.ts +3 -3
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/style/index.d.ts +2 -2
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/check-card/style/index.d.ts +2 -2
- package/lib/src/editable-table/style/index.d.ts +2 -2
- package/lib/src/full-screen/style/index.d.ts +2 -2
- package/lib/src/mask/style/index.d.ts +2 -2
- package/lib/src/scroll-bar/style/index.d.ts +2 -2
- package/lib/src/scroll-view/style/index.d.ts +2 -2
- package/lib/src/splitter/style/index.d.ts +2 -2
- package/lib/src/text/style/group.d.ts +2 -2
- package/lib/src/text/style/index.d.ts +2 -2
- package/lib/src/utils/cssinjs/index.d.ts +2 -2
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/utils/cssinjs/plugin-specificity.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ModalProps, ModalFuncProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { ModalFunc, ModalStaticFunctions } from '@aplus-frontend/antdv/lib/modal/confirm';
|
|
3
|
-
import { AppContext } from 'vue';
|
|
4
|
-
export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon'> & Partial<{
|
|
3
|
+
import { AppContext, VNodeChild } from 'vue';
|
|
4
|
+
export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon' | 'footer'> & Partial<{
|
|
5
5
|
/**
|
|
6
6
|
* 点击取消回调
|
|
7
7
|
* @param params content组件内使用defineExpose导出的对象
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
onCancel: (
|
|
10
|
+
onCancel: (contentExposed: ContentRecord) => any | Promise<any>;
|
|
11
11
|
/**
|
|
12
12
|
* 点击确定回调
|
|
13
13
|
* @param params content组件内使用defineExpose导出的对象
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
onOk: (
|
|
16
|
+
onOk: (contentExposed: ContentRecord) => any | Promise<any>;
|
|
17
17
|
/**
|
|
18
18
|
* 指定弹框挂载的 HTML 节点
|
|
19
19
|
*/
|
|
@@ -34,8 +34,28 @@ export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open'
|
|
|
34
34
|
* 弹窗的上下文,一般用于获取全局注册组件、vuex 等内容
|
|
35
35
|
*/
|
|
36
36
|
appContext: AppContext;
|
|
37
|
+
/**
|
|
38
|
+
* 底部内容,当不需要默认底部按钮时,可以设为 :footer="null"
|
|
39
|
+
*/
|
|
40
|
+
footer: ((params: {
|
|
41
|
+
/**
|
|
42
|
+
* 原始的底部内容
|
|
43
|
+
*/
|
|
44
|
+
originNode: VNodeChild;
|
|
45
|
+
/**
|
|
46
|
+
* 底部按钮
|
|
47
|
+
*/
|
|
48
|
+
extra: {
|
|
49
|
+
okBtn: VNodeChild;
|
|
50
|
+
cancelBtn: VNodeChild;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* content组件内使用defineExpose导出的对象
|
|
54
|
+
*/
|
|
55
|
+
contentExposed: ContentRecord;
|
|
56
|
+
}) => VNodeChild) | VNodeChild;
|
|
37
57
|
}>;
|
|
38
|
-
export type CreateModalFuncReturn = {
|
|
58
|
+
export type CreateModalFuncReturn<ContentRecord = any> = {
|
|
39
59
|
/**
|
|
40
60
|
* 销毁弹框
|
|
41
61
|
* @returns
|
|
@@ -46,7 +66,7 @@ export type CreateModalFuncReturn = {
|
|
|
46
66
|
* @param newConfig
|
|
47
67
|
* @returns
|
|
48
68
|
*/
|
|
49
|
-
update: (newConfig: CreateModalFuncProps) => void;
|
|
69
|
+
update: (newConfig: CreateModalFuncProps<ContentRecord>) => void;
|
|
50
70
|
/**
|
|
51
71
|
* 打开弹框
|
|
52
72
|
* @returns
|
|
@@ -58,7 +78,7 @@ export type CreateModalFuncReturn = {
|
|
|
58
78
|
*/
|
|
59
79
|
close: () => void;
|
|
60
80
|
};
|
|
61
|
-
export type CreateModalFunc = (props: CreateModalFuncProps) => CreateModalFuncReturn
|
|
81
|
+
export type CreateModalFunc = <ContentRecord = any>(props: CreateModalFuncProps<ContentRecord>) => CreateModalFuncReturn<ContentRecord>;
|
|
62
82
|
export type ModalStreamNextFunc<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = (option?: {
|
|
63
83
|
/**
|
|
64
84
|
* 下一步弹框的id
|
|
@@ -121,18 +141,18 @@ export type ModalFuncStream<ModalType extends ModalStreamTypeKey = ModalStreamTy
|
|
|
121
141
|
export type CreateModalStream<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = Omit<CreateModalFuncProps, 'destroyOnClose' | 'onOk' | 'onCancel'> & {
|
|
122
142
|
/**
|
|
123
143
|
* 点击确定回调
|
|
124
|
-
* * @param
|
|
144
|
+
* * @param contentExposed content组件内使用defineExpose导出的对象
|
|
125
145
|
* @param next 下一步
|
|
126
146
|
* @returns
|
|
127
147
|
*/
|
|
128
|
-
onOk?: (
|
|
148
|
+
onOk?: (contentExposed: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
|
|
129
149
|
/**
|
|
130
150
|
* 点击取消回调
|
|
131
|
-
* * @param
|
|
151
|
+
* * @param contentExposed content组件内使用defineExpose导出的对象
|
|
132
152
|
* @param next 下一步
|
|
133
153
|
* @returns
|
|
134
154
|
*/
|
|
135
|
-
onCancel?: (
|
|
155
|
+
onCancel?: (contentExposed: any, next: ModalStreamNextFunc<ModalType>) => any | Promise<any>;
|
|
136
156
|
};
|
|
137
157
|
export type ModalStreamTypeKey = keyof ModalStreamType;
|
|
138
158
|
export type CreateModalStreamProps<ModalType extends ModalStreamTypeKey = ModalStreamTypeKey> = ModalType extends ModalStreamTypeKey ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("@aplus-frontend/antdv"),u=require("../../config-provider/config-provider.js"),O=require("lodash-unified"),q=require("@aplus-frontend/utils");require("../../config-provider/index.js");const f=require("./util.js"),N=require("../../utils/index.js"),P=require("../../config-provider/hooks/use-namespace.js"),k=o=>{let t,r;const{destroyOnClose:i=!0,wrapperOffset:a=!1}=o,{b:c}=P.useNamespace("ap-modal");function d(){t&&t(!1),setTimeout(()=>{n.render(null,s),s.parentElement?.removeChild(s)},500)}function h(){t&&t(!0)}function p(){t&&t(!1)}function C(e){r&&r(e)}const m=n.defineComponent({data(){return{open:i,props:o}},created(){t=e=>{this.open=e},r=e=>{this.props={...this.props,...e}}},methods:{async handleCancel(){if(this.props?.onCancel){const e=this.props?.content?.component?.exposed??void 0;await this.props?.onCancel(e)}i?d():p()},async handleOk(){try{if(r({confirmLoading:!0}),this.props?.onOk){const e=this.props?.content?.component?.exposed??void 0;await this.props.onOk(e)}r({confirmLoading:!1}),i?d():p()}catch{r({confirmLoading:!1})}},handleFooter(e){return o?.footer!==void 0?typeof o.footer=="function"?o.footer({...e,contentExposed:this.props?.content?.component?.exposed??void 0}):o.footer:e?.originNode}},render(){const e=O.omit(this.props,["onCancel","onOk","open","onUpdate:open","getContainer","icon","footer"]);return n.createVNode(u.ConfigProvider,u.globalConfigCached.value,{default:()=>[n.createVNode(b.Modal,n.mergeProps({class:{[c()]:!0,[c("wrapper")]:a},centered:!0},e,{open:this.open,onCancel:this.handleCancel,onOk:this.handleOk,footer:this?.handleFooter}),{default:()=>[n.createVNode("div",{class:{[c("body-wrapper")]:a},style:a===!1?{}:{maxHeight:`calc(100vh - ${(a===!0?100:q.isNumeric(a)?Number(a):100)*2}px)`}},[this.props?.content])]})]})}}),g=f.getContainerDom(u.globalConfigCached?.value?.getPopupContainer),x=f.getContainerDom(o.getContainer),v=g||x||N.getTopWindow().document.body,s=document.createElement("div");v.appendChild(s);const l=n.h(m),y=f.getModalGlobalAppContext();return l.appContext=o.appContext||y||l.appContext,n.render(l,s),{destroy:d,update:C,open:h,close:p}};exports.createModal=k;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
2
|
import { ProCardToken } from './token';
|
|
3
|
-
import {
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
4
|
export declare const genProCardDividerStyle: GenStyleFunc<ProCardToken>;
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
2
|
import { ProCardToken } from './token';
|
|
3
|
-
import {
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
4
|
export declare const genProCardStyle: GenStyleFunc<ProCardToken>;
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genProCardOperationStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
2
|
import { ProCardToken } from './token';
|
|
3
|
-
import {
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
4
|
export declare const genProCardStatisticsStyle: GenStyleFunc<ProCardToken>;
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genProCardTitleStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genTableEllipsisCellStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genTableIndexCellStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GenStyleFunc, StyleMixin } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export type ApTableToken = {
|
|
4
4
|
apTableHeaderBg: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const genSettingTriggerBtnStyle: StyleMixin;
|
|
7
7
|
export declare const genApTableStyle: GenStyleFunc<ApTableToken>;
|
|
8
|
-
declare const _default: (prefixCls: string) =>
|
|
8
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
9
9
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genTableSettingStyle: GenStyleFunc;
|
|
4
4
|
export declare const genTableSettingSelectGroupStyle: GenStyleFunc;
|
|
5
5
|
export declare const genTableSettingSortableItemMetaStyle: GenStyleFunc;
|
|
6
6
|
export declare const genTableSettingSortableItemStyle: GenStyleFunc;
|
|
7
7
|
export declare const genTableSettingSorterStyle: GenStyleFunc;
|
|
8
|
-
declare const _default: (prefixCls: string) =>
|
|
8
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
9
9
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genTagGroupStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genApTagStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./constants.js"),h=require("lodash-unified");function p(e,t,r){let n=null;return{request:async s=>{const i=e;if(!i)return r?.(0),{data:[],total:0};n&&(s=Object.assign(s,n));const{records:l,total:c}=await i(Object.assign({},s));return r?.(l.length||0),{data:l.map(d=>u(d,t)),total:c}},setExtraParams:s=>{n=s||null}}}function u(e,t){return h.isFunction(t)?{...e,[a.ROW_KEY]:t(e)}:e}function f(e){return Reflect.deleteProperty(e,a.ROW_KEY),e}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./constants.js"),h=require("lodash-unified");function p(e,t,r){let n=null;return{request:async s=>{const i=e;if(!i)return r?.(0),{data:[],total:0};n&&(s=Object.assign(s,n));const{records:l,total:c}=await i(Object.assign({},s));return r?.(l.length||0),{data:l.map(d=>u(d,t)),total:c}},setExtraParams:s=>{n=s||null}}}function u(e,t){return h.isFunction(t)?{...e,[a.ROW_KEY]:t(e)}:e}function f(e){return Reflect.deleteProperty(e,a.ROW_KEY),e}function g(e){const{renderSelectedItem:t,rightTitle:r,rightBottom:n,...o}=e||{};return{props:{...o,layoutType:e&&"two-column"},slots:{renderSelectedItem:t,rightTitle:r,rightBottom:n}}}class F{constructor(){this.p=null,this.operateFn=null}buildPromise(){return this.operateFn&&this.operateFn.reject("Ignored Reject: reuse"),this.p=new Promise((t,r)=>{this.operateFn={reject:r,resolve:t}}),this.p}clear(){this.p=null,this.operateFn=null}resolve(t){this.operateFn&&(this.operateFn.resolve(t),this.clear())}reject(t){this.operateFn&&(this.operateFn.reject("Ignored Reject: "+t),this.clear())}}exports.AsyncCallback=F;exports.addRowKeyField=u;exports.delRowKeyField=f;exports.genRequest=p;exports.getModalLayoutConfig=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
2
|
import { AppendixToken } from './token';
|
|
3
|
-
import {
|
|
4
|
-
export declare const
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
export declare const genApAppendixStyle: GenStyleFunc<AppendixToken>;
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),i=require("./token.js"),o=e=>{const{componentCls:t}=e;return{[t]:{[`${t}__suffix`]:{width:"100%",display:"flex",alignItems:"center"},[`${t}__download-all`]:{marginLeft:"auto",padding:0,height:"min-content"},[`${t}__file-area`]:{marginTop:"12px","&--border":{border:`1px dashed ${e.borderColorBase}`,padding:"12px",borderRadius:"4px"},"&-content":{display:"grid",gap:"16px 80px",gridTemplateColumns:e.apAppendixColumn,"&-item":{overflow:"hidden",userSelect:"none","&-content":{display:"flex",alignItems:"center",width:"max-content",cursor:"pointer",maxWidth:"100%"},"&-icon":{marginRight:"8px",svg:{width:"16px",color:e.textColor4}},"&-file-name":{minWidth:0,overflow:"hidden",width:"max-content",display:"flex",alignItems:"center",".ant-typography":{fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.textColor2,transition:"color 0.2s"}},"&-content:hover":{".ant-typography":{color:e.colorLink}},"&--loading":{"&-content":{cursor:"not-allowed"},".ant-typography":{color:e.textColor4},"&-content:hover":{".ant-typography":{color:e.textColor4}}}}}},[`${t}__empty`]:{".ant-empty":{margin:0,"&-description":{marginBottom:0}}}}}},r=n.genComponentStyleHook("ApAppendix",e=>[o(e)],i.defaultToken);exports.default=r;exports.genApAppendixStyle=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const _=require("./constans.js"),f=require("../../ap-download/utils/getFileInfo.js"),G=require("../../ap-download/hooks/index.js"),A=require("lodash-unified"),g=require("@ant-design/icons-vue"),R=require("../../utils/warning.js"),U=require("./style/index.js"),j=require("../../config-provider/hooks/use-namespace.js"),h=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-locale.js"),W=e.defineComponent({name:"ApAttachment",props:_.ApAttachmentProps(),setup(t,{emit:N}){const{b:q,e:a}=j.useNamespace("ap-attachment"),p=U.default("ap-attachment"),O=h.useGlobalConfig("uiMode"),C=h.useGlobalConfig("apUpload"),L=h.useGlobalConfig("downloadCenterTriggerConfig"),{lang:x,t:r}=z.useLocale(),o=e.ref(!1),c=e.ref(""),d=e.useSlots(),T=e.computed(()=>x.value==="zh-cn"?"zh_CN":"en_US"),i=e.computed(()=>t.needName??C?.value?.needName),m=e.computed(()=>t.attachmentList.length===1),w=e.computed(()=>i.value?t.attachmentList.length>0&&i.value&&i.value?.nameKey?t.attachmentList[0][i.value.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),I=e.computed(()=>m.value?w.value:r("ap.apAttachment.downloadall")),V=e.computed(()=>t.color?t.color:O.value==="aplus"?"#0070FF":"#1890FF"),b=e.computed(()=>({"--download-main-color":V.value,"--download-main-color-opacity":f.getHexWithOpacity(V.value,.6)})),k=e.computed(()=>t.getOssAccess||C.value?.getOssAccess),P=e.computed(()=>{const l=d.default?d.default()[0]:null;return l?e.cloneVNode(l,{style:{"font-size":"16px"}}):null}),v=A.debounce(async(l,u)=>{if(!t.disabled){o.value=!0,u&&(c.value=u);try{const n=A.isArray(e.toRaw(l))?e.toRaw(l):[e.toRaw(l)];if(L.value?.trigger){const s=f.getFileInfo(i.value,n).map(F=>({objectName:F.path,fileName:F.fileName}));L.value?.trigger(s),N("downloadCallback",s)}else{const s=await(await G.useOssInit(k.value,e.unref(T))).downloadFile(f.getFileInfo(t.needName,n));N("downloadCallback",s)}}catch(n){R.warning(!1,n)}finally{o.value=!1,c.value=""}}},500),M=l=>l&&l.length>0?e.createVNode("ul",{class:[a("file-list"),p.value],style:b.value},[l.map((u,n)=>e.createVNode("li",{key:n,class:[a("file-item")],onClick:()=>v(u,n+1)},[o.value&&c.value===n+1?e.createVNode("span",{class:[a("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,u.fileName])),e.createVNode("li",{class:[a("download-all")],onClick:()=>v(t.attachmentList,"all")},[o.value&&c.value==="all"?e.createVNode("span",{class:[a("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,r("ap.apAttachment.downloadall")])]):null;return()=>t.attachmentList?.length>0&&e.createVNode("div",{class:[q(),p.value],style:[b.value]},[e.createVNode(y.Tooltip,{title:I.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[a("content")],onClick:()=>v(m.value?t.attachmentList[0]:t.attachmentList,"global")},[o.value&&c.value==="global"?e.createVNode("div",{class:[a("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,d.default?e.createVNode("div",{class:[a("text-render")]},[P.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[a("text-inner")],style:{"max-width":t.maxWidth?t.maxWidth+"px":"auto"}},[w.value])])]}),e.createVNode(y.Popover,{content:M(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!m.value&&e.createVNode("div",{class:[a("more")]},[r("ap.apAttachment.more")])]})])}});exports.default=W;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genApBatchActionStyle: GenStyleFunc<BaseToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",[`${t}-header`]:{width:"100%",paddingBottom:"8px",marginBottom:"8px",borderBottom:`1px solid ${e.colorBg1}`},[`${t}-body`]:{width:"100%",display:"flex",alignItems:"center",".selected-desc":{display:"flex",alignItems:"center",marginRight:"16px",flexShrink:"0","&-conut":{display:"flex",alignItems:"center",fontSize:e.fontSize,color:e.textColor3,span:{color:e.colorPrimary,fontWeight:"bold",minWidth:"10px",textAlign:"center",display:"inline-block"}},"&-clean":{marginLeft:"8px","& > *":{padding:0}}}}}}},i=n.genComponentStyleHook("ApBatchAction",e=>[o(e)]);exports.default=i;exports.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",[`${t}-header`]:{width:"100%",paddingBottom:"8px",marginBottom:"8px",borderBottom:`1px solid ${e.colorBg1}`},[`${t}-body`]:{width:"100%",display:"flex",alignItems:"center",".selected-desc":{display:"flex",alignItems:"center",marginRight:"16px",flexShrink:"0","&-conut":{display:"flex",alignItems:"center",fontSize:e.fontSize,color:e.textColor3,span:{color:e.colorPrimary,fontWeight:"bold",minWidth:"10px",textAlign:"center",display:"inline-block"}},"&-clean":{marginLeft:"8px","& > *":{padding:0}}}}}}},i=n.genComponentStyleHook("ApBatchAction",e=>[o(e)]);exports.default=i;exports.genApBatchActionStyle=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../ap-button/index.js");require("./MenuItemGroup.vue.js");require("../../config-provider/index.js");const C=require("@ant-design/icons-vue"),S=require("@aplus-frontend/hooks"),L=require("../../ap-table/context.js"),x=require("./style/index.js"),N=require("../../config-provider/hooks/use-namespace.js"),A=require("../../config-provider/hooks/use-locale.js"),f=require("./MenuItemGroup.vue2.js"),R=require("../../ap-button/ap-button.vue.js"),D=e.defineComponent({__name:"ApBatchActionGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(b,{expose:h}){const{b:c}=N.useNamespace("ap-batch-action-group"),_=x.default("ap-batch-action-group"),{t:w}=A.useLocale(),{columns:P,dataSource:y}=L.useInjectApTable(),t=b,{hasPermission:g}=S.usePermission(),p=e.useSlots(),i=e.computed(()=>t?.buttonProps?.dropdownType||"default"),n=e.computed(()=>t?.buttonProps?.type||"borderLink"),d=e.computed(()=>t?.buttonProps?.content||w("ap.apApBatchActionGroup.batchOperation")),k=e.computed(()=>t?.selectedRows||[]),s=e.computed(()=>t?.buttonProps?.disabled??(Array.isArray(t.selectedRows)?k.value.length===0:!1)),B=e.computed(()=>n.value==="borderLink"?s.value?void 0:"var(--ap-button-border-link-color)":void 0),u=e.computed(()=>t?.menuList?.filter(o=>{let a=o?.ifShow;return!o?.ifShow&&o?.auth&&(a=()=>g(o.auth)),a?.()??!0})||[]);function m(){return t?.buttonProps?{...t.buttonProps,type:n.value==="borderLink"?"default":n.value}:{}}return h({columns:P,dataSource:y}),(o,a)=>u.value.length&&i.value==="dropdown"?(e.openBlock(),e.createBlock(e.unref(v.DropdownButton),e.mergeProps({key:0,class:[e.unref(c)(),e.unref(_)]},{...o.$attrs,...m(),disabled:s.value}),e.createSlots({overlay:e.withCtx(()=>[e.createVNode(f.default,e.mergeProps({...t},{"menu-list":u.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:B.value})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[d.value]))))],4)]),_:2},[e.renderList(p,(q,r)=>({name:r,fn:e.withCtx(l=>[e.renderSlot(o.$slots,r,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040,["class"])):u.value.length&&i.value==="default"?(e.openBlock(),e.createBlock(e.unref(v.Dropdown),{key:1,class:e.normalizeClass([e.unref(c)()]),disabled:s.value},e.createSlots({overlay:e.withCtx(()=>[e.createVNode(f.default,e.mergeProps({...t},{"menu-list":u.value}),null,16,["menu-list"])]),default:e.withCtx(()=>[e.createVNode(e.unref(R.default),e.normalizeProps(e.guardReactiveProps({...o.$attrs,...m(),type:n.value})),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h("span",[d.value])))),e.createVNode(e.unref(C.DownOutlined))]),_:1},16)]),_:2},[e.renderList(p,(q,r)=>({name:r,fn:e.withCtx(l=>[e.renderSlot(o.$slots,r,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1032,["class","disabled"])):e.createCommentVNode("",!0)}});exports.default=D;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),n=e=>{const{componentCls:o}=e;return{[o]:{"--ap-button-border-link-color":e.colorPrimary}}},r=t.genComponentStyleHook("ApBatchActionGroup",e=>[n(e)]);exports.default=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genApCardStyle: GenStyleFunc<BaseToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",background:"#fff",[`& + ${t}`]:{marginTop:"10px"},[`${t}-title`]:{marginBottom:"12px"}}}},r=n.genComponentStyleHook("ApCard",e=>[o(e)]);exports.default=r;exports.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[t]:{width:"100%",background:"#fff",[`& + ${t}`]:{marginTop:"10px"},[`${t}-title`]:{marginBottom:"12px"}}}},r=n.genComponentStyleHook("ApCard",e=>[o(e)]);exports.default=r;exports.genApCardStyle=o;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -2,9 +2,10 @@ import { ApExpandAlertProps } from './interface';
|
|
|
2
2
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
5
6
|
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
6
7
|
readonly onChoose?: ((args_0: T) => any) | undefined;
|
|
7
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
|
|
8
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
|
|
8
9
|
expose(exposed: ShallowUnwrapRef<{
|
|
9
10
|
setExpand: (state?: boolean) => void;
|
|
10
11
|
}>): void;
|
|
@@ -22,7 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
22
23
|
index: number;
|
|
23
24
|
}): any;
|
|
24
25
|
};
|
|
25
|
-
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
26
|
+
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
26
27
|
}>) => VNode & {
|
|
27
28
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),T=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),q=require("./style/index.js"),A=require("../../config-provider/hooks/use-locale.js"),D=require("../../config-provider/hooks/use-namespace.js"),I=require("../../config-provider/hooks/use-global-config.js"),V=["onClick"],H=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},closable:{type:Boolean},afterClose:{}},emits:["choose","expand","close"],setup(g,{expose:v,emit:C}){const u=C,r=g,{t:m}=A.useLocale(),B=e.computed(()=>{if(r.type!="card")return r.type}),l=e.ref(""),s=e.ref(null),S=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function w(){l.value==="1"?(l.value="",u("expand","expand")):(l.value="1",u("expand","collapse"))}const x=e.computed(()=>l.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),c=e.ref(!0),y=e.computed(()=>l.value!=="1");function p(t){t?l.value="":l.value="1"}function b(t){u("close",t)}e.watch(()=>r.data,()=>{l.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),o=Number(parseInt(s.value.style.lineHeight));t<o*Number(r.rows)&&y.value?c.value=!1:c.value=!0}})},{immediate:!0}),e.watch(()=>r.defaultExpand,t=>{t?e.nextTick(()=>{p(t)}):e.nextTick(()=>{p(t)})},{immediate:!0}),e.onMounted(()=>{e.watch(()=>r.contentStyle,t=>{i.isNil(t.lineHeight)||e.nextTick(()=>{const o=document.querySelector(`#${d} .ant-alert-action`),a=document.querySelector(`#${d} .ant-alert-icon`);o&&o.setAttribute("style",`line-height: ${t.lineHeight}`),a&&a.setAttribute("style",`line-height: ${t.lineHeight}`)})},{deep:!0,immediate:!0,flush:"post"})});const{b:k,e:n,m:E}=D.useNamespace("ap-expand-alert"),z=q.default("ap-expand-alert"),d=`${k()}-key-${Date.now()}-${(Math.random()*1e6).toFixed(0)}`,N=I.useGlobalConfig("uiMode","aplus");return v({setExpand:p}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{id:d,class:e.normalizeClass([e.unref(k)(),`${e.unref(E)(e.unref(N))}`,e.unref(z)])},[e.createVNode(e.unref(h.Alert),{type:B.value,"show-icon":t.showIcon,closable:t.closable,class:e.normalizeClass([e.unref(n)("antAlert"),t.type=="card"?"card-alert":""]),"after-close":t.afterClose,onClose:b},{action:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(e.unref(T.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:o[0]||(o[0]=a=>w())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("expandText"))},e.toDisplayString(x.value),3),e.createVNode(e.unref($.DownOutlined),{class:e.normalizeClass(y.value?e.unref(n)("expandIcon"):e.unref(n)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:s,style:e.normalizeStyle({...S.value,...t.contentStyle}),class:e.normalizeClass(e.unref(n)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(i.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(i.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(n)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(a,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(e.unref(h.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:a,index:f},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("showItem")),onClick:L=>t.$emit("choose",a)},e.toDisplayString(t.mapLabel?a[t.mapLabel]:a),11,V)])]),_:2},1032,["title"]),f!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(i.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","closable","class","after-close"])],2))}});exports.default=H;
|
|
@@ -15,9 +15,10 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
15
15
|
index: number;
|
|
16
16
|
}): any;
|
|
17
17
|
};
|
|
18
|
-
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
18
|
+
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
19
19
|
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
20
20
|
props: {
|
|
21
|
+
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
21
22
|
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
22
23
|
readonly onChoose?: ((args_0: T) => any) | undefined;
|
|
23
24
|
type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
|
|
@@ -31,6 +32,8 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
31
32
|
prefixStyle?: CSSProperties | undefined;
|
|
32
33
|
rows?: string | number | undefined;
|
|
33
34
|
defaultExpand?: boolean | undefined;
|
|
35
|
+
closable?: boolean | undefined;
|
|
36
|
+
afterClose?: (() => void) | undefined;
|
|
34
37
|
showIcon?: boolean | undefined;
|
|
35
38
|
} & PublicProps;
|
|
36
39
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -50,7 +53,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
50
53
|
index: number;
|
|
51
54
|
}): any;
|
|
52
55
|
};
|
|
53
|
-
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
56
|
+
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
54
57
|
}>) => VNode & {
|
|
55
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
59
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genApImageStyle: GenStyleFunc<BaseToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),t=e=>{const{componentCls:o}=e;return{[`${o}-toolbar`]:{display:"flex",alignItems:"center",padding:"0 24px",backgroundColor:"rgba(0, 0, 0, 0.1)",borderRadius:"100px"}}},l=n.genComponentStyleHook("ApImage",e=>[t(e)]);exports.default=l;exports.genApImageStyle=t;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
2
|
export type ApRadioGroupToken = {
|
|
3
3
|
apRadioGroupItemActiveBgColor: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genApTableModalStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|