@aplus-frontend/ui 7.0.0-beta.3 → 7.0.1
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 +108 -106
- 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/custom-header.mjs +1 -1
- 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/ag-grid/style/index.mjs +0 -1
- package/es/src/ap-action/item-dropdown/index.vue.mjs +19 -18
- 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/item.mjs +5 -4
- package/es/src/ap-form/style/modal-form.d.ts +2 -2
- package/es/src/ap-form/style/modal-form.mjs +11 -11
- package/es/src/ap-form/style/search-form-sorter.d.ts +2 -2
- package/es/src/ap-form/style/search-form-sorter.mjs +16 -12
- package/es/src/ap-form/style/search-form.d.ts +2 -2
- package/es/src/ap-form/style/token.d.ts +4 -0
- 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/apUpload.vue.mjs +32 -31
- package/es/src/ap-upload/style/index.d.ts +2 -2
- package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
- 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/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
- package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
- 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-ladder/style/index.mjs +2 -5
- 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/ApSizeInput.d.ts +20 -4
- package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
- package/es/src/business/ap-size-input/constans.d.ts +10 -2
- package/es/src/business/ap-size-input/constans.mjs +9 -1
- package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
- package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
- package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
- package/es/src/business/ap-size-input/index.d.ts +33 -8
- package/es/src/business/ap-size-input/index.mjs +3 -2
- package/es/src/business/ap-size-input/interface.d.ts +7 -0
- package/es/src/business/ap-size-input/style/index.d.ts +2 -2
- package/es/src/business/ap-size-input/style/index.mjs +2 -1
- 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/components/menu-list-content.vue2.mjs +61 -64
- package/es/src/business/ap-view/style/index.d.ts +3 -3
- package/es/src/business/ap-view/style/index.mjs +2 -2
- 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/check-card/style/index.mjs +46 -51
- package/es/src/config-provider/hooks/use-token.d.ts +2 -2
- package/es/src/design-token/interface.d.ts +24 -1
- 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/index.mjs +95 -93
- 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 +54 -48
- 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/index.js +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/custom-header.js +1 -1
- 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/item.js +1 -1
- package/lib/src/ap-form/style/modal-form.d.ts +2 -2
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.d.ts +2 -2
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/search-form.d.ts +2 -2
- package/lib/src/ap-form/style/token.d.ts +4 -0
- 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/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/style/index.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
- 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/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
- package/lib/src/business/ag-grid-modal/wrapper/index.vue2.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-ladder/style/index.js +1 -1
- 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/ApSizeInput.d.ts +20 -4
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-size-input/constans.d.ts +10 -2
- package/lib/src/business/ap-size-input/constans.js +1 -1
- package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
- package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
- package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
- package/lib/src/business/ap-size-input/index.d.ts +33 -8
- package/lib/src/business/ap-size-input/index.js +1 -1
- package/lib/src/business/ap-size-input/interface.d.ts +7 -0
- package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
- package/lib/src/business/ap-size-input/style/index.js +1 -1
- 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/components/menu-list-content.vue2.js +1 -1
- 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/check-card/style/index.js +1 -1
- package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
- package/lib/src/design-token/interface.d.ts +24 -1
- 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/index.js +1 -1
- 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,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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),i=l=>{const{componentCls:e}=l;return{[e]:{position:"relative",width:"inherit",fontSize:l.fontSize,lineHeight:l.lineHeight,[`${e}__value-group-item`]:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},[`${e}__value-group-value-end`]:{justifyContent:"flex-end"},[`${e}__value-group-label`]:{display:"inline-block",color:"#8896B0",wordBreak:"break-all",position:"relative",justifyContent:"center"},[`${e}__value-group-label-semicolon`]:{display:"inline-block",padding:"0 3px"},[`${e}__value-group-value`]:{color:"#182948",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${e}__value-group-link`]:{cursor:"pointer",color:l.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),i=l=>{const{componentCls:e}=l;return{[e]:{position:"relative",width:"inherit",fontSize:l.fontSize,lineHeight:l.lineHeight,[`${e}__value-group-item`]:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},[`${e}__value-group-value-end`]:{justifyContent:"flex-end"},[`${e}__value-group-label`]:{display:"inline-block",color:"#8896B0",wordBreak:"break-all",position:"relative",justifyContent:"center"},[`${e}__value-group-label-semicolon`]:{display:"inline-block",padding:"0 3px"},[`${e}__value-group-value`]:{color:"#182948",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${e}__value-group-link`]:{cursor:"pointer",color:l.colorLink,textDecoration:"none"},[`${e}__value-group-label-left`]:{textAlign:"left"},[`${e}__value-group-label-right`]:{textAlign:"right"},[`${e}__label-align-space-between`]:{justifyContent:"space-between"},[`${e}-base`]:{display:"flex"},[`${e}--vertical`]:{flexDirection:"column",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","> *":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0}},[`${e}--horizontal`]:{flexDirection:"row",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","> *":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0}},[`${e}__tooltip-item`]:{display:"flex"},[`${e}__tooltip-label`]:{whiteSpace:"nowrap",wordBreak:"break-all"},[`${e}__tooltip-value`]:{wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${e}__cross-bar`]:{display:"flex",alignItems:"center"},[`${e}__ellipsis`]:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"},[`${e}__help-message`]:{display:"flex",alignItems:"center",marginInlineStart:"4px"},[`${e}__major`]:{lineHeight:l.lineHeight,color:"#182948"},[`${e}__minor`]:{lineHeight:l.lineHeight,color:"#8896B0"},[`${e}__label`]:{display:"inline-block",color:"#8896B0",wordBreak:"break-all"},[`${e}__value`]:{display:"#182948",wordBreak:"break-all"},[`${e}__unit`]:{color:"#182948"},[`${e}__link, ${e}__link a`]:{cursor:"pointer",color:l.colorLink,textDecoration:"none"},"&--admin":{[e]:{"&__value-group-label":{color:"#999"},"&__value-group-value":{color:"#333"},"&__major":{color:"#333"},"&__minor":{color:"#999"},"&__label":{color:"#999"},"&__value":{color:"#333"},"&__unit":{color:"#333"}}}}}},r=o.genComponentStyleHook("ApLadder",l=>[i(l)]);exports.default=r;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, StyleValue, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
3
|
value: {
|
|
4
4
|
type: PropType<Array<string | number>>;
|
|
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
25
25
|
};
|
|
26
26
|
min: {
|
|
27
27
|
type: NumberConstructor;
|
|
28
|
-
|
|
28
|
+
required: boolean;
|
|
29
29
|
};
|
|
30
30
|
max: {
|
|
31
31
|
type: NumberConstructor;
|
|
@@ -35,6 +35,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
35
35
|
type: NumberConstructor;
|
|
36
36
|
default: number;
|
|
37
37
|
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
required: boolean;
|
|
41
|
+
};
|
|
42
|
+
style: {
|
|
43
|
+
type: PropType<StyleValue>;
|
|
44
|
+
required: boolean;
|
|
45
|
+
};
|
|
38
46
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
39
47
|
value: {
|
|
40
48
|
type: PropType<Array<string | number>>;
|
|
@@ -61,7 +69,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
61
69
|
};
|
|
62
70
|
min: {
|
|
63
71
|
type: NumberConstructor;
|
|
64
|
-
|
|
72
|
+
required: boolean;
|
|
65
73
|
};
|
|
66
74
|
max: {
|
|
67
75
|
type: NumberConstructor;
|
|
@@ -71,11 +79,19 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
71
79
|
type: NumberConstructor;
|
|
72
80
|
default: number;
|
|
73
81
|
};
|
|
82
|
+
disabled: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
required: boolean;
|
|
85
|
+
};
|
|
86
|
+
style: {
|
|
87
|
+
type: PropType<StyleValue>;
|
|
88
|
+
required: boolean;
|
|
89
|
+
};
|
|
74
90
|
}>> & Readonly<{}>, {
|
|
75
91
|
step: number;
|
|
76
92
|
value: (string | number)[];
|
|
93
|
+
disabled: boolean;
|
|
77
94
|
placeholder: string[];
|
|
78
|
-
min: number;
|
|
79
95
|
max: number;
|
|
80
96
|
precision: number;
|
|
81
97
|
editable: boolean;
|
|
@@ -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 t=require("vue"),h=require("./constans.js");require("../../ap-field/number/index.vue2.js");const m=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const g=require("./style/index.js"),v=require("../../config-provider/hooks/use-namespace.js"),p=require("../../config-provider/hooks/use-locale.js"),i=require("../../ap-field/number/index.vue.js"),f=t.defineComponent({name:"ApSizeInput",props:h.ApSizeInputProps(),setup(e,{emit:r}){const{b:d}=v.useNamespace("ap-size-input"),o=g.default("ap-size-input"),{t:n}=p.useLocale(),s=m.Form.useInjectFormItemContext(),u=(l,a)=>{const c=e.value;c[l]=a,r("update:value",c),r("SizeInputChange",t.toRaw(c)),s.onFieldChange()};return()=>{const l={style:{flex:1},precision:e.precision??2,min:e.min??1,max:e.max,step:e.step??1,mode:e.editable?"edit":"read",disabled:e.disabled};return t.createVNode("div",{class:[d(),o.value],style:e.style},[t.createVNode(i.default,t.mergeProps({value:e.value?.[0],placeholder:e.placeholder&&e.placeholder.length>=3?e.placeholder[0]:n("ap.apSizeInput.length"),onChange:a=>u(0,a)},l),null),e.perfix,t.createVNode(i.default,t.mergeProps({value:e.value?.[1],placeholder:e.placeholder&&e.placeholder.length>=3?e.placeholder[1]:n("ap.apSizeInput.width"),onChange:a=>u(1,a)},l),null),e.perfix,t.createVNode(i.default,t.mergeProps({value:e.value?.[2],placeholder:e.placeholder&&e.placeholder.length>=3?e.placeholder[2]:n("ap.apSizeInput.height"),onChange:a=>u(2,a)},l),null)])}}});exports.default=f;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, StyleValue } from 'vue';
|
|
2
2
|
export declare const ApSizeInputProps: () => {
|
|
3
3
|
value: {
|
|
4
4
|
type: PropType<Array<string | number>>;
|
|
@@ -25,7 +25,7 @@ export declare const ApSizeInputProps: () => {
|
|
|
25
25
|
};
|
|
26
26
|
min: {
|
|
27
27
|
type: NumberConstructor;
|
|
28
|
-
|
|
28
|
+
required: boolean;
|
|
29
29
|
};
|
|
30
30
|
max: {
|
|
31
31
|
type: NumberConstructor;
|
|
@@ -35,4 +35,12 @@ export declare const ApSizeInputProps: () => {
|
|
|
35
35
|
type: NumberConstructor;
|
|
36
36
|
default: number;
|
|
37
37
|
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
required: boolean;
|
|
41
|
+
};
|
|
42
|
+
style: {
|
|
43
|
+
type: PropType<StyleValue>;
|
|
44
|
+
required: boolean;
|
|
45
|
+
};
|
|
38
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({value:{type:Array,default:()=>[]},placeholder:{type:Array,default:()=>[]},step:{type:Number,default:1},editable:{type:Boolean,default:!0},perfix:{type:String,default:"x"},onSizeInputChange:{type:Function},min:{type:Number,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({value:{type:Array,default:()=>[]},placeholder:{type:Array,default:()=>[]},step:{type:Number,default:1},editable:{type:Boolean,default:!0},perfix:{type:String,default:"x"},onSizeInputChange:{type:Function},min:{type:Number,required:!1},max:{type:Number,default:100},precision:{type:Number,default:2},disabled:{type:Boolean,required:!1},style:{type:Object,required:!1}});exports.ApSizeInputProps=e;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApFormItemSizeInputProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApFormItemSizeInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSizeInputProps> & Readonly<{}>, {
|
|
4
|
+
hidden: boolean;
|
|
5
|
+
colon: boolean;
|
|
6
|
+
required: boolean;
|
|
7
|
+
hasFeedback: boolean;
|
|
8
|
+
autoLink: boolean;
|
|
9
|
+
validateFirst: boolean;
|
|
10
|
+
noStyle: boolean;
|
|
11
|
+
bordered: boolean;
|
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("./ApSizeInput.js"),a=require("../../ap-form/index.js"),r=require("lodash-unified"),i=e.defineComponent({name:"ApFormItemSizeInput",__name:"form-item",props:{field:{},htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:void 0},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean,default:void 0},noStyle:{type:Boolean,default:void 0},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean,default:void 0},valuePropName:{},initialValue:{},_signal:{},transform:{},description:{},customFilled:{},disabled:{type:Boolean}},setup(l){const o=l;return(d,n)=>(e.openBlock(),e.createBlock(e.unref(a.ApForm).FormItem,e.normalizeProps(e.guardReactiveProps(e.unref(r.omit)(o,["field"]))),{default:e.withCtx(()=>[e.createVNode(e.unref(t.default),e.normalizeProps(e.guardReactiveProps(o.field||{})),null,16)]),_:1},16))}});exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./form-item.vue.js");exports.default=e.default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as ApFormItemSizeInput } from './form-item.vue';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, StyleValue, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
3
|
export * from './interface';
|
|
3
4
|
declare const ApSizeInput: {
|
|
4
5
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -27,7 +28,7 @@ declare const ApSizeInput: {
|
|
|
27
28
|
};
|
|
28
29
|
min: {
|
|
29
30
|
type: NumberConstructor;
|
|
30
|
-
|
|
31
|
+
required: boolean;
|
|
31
32
|
};
|
|
32
33
|
max: {
|
|
33
34
|
type: NumberConstructor;
|
|
@@ -37,11 +38,19 @@ declare const ApSizeInput: {
|
|
|
37
38
|
type: NumberConstructor;
|
|
38
39
|
default: number;
|
|
39
40
|
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
required: boolean;
|
|
44
|
+
};
|
|
45
|
+
style: {
|
|
46
|
+
type: PropType<StyleValue>;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
40
49
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
41
50
|
step: number;
|
|
42
51
|
value: (string | number)[];
|
|
52
|
+
disabled: boolean;
|
|
43
53
|
placeholder: string[];
|
|
44
|
-
min: number;
|
|
45
54
|
max: number;
|
|
46
55
|
precision: number;
|
|
47
56
|
editable: boolean;
|
|
@@ -79,7 +88,7 @@ declare const ApSizeInput: {
|
|
|
79
88
|
};
|
|
80
89
|
min: {
|
|
81
90
|
type: NumberConstructor;
|
|
82
|
-
|
|
91
|
+
required: boolean;
|
|
83
92
|
};
|
|
84
93
|
max: {
|
|
85
94
|
type: NumberConstructor;
|
|
@@ -89,11 +98,19 @@ declare const ApSizeInput: {
|
|
|
89
98
|
type: NumberConstructor;
|
|
90
99
|
default: number;
|
|
91
100
|
};
|
|
101
|
+
disabled: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
required: boolean;
|
|
104
|
+
};
|
|
105
|
+
style: {
|
|
106
|
+
type: PropType<StyleValue>;
|
|
107
|
+
required: boolean;
|
|
108
|
+
};
|
|
92
109
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
93
110
|
step: number;
|
|
94
111
|
value: (string | number)[];
|
|
112
|
+
disabled: boolean;
|
|
95
113
|
placeholder: string[];
|
|
96
|
-
min: number;
|
|
97
114
|
max: number;
|
|
98
115
|
precision: number;
|
|
99
116
|
editable: boolean;
|
|
@@ -128,7 +145,7 @@ declare const ApSizeInput: {
|
|
|
128
145
|
};
|
|
129
146
|
min: {
|
|
130
147
|
type: NumberConstructor;
|
|
131
|
-
|
|
148
|
+
required: boolean;
|
|
132
149
|
};
|
|
133
150
|
max: {
|
|
134
151
|
type: NumberConstructor;
|
|
@@ -138,11 +155,19 @@ declare const ApSizeInput: {
|
|
|
138
155
|
type: NumberConstructor;
|
|
139
156
|
default: number;
|
|
140
157
|
};
|
|
158
|
+
disabled: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
required: boolean;
|
|
161
|
+
};
|
|
162
|
+
style: {
|
|
163
|
+
type: PropType<StyleValue>;
|
|
164
|
+
required: boolean;
|
|
165
|
+
};
|
|
141
166
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
142
167
|
step: number;
|
|
143
168
|
value: (string | number)[];
|
|
169
|
+
disabled: boolean;
|
|
144
170
|
placeholder: string[];
|
|
145
|
-
min: number;
|
|
146
171
|
max: number;
|
|
147
172
|
precision: number;
|
|
148
173
|
editable: boolean;
|
|
@@ -152,4 +177,4 @@ declare const ApSizeInput: {
|
|
|
152
177
|
onClick?: () => void;
|
|
153
178
|
};
|
|
154
179
|
}));
|
|
155
|
-
export { ApSizeInput };
|
|
180
|
+
export { ApSizeInput, ApFormItemSizeInput };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ApSizeInput.js"),t=require("@aplus-frontend/utils");require("./interface.js");const i=t.withInstall(e.default);exports.ApSizeInput=i;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ApSizeInput.js"),t=require("@aplus-frontend/utils");require("./form-item.vue2.js");require("./interface.js");const i=t.withInstall(e.default);exports.ApSizeInput=i;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
import { ApFormItemProps } from '../../ap-form';
|
|
1
3
|
export type ApSizeInputProps = {
|
|
2
4
|
value?: Array<string | number>;
|
|
3
5
|
placeholder?: Array<string>;
|
|
@@ -8,4 +10,9 @@ export type ApSizeInputProps = {
|
|
|
8
10
|
min?: number;
|
|
9
11
|
max?: number;
|
|
10
12
|
precision?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
style?: StyleValue;
|
|
11
15
|
};
|
|
16
|
+
export interface ApFormItemSizeInputProps extends ApFormItemProps {
|
|
17
|
+
field?: ApSizeInputProps;
|
|
18
|
+
}
|
|
@@ -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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),n=e=>({[e.componentCls]:{display:"flex",alignItems:"center"}}),o=t.genComponentStyleHook("ApSizeInput",e=>[n(e)]);exports.default=o;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),n=e=>({[e.componentCls]:{display:"flex",alignItems:"center",gap:"8px"}}),o=t.genComponentStyleHook("ApSizeInput",e=>[n(e)]);exports.default=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;
|
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const N=require("../../ap-table/index.js"),m=require("lodash-unified"),A=require("@aplus-frontend/utils");require("./modal-title.vue.js");const y=require("./interface.js");require("./table-layout/index.vue.js");const L=require("./style/index.js"),D=require("../../config-provider/hooks/use-namespace.js"),E=require("../../config-provider/hooks/use-locale.js"),F=require("./modal-title.vue2.js"),U=require("./table-layout/index.vue2.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const N=require("../../ap-table/index.js"),m=require("lodash-unified"),A=require("@aplus-frontend/utils");require("./modal-title.vue.js");const y=require("./interface.js");require("./table-layout/index.vue.js");const L=require("./style/index.js"),D=require("../../config-provider/hooks/use-namespace.js"),E=require("../../config-provider/hooks/use-locale.js"),F=require("./modal-title.vue2.js"),U=require("./table-layout/index.vue2.js"),j=t.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},renderHeader:{},onOk:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},afterOpenChange:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{},loading:{type:Boolean}},emits:["finish"],setup(g,{expose:w,emit:k}){const e=g,h=k,u=t.ref(!1),v=t.ref({}),i=t.ref(null),n=t.ref([]),b=t.ref();let d=null,c=null;const{b:R}=D.useNamespace("ap-table-modal"),T=L.default("ap-table-modal"),{t:x}=E.useLocale(),S=async(o=[],a={})=>{switch(n.value=[...o],u.value=!0,v.value=a?.extraParams,b.value=a.apTableDataSources||e.apTableProps?.dataSource,a.refreshMode||"reset"){case"reset":i.value?.reset();break;case"submit":i.value?.submit();break;case"none":break}return new Promise((l,r)=>{d=l,c=s=>r("Ignored Reject: "+s)})},C=()=>{u.value=!1,d=null,c?.(y.AsyncOpenResultError.ModalCancel),c=null},_=async o=>{o=A.transformTableParams({...o,...v.value});const a=e.api,{records:l,total:r}=await a(o);return{data:l,total:r}},B=async()=>{if(n.value.length>e.maxCount){c?.(y.AsyncOpenResultError.ExceedMaxCount);return}if(e.getRowKey){const o=m.cloneDeep(t.unref(n)),a=o.map(e.getRowKey);if(e.onOk&&await e.onOk({keys:a,rows:o})===!1)return;h("finish",a,o),d?.({keys:a,rows:o})}else{c?.(y.AsyncOpenResultError.NotFineGetRowKey);return}u.value=!1},P=t.computed(()=>{if(!e.getRowKey)return;const o=e.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(o),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(a,l){if(l.length>e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}const r=i.value?.dataSource;if(a){const s=t.unref(r).filter(f=>!n.value.some(I=>o(I)===o(f)));n.value=n.value.concat(s)}else n.value=n.value?.filter(s=>!r.some(f=>o(f)===o(s)))},onSelect(a,l){if(l){if(n.value.length>=e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}e.rowSelection?.type==="radio"?n.value=[a]:n.value.push(a)}else{const r=n.value.findIndex(s=>o(a)===o(s));n.value.splice(r,1)}},getCheckboxProps:a=>({disabled:typeof e.disabledCheckbox=="function"?e.disabledCheckbox(a,n.value):e.disabledCheckbox}),...e.rowSelection||{}}}),q=()=>e.isRenderModalTitleSuffix?t.h(F.default,{title:e.title,count:n.value.length||0,maxCount:e.maxCount},{default:e.renderModalTitleSuffix??void 0}):e.title,M=()=>i.value,K=()=>{n.value=[]},O=o=>{const a=e.getRowKey;if(!a)return;const l=n.value.findIndex(r=>a(o)===a(r));n.value.splice(l,1)};return w({open:S,close:C,getApTableInstance:M}),(o,a)=>(t.openBlock(),t.createBlock(t.unref(p.Modal),t.mergeProps({open:u.value,"onUpdate:open":a[0]||(a[0]=l=>u.value=l)},t.unref(m.omit)(e,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix","rowSelection","disabledCheckbox","tableLayoutConfig"]),{title:q(),centered:e.centered??!0,"wrap-class-name":`${t.unref(R)()} ${t.unref(T)}`,onOk:B,onCancel:C}),{default:t.withCtx(()=>[e.renderHeader?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderHeader),{key:0})):t.createCommentVNode("",!0),t.createVNode(U.default,t.mergeProps(e.tableLayoutConfig||{},{"selected-list":n.value,onClear:K,onDeleteItem:O}),{default:t.withCtx(()=>[t.createVNode(t.unref(N.ApTable),t.mergeProps({ref_key:"apTableRef",ref:i,scroll:{y:450},style:{padding:"0px"},columns:o.columns,request:_,"row-key":o.getRowKey,"row-selection":P.value,"data-source":b.value,"search-form":{sortable:!1,countPerRow:2}},t.unref(m.omit)(e.apTableProps,"dataSource")),null,16,["columns","row-key","row-selection","data-source"])]),_:1},16,["selected-list"])]),_:1},16,["open","title","centered","wrap-class-name"]))}});exports.default=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genApTitleStyle: 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 { BaseToken, GenStyleFunc } from '../../../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genProCardStyle: GenStyleFunc<BaseToken>;
|
|
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const x=require("../hooks/use-view-provide.js"),m=require("../utils/enum.js"),c=require("@aplus-frontend/antdv"),E=require("../icons/line-delete.vue.js");require("../../../ap-tag/index.js");require("../../../ap-form/ap-form.vue.js");const S=require("../../../ap-field/index.js"),q=require("../style/index.js"),g=require("../../../config-provider/hooks/use-token.js"),D=require("../../../config-provider/hooks/use-namespace.js"),K=require("../../../config-provider/hooks/use-locale.js"),B=require("../../../ap-tag/ap-tag.vue.js"),f=require("../../../ap-form/ap-form.vue2.js"),T={class:"menu-list-content-name"},I=["title"],z={key:0,class:"menu-list-content-default"},M={class:"menu-list-content-action-delete"},b={class:"menu-list-content-edit"},P=e.defineComponent({__name:"menu-list-content",props:{view:{}},setup(w){const{b:o}=D.useNamespace("ap-view"),u=q.default("ap-view"),{token:p}=g.useToken(),{t:n}=K.useLocale(),t=w,{currentViewKey:_,changeCurrentViewKey:V,viewListCRUD:s,tableKey:r,menuOpen:d}=x.useViewInject(),a=e.ref(!1),v=e.ref(),k=()=>{V(t.view.viewKey),d.value=!1},N=()=>{s?.changeView?.({...t.view,tableKey:r,isDefault:!0})},y=()=>{s?.removeView?.({tableKey:r,viewKey:t.view.viewKey})},C=async()=>{const l=await v.value?.validate?.();s?.changeView?.({...t.view,tableKey:r,viewName:l?.viewName||t.view.viewName}),a.value=!1};return e.watch(()=>d.value,l=>{l&&(a.value=!1)}),(l,i)=>a.value===!1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({[e.unref(o)("menu-list-content")]:!0,[e.unref(o)("menu-list-content-active")]:t.view?.viewKey===e.unref(_),hashId:e.unref(u)}),onClick:k},[e.createElementVNode("div",T,[e.createElementVNode("span",{title:t.view?.viewName},e.toDisplayString(t.view?.viewName),9,I)]),t.view?.viewKey!==e.unref(m.SYSTEM_VIEW_KEY)&&t.view?.isDefault?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(e.unref(B.default),{text:e.unref(n)("ap.apView.default"),size:"small",color:e.unref(p).colorPrimary},null,8,["text","color"])])):e.createCommentVNode("",!0),t.view?.viewKey!==e.unref(m.SYSTEM_VIEW_KEY)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"menu-list-content-action",onClick:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(e.unref(c.Space),{size:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:i[0]||(i[0]=h=>a.value=!0)},e.toDisplayString(e.unref(n)("ap.apView.rename")),1),t.view?.isDefault?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"menu-list-content-action-text",onClick:N},e.toDisplayString(e.unref(n)("ap.apView.setDefault")),1)),e.createElementVNode("div",M,[e.createVNode(e.unref(c.Popconfirm),{title:e.unref(n)("ap.apView.deleteTip"),"ok-text":e.unref(n)("ap.apView.ok"),onConfirm:y},{default:e.withCtx(()=>[e.createVNode(E.default)]),_:1},8,["title","ok-text"])])]),_:1})])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o)("menu-list-content"),e.unref(o)("menu-list-content-edit"),e.unref(u)])},[e.createVNode(f.default,{ref_key:"formRef",ref:v,"initial-values":{viewName:t.view?.viewName}},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(c.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(f.default.FormItem,{name:"viewName"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ApField).Text,{maxlength:20})]),_:1}),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:C},e.toDisplayString(e.unref(n)("ap.apView.save")),1),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:i[2]||(i[2]=h=>a.value=!1)},e.toDisplayString(e.unref(n)("ap.apView.cancel")),1)]),_:1})])]),_:1},8,["initial-values"])],2))}});exports.default=P;
|
|
@@ -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 genApViewStyle: 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 o=require("../../../utils/cssinjs/index.js"),n=t=>{const{componentCls:e}=t;return{[e]:{"& > .ant-btn":{padding:0},"& > .ant-dropdown-trigger":{color:t.textColor3},[`${e}-main-content`]:{padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"center","&-disabled":{color:t.textColor4,cursor:"not-allowed"}},[`${e}-icon`]:{width:"100%",height:"100%",fontSize:"14px",display:"flex",justifyContent:"center",alignItems:"center"}},[`${e}-main-content-popover`]:{width:"340px","&-title-content":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px","&-title":{ontSize:"14px",fontWeight:500,lineHeight:"22px"},".ant-form-item":{marginBottom:0}},"&-btn":{marginBottom:0,".ant-form-item-control-input-content":{display:"flex",justifyContent:"flex-end"}}},[`${e}-overlay`]:{".ant-dropdown-menu":{padding:"8px","&-item":{padding:"0 !important","&:hover":{backgroundColor:"transparent !important"}}},[`${e}-menu-list-content`]:{width:"250px",display:"flex",padding:"6px 8px",alignItems:"center",height:"32px",".menu-list-content-name":{overflow:"hidden",display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",marginRight:"8px"},".menu-list-content-default":{marginRight:"8px",flexShrink:0},".menu-list-content-action":{cursor:"default",display:"none",flexShrink:0,marginLeft:"auto",userSelect:"none","&-text":{cursor:"pointer",fontSize:"12px",display:"flex",alignItems:"center",color:t.colorPrimary},"&-delete":{cursor:"pointer",display:"flex",alignItems:"center",color:t.textColor3,svg:{outline:"none",boxShadow:"none"}}},".menu-list-content-edit":{display:"flex",alignItems:"center",".ant-form-item":{marginBottom:0},".ant-space-item:has(.menu-list-content-action-text)":{flexShrink:0}},"&-edit":{background:"transparent !important",padding:"0 8px",cursor:"default"},"&:hover":{background:t.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),n=t=>{const{componentCls:e}=t;return{[e]:{"& > .ant-btn":{padding:0},"& > .ant-dropdown-trigger":{color:t.textColor3},[`${e}-main-content`]:{padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"center","&-disabled":{color:t.textColor4,cursor:"not-allowed"}},[`${e}-icon`]:{width:"100%",height:"100%",fontSize:"14px",display:"flex",justifyContent:"center",alignItems:"center"}},[`${e}-main-content-popover`]:{width:"340px","&-title-content":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px","&-title":{ontSize:"14px",fontWeight:500,lineHeight:"22px"},".ant-form-item":{marginBottom:0}},"&-btn":{marginBottom:0,".ant-form-item-control-input-content":{display:"flex",justifyContent:"flex-end"}}},[`${e}-overlay`]:{".ant-dropdown-menu":{padding:"8px","&-item":{padding:"0 !important","&:hover":{backgroundColor:"transparent !important"}}},[`${e}-menu-list-content`]:{width:"250px",display:"flex",padding:"6px 8px",alignItems:"center",height:"32px",".menu-list-content-name":{overflow:"hidden",display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",marginRight:"8px"},".menu-list-content-default":{marginRight:"8px",flexShrink:0},".menu-list-content-action":{cursor:"default",display:"none",flexShrink:0,marginLeft:"auto",userSelect:"none","&-text":{cursor:"pointer",fontSize:"12px",display:"flex",alignItems:"center",color:t.colorPrimary},"&-delete":{cursor:"pointer",display:"flex",alignItems:"center",color:t.textColor3,svg:{outline:"none",boxShadow:"none"}}},".menu-list-content-edit":{display:"flex",alignItems:"center",".ant-form-item":{marginBottom:0},".ant-space-item:has(.menu-list-content-action-text)":{flexShrink:0}},"&-edit":{background:"transparent !important",padding:"0 8px",cursor:"default"},"&:hover":{background:t.colorBg3,".menu-list-content-action":{display:"block"}}},[`${e}-menu-list-content-active`]:{".menu-list-content-name":{color:t.colorPrimary}}}}},i=o.genComponentStyleHook("ApView",t=>[n(t)]);exports.default=i;exports.genApViewStyle=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
2
|
export type BatchInputGroupToken = {
|
|
3
3
|
batchInputGroupTriggerColorDisabled: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|