yc-design-vue 2.1.9 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/index.d.ts +3 -3
- package/es/Badge/index.d.ts +3 -3
- package/es/Badge/index.vue.d.ts +1 -1
- package/es/Button/Button.vue.d.ts +2 -2
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/index.d.ts +9 -9
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/index.d.ts +3 -3
- package/es/Cascader/Cascader.vue.d.ts +12 -44
- package/es/Cascader/index.d.ts +6 -22
- package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Image/ImagePreviewToolbar.vue.js +6 -6
- package/es/Input/Input.vue.d.ts +2 -8
- package/es/Input/Input.vue.js +24 -46
- package/es/Input/InputPassword.vue.d.ts +309 -0
- package/es/Input/InputPassword.vue.js +122 -0
- package/es/Input/InputPassword.vue2.js +4 -0
- package/es/Input/InputSearch.vue.d.ts +310 -0
- package/es/Input/InputSearch.vue.js +133 -0
- package/es/Input/InputSearch.vue2.js +4 -0
- package/es/Input/hooks/useLimitedInput.d.ts +2 -0
- package/es/Input/hooks/useLimitedInput.js +2 -0
- package/es/Input/index.css +1 -1
- package/es/Input/index.d.ts +420 -23
- package/es/Input/index.js +11 -3
- package/es/Input/type.d.ts +24 -6
- package/es/InputNumber/InputNumber.vue.d.ts +12 -44
- package/es/InputNumber/index.d.ts +6 -22
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Statistic/Statistic.vue.d.ts +1 -1
- package/es/Statistic/index.d.ts +3 -3
- 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/Transfer/TransferPanel.vue.js +1 -1
- package/es/Typography/TypographyBase.vue.d.ts +12 -44
- package/es/Upload/UploadPictureCard.vue2.js +1 -1
- package/es/_shared/icons/IconEyeClose.vue.js +32 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -32
- package/es/_shared/icons/IconEyeOpen.vue.js +29 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -29
- package/es/_shared/icons/IconFullScreen.vue.js +1 -28
- package/es/_shared/icons/IconFullScreen.vue2.js +28 -1
- package/es/_shared/icons/IconOriginSize.vue.js +1 -34
- package/es/_shared/icons/IconOriginSize.vue2.js +34 -1
- package/es/_shared/icons/IconRotateLeft.vue.js +1 -28
- package/es/_shared/icons/IconRotateLeft.vue2.js +28 -1
- package/es/_shared/icons/IconRotateRight.vue.js +1 -28
- package/es/_shared/icons/IconRotateRight.vue2.js +28 -1
- package/es/_shared/icons/IconSearch.vue.js +28 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -28
- package/es/_shared/icons/IconZoomIn.vue.js +1 -28
- package/es/_shared/icons/IconZoomIn.vue2.js +28 -1
- package/es/_shared/icons/IconZoomOut.vue.js +1 -28
- package/es/_shared/icons/IconZoomOut.vue2.js +28 -1
- package/es/index.d.ts +9 -9
- package/es/index.js +4 -0
- package/es/style.css +1 -1
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/Badge/index.d.ts +3 -3
- package/lib/Badge/index.vue.d.ts +1 -1
- package/lib/Button/Button.vue.d.ts +2 -2
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/index.d.ts +9 -9
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/index.d.ts +3 -3
- package/lib/Cascader/Cascader.vue.d.ts +12 -44
- package/lib/Cascader/index.d.ts +6 -22
- package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Input/Input.vue.d.ts +2 -8
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputPassword.vue.d.ts +309 -0
- package/lib/Input/InputPassword.vue.js +1 -0
- package/lib/Input/{InputSuffix.vue3.js → InputPassword.vue2.js} +1 -1
- package/lib/Input/InputSearch.vue.d.ts +310 -0
- package/lib/Input/InputSearch.vue.js +1 -0
- package/lib/Input/InputSearch.vue2.js +1 -0
- package/lib/Input/hooks/useLimitedInput.d.ts +2 -0
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/Input/index.css +1 -1
- package/lib/Input/index.d.ts +420 -23
- package/lib/Input/index.js +1 -1
- package/lib/Input/type.d.ts +24 -6
- package/lib/InputNumber/InputNumber.vue.d.ts +12 -44
- package/lib/InputNumber/index.d.ts +6 -22
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +1 -1
- package/lib/Statistic/index.d.ts +3 -3
- 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/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +12 -44
- package/lib/Upload/UploadPictureCard.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- 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/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.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/index.d.ts +9 -9
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Input/InputSuffix.vue.d.ts +0 -31
- package/es/Input/InputSuffix.vue.js +0 -58
- package/es/Input/InputSuffix.vue3.js +0 -5
- package/lib/Input/InputSuffix.vue.d.ts +0 -31
- package/lib/Input/InputSuffix.vue.js +0 -1
package/package.json
CHANGED
@@ -1,31 +0,0 @@
|
|
1
|
-
type __VLS_Props = {
|
2
|
-
curLength: number;
|
3
|
-
maxLength?: number;
|
4
|
-
showWordLimit: boolean;
|
5
|
-
computedVisibility: boolean;
|
6
|
-
isPassword: boolean;
|
7
|
-
invisibleButton: boolean;
|
8
|
-
};
|
9
|
-
declare function __VLS_template(): {
|
10
|
-
attrs: Partial<{}>;
|
11
|
-
slots: {
|
12
|
-
suffix?(_: {}): any;
|
13
|
-
};
|
14
|
-
refs: {};
|
15
|
-
rootEl: any;
|
16
|
-
};
|
17
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
18
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
19
|
-
clear: (ev: MouseEvent) => any;
|
20
|
-
visibilityChange: (value: boolean) => any;
|
21
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
22
|
-
onClear?: ((ev: MouseEvent) => any) | undefined;
|
23
|
-
onVisibilityChange?: ((value: boolean) => any) | undefined;
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
26
|
-
export default _default;
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
28
|
-
new (): {
|
29
|
-
$slots: S;
|
30
|
-
};
|
31
|
-
};
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
2
|
-
import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
|
3
|
-
/* empty css */
|
4
|
-
import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
|
5
|
-
import "../node_modules/b-tween/dist/b-tween.es.js";
|
6
|
-
import "../node_modules/dayjs/dayjs.min.js";
|
7
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
8
|
-
import "../node_modules/dayjs/plugin/duration.js";
|
9
|
-
import "../node_modules/dayjs/plugin/toObject.js";
|
10
|
-
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
11
|
-
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
12
|
-
import "../_shared/utils/dom.js";
|
13
|
-
import "../_shared/utils/locale.js";
|
14
|
-
import "../_shared/utils/time.js";
|
15
|
-
/* empty css */
|
16
|
-
/* empty css */
|
17
|
-
import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue2.js";
|
18
|
-
import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue2.js";
|
19
|
-
const _hoisted_1 = {
|
20
|
-
key: 0,
|
21
|
-
class: "yc-input-word-limit"
|
22
|
-
};
|
23
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
24
|
-
__name: "InputSuffix",
|
25
|
-
props: {
|
26
|
-
curLength: {},
|
27
|
-
maxLength: {},
|
28
|
-
showWordLimit: { type: Boolean },
|
29
|
-
computedVisibility: { type: Boolean },
|
30
|
-
isPassword: { type: Boolean },
|
31
|
-
invisibleButton: { type: Boolean }
|
32
|
-
},
|
33
|
-
emits: ["clear", "visibilityChange"],
|
34
|
-
setup(__props) {
|
35
|
-
return (_ctx, _cache) => {
|
36
|
-
return openBlock(), createBlock(unref(_sfc_main$1), { class: "yc-input-suffix" }, {
|
37
|
-
default: withCtx(() => [
|
38
|
-
_ctx.showWordLimit ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(_ctx.curLength) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true),
|
39
|
-
_ctx.isPassword && _ctx.invisibleButton ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
40
|
-
key: 1,
|
41
|
-
size: 14,
|
42
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("visibilityChange", !_ctx.computedVisibility))
|
43
|
-
}, {
|
44
|
-
default: withCtx(() => [
|
45
|
-
_ctx.computedVisibility ? (openBlock(), createBlock(unref(_sfc_main$3), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$4), { key: 1 }))
|
46
|
-
]),
|
47
|
-
_: 1
|
48
|
-
})) : createCommentVNode("", true),
|
49
|
-
_ctx.$slots.suffix ? renderSlot(_ctx.$slots, "suffix", { key: 2 }) : createCommentVNode("", true)
|
50
|
-
]),
|
51
|
-
_: 3
|
52
|
-
});
|
53
|
-
};
|
54
|
-
}
|
55
|
-
});
|
56
|
-
export {
|
57
|
-
_sfc_main as default
|
58
|
-
};
|
@@ -1,31 +0,0 @@
|
|
1
|
-
type __VLS_Props = {
|
2
|
-
curLength: number;
|
3
|
-
maxLength?: number;
|
4
|
-
showWordLimit: boolean;
|
5
|
-
computedVisibility: boolean;
|
6
|
-
isPassword: boolean;
|
7
|
-
invisibleButton: boolean;
|
8
|
-
};
|
9
|
-
declare function __VLS_template(): {
|
10
|
-
attrs: Partial<{}>;
|
11
|
-
slots: {
|
12
|
-
suffix?(_: {}): any;
|
13
|
-
};
|
14
|
-
refs: {};
|
15
|
-
rootEl: any;
|
16
|
-
};
|
17
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
18
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
19
|
-
clear: (ev: MouseEvent) => any;
|
20
|
-
visibilityChange: (value: boolean) => any;
|
21
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
22
|
-
onClear?: ((ev: MouseEvent) => any) | undefined;
|
23
|
-
onVisibilityChange?: ((value: boolean) => any) | undefined;
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
26
|
-
export default _default;
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
28
|
-
new (): {
|
29
|
-
$slots: S;
|
30
|
-
};
|
31
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=;/* empty css */;/* empty css */const s=;/* empty css */require("../node_modules/b-tween/dist/b-tween.es.js"),require("../node_modules/dayjs/dayjs.min.js"),require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../node_modules/dayjs/plugin/duration.js"),require("../node_modules/dayjs/plugin/toObject.js"),require("../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/locale.js"),require("../_shared/utils/time.js"),/* empty css */;/* empty css */const i=require("../_shared/icons/IconEyeClose.vue2.js"),t=require("../_shared/icons/IconEyeOpen.vue2.js"),n={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,u)=>(e.openBlock(),e.createBlock(e.unref(s.default),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",n,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(o.default),{key:1,size:14,onClick:u[0]||(u[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(t.default),{key:0})):(e.openBlock(),e.createBlock(e.unref(i.default),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});exports.default=r;
|