@fangzhongya/fang-ui 0.0.44 → 0.0.45
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 +28 -28
- package/dist/icons/index.json +9 -9
- package/dist/index.css +78 -2
- package/package.json +10 -10
- /package/dist/components/{tooltip → button}/index.css +0 -0
- /package/dist/css/{tooltip.css → button.css} +0 -0
|
@@ -41,6 +41,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
const hideItemsIndex = ref([]);
|
|
42
42
|
onMounted(() => {
|
|
43
43
|
nextTick(() => {
|
|
44
|
+
if (!refDom.value) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
44
47
|
refDom.value.addEventListener("mouseover", onStop);
|
|
45
48
|
refDom.value.addEventListener("mouseout", onPlay);
|
|
46
49
|
const parentElementRect = refDom.value.parentElement.getBoundingClientRect();
|
|
@@ -48,9 +51,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
51
|
let warpLineHeight = refLine.value[0].getBoundingClientRect().height;
|
|
49
52
|
let lastY = -warpLineHeight;
|
|
50
53
|
let translateY = -warpLineHeight;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
);
|
|
54
|
+
let al = Math.ceil(parentHeight.value / warpLineHeight) * 3;
|
|
55
|
+
al = al == Infinity ? 5 : al;
|
|
56
|
+
loopCount.value = new Array(al);
|
|
54
57
|
createTimer(() => {
|
|
55
58
|
if (!animation && props.pauseOnHover) {
|
|
56
59
|
return;
|
|
@@ -4,14 +4,16 @@ const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
|
4
4
|
const definePropType = require("../../../utils/vues/definePropType.cjs");
|
|
5
5
|
const dataProps = buildProps.buildProps({
|
|
6
6
|
/**
|
|
7
|
-
* @props { String } direction=bottom ( )
|
|
7
|
+
* @props { String } direction='bottom' ( 'left' | 'right' | 'top' | 'bottom' )
|
|
8
|
+
* 方向
|
|
8
9
|
*/
|
|
9
10
|
direction: {
|
|
10
11
|
type: definePropType.definePropType(String),
|
|
11
12
|
default: "bottom"
|
|
12
13
|
},
|
|
13
14
|
/**
|
|
14
|
-
* @props { Array }
|
|
15
|
+
* @props { Array } directions=['left', 'right', 'top', 'bottom'] ( )
|
|
16
|
+
* 方向默认是全部
|
|
15
17
|
*/
|
|
16
18
|
directions: {
|
|
17
19
|
type: Array,
|
|
@@ -20,7 +22,8 @@ const dataProps = buildProps.buildProps({
|
|
|
20
22
|
}
|
|
21
23
|
},
|
|
22
24
|
/**
|
|
23
|
-
* @props { Boolean } often= ( )
|
|
25
|
+
* @props { Boolean } often= ( )
|
|
26
|
+
* 是否时时变化
|
|
24
27
|
*/
|
|
25
28
|
often: {
|
|
26
29
|
type: Boolean
|
|
@@ -2,14 +2,16 @@ import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
|
2
2
|
export type Direction = 'left' | 'right' | 'top' | 'bottom';
|
|
3
3
|
export declare const dataProps: {
|
|
4
4
|
/**
|
|
5
|
-
* @props { String } direction=bottom ( )
|
|
5
|
+
* @props { String } direction='bottom' ( 'left' | 'right' | 'top' | 'bottom' )
|
|
6
|
+
* 方向
|
|
6
7
|
*/
|
|
7
8
|
direction: {
|
|
8
9
|
type: PropType<Direction>;
|
|
9
10
|
default: string;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
|
-
* @props { Array }
|
|
13
|
+
* @props { Array } directions=['left', 'right', 'top', 'bottom'] ( )
|
|
14
|
+
* 方向默认是全部
|
|
13
15
|
*/
|
|
14
16
|
directions: {
|
|
15
17
|
type: {
|
|
@@ -31,7 +33,8 @@ export declare const dataProps: {
|
|
|
31
33
|
default(): string[];
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
|
-
* @props { Boolean } often= ( )
|
|
36
|
+
* @props { Boolean } often= ( )
|
|
37
|
+
* 是否时时变化
|
|
35
38
|
*/
|
|
36
39
|
often: {
|
|
37
40
|
type: BooleanConstructor;
|
|
@@ -2,14 +2,16 @@ import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
|
2
2
|
import { definePropType } from "../../../utils/vues/definePropType.js";
|
|
3
3
|
const dataProps = buildProps({
|
|
4
4
|
/**
|
|
5
|
-
* @props { String } direction=bottom ( )
|
|
5
|
+
* @props { String } direction='bottom' ( 'left' | 'right' | 'top' | 'bottom' )
|
|
6
|
+
* 方向
|
|
6
7
|
*/
|
|
7
8
|
direction: {
|
|
8
9
|
type: definePropType(String),
|
|
9
10
|
default: "bottom"
|
|
10
11
|
},
|
|
11
12
|
/**
|
|
12
|
-
* @props { Array }
|
|
13
|
+
* @props { Array } directions=['left', 'right', 'top', 'bottom'] ( )
|
|
14
|
+
* 方向默认是全部
|
|
13
15
|
*/
|
|
14
16
|
directions: {
|
|
15
17
|
type: Array,
|
|
@@ -18,7 +20,8 @@ const dataProps = buildProps({
|
|
|
18
20
|
}
|
|
19
21
|
},
|
|
20
22
|
/**
|
|
21
|
-
* @props { Boolean } often= ( )
|
|
23
|
+
* @props { Boolean } often= ( )
|
|
24
|
+
* 是否时时变化
|
|
22
25
|
*/
|
|
23
26
|
often: {
|
|
24
27
|
type: Boolean
|
|
@@ -4,14 +4,16 @@ const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
|
4
4
|
require("../../../utils/vues/definePropType.cjs");
|
|
5
5
|
const dataProps = buildProps.buildProps({
|
|
6
6
|
/**
|
|
7
|
-
* @props { String, Boolean } drag=true ( )
|
|
7
|
+
* @props { String, Boolean } drag=true ( )
|
|
8
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
8
9
|
*/
|
|
9
10
|
drag: {
|
|
10
11
|
type: [String, Boolean],
|
|
11
12
|
default: true
|
|
12
13
|
},
|
|
13
14
|
/**
|
|
14
|
-
* @props { } direction= ( )
|
|
15
|
+
* @props { String, Array<Direction> } direction='' ( )
|
|
16
|
+
* 方向默认是全部
|
|
15
17
|
*/
|
|
16
18
|
direction: {
|
|
17
19
|
// 打包时代码报错
|
|
@@ -20,7 +22,8 @@ const dataProps = buildProps.buildProps({
|
|
|
20
22
|
default: ""
|
|
21
23
|
},
|
|
22
24
|
/**
|
|
23
|
-
* @props { } isFixed= ( )
|
|
25
|
+
* @props { Boolean } isFixed= ( )
|
|
26
|
+
* 是否是绝对定位
|
|
24
27
|
*/
|
|
25
28
|
isFixed: {
|
|
26
29
|
type: Boolean
|
|
@@ -2,14 +2,16 @@ import { ExtractPublicPropTypes } from 'vue';
|
|
|
2
2
|
type Direction = '' | 'left' | 'right' | 'top' | 'bottom';
|
|
3
3
|
export declare const dataProps: {
|
|
4
4
|
/**
|
|
5
|
-
* @props { String, Boolean } drag=true ( )
|
|
5
|
+
* @props { String, Boolean } drag=true ( )
|
|
6
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
6
7
|
*/
|
|
7
8
|
drag: {
|
|
8
9
|
type: (BooleanConstructor | StringConstructor)[];
|
|
9
10
|
default: boolean;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
|
-
* @props { } direction= ( )
|
|
13
|
+
* @props { String, Array<Direction> } direction='' ( )
|
|
14
|
+
* 方向默认是全部
|
|
13
15
|
*/
|
|
14
16
|
direction: {
|
|
15
17
|
type: (StringConstructor | {
|
|
@@ -31,7 +33,8 @@ export declare const dataProps: {
|
|
|
31
33
|
default: string;
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
|
-
* @props { } isFixed= ( )
|
|
36
|
+
* @props { Boolean } isFixed= ( )
|
|
37
|
+
* 是否是绝对定位
|
|
35
38
|
*/
|
|
36
39
|
isFixed: {
|
|
37
40
|
type: BooleanConstructor;
|
|
@@ -2,14 +2,16 @@ import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
|
2
2
|
import "../../../utils/vues/definePropType.js";
|
|
3
3
|
const dataProps = buildProps({
|
|
4
4
|
/**
|
|
5
|
-
* @props { String, Boolean } drag=true ( )
|
|
5
|
+
* @props { String, Boolean } drag=true ( )
|
|
6
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
6
7
|
*/
|
|
7
8
|
drag: {
|
|
8
9
|
type: [String, Boolean],
|
|
9
10
|
default: true
|
|
10
11
|
},
|
|
11
12
|
/**
|
|
12
|
-
* @props { } direction= ( )
|
|
13
|
+
* @props { String, Array<Direction> } direction='' ( )
|
|
14
|
+
* 方向默认是全部
|
|
13
15
|
*/
|
|
14
16
|
direction: {
|
|
15
17
|
// 打包时代码报错
|
|
@@ -18,7 +20,8 @@ const dataProps = buildProps({
|
|
|
18
20
|
default: ""
|
|
19
21
|
},
|
|
20
22
|
/**
|
|
21
|
-
* @props { } isFixed= ( )
|
|
23
|
+
* @props { Boolean } isFixed= ( )
|
|
24
|
+
* 是否是绝对定位
|
|
22
25
|
*/
|
|
23
26
|
isFixed: {
|
|
24
27
|
type: Boolean
|
|
@@ -1,38 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
-
const
|
|
4
|
+
const data = require("../../stick-div/src/data.cjs");
|
|
5
|
+
const data$1 = require("../../box-teleport/src/data.cjs");
|
|
5
6
|
const dataProps = buildProps.buildProps({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
disabled: {
|
|
10
|
-
type: Boolean
|
|
11
|
-
},
|
|
7
|
+
...data$1.dataProps,
|
|
8
|
+
...data.dataProps,
|
|
12
9
|
/**
|
|
13
|
-
* @props { String }
|
|
14
|
-
|
|
15
|
-
direction: {
|
|
16
|
-
type: definePropType.definePropType(String),
|
|
17
|
-
default: "bottom"
|
|
18
|
-
},
|
|
19
|
-
/**
|
|
20
|
-
* @props { Array } direction= ( ) 方向默认是全部
|
|
21
|
-
*/
|
|
22
|
-
directions: {
|
|
23
|
-
type: Array,
|
|
24
|
-
default() {
|
|
25
|
-
return ["left", "right", "top", "bottom"];
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* @props { Boolean } often= ( ) 是否时时变化
|
|
30
|
-
*/
|
|
31
|
-
often: {
|
|
32
|
-
type: Boolean
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* @props { String, Boolean} drag= ( ) 可拖拽的元素样式
|
|
10
|
+
* @props { String, Boolean} drag= ( )
|
|
11
|
+
* 可拖拽的元素样式
|
|
36
12
|
*/
|
|
37
13
|
drag: {
|
|
38
14
|
type: [String, Boolean]
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
2
|
+
import { Direction } from '../../stick-div/src/data';
|
|
3
|
+
import { FunctConfig } from '../../../utils/enums';
|
|
3
4
|
export declare const dataProps: {
|
|
4
|
-
to: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
};
|
|
7
|
-
disabled: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
};
|
|
10
5
|
/**
|
|
11
|
-
* @props { String }
|
|
6
|
+
* @props { String, Boolean} drag= ( )
|
|
7
|
+
* 可拖拽的元素样式
|
|
12
8
|
*/
|
|
9
|
+
drag: {
|
|
10
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
11
|
+
};
|
|
13
12
|
direction: {
|
|
14
13
|
type: PropType<Direction>;
|
|
15
14
|
default: string;
|
|
16
15
|
};
|
|
17
|
-
/**
|
|
18
|
-
* @props { Array } direction= ( ) 方向默认是全部
|
|
19
|
-
*/
|
|
20
16
|
directions: {
|
|
21
17
|
type: {
|
|
22
18
|
(arrayLength: number): Direction[];
|
|
@@ -36,17 +32,15 @@ export declare const dataProps: {
|
|
|
36
32
|
};
|
|
37
33
|
default(): string[];
|
|
38
34
|
};
|
|
39
|
-
/**
|
|
40
|
-
* @props { Boolean } often= ( ) 是否时时变化
|
|
41
|
-
*/
|
|
42
35
|
often: {
|
|
43
36
|
type: BooleanConstructor;
|
|
44
37
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
to: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: FunctConfig;
|
|
41
|
+
};
|
|
42
|
+
disabled: {
|
|
43
|
+
type: BooleanConstructor;
|
|
50
44
|
};
|
|
51
45
|
};
|
|
52
46
|
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
@@ -1,36 +1,12 @@
|
|
|
1
1
|
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
|
-
import {
|
|
2
|
+
import { dataProps as dataProps$1 } from "../../stick-div/src/data.js";
|
|
3
|
+
import { dataProps as dataProps$2 } from "../../box-teleport/src/data.js";
|
|
3
4
|
const dataProps = buildProps({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
disabled: {
|
|
8
|
-
type: Boolean
|
|
9
|
-
},
|
|
5
|
+
...dataProps$2,
|
|
6
|
+
...dataProps$1,
|
|
10
7
|
/**
|
|
11
|
-
* @props { String }
|
|
12
|
-
|
|
13
|
-
direction: {
|
|
14
|
-
type: definePropType(String),
|
|
15
|
-
default: "bottom"
|
|
16
|
-
},
|
|
17
|
-
/**
|
|
18
|
-
* @props { Array } direction= ( ) 方向默认是全部
|
|
19
|
-
*/
|
|
20
|
-
directions: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default() {
|
|
23
|
-
return ["left", "right", "top", "bottom"];
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* @props { Boolean } often= ( ) 是否时时变化
|
|
28
|
-
*/
|
|
29
|
-
often: {
|
|
30
|
-
type: Boolean
|
|
31
|
-
},
|
|
32
|
-
/**
|
|
33
|
-
* @props { String, Boolean} drag= ( ) 可拖拽的元素样式
|
|
8
|
+
* @props { String, Boolean} drag= ( )
|
|
9
|
+
* 可拖拽的元素样式
|
|
34
10
|
*/
|
|
35
11
|
drag: {
|
|
36
12
|
type: [String, Boolean]
|
|
@@ -67,9 +67,10 @@
|
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-direction: column;
|
|
69
69
|
}
|
|
70
|
-
.window-body
|
|
70
|
+
.window-body .window-title-icon {
|
|
71
71
|
width: 20px;
|
|
72
|
-
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
73
74
|
margin: 0 4px;
|
|
74
75
|
cursor: pointer;
|
|
75
76
|
}
|
|
@@ -25,16 +25,14 @@ $window: 'window';
|
|
|
25
25
|
height: 40%;
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-direction: column;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
28
|
+
.#{z($window, 'title-icon')} {
|
|
29
|
+
width: 20px;
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
margin: 0 4px;
|
|
33
|
+
cursor: pointer;
|
|
37
34
|
}
|
|
35
|
+
|
|
38
36
|
&-div {
|
|
39
37
|
flex: 1;
|
|
40
38
|
overflow-y: auto;
|
|
@@ -6,66 +6,79 @@ const data = require("../../box/src/data.cjs");
|
|
|
6
6
|
const dataProps = buildProps.buildProps({
|
|
7
7
|
...data.dataProps,
|
|
8
8
|
/**
|
|
9
|
-
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
9
|
+
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
10
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
10
11
|
*/
|
|
11
12
|
drag: {
|
|
12
13
|
type: [String, Boolean],
|
|
13
14
|
default: ".com-title-name"
|
|
14
15
|
},
|
|
15
16
|
/**
|
|
16
|
-
* @props { Boolean } adjust=true ( )
|
|
17
|
+
* @props { Boolean } adjust=true ( )
|
|
18
|
+
* 是否支持改变大小
|
|
17
19
|
*/
|
|
18
20
|
adjust: {
|
|
19
21
|
type: Boolean,
|
|
20
22
|
default: true
|
|
21
23
|
},
|
|
22
24
|
/**
|
|
23
|
-
* @props { Boolean } mask=true ( )
|
|
25
|
+
* @props { Boolean } mask=true ( )
|
|
26
|
+
* 是否要遮罩
|
|
24
27
|
*/
|
|
25
28
|
mask: {
|
|
26
29
|
type: Boolean,
|
|
27
30
|
default: true
|
|
28
31
|
},
|
|
29
32
|
/**
|
|
30
|
-
* @props { Boolean } maskClose=false ( )
|
|
33
|
+
* @props { Boolean } maskClose=false ( )
|
|
34
|
+
* 是否要遮罩是否关闭
|
|
31
35
|
*/
|
|
32
36
|
maskClose: {
|
|
33
37
|
type: Boolean,
|
|
34
38
|
default: false
|
|
35
39
|
},
|
|
36
40
|
/**
|
|
37
|
-
* @props {
|
|
41
|
+
* @props { Pallet } pallet= ( )
|
|
42
|
+
* 最小化的托盘对象或者设置方法
|
|
38
43
|
*/
|
|
39
44
|
pallet: {
|
|
40
45
|
type: definePropType.definePropType(Object)
|
|
41
46
|
},
|
|
42
47
|
/**
|
|
43
|
-
* @props {Boolean} minChange=true ( )
|
|
48
|
+
* @props {Boolean} minChange=true ( )
|
|
49
|
+
* 是否允许在最小化后改变值
|
|
44
50
|
*/
|
|
45
51
|
minChange: {
|
|
46
52
|
type: Boolean,
|
|
47
53
|
default: true
|
|
48
54
|
},
|
|
49
55
|
/**
|
|
50
|
-
* @props {Boolean} closeHave=true ( )
|
|
56
|
+
* @props {Boolean} closeHave=true ( )
|
|
57
|
+
* 关闭后是否保持位置
|
|
51
58
|
*/
|
|
52
59
|
closeHave: {
|
|
53
60
|
type: Boolean,
|
|
54
61
|
default: true
|
|
55
62
|
},
|
|
56
63
|
/**
|
|
57
|
-
* @props {Boolean} noMin=false ( )
|
|
64
|
+
* @props {Boolean} noMin=false ( )
|
|
65
|
+
* 是否不要最小化
|
|
58
66
|
*/
|
|
59
67
|
noMin: {
|
|
60
68
|
type: Boolean,
|
|
61
69
|
default: false
|
|
62
70
|
},
|
|
63
71
|
/**
|
|
64
|
-
* @props { Boolean } often= ( )
|
|
72
|
+
* @props { Boolean } often= ( )
|
|
73
|
+
* 是否时时变化
|
|
65
74
|
*/
|
|
66
75
|
often: {
|
|
67
76
|
type: Boolean
|
|
68
77
|
},
|
|
78
|
+
/**
|
|
79
|
+
* @props { Boolean } max= ( )
|
|
80
|
+
* 是否要最大化
|
|
81
|
+
*/
|
|
69
82
|
max: {
|
|
70
83
|
type: Boolean
|
|
71
84
|
}
|