@fangzhongya/fang-ui 0.0.44 → 0.0.46
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/bin/fang-ui.js +1 -1
- package/dist/components/alert/src/data.d.ts +1 -1
- package/dist/components/box/src/data.cjs +10 -6
- package/dist/components/box/src/data.d.ts +10 -1
- package/dist/components/box/src/data.js +10 -6
- package/dist/components/box/src/index2.cjs +2 -3
- package/dist/components/box/src/index2.js +2 -3
- package/dist/components/box-adjust/src/data.cjs +4 -2
- package/dist/components/box-adjust/src/data.d.ts +10 -3
- package/dist/components/box-adjust/src/data.js +4 -2
- package/dist/components/box-adjust/src/index2.cjs +2 -3
- package/dist/components/box-adjust/src/index2.js +2 -3
- package/dist/components/box-local/src/data.d.ts +6 -1
- package/dist/components/box-local/src/index2.cjs +5 -4
- package/dist/components/box-local/src/index2.js +5 -4
- package/dist/components/box-mask/src/data.cjs +2 -1
- package/dist/components/box-mask/src/data.d.ts +2 -5
- package/dist/components/box-mask/src/data.js +2 -1
- package/dist/components/box-teleport/src/data.cjs +5 -1
- package/dist/components/box-teleport/src/data.d.ts +5 -5
- package/dist/components/box-teleport/src/data.js +5 -1
- package/dist/components/box-teleport/src/index2.cjs +7 -2
- package/dist/components/box-teleport/src/index2.js +7 -2
- package/dist/components/box-title/src/data.cjs +2 -7
- package/dist/components/box-title/src/data.d.ts +4 -11
- package/dist/components/box-title/src/data.js +2 -7
- package/dist/components/button/src/data.d.ts +1 -1
- package/dist/components/card/src/data.d.ts +1 -1
- package/dist/components/cascader/src/data.d.ts +1 -1
- package/dist/components/cascader-panel/src/data.d.ts +1 -1
- package/dist/components/checkbox/src/data.d.ts +1 -1
- package/dist/components/checkbox-group/src/data.d.ts +1 -1
- package/dist/components/collapse/src/data.d.ts +1 -1
- package/dist/components/collapse-item/src/data.d.ts +1 -1
- package/dist/components/color-picker/src/data.d.ts +1 -1
- package/dist/components/common/urls.cjs +14 -8
- package/dist/components/common/urls.d.ts +14 -8
- package/dist/components/common/urls.js +14 -8
- package/dist/components/config-provider/src/data.d.ts +1 -1
- package/dist/components/date-picker/src/data.d.ts +1 -1
- package/dist/components/dialog/src/data.d.ts +1 -1
- package/dist/components/dialogs/src/data.cjs +9 -1
- package/dist/components/dialogs/src/data.d.ts +17 -1
- package/dist/components/dialogs/src/data.js +9 -1
- package/dist/components/divider/src/data.d.ts +1 -1
- package/dist/components/drawer/src/data.d.ts +1 -1
- package/dist/components/dropdown/src/data.d.ts +1 -1
- package/dist/components/dropdown-item/src/data.d.ts +1 -1
- package/dist/components/dropdown-menu/src/data.d.ts +1 -1
- package/dist/components/form/src/data.d.ts +1 -1
- package/dist/components/form-item/src/data.d.ts +1 -1
- package/dist/components/forms/src/data.cjs +63 -7
- package/dist/components/forms/src/data.d.ts +63 -15
- package/dist/components/forms/src/data.js +63 -7
- package/dist/components/forms/src/index2.cjs +3 -3
- package/dist/components/forms/src/index2.js +3 -3
- package/dist/components/forms-div/src/data.cjs +15 -2
- package/dist/components/forms-div/src/data.d.ts +15 -4
- package/dist/components/forms-div/src/data.js +15 -2
- package/dist/components/forms-item/src/data.cjs +22 -1
- package/dist/components/forms-item/src/data.d.ts +24 -5
- package/dist/components/forms-item/src/data.js +22 -1
- package/dist/components/forms-items/src/data.cjs +11 -2
- package/dist/components/forms-items/src/data.d.ts +12 -5
- package/dist/components/forms-items/src/data.js +11 -2
- package/dist/components/global-config/src/data.cjs +9 -1
- package/dist/components/global-config/src/data.d.ts +12 -1
- package/dist/components/global-config/src/data.js +9 -1
- package/dist/components/icon/src/data.cjs +16 -2
- package/dist/components/icon/src/data.d.ts +16 -2
- package/dist/components/icon/src/data.js +16 -2
- package/dist/components/icon/style/index2.scss +1 -0
- package/dist/components/icon/tests/cs3/assets/index.scss +70 -0
- package/dist/components/icon-picker/src/data.cjs +3 -3
- package/dist/components/icon-picker/src/data.d.ts +3 -3
- package/dist/components/icon-picker/src/data.js +3 -3
- package/dist/components/iframe/src/data.cjs +3 -3
- package/dist/components/iframe/src/data.d.ts +6 -3
- package/dist/components/iframe/src/data.js +3 -3
- package/dist/components/iframe/src/index2.cjs +4 -0
- package/dist/components/iframe/src/index2.js +4 -0
- package/dist/components/image/src/data.d.ts +1 -1
- package/dist/components/index.scss +1 -0
- package/dist/components/index2.scss +2 -1
- package/dist/components/input/src/data.d.ts +1 -1
- package/dist/components/input-number/src/data.d.ts +1 -1
- package/dist/components/lists/src/data.cjs +36 -4
- package/dist/components/lists/src/data.d.ts +36 -2
- package/dist/components/lists/src/data.js +36 -4
- package/dist/components/menus/src/index2.cjs +11 -1
- package/dist/components/menus/src/index2.js +11 -1
- package/dist/components/option-group/src/data.d.ts +1 -1
- package/dist/components/pagination/src/data.d.ts +1 -1
- package/dist/components/popconfirm/src/data.d.ts +1 -1
- package/dist/components/popover/src/data.d.ts +1 -1
- package/dist/components/popup/index.scss +1 -0
- package/dist/components/popup/src/data.cjs +14 -7
- package/dist/components/popup/src/data.d.ts +20 -8
- package/dist/components/popup/src/data.js +14 -7
- package/dist/components/popup/src/index2.cjs +3 -4
- package/dist/components/popup/src/index2.js +3 -4
- package/dist/components/radio/src/data.d.ts +1 -1
- package/dist/components/radio-group/src/data.d.ts +1 -1
- package/dist/components/retract/index.cjs +1 -0
- package/dist/components/retract/index.css +87 -0
- package/dist/components/retract/index.js +1 -0
- package/dist/components/retract/index.scss +76 -0
- package/dist/components/retract/src/data.cjs +3 -5
- package/dist/components/retract/src/data.d.ts +4 -8
- package/dist/components/retract/src/data.js +3 -5
- package/dist/components/retract/src/index2.cjs +1 -1
- package/dist/components/retract/src/index2.js +1 -1
- package/dist/components/right-key/src/data.cjs +10 -9
- package/dist/components/right-key/src/data.d.ts +15 -4
- package/dist/components/right-key/src/data.js +10 -9
- package/dist/components/seamless-scroll/index.css +1 -0
- package/dist/components/seamless-scroll/index.scss +1 -0
- package/dist/components/seamless-scroll/src/data.cjs +13 -12
- package/dist/components/seamless-scroll/src/data.d.ts +13 -15
- package/dist/components/seamless-scroll/src/data.js +13 -12
- package/dist/components/seamless-scroll/src/index2.cjs +6 -3
- package/dist/components/seamless-scroll/src/index2.js +6 -3
- package/dist/components/select/src/data.d.ts +1 -1
- package/dist/components/slider/src/data.d.ts +1 -1
- package/dist/components/stick-div/src/data.cjs +6 -3
- package/dist/components/stick-div/src/data.d.ts +6 -3
- package/dist/components/stick-div/src/data.js +6 -3
- package/dist/components/stick-edge/src/data.cjs +6 -3
- package/dist/components/stick-edge/src/data.d.ts +6 -3
- package/dist/components/stick-edge/src/data.js +6 -3
- package/dist/components/stick-window/src/data.cjs +6 -30
- package/dist/components/stick-window/src/data.d.ts +13 -19
- package/dist/components/stick-window/src/data.js +6 -30
- package/dist/components/switch/src/data.d.ts +1 -1
- package/dist/components/tab-pane/src/data.d.ts +1 -1
- package/dist/components/tabs/src/data.d.ts +1 -1
- package/dist/components/time-picker/src/data.d.ts +1 -1
- package/dist/components/time-select/src/data.d.ts +1 -1
- package/dist/components/tooltip/src/data.d.ts +1 -1
- package/dist/components/tree/src/data.d.ts +1 -1
- package/dist/components/tree-select/src/data.d.ts +1 -1
- package/dist/components/upload/src/data.d.ts +1 -1
- package/dist/components/window/index.css +3 -2
- package/dist/components/window/index.scss +7 -9
- package/dist/components/window/src/data.cjs +22 -9
- package/dist/components/window/src/data.d.ts +34 -10
- package/dist/components/window/src/data.js +22 -9
- package/dist/components/window/src/index2.cjs +39 -25
- package/dist/components/window/src/index2.js +39 -25
- package/dist/css/index.css +78 -2
- package/dist/css/retract.css +87 -0
- package/dist/css/seamless-scroll.css +1 -0
- package/dist/css/window.css +3 -2
- package/dist/directives/drag/index.cjs +2 -0
- package/dist/directives/drag/index.d.ts +0 -1
- package/dist/directives/drag/index.js +2 -0
- package/dist/expand/{chunk-NWMTWNXH.cjs → chunk-J3OWSCOI.cjs} +1 -0
- package/dist/expand/{chunk-5DCURPLA.js → chunk-WXZESOPO.js} +1 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/icons/index.css +21 -21
- package/dist/icons/index.json +6 -6
- package/dist/index.css +78 -2
- package/package.json +10 -10
- /package/dist/components/{tooltip → image}/index.css +0 -0
- /package/dist/css/{tooltip.css → image.css} +0 -0
|
@@ -57,22 +57,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
default: withCtx(() => [
|
|
58
58
|
isInit.value ? withDirectives((openBlock(), createElementBlock("div", {
|
|
59
59
|
key: 0,
|
|
60
|
-
class: normalizeClass([unref(cs).z(), props.self ? "
|
|
60
|
+
class: normalizeClass([unref(cs).z(), props.self ? unref(cs).z("center") : ""])
|
|
61
61
|
}, [
|
|
62
62
|
props.mask ? (openBlock(), createBlock(unref(BoxMask), {
|
|
63
63
|
key: 0,
|
|
64
64
|
onClick: onMaskClose,
|
|
65
|
-
cssprefix: unref(cs).z()
|
|
65
|
+
cssprefix: props.cssprefix || unref(cs).z()
|
|
66
66
|
}, null, 8, ["cssprefix"])) : createCommentVNode("", true),
|
|
67
67
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
68
68
|
class: normalizeClass(unref(cs).z("body"))
|
|
69
69
|
}, [
|
|
70
70
|
renderSlot(_ctx.$slots, unref(dataSlot).title, {}, () => [
|
|
71
71
|
createVNode(unref(BoxTitle), {
|
|
72
|
-
cssprefix: unref(cs).z(),
|
|
73
72
|
onClose,
|
|
74
73
|
title: props.title
|
|
75
|
-
}, null, 8, ["
|
|
74
|
+
}, null, 8, ["title"])
|
|
76
75
|
]),
|
|
77
76
|
createElementVNode("div", {
|
|
78
77
|
class: normalizeClass(unref(cs).z("body-div"))
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
3
4
|
const withInstall = require("../../utils/vues/withInstall.cjs");
|
|
4
5
|
require("./src/index.cjs");
|
|
5
6
|
const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.retract {
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
.retract .retract-but {
|
|
19
|
+
position: absolute;
|
|
20
|
+
background-color: rgba(201, 201, 201, 0.5);
|
|
21
|
+
}
|
|
22
|
+
.retract .retract-but .retract-icon {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
pointer-events: all;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
transform: rotate(0);
|
|
31
|
+
transition: transform 0.3s;
|
|
32
|
+
}
|
|
33
|
+
.retract .retract-but .retract-icon.is-reverse {
|
|
34
|
+
transform: rotate(-180deg);
|
|
35
|
+
}
|
|
36
|
+
.retract .retract-but.is-left {
|
|
37
|
+
top: 50%;
|
|
38
|
+
width: 20px;
|
|
39
|
+
height: 50px;
|
|
40
|
+
margin-top: -25px;
|
|
41
|
+
left: -20px;
|
|
42
|
+
}
|
|
43
|
+
.retract .retract-but.is-left .retract-icon {
|
|
44
|
+
transform: rotate(0);
|
|
45
|
+
}
|
|
46
|
+
.retract .retract-but.is-left .retract-icon.is-reverse {
|
|
47
|
+
transform: rotate(-180deg);
|
|
48
|
+
}
|
|
49
|
+
.retract .retract-but.is-right {
|
|
50
|
+
top: 50%;
|
|
51
|
+
width: 20px;
|
|
52
|
+
height: 50px;
|
|
53
|
+
margin-top: -25px;
|
|
54
|
+
right: -20px;
|
|
55
|
+
}
|
|
56
|
+
.retract .retract-but.is-right .retract-icon {
|
|
57
|
+
transform: rotate(-180deg);
|
|
58
|
+
}
|
|
59
|
+
.retract .retract-but.is-right .retract-icon.is-reverse {
|
|
60
|
+
transform: rotate(0);
|
|
61
|
+
}
|
|
62
|
+
.retract .retract-but.is-top {
|
|
63
|
+
left: 50%;
|
|
64
|
+
width: 50px;
|
|
65
|
+
height: 20px;
|
|
66
|
+
margin-left: -25px;
|
|
67
|
+
top: -20px;
|
|
68
|
+
}
|
|
69
|
+
.retract .retract-but.is-top .retract-icon {
|
|
70
|
+
transform: rotate(90deg);
|
|
71
|
+
}
|
|
72
|
+
.retract .retract-but.is-top .retract-icon.is-reverse {
|
|
73
|
+
transform: rotate(-90deg);
|
|
74
|
+
}
|
|
75
|
+
.retract .retract-but.is-bottom {
|
|
76
|
+
left: 50%;
|
|
77
|
+
width: 50px;
|
|
78
|
+
height: 20px;
|
|
79
|
+
margin-left: -25px;
|
|
80
|
+
bottom: -20px;
|
|
81
|
+
}
|
|
82
|
+
.retract .retract-but.is-bottom .retract-icon {
|
|
83
|
+
transform: rotate(-90deg);
|
|
84
|
+
}
|
|
85
|
+
.retract .retract-but.is-bottom .retract-icon.is-reverse {
|
|
86
|
+
transform: rotate(90deg);
|
|
87
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use '../scss/common.scss' as *;
|
|
2
|
+
|
|
3
|
+
$retract: 'retract';
|
|
4
|
+
@include b($retract) {
|
|
5
|
+
position: relative;
|
|
6
|
+
.#{$retract}-but {
|
|
7
|
+
position: absolute;
|
|
8
|
+
.#{$retract}-icon {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
pointer-events: all;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
transform: rotate(0);
|
|
17
|
+
transition: transform 0.3s;
|
|
18
|
+
&.is-reverse {
|
|
19
|
+
transform: rotate(-180deg);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
background-color: rgba(201, 201, 201, 0.5);
|
|
23
|
+
&.is-left {
|
|
24
|
+
top: 50%;
|
|
25
|
+
width: 20px;
|
|
26
|
+
height: 50px;
|
|
27
|
+
margin-top: -25px;
|
|
28
|
+
left: -20px;
|
|
29
|
+
.#{$retract}-icon {
|
|
30
|
+
transform: rotate(0);
|
|
31
|
+
&.is-reverse {
|
|
32
|
+
transform: rotate(-180deg);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
&.is-right {
|
|
37
|
+
top: 50%;
|
|
38
|
+
width: 20px;
|
|
39
|
+
height: 50px;
|
|
40
|
+
margin-top: -25px;
|
|
41
|
+
right: -20px;
|
|
42
|
+
.#{$retract}-icon {
|
|
43
|
+
transform: rotate(-180deg);
|
|
44
|
+
&.is-reverse {
|
|
45
|
+
transform: rotate(0);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&.is-top {
|
|
50
|
+
left: 50%;
|
|
51
|
+
width: 50px;
|
|
52
|
+
height: 20px;
|
|
53
|
+
margin-left: -25px;
|
|
54
|
+
top: -20px;
|
|
55
|
+
.#{$retract}-icon {
|
|
56
|
+
transform: rotate(90deg);
|
|
57
|
+
&.is-reverse {
|
|
58
|
+
transform: rotate(-90deg);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
&.is-bottom {
|
|
63
|
+
left: 50%;
|
|
64
|
+
width: 50px;
|
|
65
|
+
height: 20px;
|
|
66
|
+
margin-left: -25px;
|
|
67
|
+
bottom: -20px;
|
|
68
|
+
.#{$retract}-icon {
|
|
69
|
+
transform: rotate(-90deg);
|
|
70
|
+
&.is-reverse {
|
|
71
|
+
transform: rotate(90deg);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -4,17 +4,15 @@ require("../../../utils/index.cjs");
|
|
|
4
4
|
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
5
5
|
const dataProps = buildProps.buildProps({
|
|
6
6
|
/**
|
|
7
|
-
* @props { } direction= ( )
|
|
7
|
+
* @props { } direction='right' ( 'left' | 'right' | 'top' | 'bottom' )
|
|
8
|
+
* 方向
|
|
8
9
|
*/
|
|
9
10
|
direction: {
|
|
10
11
|
type: String,
|
|
11
12
|
default: "right"
|
|
12
13
|
}
|
|
13
14
|
});
|
|
14
|
-
const dataEmits = {
|
|
15
|
-
change: (evt) => {
|
|
16
|
-
}
|
|
17
|
-
};
|
|
15
|
+
const dataEmits = {};
|
|
18
16
|
const dataSlot = {
|
|
19
17
|
default: "default",
|
|
20
18
|
icon: "icon"
|
|
@@ -2,7 +2,8 @@ import { ExtractPropTypes } from 'vue';
|
|
|
2
2
|
type Direction = 'left' | 'right' | 'top' | 'bottom';
|
|
3
3
|
export declare const dataProps: {
|
|
4
4
|
/**
|
|
5
|
-
* @props { } direction= ( )
|
|
5
|
+
* @props { } direction='right' ( 'left' | 'right' | 'top' | 'bottom' )
|
|
6
|
+
* 方向
|
|
6
7
|
*/
|
|
7
8
|
direction: {
|
|
8
9
|
type: () => Direction;
|
|
@@ -11,23 +12,18 @@ export declare const dataProps: {
|
|
|
11
12
|
};
|
|
12
13
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
13
14
|
/**
|
|
14
|
-
* @emits change (val:[String, Array])
|
|
15
|
-
* 选择的时间
|
|
16
15
|
*/
|
|
17
|
-
export declare const dataEmits: {
|
|
18
|
-
change: (evt: string | string[]) => void;
|
|
19
|
-
};
|
|
16
|
+
export declare const dataEmits: {};
|
|
20
17
|
export type DataEmits = typeof dataEmits;
|
|
21
18
|
/**
|
|
22
19
|
* @slot default 默认插槽
|
|
20
|
+
* @slot icon 图标
|
|
23
21
|
*/
|
|
24
22
|
export declare const dataSlot: {
|
|
25
23
|
default: string;
|
|
26
24
|
icon: string;
|
|
27
25
|
};
|
|
28
26
|
/**
|
|
29
|
-
* @expose setValue (val:<string>设置的数据 )
|
|
30
|
-
* 设置值
|
|
31
27
|
*/
|
|
32
28
|
export declare const dataExpose: {};
|
|
33
29
|
export {};
|
|
@@ -2,17 +2,15 @@ import "../../../utils/index.js";
|
|
|
2
2
|
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
3
3
|
const dataProps = buildProps({
|
|
4
4
|
/**
|
|
5
|
-
* @props { } direction= ( )
|
|
5
|
+
* @props { } direction='right' ( 'left' | 'right' | 'top' | 'bottom' )
|
|
6
|
+
* 方向
|
|
6
7
|
*/
|
|
7
8
|
direction: {
|
|
8
9
|
type: String,
|
|
9
10
|
default: "right"
|
|
10
11
|
}
|
|
11
12
|
});
|
|
12
|
-
const dataEmits = {
|
|
13
|
-
change: (evt) => {
|
|
14
|
-
}
|
|
15
|
-
};
|
|
13
|
+
const dataEmits = {};
|
|
16
14
|
const dataSlot = {
|
|
17
15
|
default: "default",
|
|
18
16
|
icon: "icon"
|
|
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
30
|
!visible.value ? vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default, { key: 0 }) : vue.createCommentVNode("", true),
|
|
31
31
|
vue.createElementVNode("div", {
|
|
32
32
|
onClick: vue.withModifiers(onClick, ["stop"]),
|
|
33
|
-
class: vue.normalizeClass([vue.unref(cs).z("but"), props.direction])
|
|
33
|
+
class: vue.normalizeClass([vue.unref(cs).z("but"), vue.unref(cs).is(props.direction, true)])
|
|
34
34
|
}, [
|
|
35
35
|
vue.createVNode(vue.unref(index$2.Icon), {
|
|
36
36
|
class: vue.normalizeClass([vue.unref(cs).z("icon"), vue.unref(cs).is("reverse", visible.value)])
|
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
!visible.value ? renderSlot(_ctx.$slots, unref(dataSlot).default, { key: 0 }) : createCommentVNode("", true),
|
|
29
29
|
createElementVNode("div", {
|
|
30
30
|
onClick: withModifiers(onClick, ["stop"]),
|
|
31
|
-
class: normalizeClass([unref(cs).z("but"), props.direction])
|
|
31
|
+
class: normalizeClass([unref(cs).z("but"), unref(cs).is(props.direction, true)])
|
|
32
32
|
}, [
|
|
33
33
|
createVNode(unref(Icon), {
|
|
34
34
|
class: normalizeClass([unref(cs).z("icon"), unref(cs).is("reverse", visible.value)])
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../../../utils/index.cjs");
|
|
4
|
+
const data = require("../../box-teleport/src/data.cjs");
|
|
4
5
|
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
5
6
|
const dataProps = buildProps.buildProps({
|
|
7
|
+
...data.dataProps,
|
|
6
8
|
/**
|
|
7
9
|
* @props { Array<string> } options= ( )
|
|
8
10
|
* 选择列表
|
|
@@ -14,19 +16,24 @@ const dataProps = buildProps.buildProps({
|
|
|
14
16
|
}
|
|
15
17
|
},
|
|
16
18
|
/**
|
|
17
|
-
* @props {
|
|
19
|
+
* @props { String } domClass='' ( DOMString )
|
|
18
20
|
* 可以右键的元素的样式
|
|
19
21
|
*/
|
|
20
22
|
domClass: {
|
|
21
23
|
type: [String],
|
|
22
24
|
default: ""
|
|
23
25
|
},
|
|
26
|
+
/**
|
|
27
|
+
* @props { Number } level=5
|
|
28
|
+
* 向上查询层级
|
|
29
|
+
*/
|
|
24
30
|
level: {
|
|
25
31
|
type: Number,
|
|
26
32
|
default: 5
|
|
27
33
|
},
|
|
28
34
|
/**
|
|
29
|
-
* @props { String, Function } label=label
|
|
35
|
+
* @props { String, Function } label=label
|
|
36
|
+
* 列表中展示名称
|
|
30
37
|
*/
|
|
31
38
|
label: {
|
|
32
39
|
type: [String, Function],
|
|
@@ -38,7 +45,7 @@ const dataProps = buildProps.buildProps({
|
|
|
38
45
|
*/
|
|
39
46
|
boxClass: {
|
|
40
47
|
type: [String]
|
|
41
|
-
}
|
|
48
|
+
}
|
|
42
49
|
// /**
|
|
43
50
|
// * @props { String, Function } prop=value 列表中对比的内容
|
|
44
51
|
// */
|
|
@@ -46,12 +53,6 @@ const dataProps = buildProps.buildProps({
|
|
|
46
53
|
// type: [String, Function],
|
|
47
54
|
// default: 'value',
|
|
48
55
|
// },
|
|
49
|
-
to: {
|
|
50
|
-
type: String
|
|
51
|
-
},
|
|
52
|
-
disabled: {
|
|
53
|
-
type: Boolean
|
|
54
|
-
}
|
|
55
56
|
});
|
|
56
57
|
const dataEmits = ["click-key", "click-right"];
|
|
57
58
|
const dataSlot = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ObjAny } from '../../../types/index';
|
|
3
|
+
import { FunctConfig } from '../../../utils/enums';
|
|
3
4
|
export declare const dataProps: {
|
|
4
5
|
/**
|
|
5
6
|
* @props { Array<string> } options= ( )
|
|
@@ -25,19 +26,24 @@ export declare const dataProps: {
|
|
|
25
26
|
default(): never[];
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @props {
|
|
29
|
+
* @props { String } domClass='' ( DOMString )
|
|
29
30
|
* 可以右键的元素的样式
|
|
30
31
|
*/
|
|
31
32
|
domClass: {
|
|
32
33
|
type: StringConstructor[];
|
|
33
34
|
default: string;
|
|
34
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @props { Number } level=5
|
|
38
|
+
* 向上查询层级
|
|
39
|
+
*/
|
|
35
40
|
level: {
|
|
36
41
|
type: NumberConstructor;
|
|
37
42
|
default: number;
|
|
38
43
|
};
|
|
39
44
|
/**
|
|
40
|
-
* @props { String, Function } label=label
|
|
45
|
+
* @props { String, Function } label=label
|
|
46
|
+
* 列表中展示名称
|
|
41
47
|
*/
|
|
42
48
|
label: {
|
|
43
49
|
type: (StringConstructor | FunctionConstructor)[];
|
|
@@ -52,6 +58,7 @@ export declare const dataProps: {
|
|
|
52
58
|
};
|
|
53
59
|
to: {
|
|
54
60
|
type: StringConstructor;
|
|
61
|
+
default: FunctConfig;
|
|
55
62
|
};
|
|
56
63
|
disabled: {
|
|
57
64
|
type: BooleanConstructor;
|
|
@@ -59,8 +66,12 @@ export declare const dataProps: {
|
|
|
59
66
|
};
|
|
60
67
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
61
68
|
/**
|
|
62
|
-
* @emits click-key (val:[String,Number, Object])
|
|
63
|
-
*
|
|
69
|
+
* @emits click-key (val:[String,Number, Object]当前key值, target:[EventTarget])
|
|
70
|
+
* 选中key时
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* @emits click-right (target:[EventTarget])
|
|
74
|
+
* 点击右键弹框时
|
|
64
75
|
*/
|
|
65
76
|
export declare const dataEmits: string[];
|
|
66
77
|
export type DataEmits = typeof dataEmits;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "../../../utils/index.js";
|
|
2
|
+
import { dataProps as dataProps$1 } from "../../box-teleport/src/data.js";
|
|
2
3
|
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
3
4
|
const dataProps = buildProps({
|
|
5
|
+
...dataProps$1,
|
|
4
6
|
/**
|
|
5
7
|
* @props { Array<string> } options= ( )
|
|
6
8
|
* 选择列表
|
|
@@ -12,19 +14,24 @@ const dataProps = buildProps({
|
|
|
12
14
|
}
|
|
13
15
|
},
|
|
14
16
|
/**
|
|
15
|
-
* @props {
|
|
17
|
+
* @props { String } domClass='' ( DOMString )
|
|
16
18
|
* 可以右键的元素的样式
|
|
17
19
|
*/
|
|
18
20
|
domClass: {
|
|
19
21
|
type: [String],
|
|
20
22
|
default: ""
|
|
21
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* @props { Number } level=5
|
|
26
|
+
* 向上查询层级
|
|
27
|
+
*/
|
|
22
28
|
level: {
|
|
23
29
|
type: Number,
|
|
24
30
|
default: 5
|
|
25
31
|
},
|
|
26
32
|
/**
|
|
27
|
-
* @props { String, Function } label=label
|
|
33
|
+
* @props { String, Function } label=label
|
|
34
|
+
* 列表中展示名称
|
|
28
35
|
*/
|
|
29
36
|
label: {
|
|
30
37
|
type: [String, Function],
|
|
@@ -36,7 +43,7 @@ const dataProps = buildProps({
|
|
|
36
43
|
*/
|
|
37
44
|
boxClass: {
|
|
38
45
|
type: [String]
|
|
39
|
-
}
|
|
46
|
+
}
|
|
40
47
|
// /**
|
|
41
48
|
// * @props { String, Function } prop=value 列表中对比的内容
|
|
42
49
|
// */
|
|
@@ -44,12 +51,6 @@ const dataProps = buildProps({
|
|
|
44
51
|
// type: [String, Function],
|
|
45
52
|
// default: 'value',
|
|
46
53
|
// },
|
|
47
|
-
to: {
|
|
48
|
-
type: String
|
|
49
|
-
},
|
|
50
|
-
disabled: {
|
|
51
|
-
type: Boolean
|
|
52
|
-
}
|
|
53
54
|
});
|
|
54
55
|
const dataEmits = ["click-key", "click-right"];
|
|
55
56
|
const dataSlot = {
|
|
@@ -2,32 +2,33 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
4
|
const dataProps = buildProps.buildProps({
|
|
5
|
+
/**
|
|
6
|
+
* @props { Number } stepLength=60 ( )
|
|
7
|
+
* 步长,必须大于或者等于0
|
|
8
|
+
*/
|
|
5
9
|
stepLength: {
|
|
6
10
|
type: Number,
|
|
7
11
|
default: 60,
|
|
8
12
|
validator: (value) => value >= 0
|
|
9
13
|
},
|
|
14
|
+
/**
|
|
15
|
+
* @props { Boolean } reverse=false ( )
|
|
16
|
+
* 是否向下滚动
|
|
17
|
+
*/
|
|
10
18
|
reverse: {
|
|
11
19
|
type: Boolean,
|
|
12
20
|
default: false
|
|
13
21
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
limitFps: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 32
|
|
21
|
-
},
|
|
22
|
+
/**
|
|
23
|
+
* @props { Boolean } pauseOnHover=true ( )
|
|
24
|
+
* 鼠标进入是否停止
|
|
25
|
+
*/
|
|
22
26
|
pauseOnHover: {
|
|
23
27
|
type: Boolean,
|
|
24
28
|
default: true
|
|
25
29
|
}
|
|
26
30
|
});
|
|
27
|
-
const dataEmits = {
|
|
28
|
-
change: (evt) => {
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
+
const dataEmits = {};
|
|
31
32
|
const dataSlot = {
|
|
32
33
|
default: "default"
|
|
33
34
|
};
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
export declare const dataProps: {
|
|
3
|
+
/**
|
|
4
|
+
* @props { Number } stepLength=60 ( )
|
|
5
|
+
* 步长,必须大于或者等于0
|
|
6
|
+
*/
|
|
3
7
|
stepLength: {
|
|
4
8
|
type: NumberConstructor;
|
|
5
9
|
default: number;
|
|
6
10
|
validator: (value: number) => boolean;
|
|
7
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* @props { Boolean } reverse=false ( )
|
|
14
|
+
* 是否向下滚动
|
|
15
|
+
*/
|
|
8
16
|
reverse: {
|
|
9
17
|
type: BooleanConstructor;
|
|
10
18
|
default: boolean;
|
|
11
19
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
limitFps: {
|
|
17
|
-
type: NumberConstructor;
|
|
18
|
-
default: number;
|
|
19
|
-
};
|
|
20
|
+
/**
|
|
21
|
+
* @props { Boolean } pauseOnHover=true ( )
|
|
22
|
+
* 鼠标进入是否停止
|
|
23
|
+
*/
|
|
20
24
|
pauseOnHover: {
|
|
21
25
|
type: BooleanConstructor;
|
|
22
26
|
default: boolean;
|
|
@@ -24,12 +28,8 @@ export declare const dataProps: {
|
|
|
24
28
|
};
|
|
25
29
|
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
26
30
|
/**
|
|
27
|
-
* @emits change (val:[String, Array])
|
|
28
|
-
* 选择的时间
|
|
29
31
|
*/
|
|
30
|
-
export declare const dataEmits: {
|
|
31
|
-
change: (evt: string | string[]) => void;
|
|
32
|
-
};
|
|
32
|
+
export declare const dataEmits: {};
|
|
33
33
|
export type DataEmits = typeof dataEmits;
|
|
34
34
|
/**
|
|
35
35
|
* @slot default 默认插槽
|
|
@@ -38,7 +38,5 @@ export declare const dataSlot: {
|
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
* expose setValue (val:<string>设置的数据 )
|
|
42
|
-
* 设置值
|
|
43
41
|
*/
|
|
44
42
|
export declare const dataExpose: {};
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
2
|
const dataProps = buildProps({
|
|
3
|
+
/**
|
|
4
|
+
* @props { Number } stepLength=60 ( )
|
|
5
|
+
* 步长,必须大于或者等于0
|
|
6
|
+
*/
|
|
3
7
|
stepLength: {
|
|
4
8
|
type: Number,
|
|
5
9
|
default: 60,
|
|
6
10
|
validator: (value) => value >= 0
|
|
7
11
|
},
|
|
12
|
+
/**
|
|
13
|
+
* @props { Boolean } reverse=false ( )
|
|
14
|
+
* 是否向下滚动
|
|
15
|
+
*/
|
|
8
16
|
reverse: {
|
|
9
17
|
type: Boolean,
|
|
10
18
|
default: false
|
|
11
19
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
limitFps: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: 32
|
|
19
|
-
},
|
|
20
|
+
/**
|
|
21
|
+
* @props { Boolean } pauseOnHover=true ( )
|
|
22
|
+
* 鼠标进入是否停止
|
|
23
|
+
*/
|
|
20
24
|
pauseOnHover: {
|
|
21
25
|
type: Boolean,
|
|
22
26
|
default: true
|
|
23
27
|
}
|
|
24
28
|
});
|
|
25
|
-
const dataEmits = {
|
|
26
|
-
change: (evt) => {
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
+
const dataEmits = {};
|
|
29
30
|
const dataSlot = {
|
|
30
31
|
default: "default"
|
|
31
32
|
};
|
|
@@ -43,6 +43,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43
43
|
const hideItemsIndex = vue.ref([]);
|
|
44
44
|
vue.onMounted(() => {
|
|
45
45
|
vue.nextTick(() => {
|
|
46
|
+
if (!refDom.value) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
46
49
|
refDom.value.addEventListener("mouseover", onStop);
|
|
47
50
|
refDom.value.addEventListener("mouseout", onPlay);
|
|
48
51
|
const parentElementRect = refDom.value.parentElement.getBoundingClientRect();
|
|
@@ -50,9 +53,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
53
|
let warpLineHeight = refLine.value[0].getBoundingClientRect().height;
|
|
51
54
|
let lastY = -warpLineHeight;
|
|
52
55
|
let translateY = -warpLineHeight;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
);
|
|
56
|
+
let al = Math.ceil(parentHeight.value / warpLineHeight) * 3;
|
|
57
|
+
al = isNaN(al) || al < 0 || al >= Infinity ? 5 : al;
|
|
58
|
+
loopCount.value = new Array(al);
|
|
56
59
|
createTimer(() => {
|
|
57
60
|
if (!animation && props.pauseOnHover) {
|
|
58
61
|
return;
|