yc-design-vue 1.0.7 → 1.0.9
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 +10 -10
- package/es/AutoComplete/index.vue.d.ts +20 -20
- package/es/Cascader/CascaderOption.vue.d.ts +1 -1
- package/es/ColorPicker/hooks/useContext.d.ts +1 -1
- package/es/Descriptions/Descriptions.vue.d.ts +1 -1
- package/es/Descriptions/hooks/useContext.d.ts +1 -1
- package/es/Descriptions/index.d.ts +3 -3
- package/es/Drawer/Drawer.vue.d.ts +1 -1
- package/es/Drawer/DrawerService.vue.d.ts +1 -1
- package/es/Drawer/index.d.ts +3 -3
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreview.vue2.js +0 -1
- package/es/InputTag/index.d.ts +5 -5
- package/es/InputTag/index.vue.d.ts +2 -2
- package/es/List/List.vue.d.ts +2 -3
- package/es/List/List.vue.js +1 -1
- package/es/List/List.vue2.js +5 -22
- package/es/List/index.d.ts +1 -4
- package/es/List/type.d.ts +0 -2
- package/es/Mention/index.d.ts +13 -13
- package/es/Mention/index.vue.d.ts +21 -21
- package/es/Message/Message.vue.d.ts +1 -1
- package/es/Message/index.d.ts +3 -3
- package/es/Modal/Modal.vue.d.ts +2 -2
- package/es/Modal/ModalService.vue.d.ts +2 -2
- package/es/Modal/index.d.ts +6 -6
- package/es/Notification/Notification.vue.d.ts +3 -3
- package/es/Notification/index.d.ts +9 -9
- package/es/Pagination/hooks/useContext.d.ts +1 -1
- package/es/Popover/index.d.ts +3 -3
- package/es/Popover/index.vue.d.ts +1 -1
- package/es/Select/Select.vue.d.ts +12 -12
- package/es/Select/index.d.ts +10 -10
- package/es/Statistic/Countdown.vue.d.ts +1 -1
- package/es/Statistic/Statistic.vue.d.ts +1 -1
- package/es/Statistic/Statistic.vue.js +1 -1
- package/es/Statistic/Statistic.vue2.js +9 -2
- package/es/Statistic/index.d.ts +6 -6
- package/es/Tabs/hooks/useContext.d.ts +1 -1
- package/es/Transfer/Transfer.vue.d.ts +1 -1
- package/es/Transfer/index.d.ts +3 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/index.vue2.js +5 -2
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/_shared/icons/IconCopy.vue.js +1 -16
- package/es/_shared/icons/IconCopy.vue2.js +16 -1
- package/es/_shared/icons/IconEdit.vue.js +1 -16
- package/es/_shared/icons/IconEdit.vue2.js +16 -1
- package/es/_shared/utils/dom.d.ts +1 -1
- package/es/_shared/utils/global-config.d.ts +1 -1
- package/es/index.d.ts +3 -3
- package/es/style.css +1 -1
- package/lib/Alert/index.d.ts +3 -3
- package/lib/Alert/index.vue.d.ts +1 -1
- package/lib/AutoComplete/index.d.ts +10 -10
- package/lib/AutoComplete/index.vue.d.ts +20 -20
- package/lib/Cascader/CascaderOption.vue.d.ts +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +1 -1
- package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
- package/lib/Descriptions/hooks/useContext.d.ts +1 -1
- package/lib/Descriptions/index.d.ts +3 -3
- package/lib/Drawer/Drawer.vue.d.ts +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +1 -1
- package/lib/Drawer/index.d.ts +3 -3
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/InputTag/index.d.ts +5 -5
- package/lib/InputTag/index.vue.d.ts +2 -2
- package/lib/List/List.vue.d.ts +2 -3
- package/lib/List/List.vue.js +1 -1
- package/lib/List/List.vue2.js +1 -1
- package/lib/List/index.d.ts +1 -4
- package/lib/List/type.d.ts +0 -2
- package/lib/Mention/index.d.ts +13 -13
- package/lib/Mention/index.vue.d.ts +21 -21
- package/lib/Message/Message.vue.d.ts +1 -1
- package/lib/Message/index.d.ts +3 -3
- package/lib/Modal/Modal.vue.d.ts +2 -2
- package/lib/Modal/ModalService.vue.d.ts +2 -2
- package/lib/Modal/index.d.ts +6 -6
- package/lib/Notification/Notification.vue.d.ts +3 -3
- package/lib/Notification/index.d.ts +9 -9
- package/lib/Pagination/hooks/useContext.d.ts +1 -1
- package/lib/Popover/index.d.ts +3 -3
- package/lib/Popover/index.vue.d.ts +1 -1
- package/lib/Select/Select.vue.d.ts +12 -12
- package/lib/Select/index.d.ts +10 -10
- package/lib/Statistic/Countdown.vue.d.ts +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +1 -1
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Statistic/Statistic.vue2.js +1 -1
- package/lib/Statistic/index.d.ts +6 -6
- package/lib/Tabs/hooks/useContext.d.ts +1 -1
- package/lib/Transfer/Transfer.vue.d.ts +1 -1
- package/lib/Transfer/index.d.ts +3 -3
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/utils/dom.d.ts +1 -1
- package/lib/_shared/utils/global-config.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),l=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/icons/IconCopy.
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),l=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/icons/IconCopy.vue2.js"),n=require("../_shared/icons/IconEdit.vue2.js"),r=require("../_shared/icons/IconInfo.vue.js"),u=require("../_shared/utils/control.js"),d=require("../Input/index.js"),i=require("../Tooltip/index.js"),s=e.defineComponent({name:"TypographyBase",__name:"TypographyBase",props:{tag:{default:"span"},type:{default:void 0},bold:{type:Boolean,default:!1},disabled:{type:Boolean},mark:{type:Boolean,default:!1},underline:{type:Boolean,default:!1},delete:{type:Boolean,default:!1},code:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean,default:!1},editText:{default:""},copyable:{type:Boolean,default:!1},copyText:{default:""},copyDelay:{default:3e3},ellipsis:{type:[Boolean,Object],default:!0},editTooltiProps:{default:()=>({})},copyTooltiProps:{default:()=>({})}},emits:["update:editing","update:editText","edit-start","change","copy","edit-end","ellipsis","expand"],setup(s,{emit:p}){const c=s,y=p,{editing:f,defaultEditing:v,editText:m,copyText:g,copyable:B,copyDelay:h,code:k,mark:x,delete:_,underline:T,ellipsis:C,bold:b}=e.toRefs(c),{isSupported:j,copy:q}=t.useClipboard(),V=e.ref(!1),E=e.ref(),N=e.ref(),w=u(f,v.value,e=>{y("update:editing",e)}),D=u(m,"",e=>{y("update:editText",e),y("change",e)});e.ref({});const I=e.computed(()=>{const e=[x.value,k.value,_.value,T.value,b.value];return["mark","code","del","u","b"].filter((t,o)=>e[o])}),P=e.defineComponent({props:{tags:{type:Array,default:()=>[]}},setup:(t,{slots:o})=>()=>{var l;const{tags:a}=e.toRefs(t),n=(t,o)=>o>=a.value.length?t:e.h(a.value[o],null,n(t,o+1));return n(null==(l=o.default)?void 0:l.call(o),0)}}),R=async()=>{var e;w.value=!0,D.value=D.value?D.value:o.getDomText(E),y("edit-start"),await l.sleep(0),null==(e=N.value)||e.focus()},S=()=>{w.value=!1,y("edit-end")},$=async()=>{if(!B.value||!j.value||V.value)return;const e=g.value||o.getDomText(E);q(e),y("copy",e),V.value=!0,await l.sleep(h.value),V.value=!1};return e.onMounted(()=>{}),(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(["yc-typography",{[`yc-typography-${t.type}`]:t.type,"yc-typography-bold":e.unref(b),"yc-typography-disabled":t.disabled,"yc-typography-underline":e.unref(T),"yc-typography-delete":e.unref(_)}]),ref_key:"contentRef",ref:E},{default:e.withCtx(()=>[e.unref(w)?(e.openBlock(),e.createBlock(e.unref(d),{key:0,modelValue:e.unref(D),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(D)?D.value=t:null),ref_key:"inputRef",ref:N,onBlur:S},null,8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(P),{key:1,tags:I.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["tags"])),t.editable&&!e.unref(w)?(e.openBlock(),e.createElementBlock("span",{key:2,class:"yc-typography-operation-edit",onClick:R},[e.createVNode(e.unref(i),e.mergeProps({content:"编辑",position:"top"},t.editTooltiProps),{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(e.unref(n))])]),_:1},16)])):e.createCommentVNode("",!0),e.unref(B)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"yc-typography-operation-copy",onClick:$},[e.createVNode(e.unref(i),e.mergeProps({position:"top"},t.copyTooltiProps),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"copy-tooltip",{copied:V.value},()=>[e.createTextVNode(e.toDisplayString(""+(V.value?"已复制":"复制")),1)],!0)]),default:e.withCtx(()=>[e.createElementVNode("span",null,[e.renderSlot(t.$slots,"copy-icon",{copied:V.value},()=>[V.value?(e.openBlock(),e.createBlock(e.unref(r),{key:0,color:"rgb(0, 180, 42)"})):(e.openBlock(),e.createBlock(e.unref(a),{key:1}))],!0)])]),_:3},16)])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});module.exports=s;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("./IconCopy.vue2.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),o=require("../components/Icon.vue2.js"),t=e.defineComponent({__name:"IconCopy",setup:t=>(t,n)=>(e.openBlock(),e.createBlock(o,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)])),_:1,__:[0]},16))});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("./IconEdit.vue2.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),t=require("../components/Icon.vue2.js"),o=e.defineComponent({__name:"IconEdit",setup:o=>(o,a)=>(e.openBlock(),e.createBlock(t,e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>a[0]||(a[0]=[e.createElementVNode("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)])),_:1,__:[0]},16))});module.exports=o;
|
@@ -18,7 +18,7 @@ export declare const findFirstScrollableParent: (element?: HTMLElement) => HTMLE
|
|
18
18
|
*/
|
19
19
|
export declare const calculateEllipsis: (originElement: HTMLElement, ellipsisConfig: EllipsisConfig | undefined, operations: (HTMLElement | HTMLElement[] | null) | undefined, fullText: string) => {
|
20
20
|
tooltip?: {
|
21
|
-
type?: "
|
21
|
+
type?: "tooltip" | "popover" | undefined;
|
22
22
|
props?: Record<string, any> | undefined;
|
23
23
|
title: string;
|
24
24
|
} | undefined;
|
@@ -11,7 +11,7 @@ export interface ConfigProviderProvide {
|
|
11
11
|
exchangeTime: Ref<boolean>;
|
12
12
|
slots: Partial<ConfigconfigSlots>;
|
13
13
|
}
|
14
|
-
type ValueType = string |
|
14
|
+
type ValueType = string | number | boolean | PopupContainer | undefined;
|
15
15
|
export declare const getGlobalConfig: (props?: Props) => {
|
16
16
|
slots: Partial<ConfigconfigSlots>;
|
17
17
|
zIndex: Ref<number, number>;
|
package/lib/index.d.ts
CHANGED
@@ -420,9 +420,9 @@ declare const _default: {
|
|
420
420
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
421
421
|
finish: () => any;
|
422
422
|
}, import('vue').PublicProps, {
|
423
|
-
title: string;
|
424
423
|
value: number;
|
425
424
|
start: boolean;
|
425
|
+
title: string;
|
426
426
|
format: string;
|
427
427
|
easeing: string;
|
428
428
|
valueStyle: import('vue').CSSProperties;
|
@@ -437,9 +437,9 @@ declare const _default: {
|
|
437
437
|
}, Readonly<import('./Statistic').CountdownProps> & Readonly<{
|
438
438
|
onFinish?: (() => any) | undefined;
|
439
439
|
}>, {}, {}, {}, {}, {
|
440
|
-
title: string;
|
441
440
|
value: number;
|
442
441
|
start: boolean;
|
442
|
+
title: string;
|
443
443
|
format: string;
|
444
444
|
easeing: string;
|
445
445
|
valueStyle: import('vue').CSSProperties;
|
@@ -453,9 +453,9 @@ declare const _default: {
|
|
453
453
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
454
454
|
finish: () => any;
|
455
455
|
}, string, {
|
456
|
-
title: string;
|
457
456
|
value: number;
|
458
457
|
start: boolean;
|
458
|
+
title: string;
|
459
459
|
format: string;
|
460
460
|
easeing: string;
|
461
461
|
valueStyle: import('vue').CSSProperties;
|