yc-design-vue 1.2.1 → 1.2.3
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.vue2.js +1 -1
- package/es/Calendar/Calendar.vue2.js +1 -1
- package/es/Carousel/Carousel.vue.js +1 -1
- package/es/Carousel/Carousel.vue2.js +9 -10
- package/es/Cascader/CascaderIcon.vue2.js +1 -1
- package/es/Checkbox/Checkbox.vue2.js +1 -1
- package/es/Collapse/CollapseItem.vue2.js +1 -1
- package/es/Descriptions/Descriptions.vue.d.ts +1 -1
- package/es/Descriptions/index.d.ts +3 -3
- package/es/Drawer/Drawer.vue2.js +1 -1
- package/es/Grid/Grid.vue.js +1 -1
- package/es/Grid/Grid.vue2.js +2 -2
- package/es/Grid/GridCol.vue.js +38 -5
- package/es/Input/Input.vue2.js +1 -1
- package/es/Input/InputSuffix.vue2.js +1 -1
- package/es/InputTag/index.vue2.js +1 -1
- package/es/Menu/SubMenu.vue2.js +1 -1
- package/es/Message/Message.vue2.js +1 -1
- package/es/Modal/Modal.vue2.js +1 -1
- package/es/Modal/hooks/useModalClose.d.ts +1 -1
- package/es/Modal/hooks/useModalClose.js +16 -10
- package/es/Notification/Notification.vue2.js +1 -1
- package/es/PageHeader/index.vue2.js +1 -1
- package/es/Radio/Radio.vue2.js +1 -1
- package/es/Select/SelectIcon.vue2.js +1 -1
- package/es/Tabs/TabButton.vue2.js +1 -1
- package/es/Tag/index.vue2.js +1 -1
- package/es/Textarea/index.vue2.js +1 -1
- package/es/TimePicker/TimePicker.vue2.js +1 -1
- package/es/Timeline/Timeline.vue.js +1 -1
- package/es/Timeline/Timeline.vue2.js +2 -25
- package/es/Timeline/TimelineItemPending.vue.d.ts +22 -0
- package/es/Timeline/TimelineItemPending.vue.js +34 -0
- package/es/Timeline/TimelineItemPending.vue2.js +4 -0
- package/es/Timeline/hooks/useContext.d.ts +3 -1
- package/es/Timeline/hooks/useContext.js +5 -2
- package/es/Transfer/TransferPanel.vue2.js +1 -1
- package/es/Trigger/index.vue2.js +1 -1
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/_shared/components/{IconButton.vue.js → IconButton.vue2.js} +1 -1
- 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/node_modules/@vueuse/core/index.js +1 -3
- package/es/node_modules/@vueuse/shared/index.js +1 -76
- package/es/style.css +1 -1
- package/lib/Alert/index.vue2.js +1 -1
- package/lib/Calendar/Calendar.vue2.js +1 -1
- package/lib/Carousel/Carousel.vue.js +1 -1
- package/lib/Carousel/Carousel.vue2.js +1 -1
- package/lib/Cascader/CascaderIcon.vue2.js +1 -1
- package/lib/Checkbox/Checkbox.vue2.js +1 -1
- package/lib/Collapse/CollapseItem.vue2.js +1 -1
- package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
- package/lib/Descriptions/index.d.ts +3 -3
- package/lib/Drawer/Drawer.vue2.js +1 -1
- package/lib/Grid/Grid.vue.js +1 -1
- package/lib/Grid/Grid.vue2.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Input/Input.vue2.js +1 -1
- package/lib/Input/InputSuffix.vue2.js +1 -1
- package/lib/InputTag/index.vue2.js +1 -1
- package/lib/Menu/SubMenu.vue2.js +1 -1
- package/lib/Message/Message.vue2.js +1 -1
- package/lib/Modal/Modal.vue2.js +1 -1
- package/lib/Modal/hooks/useModalClose.d.ts +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Notification/Notification.vue2.js +1 -1
- package/lib/PageHeader/index.vue2.js +1 -1
- package/lib/Radio/Radio.vue2.js +1 -1
- package/lib/Select/SelectIcon.vue2.js +1 -1
- package/lib/Tabs/TabButton.vue2.js +1 -1
- package/lib/Tag/index.vue2.js +1 -1
- package/lib/Textarea/index.vue2.js +1 -1
- package/lib/TimePicker/TimePicker.vue2.js +1 -1
- package/lib/Timeline/Timeline.vue.js +1 -1
- package/lib/Timeline/Timeline.vue2.js +1 -1
- package/lib/Timeline/TimelineItemPending.vue.d.ts +22 -0
- package/lib/Timeline/TimelineItemPending.vue.js +1 -0
- package/lib/Timeline/TimelineItemPending.vue2.js +1 -0
- package/lib/Timeline/hooks/useContext.d.ts +3 -1
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/_shared/components/IconButton.vue2.js +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/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/@vueuse/shared/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/_shared/components/IconButton.vue.js +0 -1
@@ -5,8 +5,8 @@ import { getDomText, sleep } from "../_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$3 from "../_shared/icons/IconCopy.
|
9
|
-
import _sfc_main$1 from "../_shared/icons/IconEdit.
|
8
|
+
import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
|
9
|
+
import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
|
10
10
|
import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
|
11
11
|
import useControlValue from "../_shared/utils/control.js";
|
12
12
|
import Input from "../Input/index.js";
|
package/es/Watermark/index.d.ts
CHANGED
@@ -13,8 +13,8 @@ declare const Watermark: {
|
|
13
13
|
rotate: number;
|
14
14
|
image: string;
|
15
15
|
offset: number[];
|
16
|
-
gap: number[];
|
17
16
|
font: import('./type').WatermarkFont;
|
17
|
+
gap: number[];
|
18
18
|
grayscale: boolean;
|
19
19
|
staggered: boolean;
|
20
20
|
antiTamper: boolean;
|
@@ -37,8 +37,8 @@ declare const Watermark: {
|
|
37
37
|
rotate: number;
|
38
38
|
image: string;
|
39
39
|
offset: number[];
|
40
|
-
gap: number[];
|
41
40
|
font: import('./type').WatermarkFont;
|
41
|
+
gap: number[];
|
42
42
|
grayscale: boolean;
|
43
43
|
staggered: boolean;
|
44
44
|
antiTamper: boolean;
|
@@ -56,8 +56,8 @@ declare const Watermark: {
|
|
56
56
|
rotate: number;
|
57
57
|
image: string;
|
58
58
|
offset: number[];
|
59
|
-
gap: number[];
|
60
59
|
font: import('./type').WatermarkFont;
|
60
|
+
gap: number[];
|
61
61
|
grayscale: boolean;
|
62
62
|
staggered: boolean;
|
63
63
|
antiTamper: boolean;
|
@@ -18,8 +18,8 @@ declare const __VLS_component: import('vue').DefineComponent<WatermarkProps, {},
|
|
18
18
|
rotate: number;
|
19
19
|
image: string;
|
20
20
|
offset: number[];
|
21
|
-
gap: number[];
|
22
21
|
font: import('./type').WatermarkFont;
|
22
|
+
gap: number[];
|
23
23
|
grayscale: boolean;
|
24
24
|
staggered: boolean;
|
25
25
|
antiTamper: boolean;
|
@@ -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,5 +1,5 @@
|
|
1
1
|
import { tryOnScopeDispose, toArray, watchImmediate, isClient, isObject, makeDestructurable, camelize, tryOnMounted, toRefs, noop, isIOS, notNullish, useThrottleFn, useDebounceFn, pxValue, injectLocal, useTimeoutFn, createSingletonPromise } from "../shared/index.js";
|
2
|
-
import { createFilterWrapper, debounceFilter, getLifeCycleTarget, throttleFilter
|
2
|
+
import { createFilterWrapper, debounceFilter, getLifeCycleTarget, throttleFilter } from "../shared/index.js";
|
3
3
|
import { computed, toValue, watch, shallowRef, getCurrentInstance, onMounted, unref, defineComponent, ref, reactive, watchEffect, hasInjectionContext, toRaw } from "vue";
|
4
4
|
function createReusableTemplate(options = {}) {
|
5
5
|
const {
|
@@ -1080,8 +1080,6 @@ export {
|
|
1080
1080
|
useElementBounding,
|
1081
1081
|
useElementSize,
|
1082
1082
|
useEventListener,
|
1083
|
-
useInterval,
|
1084
|
-
useIntervalFn,
|
1085
1083
|
useMediaQuery,
|
1086
1084
|
useMounted,
|
1087
1085
|
useMutationObserver,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { getCurrentScope, onScopeDispose, watch, onMounted, nextTick, isRef, toRefs as toRefs$1, customRef, toValue, getCurrentInstance,
|
1
|
+
import { getCurrentScope, onScopeDispose, watch, onMounted, nextTick, isRef, toRefs as toRefs$1, customRef, toValue, getCurrentInstance, hasInjectionContext, inject, shallowRef, readonly } from "vue";
|
2
2
|
function tryOnScopeDispose(fn) {
|
3
3
|
if (getCurrentScope()) {
|
4
4
|
onScopeDispose(fn);
|
@@ -240,79 +240,6 @@ function tryOnMounted(fn, sync = true, target) {
|
|
240
240
|
else
|
241
241
|
nextTick(fn);
|
242
242
|
}
|
243
|
-
function useIntervalFn(cb, interval = 1e3, options = {}) {
|
244
|
-
const {
|
245
|
-
immediate = true,
|
246
|
-
immediateCallback = false
|
247
|
-
} = options;
|
248
|
-
let timer = null;
|
249
|
-
const isActive = shallowRef(false);
|
250
|
-
function clean() {
|
251
|
-
if (timer) {
|
252
|
-
clearInterval(timer);
|
253
|
-
timer = null;
|
254
|
-
}
|
255
|
-
}
|
256
|
-
function pause() {
|
257
|
-
isActive.value = false;
|
258
|
-
clean();
|
259
|
-
}
|
260
|
-
function resume() {
|
261
|
-
const intervalValue = toValue(interval);
|
262
|
-
if (intervalValue <= 0)
|
263
|
-
return;
|
264
|
-
isActive.value = true;
|
265
|
-
if (immediateCallback)
|
266
|
-
cb();
|
267
|
-
clean();
|
268
|
-
if (isActive.value)
|
269
|
-
timer = setInterval(cb, intervalValue);
|
270
|
-
}
|
271
|
-
if (immediate && isClient)
|
272
|
-
resume();
|
273
|
-
if (isRef(interval) || typeof interval === "function") {
|
274
|
-
const stopWatch = watch(interval, () => {
|
275
|
-
if (isActive.value && isClient)
|
276
|
-
resume();
|
277
|
-
});
|
278
|
-
tryOnScopeDispose(stopWatch);
|
279
|
-
}
|
280
|
-
tryOnScopeDispose(pause);
|
281
|
-
return {
|
282
|
-
isActive,
|
283
|
-
pause,
|
284
|
-
resume
|
285
|
-
};
|
286
|
-
}
|
287
|
-
function useInterval(interval = 1e3, options = {}) {
|
288
|
-
const {
|
289
|
-
controls: exposeControls = false,
|
290
|
-
immediate = true,
|
291
|
-
callback
|
292
|
-
} = options;
|
293
|
-
const counter = shallowRef(0);
|
294
|
-
const update = () => counter.value += 1;
|
295
|
-
const reset = () => {
|
296
|
-
counter.value = 0;
|
297
|
-
};
|
298
|
-
const controls = useIntervalFn(
|
299
|
-
callback ? () => {
|
300
|
-
update();
|
301
|
-
callback(counter.value);
|
302
|
-
} : update,
|
303
|
-
interval,
|
304
|
-
{ immediate }
|
305
|
-
);
|
306
|
-
if (exposeControls) {
|
307
|
-
return {
|
308
|
-
counter,
|
309
|
-
reset,
|
310
|
-
...controls
|
311
|
-
};
|
312
|
-
} else {
|
313
|
-
return counter;
|
314
|
-
}
|
315
|
-
}
|
316
243
|
function useTimeoutFn(cb, interval, options = {}) {
|
317
244
|
const {
|
318
245
|
immediate = true,
|
@@ -383,8 +310,6 @@ export {
|
|
383
310
|
tryOnMounted,
|
384
311
|
tryOnScopeDispose,
|
385
312
|
useDebounceFn,
|
386
|
-
useInterval,
|
387
|
-
useIntervalFn,
|
388
313
|
useThrottleFn,
|
389
314
|
useTimeoutFn,
|
390
315
|
watchImmediate
|