yc-design-vue 1.8.6 → 1.8.7
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/Alert/index.d.ts +3 -3
- package/es/Alert/index.vue.d.ts +1 -1
- package/es/AutoComplete/index.d.ts +19 -19
- package/es/AutoComplete/index.vue.d.ts +33 -33
- package/es/Avatar/Avatar.vue.d.ts +2 -2
- package/es/Avatar/index.d.ts +5 -5
- package/es/Button/Button.vue.d.ts +3 -3
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/index.d.ts +12 -12
- package/es/Calendar/Calendar.vue.js +2 -3
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/CardMeta.vue.d.ts +1 -1
- package/es/Card/index.d.ts +6 -6
- package/es/Cascader/Cascader.vue.d.ts +17 -17
- package/es/Cascader/index.d.ts +16 -16
- package/es/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/es/Checkbox/index.d.ts +3 -3
- package/es/ColorPicker/ColorList.vue.js +3 -2
- package/es/ColorPicker/ColorPanel.vue.js +3 -2
- package/es/Divider/index.d.ts +3 -3
- package/es/Divider/index.vue.d.ts +1 -1
- package/es/Drawer/Drawer.vue.d.ts +4 -4
- package/es/Drawer/Drawer.vue.js +3 -2
- package/es/Drawer/DrawerService.vue.d.ts +2 -2
- package/es/Drawer/index.d.ts +11 -11
- package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Empty/index.vue.js +2 -1
- package/es/Image/Image.vue.d.ts +2 -2
- package/es/Image/Image.vue.js +2 -1
- package/es/Image/ImagePreviewToolbar.vue.js +9 -8
- package/es/Image/index.d.ts +6 -6
- package/es/Input/Input.vue.d.ts +3 -3
- package/es/Input/index.d.ts +9 -9
- package/es/InputNumber/InputNumber.vue.d.ts +18 -18
- package/es/InputNumber/index.d.ts +19 -19
- package/es/InputTag/index.d.ts +6 -6
- package/es/InputTag/index.vue.d.ts +2 -2
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/List/List.vue.d.ts +7 -7
- package/es/List/ListItemMeta.vue.d.ts +1 -1
- package/es/List/index.d.ts +9 -9
- package/es/Mention/index.d.ts +22 -22
- package/es/Mention/index.vue.d.ts +39 -39
- package/es/Message/Message.vue.d.ts +1 -1
- package/es/Message/index.d.ts +3 -3
- package/es/Modal/Modal.vue.d.ts +4 -4
- package/es/Modal/Modal.vue.js +3 -2
- package/es/Modal/ModalService.vue.d.ts +2 -2
- package/es/Modal/index.d.ts +11 -11
- package/es/Notification/Notification.vue.d.ts +1 -1
- package/es/Notification/index.d.ts +3 -3
- package/es/OverflowList/index.d.ts +3 -3
- package/es/OverflowList/index.vue.d.ts +1 -1
- package/es/Pagination/Pagination.vue.js +3 -2
- package/es/Pagination/hooks/useContext.d.ts +254 -3
- package/es/Pagination/hooks/useContext.js +1 -2
- package/es/Popconfirm/index.d.ts +19 -19
- package/es/Popconfirm/index.vue.d.ts +7 -7
- package/es/Popconfirm/index.vue.js +3 -2
- package/es/Progress/Progress.vue.d.ts +1 -1
- package/es/Progress/index.d.ts +3 -3
- package/es/Radio/Radio.vue.d.ts +1 -1
- package/es/Radio/RadioGroup.vue.d.ts +1 -1
- package/es/Radio/index.d.ts +6 -6
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Select/Select.vue.d.ts +13 -13
- package/es/Select/index.d.ts +14 -14
- package/es/Slider/Slider.vue.d.ts +3 -3
- package/es/Slider/index.d.ts +9 -9
- package/es/Space/index.d.ts +3 -3
- package/es/Space/index.vue.d.ts +1 -1
- package/es/Spin/index.d.ts +3 -3
- package/es/Spin/index.vue.d.ts +1 -1
- package/es/Split/index.d.ts +6 -6
- package/es/Split/index.vue.d.ts +2 -2
- package/es/Statistic/Countdown.vue.d.ts +2 -2
- package/es/Statistic/Statistic.vue.d.ts +2 -2
- package/es/Statistic/index.d.ts +12 -12
- package/es/Steps/Step.vue.d.ts +1 -1
- package/es/Steps/Steps.vue.d.ts +1 -1
- package/es/Steps/index.d.ts +6 -6
- package/es/Switch/index.d.ts +6 -6
- package/es/Switch/index.vue.d.ts +2 -2
- package/es/Tabs/Tabs.vue.d.ts +3 -3
- package/es/Tabs/index.d.ts +8 -8
- package/es/Tag/index.d.ts +3 -3
- package/es/Tag/index.vue.d.ts +1 -1
- package/es/Textarea/index.d.ts +6 -6
- package/es/Textarea/index.vue.d.ts +2 -2
- package/es/TimePicker/TimePicker.vue.d.ts +3 -3
- package/es/TimePicker/index.d.ts +9 -9
- package/es/Typography/TypographyBase.vue.d.ts +19 -19
- package/es/Typography/TypographyBase.vue.js +3 -2
- package/es/VerificationCode/index.d.ts +6 -6
- package/es/VerificationCode/index.vue.d.ts +2 -2
- package/es/_shared/icons/IconFullScreen.vue.js +17 -1
- package/es/_shared/icons/IconFullScreen.vue2.js +1 -17
- package/es/_shared/icons/IconOriginSize.vue.js +23 -1
- package/es/_shared/icons/IconOriginSize.vue2.js +1 -23
- package/es/_shared/icons/IconRotateLeft.vue.js +17 -1
- package/es/_shared/icons/IconRotateLeft.vue2.js +1 -17
- package/es/_shared/icons/IconRotateRight.vue.js +17 -1
- package/es/_shared/icons/IconRotateRight.vue2.js +1 -17
- package/es/_shared/icons/IconZoomIn.vue.js +17 -1
- package/es/_shared/icons/IconZoomIn.vue2.js +1 -17
- package/es/_shared/icons/IconZoomOut.vue.js +17 -1
- package/es/_shared/icons/IconZoomOut.vue2.js +1 -17
- package/es/_shared/locale/i18n.d.ts +256 -0
- package/es/_shared/locale/i18n.js +3 -1
- package/es/index.d.ts +27 -27
- package/lib/Alert/index.d.ts +3 -3
- package/lib/Alert/index.vue.d.ts +1 -1
- package/lib/AutoComplete/index.d.ts +19 -19
- package/lib/AutoComplete/index.vue.d.ts +33 -33
- package/lib/Avatar/Avatar.vue.d.ts +2 -2
- package/lib/Avatar/index.d.ts +5 -5
- package/lib/Button/Button.vue.d.ts +3 -3
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/index.d.ts +12 -12
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/CardMeta.vue.d.ts +1 -1
- package/lib/Card/index.d.ts +6 -6
- package/lib/Cascader/Cascader.vue.d.ts +17 -17
- package/lib/Cascader/index.d.ts +16 -16
- package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/lib/Checkbox/index.d.ts +3 -3
- package/lib/ColorPicker/ColorList.vue.js +1 -1
- package/lib/ColorPicker/ColorPanel.vue.js +1 -1
- package/lib/Divider/index.d.ts +3 -3
- package/lib/Divider/index.vue.d.ts +1 -1
- package/lib/Drawer/Drawer.vue.d.ts +4 -4
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +2 -2
- package/lib/Drawer/index.d.ts +11 -11
- package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Image/Image.vue.d.ts +2 -2
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Image/index.d.ts +6 -6
- package/lib/Input/Input.vue.d.ts +3 -3
- package/lib/Input/index.d.ts +9 -9
- package/lib/InputNumber/InputNumber.vue.d.ts +18 -18
- package/lib/InputNumber/index.d.ts +19 -19
- package/lib/InputTag/index.d.ts +6 -6
- package/lib/InputTag/index.vue.d.ts +2 -2
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/List/List.vue.d.ts +7 -7
- package/lib/List/ListItemMeta.vue.d.ts +1 -1
- package/lib/List/index.d.ts +9 -9
- package/lib/Mention/index.d.ts +22 -22
- package/lib/Mention/index.vue.d.ts +39 -39
- package/lib/Message/Message.vue.d.ts +1 -1
- package/lib/Message/index.d.ts +3 -3
- package/lib/Modal/Modal.vue.d.ts +4 -4
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.d.ts +2 -2
- package/lib/Modal/index.d.ts +11 -11
- package/lib/Notification/Notification.vue.d.ts +1 -1
- package/lib/Notification/index.d.ts +3 -3
- package/lib/OverflowList/index.d.ts +3 -3
- package/lib/OverflowList/index.vue.d.ts +1 -1
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +254 -3
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.d.ts +19 -19
- package/lib/Popconfirm/index.vue.d.ts +7 -7
- package/lib/Popconfirm/index.vue.js +1 -1
- package/lib/Progress/Progress.vue.d.ts +1 -1
- package/lib/Progress/index.d.ts +3 -3
- package/lib/Radio/Radio.vue.d.ts +1 -1
- package/lib/Radio/RadioGroup.vue.d.ts +1 -1
- package/lib/Radio/index.d.ts +6 -6
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Select/Select.vue.d.ts +13 -13
- package/lib/Select/index.d.ts +14 -14
- package/lib/Slider/Slider.vue.d.ts +3 -3
- package/lib/Slider/index.d.ts +9 -9
- package/lib/Space/index.d.ts +3 -3
- package/lib/Space/index.vue.d.ts +1 -1
- package/lib/Spin/index.d.ts +3 -3
- package/lib/Spin/index.vue.d.ts +1 -1
- package/lib/Split/index.d.ts +6 -6
- package/lib/Split/index.vue.d.ts +2 -2
- package/lib/Statistic/Countdown.vue.d.ts +2 -2
- package/lib/Statistic/Statistic.vue.d.ts +2 -2
- package/lib/Statistic/index.d.ts +12 -12
- package/lib/Steps/Step.vue.d.ts +1 -1
- package/lib/Steps/Steps.vue.d.ts +1 -1
- package/lib/Steps/index.d.ts +6 -6
- package/lib/Switch/index.d.ts +6 -6
- package/lib/Switch/index.vue.d.ts +2 -2
- package/lib/Tabs/Tabs.vue.d.ts +3 -3
- package/lib/Tabs/index.d.ts +8 -8
- package/lib/Tag/index.d.ts +3 -3
- package/lib/Tag/index.vue.d.ts +1 -1
- package/lib/Textarea/index.d.ts +6 -6
- package/lib/Textarea/index.vue.d.ts +2 -2
- package/lib/TimePicker/TimePicker.vue.d.ts +3 -3
- package/lib/TimePicker/index.d.ts +9 -9
- package/lib/Typography/TypographyBase.vue.d.ts +19 -19
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/VerificationCode/index.d.ts +6 -6
- package/lib/VerificationCode/index.vue.d.ts +2 -2
- package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/locale/i18n.d.ts +256 -0
- package/lib/_shared/locale/i18n.js +1 -1
- package/lib/index.d.ts +27 -27
- package/package.json +1 -1
package/lib/Modal/Modal.vue.d.ts
CHANGED
@@ -12,21 +12,23 @@ declare function __VLS_template(): {
|
|
12
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
13
13
|
declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
14
14
|
cancel: (ev: MouseEvent | KeyboardEvent) => any;
|
15
|
+
ok: () => any;
|
15
16
|
close: () => any;
|
16
17
|
open: () => any;
|
17
18
|
"update:visible": (value: boolean) => any;
|
18
|
-
ok: () => any;
|
19
19
|
"before-open": () => any;
|
20
20
|
"before-close": () => any;
|
21
21
|
}, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
|
22
22
|
onCancel?: ((ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
23
|
+
onOk?: (() => any) | undefined;
|
23
24
|
onClose?: (() => any) | undefined;
|
24
25
|
onOpen?: (() => any) | undefined;
|
25
26
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
26
|
-
onOk?: (() => any) | undefined;
|
27
27
|
"onBefore-open"?: (() => any) | undefined;
|
28
28
|
"onBefore-close"?: (() => any) | undefined;
|
29
29
|
}>, {
|
30
|
+
okText: string;
|
31
|
+
cancelText: string;
|
30
32
|
top: number;
|
31
33
|
unmountOnClose: boolean;
|
32
34
|
popupContainer: import('..').PopupContainer;
|
@@ -43,8 +45,6 @@ declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {},
|
|
43
45
|
alignCenter: boolean;
|
44
46
|
maskClosable: boolean;
|
45
47
|
hideCancel: boolean;
|
46
|
-
okText: string;
|
47
|
-
cancelText: string;
|
48
48
|
okLoading: boolean;
|
49
49
|
okButtonProps: import('../Button').ButtonProps;
|
50
50
|
cancelButtonProps: import('../Button').ButtonProps;
|
package/lib/Modal/Modal.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js"),l=require("./hooks/useModalClose.js"),
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js"),l=require("../_shared/locale/i18n.js"),a=require("./hooks/useModalClose.js"),n=require("./hooks/useModalDraggable.js"),r=require("../Button/index.js"),s=require("../_shared/components/IconButton.vue.js");,/* empty css */,/* empty css */;/* empty css */const i={key:0,class:"yc-modal-footer"},d=e.defineComponent({name:"Modal",inheritAttrs:!1,__name:"Modal",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{default:400},top:{default:100},mask:{type:Boolean,default:!0},title:{default:""},titleAlign:{default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{default:void 0},maskStyle:{default:()=>({})},modalClass:{default:""},modalStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{default:"fade"},modalAnimationName:{default:"zoom-modal"},bodyClass:{default:""},bodyStyle:{default:()=>({})},hideTitle:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","open","before-open","close","before-close"],setup(d,{emit:u}){const c=d,f=u,{visible:m,defaultVisible:p,width:y,top:k,alignCenter:B,maskClosable:C,escToClose:v,modalStyle:b,fullscreen:g,draggable:h,renderToBody:S,popupContainer:T}=e.toRefs(c),{onBeforeOk:V,onBeforeCancel:x}=c,{popupContainer:N,zIndex:_}=t.getGlobalConfig(c),{outerVisible:w,innerVisible:q,asyncLoading:j,handleClose:z,handleAfterLeave:A}=a({visible:m,defaultVisible:p,escToClose:v,maskClosable:C,onBeforeOk:V,onBeforeCancel:x,emits:f}),E=e.ref(),$=e.ref(),{dragStyle:D,isDraggable:L}=n({visible:q,draggable:h,fullscreen:g,alignCenter:B,top:k,triggerRef:E,modalRef:$}),P=e.computed(()=>({width:g.value?"100%":"auto"==y.value?"fit-content":o.valueToPx(y.value),...D.value,...b.value}));return(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(N),disabled:!e.unref(S)},[!o.unmountOnClose||e.unref(w)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-container",o.$attrs.class,{"yc-modal-simple":o.simple,"yc-modal-position-absolute":e.unref(T)||!e.unref(S)}]),style:e.normalizeStyle({zIndex:e.unref(_),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:o.maskAnimationName},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-modal-mask",style:e.normalizeStyle(o.maskStyle)},null,4)),[[e.vShow,e.unref(q)]]):e.createCommentVNode("",!0)]),_:1},8,["name"]),e.createElementVNode("div",{class:"yc-modal-wrapper",onClick:t[6]||(t[6]=e.withModifiers(o=>e.unref(z)("mask",o),["self"]))},[e.createVNode(e.Transition,{name:o.modalAnimationName,onBeforeEnter:t[3]||(t[3]=e=>o.$emit("before-open")),onBeforeLeave:t[4]||(t[4]=e=>o.$emit("before-close")),onAfterEnter:t[5]||(t[5]=e=>o.$emit("open")),onAfterLeave:e.unref(A)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-modal",o.modalClass,{"yc-modal-draggable":e.unref(L),"yc-modal-fullscreen":e.unref(g)}]),style:e.normalizeStyle(P.value),ref_key:"modalRef",ref:$},[e.renderSlot(o.$slots,"header",{},()=>[e.createElementVNode("div",{class:"yc-modal-header",ref_key:"headerRef",ref:E},[o.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-title","text-ellipsis",{"title-align-center":"center"==o.titleAlign}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])],2)),o.closable&&!o.simple?(e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-modal-close-button",onClick:t[0]||(t[0]=o=>e.unref(z)("closeBtn",o))})):e.createCommentVNode("",!0)],512)]),e.createElementVNode("div",{class:e.normalizeClass(["yc-modal-body",o.bodyClass]),style:e.normalizeStyle(o.bodyStyle)},[e.renderSlot(o.$slots,"default")],6),o.footer?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(o.$slots,"footer",{},()=>[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:t[1]||(t[1]=o=>e.unref(z)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText||e.unref(l.t)("modal.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(r.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(j)},o.okButtonProps,{onClick:t[2]||(t[2]=o=>e.unref(z)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText||e.unref(l.t)("modal.okText")),1)]),_:1},16,["loading"])])])):e.createCommentVNode("",!0)],6),[[e.vShow,e.unref(q)]])]),_:3},8,["name","onAfterLeave"])])],6)),[[e.vShow,e.unref(w)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=d;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { ModalServiceProps } from './type';
|
2
2
|
declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ModalServiceProps> & Readonly<{}>, {
|
3
|
+
okText: string;
|
4
|
+
cancelText: string;
|
3
5
|
top: number;
|
4
6
|
unmountOnClose: boolean;
|
5
7
|
renderToBody: boolean;
|
@@ -14,8 +16,6 @@ declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {},
|
|
14
16
|
alignCenter: boolean;
|
15
17
|
maskClosable: boolean;
|
16
18
|
hideCancel: boolean;
|
17
|
-
okText: string;
|
18
|
-
cancelText: string;
|
19
19
|
okLoading: boolean;
|
20
20
|
okButtonProps: import('..').ButtonProps;
|
21
21
|
cancelButtonProps: import('..').ButtonProps;
|
package/lib/Modal/index.d.ts
CHANGED
@@ -6,21 +6,23 @@ export * from './type';
|
|
6
6
|
declare const Modal: {
|
7
7
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ModalProps> & Readonly<{
|
8
8
|
onCancel?: ((ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
9
|
+
onOk?: (() => any) | undefined;
|
9
10
|
onClose?: (() => any) | undefined;
|
10
11
|
onOpen?: (() => any) | undefined;
|
11
12
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
12
|
-
onOk?: (() => any) | undefined;
|
13
13
|
"onBefore-open"?: (() => any) | undefined;
|
14
14
|
"onBefore-close"?: (() => any) | undefined;
|
15
15
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
16
16
|
cancel: (ev: MouseEvent | KeyboardEvent) => any;
|
17
|
+
ok: () => any;
|
17
18
|
close: () => any;
|
18
19
|
open: () => any;
|
19
20
|
"update:visible": (value: boolean) => any;
|
20
|
-
ok: () => any;
|
21
21
|
"before-open": () => any;
|
22
22
|
"before-close": () => any;
|
23
23
|
}, import('vue').PublicProps, {
|
24
|
+
okText: string;
|
25
|
+
cancelText: string;
|
24
26
|
top: number;
|
25
27
|
unmountOnClose: boolean;
|
26
28
|
popupContainer: import('..').PopupContainer;
|
@@ -37,8 +39,6 @@ declare const Modal: {
|
|
37
39
|
alignCenter: boolean;
|
38
40
|
maskClosable: boolean;
|
39
41
|
hideCancel: boolean;
|
40
|
-
okText: string;
|
41
|
-
cancelText: string;
|
42
42
|
okLoading: boolean;
|
43
43
|
okButtonProps: import('..').ButtonProps;
|
44
44
|
cancelButtonProps: import('..').ButtonProps;
|
@@ -67,13 +67,15 @@ declare const Modal: {
|
|
67
67
|
Defaults: {};
|
68
68
|
}, Readonly<import('./type').ModalProps> & Readonly<{
|
69
69
|
onCancel?: ((ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
70
|
+
onOk?: (() => any) | undefined;
|
70
71
|
onClose?: (() => any) | undefined;
|
71
72
|
onOpen?: (() => any) | undefined;
|
72
73
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
73
|
-
onOk?: (() => any) | undefined;
|
74
74
|
"onBefore-open"?: (() => any) | undefined;
|
75
75
|
"onBefore-close"?: (() => any) | undefined;
|
76
76
|
}>, {}, {}, {}, {}, {
|
77
|
+
okText: string;
|
78
|
+
cancelText: string;
|
77
79
|
top: number;
|
78
80
|
unmountOnClose: boolean;
|
79
81
|
popupContainer: import('..').PopupContainer;
|
@@ -90,8 +92,6 @@ declare const Modal: {
|
|
90
92
|
alignCenter: boolean;
|
91
93
|
maskClosable: boolean;
|
92
94
|
hideCancel: boolean;
|
93
|
-
okText: string;
|
94
|
-
cancelText: string;
|
95
95
|
okLoading: boolean;
|
96
96
|
okButtonProps: import('..').ButtonProps;
|
97
97
|
cancelButtonProps: import('..').ButtonProps;
|
@@ -114,21 +114,23 @@ declare const Modal: {
|
|
114
114
|
__isSuspense?: never;
|
115
115
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ModalProps> & Readonly<{
|
116
116
|
onCancel?: ((ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
117
|
+
onOk?: (() => any) | undefined;
|
117
118
|
onClose?: (() => any) | undefined;
|
118
119
|
onOpen?: (() => any) | undefined;
|
119
120
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
120
|
-
onOk?: (() => any) | undefined;
|
121
121
|
"onBefore-open"?: (() => any) | undefined;
|
122
122
|
"onBefore-close"?: (() => any) | undefined;
|
123
123
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
124
124
|
cancel: (ev: MouseEvent | KeyboardEvent) => any;
|
125
|
+
ok: () => any;
|
125
126
|
close: () => any;
|
126
127
|
open: () => any;
|
127
128
|
"update:visible": (value: boolean) => any;
|
128
|
-
ok: () => any;
|
129
129
|
"before-open": () => any;
|
130
130
|
"before-close": () => any;
|
131
131
|
}, string, {
|
132
|
+
okText: string;
|
133
|
+
cancelText: string;
|
132
134
|
top: number;
|
133
135
|
unmountOnClose: boolean;
|
134
136
|
popupContainer: import('..').PopupContainer;
|
@@ -145,8 +147,6 @@ declare const Modal: {
|
|
145
147
|
alignCenter: boolean;
|
146
148
|
maskClosable: boolean;
|
147
149
|
hideCancel: boolean;
|
148
|
-
okText: string;
|
149
|
-
cancelText: string;
|
150
150
|
okLoading: boolean;
|
151
151
|
okButtonProps: import('..').ButtonProps;
|
152
152
|
cancelButtonProps: import('..').ButtonProps;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { NotificationProps } from './type';
|
2
2
|
declare const _default: import('vue').DefineComponent<NotificationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationProps> & Readonly<{}>, {
|
3
|
+
type: import('./type').NotificationType;
|
3
4
|
duration: number;
|
4
5
|
content: import('../_shared/type').RenderContent;
|
5
6
|
style: import('vue').CSSProperties;
|
6
7
|
icon: import('vue').RenderFunction;
|
7
|
-
type: import('./type').NotificationType;
|
8
8
|
footer: import('vue').RenderFunction;
|
9
9
|
title: import('../_shared/type').RenderContent;
|
10
10
|
class: import('../_shared/type').ClassName;
|
@@ -5,11 +5,11 @@ export type NotificationInstance = InstanceType<typeof _Notification>;
|
|
5
5
|
export * from './type';
|
6
6
|
declare const Notification: {
|
7
7
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
8
|
+
type: NotificationType;
|
8
9
|
duration: number;
|
9
10
|
content: import('../_shared/type').RenderContent;
|
10
11
|
style: import('vue').CSSProperties;
|
11
12
|
icon: import('vue').RenderFunction;
|
12
|
-
type: NotificationType;
|
13
13
|
footer: import('vue').RenderFunction;
|
14
14
|
title: import('../_shared/type').RenderContent;
|
15
15
|
class: import('../_shared/type').ClassName;
|
@@ -28,11 +28,11 @@ declare const Notification: {
|
|
28
28
|
M: {};
|
29
29
|
Defaults: {};
|
30
30
|
}, Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, {
|
31
|
+
type: NotificationType;
|
31
32
|
duration: number;
|
32
33
|
content: import('../_shared/type').RenderContent;
|
33
34
|
style: import('vue').CSSProperties;
|
34
35
|
icon: import('vue').RenderFunction;
|
35
|
-
type: NotificationType;
|
36
36
|
footer: import('vue').RenderFunction;
|
37
37
|
title: import('../_shared/type').RenderContent;
|
38
38
|
class: import('../_shared/type').ClassName;
|
@@ -48,11 +48,11 @@ declare const Notification: {
|
|
48
48
|
__isTeleport?: never;
|
49
49
|
__isSuspense?: never;
|
50
50
|
} & import('vue').ComponentOptionsBase<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
51
|
+
type: NotificationType;
|
51
52
|
duration: number;
|
52
53
|
content: import('../_shared/type').RenderContent;
|
53
54
|
style: import('vue').CSSProperties;
|
54
55
|
icon: import('vue').RenderFunction;
|
55
|
-
type: NotificationType;
|
56
56
|
footer: import('vue').RenderFunction;
|
57
57
|
title: import('../_shared/type').RenderContent;
|
58
58
|
class: import('../_shared/type').ClassName;
|
@@ -8,8 +8,8 @@ declare const OverflowList: {
|
|
8
8
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
9
9
|
change: (value: number) => any;
|
10
10
|
}, import('vue').PublicProps, {
|
11
|
-
margin: number;
|
12
11
|
min: number;
|
12
|
+
margin: number;
|
13
13
|
from: import('./type').OverflowListFrom;
|
14
14
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
15
15
|
listRef: HTMLDivElement;
|
@@ -24,8 +24,8 @@ declare const OverflowList: {
|
|
24
24
|
}, Readonly<import('./type').OverflowListProps> & Readonly<{
|
25
25
|
onChange?: ((value: number) => any) | undefined;
|
26
26
|
}>, {}, {}, {}, {}, {
|
27
|
-
margin: number;
|
28
27
|
min: number;
|
28
|
+
margin: number;
|
29
29
|
from: import('./type').OverflowListFrom;
|
30
30
|
}>;
|
31
31
|
__isFragment?: never;
|
@@ -36,8 +36,8 @@ declare const OverflowList: {
|
|
36
36
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
37
37
|
change: (value: number) => any;
|
38
38
|
}, string, {
|
39
|
-
margin: number;
|
40
39
|
min: number;
|
40
|
+
margin: number;
|
41
41
|
from: import('./type').OverflowListFrom;
|
42
42
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
43
43
|
$slots: Readonly<import('./type').OverflowListSlots> & import('./type').OverflowListSlots;
|
@@ -14,8 +14,8 @@ declare const __VLS_component: import('vue').DefineComponent<OverflowListProps,
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<OverflowListProps> & Readonly<{
|
15
15
|
onChange?: ((value: number) => any) | undefined;
|
16
16
|
}>, {
|
17
|
-
margin: number;
|
18
17
|
min: number;
|
18
|
+
margin: number;
|
19
19
|
from: import('./type').OverflowListFrom;
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
21
21
|
listRef: HTMLDivElement;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),l=require("./PaginationItem.vue.js");;/* empty css */const
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),l=require("../_shared/locale/i18n.js"),n=require("./PaginationItem.vue.js");;/* empty css */const i=require("../Select/index.js"),s=require("../InputNumber/index.js"),r={key:0,class:"yc-pagination-total"},u={key:1,class:"yc-pagination-jumper yc-pagination-jumper-simple"},p={class:"yc-pagination-jumper-total-page"},d={key:1,class:"yc-pagination-options"},c={key:2,class:"yc-pagination-jumper"},m={class:"yc-pagination-jumper-text-goto"},g=e.defineComponent({name:"Pagination",__name:"Pagination",props:{total:{},current:{default:void 0},defaultCurrent:{default:1},pageSize:{default:void 0},defaultPageSize:{default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{default:()=>[10,20,30,40,50]},pageSizeProps:{default:()=>({})},size:{default:void 0},pageItemStyle:{default:()=>({})},activePageItemStyle:{default:()=>({})},baseSize:{default:6},bufferSize:{default:2},autoAdjust:{type:Boolean,default:!0}},emits:["update:current","update:pageSize","change","page-size-change"],setup(g,{emit:f}){const y=g,v=f,{computedCurrent:k,pages:V,pagesArray:h,computedPageSize:S,size:B,total:z,sizeOptions:N}=o().provide(y,v),j=e.ref(k.value);e.watch(()=>k.value,()=>{j.value!=k.value&&(j.value=k.value)});const b=async e=>{`${j.value}`.length&&(k.value=j.value),await t.sleep(0);const a=e.target;+a.value!=k.value&&(a.value=String(k.value))};return(t,o)=>!t.hideOnSinglePage||t.hideOnSinglePage&&e.unref(V)<=1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-pagination",`yc-pagination-size-${e.unref(B)}`])},[t.showTotal?(e.openBlock(),e.createElementBlock("span",r,[e.renderSlot(t.$slots,"total",{total:e.unref(z)},()=>[e.createTextVNode(e.toDisplayString(e.unref(l.t)("pagination.total",[e.unref(z)])),1)])])):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass([t.simple?"yc-pagination-simple":"yc-pagination-list"])},[e.createVNode(n,{type:"pre",class:"yc-pagination-item-previous"},{default:e.withCtx(()=>[t.$slots["page-item-step"]?e.renderSlot(t.$slots,"page-item-step",{key:0,type:"previous"}):e.createCommentVNode("",!0)]),_:3}),t.simple?(e.openBlock(),e.createElementBlock("span",u,[e.createVNode(e.unref(s),{modelValue:e.unref(k),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(k)?k.value=t:null),"hide-button":"",size:e.unref(B),disabled:t.disabled},null,8,["modelValue","size","disabled"]),o[4]||(o[4]=e.createElementVNode("span",{class:"yc-pagination-jumper-separator"},"/",-1)),e.createElementVNode("span",p,e.toDisplayString(e.unref(V)),1)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(h),o=>(e.openBlock(),e.createBlock(n,{type:e.unref(a.isNumber)(o)?"item":o,key:o,page:e.unref(a.isNumber)(o)?o:-1},{default:e.withCtx(()=>[e.unref(a.isNumber)(o)?e.renderSlot(t.$slots,"page-item",{key:0,page:o},()=>[e.createTextVNode(e.toDisplayString(o),1)]):t.$slots["page-item-ellipsis"]?e.renderSlot(t.$slots,"page-item-ellipsis",{key:1}):e.createCommentVNode("",!0)]),_:2},1032,["type","page"]))),128)),t.showMore&&!t.simple?(e.openBlock(),e.createBlock(n,{key:2,type:"more-right",class:"'yc-pagination-item-ellipsis'"})):e.createCommentVNode("",!0),e.createVNode(n,{type:"next",class:"yc-pagination-item-next"},{default:e.withCtx(()=>[t.$slots["page-item-step"]?e.renderSlot(t.$slots,"page-item-step",{key:0,type:"next"}):e.createCommentVNode("",!0)]),_:3})],2),t.showPageSize?(e.openBlock(),e.createElementBlock("span",d,[e.createVNode(e.unref(i.default),e.mergeProps({modelValue:e.unref(S),"onUpdate:modelValue":o[1]||(o[1]=t=>e.isRef(S)?S.value=t:null),options:e.unref(N),size:e.unref(B)},t.pageSizeProps,{disabled:t.disabled}),null,16,["modelValue","options","size","disabled"])])):e.createCommentVNode("",!0),t.showJumper?(e.openBlock(),e.createElementBlock("span",c,[e.createElementVNode("span",m,e.toDisplayString(e.unref(l.t)("pagination.goto")),1),e.createVNode(e.unref(s),{modelValue:j.value,"onUpdate:modelValue":o[2]||(o[2]=e=>j.value=e),"hide-button":"",size:e.unref(B),disabled:t.disabled,min:1,max:e.unref(V),onFocus:o[3]||(o[3]=t=>j.value=e.unref(k)),onBlur:b},null,8,["modelValue","size","disabled","max"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}});module.exports=g;
|
@@ -24,10 +24,261 @@ declare const _default: () => {
|
|
24
24
|
value: number;
|
25
25
|
}[]>;
|
26
26
|
t: import('vue-i18n').ComposerTranslation<{
|
27
|
-
|
28
|
-
|
27
|
+
'zh-CN': {
|
28
|
+
empty: {
|
29
|
+
description: string;
|
30
|
+
};
|
31
|
+
drawer: {
|
32
|
+
okText: string;
|
33
|
+
cancelText: string;
|
34
|
+
};
|
35
|
+
popconfirm: {
|
36
|
+
okText: string;
|
37
|
+
cancelText: string;
|
38
|
+
};
|
39
|
+
modal: {
|
40
|
+
okText: string;
|
41
|
+
cancelText: string;
|
42
|
+
};
|
43
|
+
pagination: {
|
44
|
+
goto: string;
|
45
|
+
page: string;
|
46
|
+
countPerPage: string;
|
47
|
+
total: string;
|
48
|
+
};
|
49
|
+
calendar: {
|
50
|
+
formatYear: string;
|
51
|
+
formatMonth: string;
|
52
|
+
today: string;
|
53
|
+
view: {
|
54
|
+
month: string;
|
55
|
+
year: string;
|
56
|
+
week: string;
|
57
|
+
day: string;
|
58
|
+
};
|
59
|
+
month: {
|
60
|
+
long: {
|
61
|
+
January: string;
|
62
|
+
February: string;
|
63
|
+
March: string;
|
64
|
+
April: string;
|
65
|
+
May: string;
|
66
|
+
June: string;
|
67
|
+
July: string;
|
68
|
+
August: string;
|
69
|
+
September: string;
|
70
|
+
October: string;
|
71
|
+
November: string;
|
72
|
+
December: string;
|
73
|
+
};
|
74
|
+
short: {
|
75
|
+
January: string;
|
76
|
+
February: string;
|
77
|
+
March: string;
|
78
|
+
April: string;
|
79
|
+
May: string;
|
80
|
+
June: string;
|
81
|
+
July: string;
|
82
|
+
August: string;
|
83
|
+
September: string;
|
84
|
+
October: string;
|
85
|
+
November: string;
|
86
|
+
December: string;
|
87
|
+
};
|
88
|
+
};
|
89
|
+
week: {
|
90
|
+
long: {
|
91
|
+
self: string;
|
92
|
+
monday: string;
|
93
|
+
tuesday: string;
|
94
|
+
wednesday: string;
|
95
|
+
thursday: string;
|
96
|
+
friday: string;
|
97
|
+
saturday: string;
|
98
|
+
sunday: string;
|
99
|
+
};
|
100
|
+
short: {
|
101
|
+
self: string;
|
102
|
+
monday: string;
|
103
|
+
tuesday: string;
|
104
|
+
wednesday: string;
|
105
|
+
thursday: string;
|
106
|
+
friday: string;
|
107
|
+
saturday: string;
|
108
|
+
sunday: string;
|
109
|
+
};
|
110
|
+
};
|
111
|
+
};
|
112
|
+
image: {
|
113
|
+
loading: string;
|
114
|
+
};
|
115
|
+
imagePreview: {
|
116
|
+
fullScreen: string;
|
117
|
+
rotateRight: string;
|
118
|
+
rotateLeft: string;
|
119
|
+
zoomIn: string;
|
120
|
+
zoomOut: string;
|
121
|
+
originalSize: string;
|
122
|
+
};
|
123
|
+
typography: {
|
124
|
+
copied: string;
|
125
|
+
copy: string;
|
126
|
+
expand: string;
|
127
|
+
collapse: string;
|
128
|
+
edit: string;
|
129
|
+
};
|
130
|
+
colorPicker: {
|
131
|
+
history: string;
|
132
|
+
preset: string;
|
133
|
+
empty: string;
|
134
|
+
};
|
135
|
+
table: {
|
136
|
+
okText: string;
|
137
|
+
resetText: string;
|
138
|
+
};
|
139
|
+
upload: {
|
140
|
+
start: string;
|
141
|
+
cancel: string;
|
142
|
+
delete: string;
|
143
|
+
retry: string;
|
144
|
+
buttonText: string;
|
145
|
+
preview: string;
|
146
|
+
drag: string;
|
147
|
+
dragHover: string;
|
148
|
+
error: string;
|
149
|
+
};
|
150
|
+
datePicker: {
|
151
|
+
view: {
|
152
|
+
month: string;
|
153
|
+
year: string;
|
154
|
+
week: string;
|
155
|
+
day: string;
|
156
|
+
};
|
157
|
+
month: {
|
158
|
+
long: {
|
159
|
+
January: string;
|
160
|
+
February: string;
|
161
|
+
March: string;
|
162
|
+
April: string;
|
163
|
+
May: string;
|
164
|
+
June: string;
|
165
|
+
July: string;
|
166
|
+
August: string;
|
167
|
+
September: string;
|
168
|
+
October: string;
|
169
|
+
November: string;
|
170
|
+
December: string;
|
171
|
+
};
|
172
|
+
short: {
|
173
|
+
January: string;
|
174
|
+
February: string;
|
175
|
+
March: string;
|
176
|
+
April: string;
|
177
|
+
May: string;
|
178
|
+
June: string;
|
179
|
+
July: string;
|
180
|
+
August: string;
|
181
|
+
September: string;
|
182
|
+
October: string;
|
183
|
+
November: string;
|
184
|
+
December: string;
|
185
|
+
};
|
186
|
+
};
|
187
|
+
week: {
|
188
|
+
long: {
|
189
|
+
self: string;
|
190
|
+
monday: string;
|
191
|
+
tuesday: string;
|
192
|
+
wednesday: string;
|
193
|
+
thursday: string;
|
194
|
+
friday: string;
|
195
|
+
saturday: string;
|
196
|
+
sunday: string;
|
197
|
+
};
|
198
|
+
short: {
|
199
|
+
self: string;
|
200
|
+
monday: string;
|
201
|
+
tuesday: string;
|
202
|
+
wednesday: string;
|
203
|
+
thursday: string;
|
204
|
+
friday: string;
|
205
|
+
saturday: string;
|
206
|
+
sunday: string;
|
207
|
+
};
|
208
|
+
};
|
209
|
+
placeholder: {
|
210
|
+
date: string;
|
211
|
+
week: string;
|
212
|
+
month: string;
|
213
|
+
year: string;
|
214
|
+
quarter: string;
|
215
|
+
time: string;
|
216
|
+
};
|
217
|
+
rangePlaceholder: {
|
218
|
+
date: string[];
|
219
|
+
week: string[];
|
220
|
+
month: string[];
|
221
|
+
year: string[];
|
222
|
+
quarter: string[];
|
223
|
+
time: string[];
|
224
|
+
};
|
225
|
+
selectTime: string;
|
226
|
+
today: string;
|
227
|
+
now: string;
|
228
|
+
ok: string;
|
229
|
+
};
|
230
|
+
form: {
|
231
|
+
validateMessages: {
|
232
|
+
required: string;
|
233
|
+
type: {
|
234
|
+
string: string;
|
235
|
+
number: string;
|
236
|
+
boolean: string;
|
237
|
+
array: string;
|
238
|
+
object: string;
|
239
|
+
url: string;
|
240
|
+
email: string;
|
241
|
+
ip: string;
|
242
|
+
};
|
243
|
+
number: {
|
244
|
+
min: string;
|
245
|
+
max: string;
|
246
|
+
equal: string;
|
247
|
+
range: string;
|
248
|
+
positive: string;
|
249
|
+
negative: string;
|
250
|
+
};
|
251
|
+
array: {
|
252
|
+
length: string;
|
253
|
+
minLength: string;
|
254
|
+
maxLength: string;
|
255
|
+
includes: string;
|
256
|
+
deepEqual: string;
|
257
|
+
empty: string;
|
258
|
+
};
|
259
|
+
string: {
|
260
|
+
minLength: string;
|
261
|
+
maxLength: string;
|
262
|
+
length: string;
|
263
|
+
match: string;
|
264
|
+
uppercase: string;
|
265
|
+
lowercase: string;
|
266
|
+
};
|
267
|
+
object: {
|
268
|
+
deepEqual: string;
|
269
|
+
hasKeys: string;
|
270
|
+
empty: string;
|
271
|
+
};
|
272
|
+
boolean: {
|
273
|
+
true: string;
|
274
|
+
false: string;
|
275
|
+
};
|
276
|
+
};
|
277
|
+
};
|
278
|
+
};
|
279
|
+
}, "zh-CN", import('@intlify/core-base').RemoveIndexSignature<{
|
29
280
|
[x: string]: import('vue-i18n').LocaleMessageValue<import('vue-i18n').VueMessageType>;
|
30
|
-
}>, never, never, never>;
|
281
|
+
}>, never, "empty.description" | "drawer.okText" | "drawer.cancelText" | "popconfirm.okText" | "popconfirm.cancelText" | "modal.okText" | "modal.cancelText" | "pagination.goto" | "pagination.page" | "pagination.countPerPage" | "pagination.total" | "calendar.formatYear" | "calendar.formatMonth" | "calendar.today" | "calendar.view.month" | "calendar.view.week" | "calendar.view.year" | "calendar.view.day" | "calendar.month.long.January" | "calendar.month.long.February" | "calendar.month.long.March" | "calendar.month.long.April" | "calendar.month.long.May" | "calendar.month.long.June" | "calendar.month.long.July" | "calendar.month.long.August" | "calendar.month.long.September" | "calendar.month.long.October" | "calendar.month.long.November" | "calendar.month.long.December" | "calendar.month.short.January" | "calendar.month.short.February" | "calendar.month.short.March" | "calendar.month.short.April" | "calendar.month.short.May" | "calendar.month.short.June" | "calendar.month.short.July" | "calendar.month.short.August" | "calendar.month.short.September" | "calendar.month.short.October" | "calendar.month.short.November" | "calendar.month.short.December" | "calendar.week.long.self" | "calendar.week.long.monday" | "calendar.week.long.tuesday" | "calendar.week.long.wednesday" | "calendar.week.long.thursday" | "calendar.week.long.friday" | "calendar.week.long.saturday" | "calendar.week.long.sunday" | "calendar.week.short.self" | "calendar.week.short.monday" | "calendar.week.short.tuesday" | "calendar.week.short.wednesday" | "calendar.week.short.thursday" | "calendar.week.short.friday" | "calendar.week.short.saturday" | "calendar.week.short.sunday" | "image.loading" | "imagePreview.fullScreen" | "imagePreview.rotateRight" | "imagePreview.rotateLeft" | "imagePreview.zoomIn" | "imagePreview.zoomOut" | "imagePreview.originalSize" | "typography.copied" | "typography.copy" | "typography.expand" | "typography.collapse" | "typography.edit" | "colorPicker.empty" | "colorPicker.history" | "colorPicker.preset" | "table.okText" | "table.resetText" | "upload.start" | "upload.cancel" | "upload.delete" | "upload.retry" | "upload.buttonText" | "upload.preview" | "upload.drag" | "upload.dragHover" | "upload.error" | "datePicker.today" | "datePicker.view.month" | "datePicker.view.week" | "datePicker.view.year" | "datePicker.view.day" | "datePicker.month.long.January" | "datePicker.month.long.February" | "datePicker.month.long.March" | "datePicker.month.long.April" | "datePicker.month.long.May" | "datePicker.month.long.June" | "datePicker.month.long.July" | "datePicker.month.long.August" | "datePicker.month.long.September" | "datePicker.month.long.October" | "datePicker.month.long.November" | "datePicker.month.long.December" | "datePicker.month.short.January" | "datePicker.month.short.February" | "datePicker.month.short.March" | "datePicker.month.short.April" | "datePicker.month.short.May" | "datePicker.month.short.June" | "datePicker.month.short.July" | "datePicker.month.short.August" | "datePicker.month.short.September" | "datePicker.month.short.October" | "datePicker.month.short.November" | "datePicker.month.short.December" | "datePicker.week.long.self" | "datePicker.week.long.monday" | "datePicker.week.long.tuesday" | "datePicker.week.long.wednesday" | "datePicker.week.long.thursday" | "datePicker.week.long.friday" | "datePicker.week.long.saturday" | "datePicker.week.long.sunday" | "datePicker.week.short.self" | "datePicker.week.short.monday" | "datePicker.week.short.tuesday" | "datePicker.week.short.wednesday" | "datePicker.week.short.thursday" | "datePicker.week.short.friday" | "datePicker.week.short.saturday" | "datePicker.week.short.sunday" | "datePicker.selectTime" | "datePicker.now" | "datePicker.ok" | "datePicker.placeholder.month" | "datePicker.placeholder.week" | "datePicker.placeholder.year" | "datePicker.placeholder.date" | "datePicker.placeholder.quarter" | "datePicker.placeholder.time" | "datePicker.rangePlaceholder.month.length" | "datePicker.rangePlaceholder.week.length" | "datePicker.rangePlaceholder.year.length" | "datePicker.rangePlaceholder.date.length" | "datePicker.rangePlaceholder.quarter.length" | "datePicker.rangePlaceholder.time.length" | "form.validateMessages.required" | "form.validateMessages.string.length" | "form.validateMessages.string.minLength" | "form.validateMessages.string.maxLength" | "form.validateMessages.string.match" | "form.validateMessages.string.uppercase" | "form.validateMessages.string.lowercase" | "form.validateMessages.number.min" | "form.validateMessages.number.max" | "form.validateMessages.number.equal" | "form.validateMessages.number.range" | "form.validateMessages.number.positive" | "form.validateMessages.number.negative" | "form.validateMessages.boolean.true" | "form.validateMessages.boolean.false" | "form.validateMessages.object.empty" | "form.validateMessages.object.deepEqual" | "form.validateMessages.object.hasKeys" | "form.validateMessages.type.string" | "form.validateMessages.type.number" | "form.validateMessages.type.boolean" | "form.validateMessages.type.object" | "form.validateMessages.type.array" | "form.validateMessages.type.url" | "form.validateMessages.type.email" | "form.validateMessages.type.ip" | "form.validateMessages.array.empty" | "form.validateMessages.array.length" | "form.validateMessages.array.includes" | "form.validateMessages.array.minLength" | "form.validateMessages.array.maxLength" | "form.validateMessages.array.deepEqual", "empty.description" | "drawer.okText" | "drawer.cancelText" | "popconfirm.okText" | "popconfirm.cancelText" | "modal.okText" | "modal.cancelText" | "pagination.goto" | "pagination.page" | "pagination.countPerPage" | "pagination.total" | "calendar.formatYear" | "calendar.formatMonth" | "calendar.today" | "calendar.view.month" | "calendar.view.week" | "calendar.view.year" | "calendar.view.day" | "calendar.month.long.January" | "calendar.month.long.February" | "calendar.month.long.March" | "calendar.month.long.April" | "calendar.month.long.May" | "calendar.month.long.June" | "calendar.month.long.July" | "calendar.month.long.August" | "calendar.month.long.September" | "calendar.month.long.October" | "calendar.month.long.November" | "calendar.month.long.December" | "calendar.month.short.January" | "calendar.month.short.February" | "calendar.month.short.March" | "calendar.month.short.April" | "calendar.month.short.May" | "calendar.month.short.June" | "calendar.month.short.July" | "calendar.month.short.August" | "calendar.month.short.September" | "calendar.month.short.October" | "calendar.month.short.November" | "calendar.month.short.December" | "calendar.week.long.self" | "calendar.week.long.monday" | "calendar.week.long.tuesday" | "calendar.week.long.wednesday" | "calendar.week.long.thursday" | "calendar.week.long.friday" | "calendar.week.long.saturday" | "calendar.week.long.sunday" | "calendar.week.short.self" | "calendar.week.short.monday" | "calendar.week.short.tuesday" | "calendar.week.short.wednesday" | "calendar.week.short.thursday" | "calendar.week.short.friday" | "calendar.week.short.saturday" | "calendar.week.short.sunday" | "image.loading" | "imagePreview.fullScreen" | "imagePreview.rotateRight" | "imagePreview.rotateLeft" | "imagePreview.zoomIn" | "imagePreview.zoomOut" | "imagePreview.originalSize" | "typography.copied" | "typography.copy" | "typography.expand" | "typography.collapse" | "typography.edit" | "colorPicker.empty" | "colorPicker.history" | "colorPicker.preset" | "table.okText" | "table.resetText" | "upload.start" | "upload.cancel" | "upload.delete" | "upload.retry" | "upload.buttonText" | "upload.preview" | "upload.drag" | "upload.dragHover" | "upload.error" | "datePicker.today" | "datePicker.view.month" | "datePicker.view.week" | "datePicker.view.year" | "datePicker.view.day" | "datePicker.month.long.January" | "datePicker.month.long.February" | "datePicker.month.long.March" | "datePicker.month.long.April" | "datePicker.month.long.May" | "datePicker.month.long.June" | "datePicker.month.long.July" | "datePicker.month.long.August" | "datePicker.month.long.September" | "datePicker.month.long.October" | "datePicker.month.long.November" | "datePicker.month.long.December" | "datePicker.month.short.January" | "datePicker.month.short.February" | "datePicker.month.short.March" | "datePicker.month.short.April" | "datePicker.month.short.May" | "datePicker.month.short.June" | "datePicker.month.short.July" | "datePicker.month.short.August" | "datePicker.month.short.September" | "datePicker.month.short.October" | "datePicker.month.short.November" | "datePicker.month.short.December" | "datePicker.week.long.self" | "datePicker.week.long.monday" | "datePicker.week.long.tuesday" | "datePicker.week.long.wednesday" | "datePicker.week.long.thursday" | "datePicker.week.long.friday" | "datePicker.week.long.saturday" | "datePicker.week.long.sunday" | "datePicker.week.short.self" | "datePicker.week.short.monday" | "datePicker.week.short.tuesday" | "datePicker.week.short.wednesday" | "datePicker.week.short.thursday" | "datePicker.week.short.friday" | "datePicker.week.short.saturday" | "datePicker.week.short.sunday" | "datePicker.selectTime" | "datePicker.now" | "datePicker.ok" | "datePicker.placeholder.month" | "datePicker.placeholder.week" | "datePicker.placeholder.year" | "datePicker.placeholder.date" | "datePicker.placeholder.quarter" | "datePicker.placeholder.time" | "datePicker.rangePlaceholder.month.length" | "datePicker.rangePlaceholder.week.length" | "datePicker.rangePlaceholder.year.length" | "datePicker.rangePlaceholder.date.length" | "datePicker.rangePlaceholder.quarter.length" | "datePicker.rangePlaceholder.time.length" | "form.validateMessages.required" | "form.validateMessages.string.length" | "form.validateMessages.string.minLength" | "form.validateMessages.string.maxLength" | "form.validateMessages.string.match" | "form.validateMessages.string.uppercase" | "form.validateMessages.string.lowercase" | "form.validateMessages.number.min" | "form.validateMessages.number.max" | "form.validateMessages.number.equal" | "form.validateMessages.number.range" | "form.validateMessages.number.positive" | "form.validateMessages.number.negative" | "form.validateMessages.boolean.true" | "form.validateMessages.boolean.false" | "form.validateMessages.object.empty" | "form.validateMessages.object.deepEqual" | "form.validateMessages.object.hasKeys" | "form.validateMessages.type.string" | "form.validateMessages.type.number" | "form.validateMessages.type.boolean" | "form.validateMessages.type.object" | "form.validateMessages.type.array" | "form.validateMessages.type.url" | "form.validateMessages.type.email" | "form.validateMessages.type.ip" | "form.validateMessages.array.empty" | "form.validateMessages.array.length" | "form.validateMessages.array.includes" | "form.validateMessages.array.minLength" | "form.validateMessages.array.maxLength" | "form.validateMessages.array.deepEqual">;
|
31
282
|
};
|
32
283
|
inject: () => PaginationContext;
|
33
284
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js");const
|
1
|
+
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js");const a=require("../../_shared/utils/global-config.js"),t=require("../../_shared/utils/control.js"),u=require("../../_shared/locale/i18n.js"),r="pagination-context";module.exports=()=>({provide:(l,i)=>{const{disabled:s,current:o,defaultCurrent:p,pageSize:n,defaultPageSize:v,pageSizeOptions:c,pageItemStyle:d,activePageItemStyle:g,baseSize:f,bufferSize:m,autoAdjust:S,total:z}=e.toRefs(l),{size:h}=a.getGlobalConfig(l),b=t(S.value?z:e.ref(),S.value?0:z.value),y=e.computed(()=>{const e=Math.ceil(b.value/q.value);return e<=1?1:e}),j=e.computed(()=>{if(y.value<f.value)return new Array(y.value).fill(void 0).map((e,a)=>a+1);const e=[],a=P.value-m.value>1,t=P.value+m.value<y.value;let u=0;u=a?t?P.value-m.value:y.value-2*m.value:2;let r=0;r=t?a?P.value+m.value:1+2*m.value:y.value-1,e.push(1),a&&e.push("more-left");for(let l=u;l<=r;l++)e.push(l);return t&&e.push("more-right"),e.push(y.value),e}),P=t(o,p.value,e=>{i("update:current",e),i("change",e)}),q=t(n,v.value,e=>{P.value=1,i("update:pageSize",e),i("page-size-change",e)}),I=e.computed(()=>c.value.map(e=>({label:`${e}${u.t("pagination.countPerPage")}`,value:e})));return e.provide(r,{computedCurrent:P,computedPageSize:q,disabled:s,pageItemStyle:d,activePageItemStyle:g,pages:y,baseSize:f,bufferSize:m}),{total:b,size:h,pages:y,pagesArray:j,computedCurrent:P,computedPageSize:q,sizeOptions:I,t:u.t}},inject:()=>e.inject(r,{computedCurrent:e.ref(1),computedPageSize:e.ref(10),disabled:e.ref(!1),pageItemStyle:e.ref({}),activePageItemStyle:e.ref({}),pages:e.ref(0),baseSize:e.ref(6),bufferSize:e.ref(2)})});
|