yc-design-vue 1.5.9 → 1.6.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/Alert/index.css +1 -0
- package/es/Anchor/index.css +1 -0
- package/es/AutoComplete/index.css +1 -0
- package/es/Avatar/index.css +1 -0
- package/es/BackTop/index.css +1 -0
- package/es/Badge/index.css +1 -0
- package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/es/Breadcrumb/index.css +1 -0
- package/es/Button/index.css +1 -0
- package/es/Calendar/index.css +1 -0
- package/es/Card/index.css +1 -0
- package/es/Carousel/index.css +1 -0
- package/es/Cascader/index.css +1 -0
- package/es/Checkbox/index.css +1 -0
- package/es/Collapse/index.css +1 -0
- package/es/ColorPicker/index.css +1 -0
- package/es/Comment/index.css +1 -0
- package/es/Descriptions/index.css +1 -0
- package/es/Divider/index.css +1 -0
- package/es/Drawer/index.css +1 -0
- package/es/Dropdown/index.css +1 -0
- package/es/Empty/index.css +1 -0
- package/es/Grid/index.css +1 -0
- package/es/Image/index.css +1 -0
- package/es/Input/index.css +1 -0
- package/es/InputNumber/index.css +1 -0
- package/es/InputTag/index.css +1 -0
- package/es/Layout/index.css +1 -0
- package/es/Link/index.css +1 -0
- package/es/List/index.css +1 -0
- package/es/Menu/index.css +1 -0
- package/es/Message/index.css +1 -0
- package/es/Modal/index.css +1 -0
- package/es/Notification/index.css +1 -0
- package/es/OverflowList/index.css +1 -0
- package/es/PageHeader/index.css +1 -0
- package/es/Pagination/index.css +1 -0
- package/es/Popconfirm/index.css +1 -0
- package/es/Popover/index.css +1 -0
- package/es/Progress/index.css +1 -0
- package/es/Radio/index.css +1 -0
- package/es/Rate/index.css +1 -0
- package/es/ResizeBox/index.css +1 -0
- package/es/Result/index.css +1 -0
- package/es/Scrollbar/index.css +1 -0
- package/es/Select/index.css +1 -0
- package/es/Skeleton/index.css +1 -0
- package/es/Slider/index.css +1 -0
- package/es/Space/index.css +1 -0
- package/es/Spin/index.css +1 -0
- package/es/Split/index.css +1 -0
- package/es/Statistic/index.css +1 -0
- package/es/Steps/index.css +1 -0
- package/es/Switch/index.css +1 -0
- package/es/Tabs/index.css +1 -0
- package/es/Tag/index.css +1 -0
- package/es/Textarea/index.css +1 -0
- package/es/TimePicker/index.css +1 -0
- package/es/Timeline/index.css +1 -0
- package/es/Tooltip/index.css +1 -0
- package/es/Transfer/index.css +1 -0
- package/es/Trigger/index.css +1 -0
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/Typography/index.css +1 -0
- package/es/VerificationCode/index.css +1 -0
- package/es/Watermark/index.css +1 -0
- 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/icons/IconSeparator.vue.js +16 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -16
- package/es/index.d.ts +1 -3
- package/es/index.js +0 -3
- package/es/shared.css +1 -0
- package/es/style.css +1 -1
- package/lib/Alert/index.css +1 -0
- package/lib/Anchor/index.css +1 -0
- package/lib/AutoComplete/index.css +1 -0
- package/lib/Avatar/index.css +1 -0
- package/lib/BackTop/index.css +1 -0
- package/lib/Badge/index.css +1 -0
- package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/lib/Breadcrumb/index.css +1 -0
- package/lib/Button/index.css +1 -0
- package/lib/Calendar/index.css +1 -0
- package/lib/Card/index.css +1 -0
- package/lib/Carousel/index.css +1 -0
- package/lib/Cascader/index.css +1 -0
- package/lib/Checkbox/index.css +1 -0
- package/lib/Collapse/index.css +1 -0
- package/lib/ColorPicker/index.css +1 -0
- package/lib/Comment/index.css +1 -0
- package/lib/Descriptions/index.css +1 -0
- package/lib/Divider/index.css +1 -0
- package/lib/Drawer/index.css +1 -0
- package/lib/Dropdown/index.css +1 -0
- package/lib/Empty/index.css +1 -0
- package/lib/Grid/index.css +1 -0
- package/lib/Image/index.css +1 -0
- package/lib/Input/index.css +1 -0
- package/lib/InputNumber/index.css +1 -0
- package/lib/InputTag/index.css +1 -0
- package/lib/Layout/index.css +1 -0
- package/lib/Link/index.css +1 -0
- package/lib/List/index.css +1 -0
- package/lib/Menu/index.css +1 -0
- package/lib/Message/index.css +1 -0
- package/lib/Modal/index.css +1 -0
- package/lib/Notification/index.css +1 -0
- package/lib/OverflowList/index.css +1 -0
- package/lib/PageHeader/index.css +1 -0
- package/lib/Pagination/index.css +1 -0
- package/lib/Popconfirm/index.css +1 -0
- package/lib/Popover/index.css +1 -0
- package/lib/Progress/index.css +1 -0
- package/lib/Radio/index.css +1 -0
- package/lib/Rate/index.css +1 -0
- package/lib/ResizeBox/index.css +1 -0
- package/lib/Result/index.css +1 -0
- package/lib/Scrollbar/index.css +1 -0
- package/lib/Select/index.css +1 -0
- package/lib/Skeleton/index.css +1 -0
- package/lib/Slider/index.css +1 -0
- package/lib/Space/index.css +1 -0
- package/lib/Spin/index.css +1 -0
- package/lib/Split/index.css +1 -0
- package/lib/Statistic/index.css +1 -0
- package/lib/Steps/index.css +1 -0
- package/lib/Switch/index.css +1 -0
- package/lib/Tabs/index.css +1 -0
- package/lib/Tag/index.css +1 -0
- package/lib/Textarea/index.css +1 -0
- package/lib/TimePicker/index.css +1 -0
- package/lib/Timeline/index.css +1 -0
- package/lib/Tooltip/index.css +1 -0
- package/lib/Transfer/index.css +1 -0
- package/lib/Trigger/index.css +1 -0
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/Typography/index.css +1 -0
- package/lib/VerificationCode/index.css +1 -0
- package/lib/Watermark/index.css +1 -0
- 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/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -1
- package/lib/shared.css +1 -0
- package/lib/style.css +1 -1
- package/package.json +12 -20
- package/es/Icon/index.d.ts +0 -38
- package/es/Icon/index.js +0 -29
- package/es/Icon/index.vue.d.ts +0 -18
- package/es/Icon/index.vue.js +0 -7
- package/es/Icon/index.vue2.js +0 -55
- package/es/Icon/type.d.ts +0 -15
- package/lib/Icon/index.d.ts +0 -38
- package/lib/Icon/index.js +0 -1
- package/lib/Icon/index.vue.d.ts +0 -18
- package/lib/Icon/index.vue.js +0 -1
- package/lib/Icon/index.vue2.js +0 -1
- package/lib/Icon/type.d.ts +0 -15
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "yc-design-vue",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.6.1",
|
5
5
|
"type": "module",
|
6
6
|
"description": "A Vue 3 component library.",
|
7
7
|
"keywords": [
|
@@ -47,26 +47,17 @@
|
|
47
47
|
"require": "./lib/index.js"
|
48
48
|
},
|
49
49
|
"./es/style.css": "./es/style.css",
|
50
|
+
"./es/shared.css": "./es/shared.css",
|
50
51
|
"./lib/style.css": "./lib/style.css",
|
51
|
-
"
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"./lib/*/index.d.ts",
|
56
|
-
"./lib/*.d.ts"
|
57
|
-
],
|
58
|
-
"import": [
|
59
|
-
"./es/*/index.js",
|
60
|
-
"./es/*.js"
|
61
|
-
],
|
62
|
-
"require": [
|
63
|
-
"./lib/*/index.js",
|
64
|
-
"./lib/*.js"
|
65
|
-
]
|
52
|
+
"./lib/shared.css": "./lib/shared.css",
|
53
|
+
"./es/*": {
|
54
|
+
"types": "./es/*/index.d.ts",
|
55
|
+
"import": "./es/*/index.js"
|
66
56
|
},
|
67
|
-
"
|
68
|
-
|
69
|
-
|
57
|
+
"./lib/*": {
|
58
|
+
"types": "./lib/*/index.d.ts",
|
59
|
+
"require": "./lib/*/index.js"
|
60
|
+
}
|
70
61
|
},
|
71
62
|
"dependencies": {
|
72
63
|
"@vueuse/core": "^12.0.0",
|
@@ -77,6 +68,7 @@
|
|
77
68
|
},
|
78
69
|
"devDependencies": {
|
79
70
|
"@arco-design/web-vue": "^2.55.1",
|
71
|
+
"@types/less": "^3.0.8",
|
80
72
|
"@types/node": "^20.12.8",
|
81
73
|
"@types/tinycolor2": "^1.4.6",
|
82
74
|
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
@@ -100,7 +92,7 @@
|
|
100
92
|
"vite-plugin-dts": "^4.5.4",
|
101
93
|
"vue": "^3.3.4",
|
102
94
|
"vue-tsc": "^2.0.29",
|
103
|
-
"yc-design-vue": "^1.
|
95
|
+
"yc-design-vue": "^1.6.0"
|
104
96
|
},
|
105
97
|
"peerDependencies": {
|
106
98
|
"vue": "^3.3.4"
|
package/es/Icon/index.d.ts
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
import { App } from 'vue';
|
2
|
-
import { IconFontOptions } from './type';
|
3
|
-
import { default as _Icon } from './index.vue';
|
4
|
-
export type IconInstance = InstanceType<typeof _Icon>;
|
5
|
-
export * from './type';
|
6
|
-
declare const Icon: {
|
7
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
8
|
-
spin: boolean;
|
9
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, SVGSVGElement, import('vue').ComponentProvideOptions, {
|
10
|
-
P: {};
|
11
|
-
B: {};
|
12
|
-
D: {};
|
13
|
-
C: {};
|
14
|
-
M: {};
|
15
|
-
Defaults: {};
|
16
|
-
}, Readonly<import('./type').IconProps> & Readonly<{}>, {}, {}, {}, {}, {
|
17
|
-
spin: boolean;
|
18
|
-
}>;
|
19
|
-
__isFragment?: never;
|
20
|
-
__isTeleport?: never;
|
21
|
-
__isSuspense?: never;
|
22
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./type').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
23
|
-
spin: boolean;
|
24
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
25
|
-
$slots: Readonly<import('./type').IconSlots> & import('./type').IconSlots;
|
26
|
-
}) & {
|
27
|
-
install: (app: App) => void;
|
28
|
-
urlCache: Map<string, string>;
|
29
|
-
addFromIconFontCn(options: IconFontOptions): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
30
|
-
[key: string]: any;
|
31
|
-
}>;
|
32
|
-
};
|
33
|
-
declare module 'vue' {
|
34
|
-
interface GlobalComponents {
|
35
|
-
YcIcon: typeof Icon;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
export default Icon;
|
package/es/Icon/index.js
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import { h } from "vue";
|
2
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
|
-
import { isServerRendering } from "../_shared/utils/dom.js";
|
4
|
-
import "../_shared/utils/time.js";
|
5
|
-
import "../Empty/index.js";
|
6
|
-
/* empty css */
|
7
|
-
import _Icon from "./index.vue.js";
|
8
|
-
const Icon = Object.assign(_Icon, {
|
9
|
-
install: (app) => {
|
10
|
-
app.component("Yc" + _Icon.name, _Icon);
|
11
|
-
},
|
12
|
-
urlCache: /* @__PURE__ */ new Map(),
|
13
|
-
addFromIconFontCn(options) {
|
14
|
-
const { src, extraProps = {} } = options;
|
15
|
-
if ((src == null ? void 0 : src.length) && !isServerRendering && !this.urlCache.has(src)) {
|
16
|
-
const script = document.createElement("script");
|
17
|
-
script.setAttribute("src", src);
|
18
|
-
script.setAttribute("data-namespace", src);
|
19
|
-
document.body.appendChild(script);
|
20
|
-
this.urlCache.set(src, src);
|
21
|
-
}
|
22
|
-
return h(_Icon, {
|
23
|
-
...extraProps
|
24
|
-
});
|
25
|
-
}
|
26
|
-
});
|
27
|
-
export {
|
28
|
-
Icon as default
|
29
|
-
};
|
package/es/Icon/index.vue.d.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import { IconProps, IconSlots } from './type';
|
2
|
-
declare function __VLS_template(): {
|
3
|
-
attrs: Partial<{}>;
|
4
|
-
slots: Readonly<IconSlots> & IconSlots;
|
5
|
-
refs: {};
|
6
|
-
rootEl: SVGSVGElement;
|
7
|
-
};
|
8
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
|
-
declare const __VLS_component: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
10
|
-
spin: boolean;
|
11
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
13
|
-
export default _default;
|
14
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
15
|
-
new (): {
|
16
|
-
$slots: S;
|
17
|
-
};
|
18
|
-
};
|
package/es/Icon/index.vue.js
DELETED
package/es/Icon/index.vue2.js
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
import { defineComponent, toRefs, computed, createElementBlock, openBlock, normalizeStyle, renderSlot } from "vue";
|
2
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
|
-
import { valueToPx } from "../_shared/utils/dom.js";
|
4
|
-
import { isUndefined } from "../_shared/utils/is.js";
|
5
|
-
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
|
-
const _hoisted_1 = ["xlinkHref"];
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
-
...{
|
11
|
-
name: "Icon"
|
12
|
-
},
|
13
|
-
__name: "index",
|
14
|
-
props: {
|
15
|
-
type: {},
|
16
|
-
size: {},
|
17
|
-
rotate: {},
|
18
|
-
spin: { type: Boolean, default: false }
|
19
|
-
},
|
20
|
-
setup(__props) {
|
21
|
-
const props = __props;
|
22
|
-
const { size, rotate, spin } = toRefs(props);
|
23
|
-
const calcSize = (type) => {
|
24
|
-
if (isUndefined(size.value)) {
|
25
|
-
return "1em";
|
26
|
-
} else if (Array.isArray(size.value)) {
|
27
|
-
return valueToPx(size.value[type == "height" ? 1 : 0]);
|
28
|
-
} else {
|
29
|
-
return valueToPx(size.value);
|
30
|
-
}
|
31
|
-
};
|
32
|
-
const style = computed(() => {
|
33
|
-
return {
|
34
|
-
width: calcSize("width"),
|
35
|
-
height: calcSize("height"),
|
36
|
-
transform: isUndefined(rotate.value) ? "" : `rotate(${rotate.value}deg)`,
|
37
|
-
animation: spin.value ? "animation: spin 1s infinite cubic-bezier(0, 0, 1, 1)" : ""
|
38
|
-
};
|
39
|
-
});
|
40
|
-
return (_ctx, _cache) => {
|
41
|
-
return openBlock(), createElementBlock("svg", {
|
42
|
-
style: normalizeStyle(style.value),
|
43
|
-
class: "yc-icon"
|
44
|
-
}, [
|
45
|
-
_ctx.type ? (openBlock(), createElementBlock("use", {
|
46
|
-
key: 0,
|
47
|
-
xlinkHref: `#${_ctx.type}`
|
48
|
-
}, null, 8, _hoisted_1)) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
|
49
|
-
], 4);
|
50
|
-
};
|
51
|
-
}
|
52
|
-
});
|
53
|
-
export {
|
54
|
-
_sfc_main as default
|
55
|
-
};
|
package/es/Icon/type.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import { ObjectData } from '../_shared/type';
|
2
|
-
import { VNode } from 'vue';
|
3
|
-
export interface IconProps {
|
4
|
-
type?: string;
|
5
|
-
size?: number | string | number[];
|
6
|
-
rotate?: number;
|
7
|
-
spin?: boolean;
|
8
|
-
}
|
9
|
-
export interface IconSlots {
|
10
|
-
default?: () => VNode[];
|
11
|
-
}
|
12
|
-
export interface IconFontOptions {
|
13
|
-
src?: string;
|
14
|
-
extraProps?: ObjectData;
|
15
|
-
}
|
package/lib/Icon/index.d.ts
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
import { App } from 'vue';
|
2
|
-
import { IconFontOptions } from './type';
|
3
|
-
import { default as _Icon } from './index.vue';
|
4
|
-
export type IconInstance = InstanceType<typeof _Icon>;
|
5
|
-
export * from './type';
|
6
|
-
declare const Icon: {
|
7
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
8
|
-
spin: boolean;
|
9
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, SVGSVGElement, import('vue').ComponentProvideOptions, {
|
10
|
-
P: {};
|
11
|
-
B: {};
|
12
|
-
D: {};
|
13
|
-
C: {};
|
14
|
-
M: {};
|
15
|
-
Defaults: {};
|
16
|
-
}, Readonly<import('./type').IconProps> & Readonly<{}>, {}, {}, {}, {}, {
|
17
|
-
spin: boolean;
|
18
|
-
}>;
|
19
|
-
__isFragment?: never;
|
20
|
-
__isTeleport?: never;
|
21
|
-
__isSuspense?: never;
|
22
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./type').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
23
|
-
spin: boolean;
|
24
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
25
|
-
$slots: Readonly<import('./type').IconSlots> & import('./type').IconSlots;
|
26
|
-
}) & {
|
27
|
-
install: (app: App) => void;
|
28
|
-
urlCache: Map<string, string>;
|
29
|
-
addFromIconFontCn(options: IconFontOptions): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
30
|
-
[key: string]: any;
|
31
|
-
}>;
|
32
|
-
};
|
33
|
-
declare module 'vue' {
|
34
|
-
interface GlobalComponents {
|
35
|
-
YcIcon: typeof Icon;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
export default Icon;
|
package/lib/Icon/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./index.vue.js"),s=Object.assign(r,{install:e=>{e.component("Yc"+r.name,r)},urlCache:new Map,addFromIconFontCn(s){const{src:n,extraProps:i={}}=s;if((null==n?void 0:n.length)&&!t.isServerRendering&&!this.urlCache.has(n)){const e=document.createElement("script");e.setAttribute("src",n),e.setAttribute("data-namespace",n),document.body.appendChild(e),this.urlCache.set(n,n)}return e.h(r,{...i})}});module.exports=s;
|
package/lib/Icon/index.vue.d.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import { IconProps, IconSlots } from './type';
|
2
|
-
declare function __VLS_template(): {
|
3
|
-
attrs: Partial<{}>;
|
4
|
-
slots: Readonly<IconSlots> & IconSlots;
|
5
|
-
refs: {};
|
6
|
-
rootEl: SVGSVGElement;
|
7
|
-
};
|
8
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
|
-
declare const __VLS_component: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
10
|
-
spin: boolean;
|
11
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
13
|
-
export default _default;
|
14
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
15
|
-
new (): {
|
16
|
-
$slots: S;
|
17
|
-
};
|
18
|
-
};
|
package/lib/Icon/index.vue.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-52e5518c"]]);module.exports=r;
|
package/lib/Icon/index.vue2.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const n=["xlinkHref"],s=e.defineComponent({name:"Icon",__name:"index",props:{type:{},size:{},rotate:{},spin:{type:Boolean,default:!1}},setup(s){const o=s,{size:r,rotate:l,spin:a}=e.toRefs(o),u=e=>i.isUndefined(r.value)?"1em":Array.isArray(r.value)?t.valueToPx(r.value["height"==e?1:0]):t.valueToPx(r.value),d=e.computed(()=>({width:u("width"),height:u("height"),transform:i.isUndefined(l.value)?"":`rotate(${l.value}deg)`,animation:a.value?"animation: spin 1s infinite cubic-bezier(0, 0, 1, 1)":""}));return(t,i)=>(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle(d.value),class:"yc-icon"},[t.type?(e.openBlock(),e.createElementBlock("use",{key:0,xlinkHref:`#${t.type}`},null,8,n)):e.renderSlot(t.$slots,"default",{key:1},void 0,!0)],4))}});module.exports=s;
|
package/lib/Icon/type.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import { ObjectData } from '../_shared/type';
|
2
|
-
import { VNode } from 'vue';
|
3
|
-
export interface IconProps {
|
4
|
-
type?: string;
|
5
|
-
size?: number | string | number[];
|
6
|
-
rotate?: number;
|
7
|
-
spin?: boolean;
|
8
|
-
}
|
9
|
-
export interface IconSlots {
|
10
|
-
default?: () => VNode[];
|
11
|
-
}
|
12
|
-
export interface IconFontOptions {
|
13
|
-
src?: string;
|
14
|
-
extraProps?: ObjectData;
|
15
|
-
}
|