yc-design-vue 1.0.8 → 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/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreview.vue2.js +0 -1
- package/es/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/es/List/List.vue.d.ts +0 -1
- package/es/List/List.vue.js +1 -1
- package/es/List/List.vue2.js +5 -22
- package/es/List/index.d.ts +0 -3
- package/es/List/type.d.ts +0 -2
- package/es/Statistic/Statistic.vue.js +1 -1
- package/es/Statistic/Statistic.vue2.js +9 -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/icons/IconMinus.vue.js +1 -16
- package/es/_shared/icons/IconMinus.vue2.js +16 -1
- package/es/style.css +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/lib/List/List.vue.d.ts +0 -1
- package/lib/List/List.vue.js +1 -1
- package/lib/List/List.vue2.js +1 -1
- package/lib/List/index.d.ts +0 -3
- package/lib/List/type.d.ts +0 -2
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Statistic/Statistic.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/icons/IconMinus.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./ImagePreview.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b3306f5d"]]);
|
5
5
|
export {
|
6
6
|
ImagePreview as default
|
7
7
|
};
|
@@ -56,7 +56,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
56
|
popupContainer: _popupContainer
|
57
57
|
} = toRefs(props);
|
58
58
|
const { zIndex, popupContainer } = getGlobalConfig(props);
|
59
|
-
console.log(popupContainer.value, "popupContainer");
|
60
59
|
const imageRef = ref();
|
61
60
|
const scale = useControlValue(ref(), defaultScale.value);
|
62
61
|
const rotate = ref(0);
|
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$2 from "../_shared/icons/IconMinus.
|
8
|
+
import _sfc_main$2 from "../_shared/icons/IconMinus.vue2.js";
|
9
9
|
import _sfc_main$3 from "../_shared/icons/IconPlus.vue.js";
|
10
10
|
import Button from "../Button/index.js";
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
package/es/List/List.vue.d.ts
CHANGED
@@ -159,7 +159,6 @@ declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {},
|
|
159
159
|
virtualListProps: import('..').VirtualListProps;
|
160
160
|
hoverable: boolean;
|
161
161
|
paginationProps: import('../Pagination').PaginationProps;
|
162
|
-
gridProps: import('../Grid').GridProps;
|
163
162
|
bottomOffset: number;
|
164
163
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
165
164
|
realListRef: ({
|
package/es/List/List.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./List.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _List = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _List = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a549d4df"]]);
|
5
5
|
export {
|
6
6
|
_List as default
|
7
7
|
};
|
package/es/List/List.vue2.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode, normalizeStyle, createElementVNode, renderSlot, createSlots, normalizeProps, guardReactiveProps,
|
1
|
+
import { defineComponent, useSlots, toRefs, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode, normalizeStyle, createElementVNode, renderSlot, createSlots, normalizeProps, guardReactiveProps, Fragment, renderList, resolveDynamicComponent, isRef } from "vue";
|
2
2
|
import { unrefElement } from "../node_modules/@vueuse/core/index.js";
|
3
3
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
4
|
import "../_shared/utils/dom.js";
|
@@ -10,11 +10,9 @@ import useScrollReach from "./hooks/useScrollReach.js";
|
|
10
10
|
import Spin from "../Spin/index.js";
|
11
11
|
import Scrollbar from "../Scrollbar/index.js";
|
12
12
|
import Pagination from "../Pagination/index.js";
|
13
|
-
import Grid from "../Grid/index.js";
|
14
13
|
import _sfc_main$1 from "./ListVirtual.vue.js";
|
15
14
|
/* empty css */
|
16
15
|
import ListItem from "./ListItem.vue.js";
|
17
|
-
import _sfc_main$2 from "../Grid/GridItem.vue.js";
|
18
16
|
const _hoisted_1 = { class: "yc-list-content-wrapper" };
|
19
17
|
const _hoisted_2 = {
|
20
18
|
key: 0,
|
@@ -42,7 +40,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
40
|
loading: { type: Boolean, default: false },
|
43
41
|
hoverable: { type: Boolean, default: false },
|
44
42
|
paginationProps: { default: void 0 },
|
45
|
-
gridProps: { default: void 0 },
|
46
43
|
maxHeight: { default: void 0 },
|
47
44
|
bottomOffset: { default: 0 },
|
48
45
|
virtualListProps: { default: void 0 },
|
@@ -51,15 +48,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
48
|
emits: ["scroll", "reach-bottom", "page-change", "page-size-change"],
|
52
49
|
setup(__props, { emit: __emit }) {
|
53
50
|
var _a, _b;
|
51
|
+
useSlots();
|
54
52
|
const props = __props;
|
55
53
|
const emits = __emit;
|
56
|
-
const { data, paginationProps, virtualListProps,
|
54
|
+
const { data, paginationProps, virtualListProps, bottomOffset } = toRefs(props);
|
57
55
|
const { size, renderEmpty } = getGlobalConfig(props);
|
58
56
|
const isBottomReached = ref(false);
|
59
57
|
const realListRef = ref();
|
60
58
|
const virtualListRef = ref();
|
61
59
|
const isVirtualList = computed(() => {
|
62
|
-
if (!virtualListProps.value || paginationProps.value
|
60
|
+
if (!virtualListProps.value || paginationProps.value) {
|
63
61
|
return false;
|
64
62
|
}
|
65
63
|
return virtualListProps.value.itemHeight && (!virtualListProps.value.threshold || virtualListProps.value.threshold > data.value.length);
|
@@ -165,22 +163,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
165
163
|
} : void 0
|
166
164
|
]), 1032, ["data", "virtual-list-props", "style"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
167
165
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
168
|
-
|
169
|
-
default: withCtx(() => [
|
170
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(curList.value, (item, i) => {
|
171
|
-
return openBlock(), createBlock(unref(_sfc_main$2), { key: i }, {
|
172
|
-
default: withCtx(() => [
|
173
|
-
renderSlot(_ctx.$slots, "item", {
|
174
|
-
index: i,
|
175
|
-
item
|
176
|
-
}, void 0, true)
|
177
|
-
]),
|
178
|
-
_: 2
|
179
|
-
}, 1024);
|
180
|
-
}), 128))
|
181
|
-
]),
|
182
|
-
_: 3
|
183
|
-
}, 16)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(curList.value, (item, i) => {
|
166
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(curList.value, (item, i) => {
|
184
167
|
return renderSlot(_ctx.$slots, "item", {
|
185
168
|
key: i,
|
186
169
|
index: i,
|
package/es/List/index.d.ts
CHANGED
@@ -28,7 +28,6 @@ declare const List: {
|
|
28
28
|
virtualListProps: import('..').VirtualListProps;
|
29
29
|
hoverable: boolean;
|
30
30
|
paginationProps: import('..').PaginationProps;
|
31
|
-
gridProps: import('..').GridProps;
|
32
31
|
bottomOffset: number;
|
33
32
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
34
33
|
realListRef: ({
|
@@ -185,7 +184,6 @@ declare const List: {
|
|
185
184
|
virtualListProps: import('..').VirtualListProps;
|
186
185
|
hoverable: boolean;
|
187
186
|
paginationProps: import('..').PaginationProps;
|
188
|
-
gridProps: import('..').GridProps;
|
189
187
|
bottomOffset: number;
|
190
188
|
}>;
|
191
189
|
__isFragment?: never;
|
@@ -212,7 +210,6 @@ declare const List: {
|
|
212
210
|
virtualListProps: import('..').VirtualListProps;
|
213
211
|
hoverable: boolean;
|
214
212
|
paginationProps: import('..').PaginationProps;
|
215
|
-
gridProps: import('..').GridProps;
|
216
213
|
bottomOffset: number;
|
217
214
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
218
215
|
$slots: Readonly<import('./type').ListSlots> & import('./type').ListSlots;
|
package/es/List/type.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Direction, ObjectData } from '../_shared/type';
|
2
|
-
import { GridProps } from '../Grid';
|
3
2
|
import { PaginationProps } from '../Pagination';
|
4
3
|
import { VirtualListProps } from '../Select';
|
5
4
|
import { VNode } from 'vue';
|
@@ -11,7 +10,6 @@ export interface ListProps {
|
|
11
10
|
loading?: boolean;
|
12
11
|
hoverable?: boolean;
|
13
12
|
paginationProps?: PaginationProps;
|
14
|
-
gridProps?: GridProps;
|
15
13
|
maxHeight?: number | string;
|
16
14
|
bottomOffset?: number;
|
17
15
|
virtualListProps?: VirtualListProps;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./Statistic.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Statistic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Statistic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1d5de805"]]);
|
5
5
|
export {
|
6
6
|
_Statistic as default
|
7
7
|
};
|
@@ -62,7 +62,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
62
62
|
animation,
|
63
63
|
animationDuration,
|
64
64
|
easeing,
|
65
|
-
isCountdown
|
65
|
+
isCountdown,
|
66
|
+
showGroupSeparator
|
66
67
|
} = toRefs(props);
|
67
68
|
const valueRef = ref();
|
68
69
|
const showValue = computed(() => {
|
@@ -96,9 +97,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
96
97
|
immediate: true
|
97
98
|
}
|
98
99
|
);
|
100
|
+
const formatNumber = (num) => {
|
101
|
+
let parts = num.toString().split(".");
|
102
|
+
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
103
|
+
return parts.join(".");
|
104
|
+
};
|
99
105
|
function getFormatValue(value2) {
|
100
106
|
if (isNumber(value2) && !isCountdown.value) {
|
101
|
-
|
107
|
+
const fixedValue = value2.toFixed(precision.value);
|
108
|
+
return showGroupSeparator.value ? formatNumber(fixedValue) : fixedValue;
|
102
109
|
}
|
103
110
|
if (isCountdown.value) {
|
104
111
|
return formatSeconds(value2, format.value);
|
@@ -6,8 +6,8 @@ import { sleep } from "../_shared/utils/fn.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
import _sfc_main$3 from "../_shared/icons/IconCopy.
|
10
|
-
import _sfc_main$1 from "../_shared/icons/IconEdit.
|
9
|
+
import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
|
10
|
+
import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
|
11
11
|
import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
|
12
12
|
import useControlValue from "../_shared/utils/control.js";
|
13
13
|
import Input from "../Input/index.js";
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconCopy",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
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)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconCopy.vue2.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconCopy",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
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)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconEdit",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
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)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconEdit.vue2.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconEdit",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
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)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconMinus",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M5 24h38" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconMinus.vue2.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconMinus",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M5 24h38" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|