@fangzhongya/fang-ui 0.0.43 → 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/index.css +13 -0
- package/dist/components/icon/index.scss +14 -0
- 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/src/index2.cjs +18 -17
- package/dist/components/icon/src/index2.js +19 -18
- 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/icon.css +13 -0
- package/dist/css/index.css +91 -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 +31 -31
- package/dist/icons/index.json +9 -9
- package/dist/index.css +91 -2
- package/package.json +9 -9
- /package/dist/components/{popover → button}/index.css +0 -0
- /package/dist/css/{popover.css → button.css} +0 -0
|
@@ -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
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
import { FunctConfig } from '../../../utils/enums';
|
|
2
3
|
type Pallet = {
|
|
3
4
|
add: (s: symbol, a: () => void, r: () => void, t?: string) => void;
|
|
4
5
|
remove: (s: symbol, t?: string) => void;
|
|
@@ -6,66 +7,79 @@ type Pallet = {
|
|
|
6
7
|
};
|
|
7
8
|
export declare const dataProps: {
|
|
8
9
|
/**
|
|
9
|
-
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
10
|
+
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
11
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
10
12
|
*/
|
|
11
13
|
drag: {
|
|
12
14
|
type: (BooleanConstructor | StringConstructor)[];
|
|
13
15
|
default: string;
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
|
-
* @props { Boolean } adjust=true ( )
|
|
18
|
+
* @props { Boolean } adjust=true ( )
|
|
19
|
+
* 是否支持改变大小
|
|
17
20
|
*/
|
|
18
21
|
adjust: {
|
|
19
22
|
type: BooleanConstructor;
|
|
20
23
|
default: boolean;
|
|
21
24
|
};
|
|
22
25
|
/**
|
|
23
|
-
* @props { Boolean } mask=true ( )
|
|
26
|
+
* @props { Boolean } mask=true ( )
|
|
27
|
+
* 是否要遮罩
|
|
24
28
|
*/
|
|
25
29
|
mask: {
|
|
26
30
|
type: BooleanConstructor;
|
|
27
31
|
default: boolean;
|
|
28
32
|
};
|
|
29
33
|
/**
|
|
30
|
-
* @props { Boolean } maskClose=false ( )
|
|
34
|
+
* @props { Boolean } maskClose=false ( )
|
|
35
|
+
* 是否要遮罩是否关闭
|
|
31
36
|
*/
|
|
32
37
|
maskClose: {
|
|
33
38
|
type: BooleanConstructor;
|
|
34
39
|
default: boolean;
|
|
35
40
|
};
|
|
36
41
|
/**
|
|
37
|
-
* @props {
|
|
42
|
+
* @props { Pallet } pallet= ( )
|
|
43
|
+
* 最小化的托盘对象或者设置方法
|
|
38
44
|
*/
|
|
39
45
|
pallet: {
|
|
40
46
|
type: PropType<Pallet>;
|
|
41
47
|
};
|
|
42
48
|
/**
|
|
43
|
-
* @props {Boolean} minChange=true ( )
|
|
49
|
+
* @props {Boolean} minChange=true ( )
|
|
50
|
+
* 是否允许在最小化后改变值
|
|
44
51
|
*/
|
|
45
52
|
minChange: {
|
|
46
53
|
type: BooleanConstructor;
|
|
47
54
|
default: boolean;
|
|
48
55
|
};
|
|
49
56
|
/**
|
|
50
|
-
* @props {Boolean} closeHave=true ( )
|
|
57
|
+
* @props {Boolean} closeHave=true ( )
|
|
58
|
+
* 关闭后是否保持位置
|
|
51
59
|
*/
|
|
52
60
|
closeHave: {
|
|
53
61
|
type: BooleanConstructor;
|
|
54
62
|
default: boolean;
|
|
55
63
|
};
|
|
56
64
|
/**
|
|
57
|
-
* @props {Boolean} noMin=false ( )
|
|
65
|
+
* @props {Boolean} noMin=false ( )
|
|
66
|
+
* 是否不要最小化
|
|
58
67
|
*/
|
|
59
68
|
noMin: {
|
|
60
69
|
type: BooleanConstructor;
|
|
61
70
|
default: boolean;
|
|
62
71
|
};
|
|
63
72
|
/**
|
|
64
|
-
* @props { Boolean } often= ( )
|
|
73
|
+
* @props { Boolean } often= ( )
|
|
74
|
+
* 是否时时变化
|
|
65
75
|
*/
|
|
66
76
|
often: {
|
|
67
77
|
type: BooleanConstructor;
|
|
68
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* @props { Boolean } max= ( )
|
|
81
|
+
* 是否要最大化
|
|
82
|
+
*/
|
|
69
83
|
max: {
|
|
70
84
|
type: BooleanConstructor;
|
|
71
85
|
};
|
|
@@ -75,18 +89,28 @@ export declare const dataProps: {
|
|
|
75
89
|
modelValue: {
|
|
76
90
|
type: BooleanConstructor;
|
|
77
91
|
};
|
|
92
|
+
boxClass: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
};
|
|
78
95
|
to: {
|
|
79
96
|
type: StringConstructor;
|
|
97
|
+
default: FunctConfig;
|
|
80
98
|
};
|
|
81
99
|
disabled: {
|
|
82
100
|
type: BooleanConstructor;
|
|
83
101
|
};
|
|
84
|
-
|
|
102
|
+
cssprefix: {
|
|
85
103
|
type: StringConstructor;
|
|
86
104
|
};
|
|
87
105
|
};
|
|
88
106
|
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
89
107
|
/**
|
|
108
|
+
* @emits minimize (restore:[Function], title:[string]标题, wykey:唯一标识 )
|
|
109
|
+
* 最小化事件
|
|
110
|
+
*/
|
|
111
|
+
/**
|
|
112
|
+
* @emits changesize ()
|
|
113
|
+
* 窗口变动事件
|
|
90
114
|
*/
|
|
91
115
|
export declare const dataEmits: string[];
|
|
92
116
|
export type DataEmits = typeof dataEmits;
|
|
@@ -4,66 +4,79 @@ import { dataProps as dataProps$1, dataEmits as dataEmits$1, dataSlot as dataSlo
|
|
|
4
4
|
const dataProps = buildProps({
|
|
5
5
|
...dataProps$1,
|
|
6
6
|
/**
|
|
7
|
-
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
7
|
+
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
8
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
8
9
|
*/
|
|
9
10
|
drag: {
|
|
10
11
|
type: [String, Boolean],
|
|
11
12
|
default: ".com-title-name"
|
|
12
13
|
},
|
|
13
14
|
/**
|
|
14
|
-
* @props { Boolean } adjust=true ( )
|
|
15
|
+
* @props { Boolean } adjust=true ( )
|
|
16
|
+
* 是否支持改变大小
|
|
15
17
|
*/
|
|
16
18
|
adjust: {
|
|
17
19
|
type: Boolean,
|
|
18
20
|
default: true
|
|
19
21
|
},
|
|
20
22
|
/**
|
|
21
|
-
* @props { Boolean } mask=true ( )
|
|
23
|
+
* @props { Boolean } mask=true ( )
|
|
24
|
+
* 是否要遮罩
|
|
22
25
|
*/
|
|
23
26
|
mask: {
|
|
24
27
|
type: Boolean,
|
|
25
28
|
default: true
|
|
26
29
|
},
|
|
27
30
|
/**
|
|
28
|
-
* @props { Boolean } maskClose=false ( )
|
|
31
|
+
* @props { Boolean } maskClose=false ( )
|
|
32
|
+
* 是否要遮罩是否关闭
|
|
29
33
|
*/
|
|
30
34
|
maskClose: {
|
|
31
35
|
type: Boolean,
|
|
32
36
|
default: false
|
|
33
37
|
},
|
|
34
38
|
/**
|
|
35
|
-
* @props {
|
|
39
|
+
* @props { Pallet } pallet= ( )
|
|
40
|
+
* 最小化的托盘对象或者设置方法
|
|
36
41
|
*/
|
|
37
42
|
pallet: {
|
|
38
43
|
type: definePropType(Object)
|
|
39
44
|
},
|
|
40
45
|
/**
|
|
41
|
-
* @props {Boolean} minChange=true ( )
|
|
46
|
+
* @props {Boolean} minChange=true ( )
|
|
47
|
+
* 是否允许在最小化后改变值
|
|
42
48
|
*/
|
|
43
49
|
minChange: {
|
|
44
50
|
type: Boolean,
|
|
45
51
|
default: true
|
|
46
52
|
},
|
|
47
53
|
/**
|
|
48
|
-
* @props {Boolean} closeHave=true ( )
|
|
54
|
+
* @props {Boolean} closeHave=true ( )
|
|
55
|
+
* 关闭后是否保持位置
|
|
49
56
|
*/
|
|
50
57
|
closeHave: {
|
|
51
58
|
type: Boolean,
|
|
52
59
|
default: true
|
|
53
60
|
},
|
|
54
61
|
/**
|
|
55
|
-
* @props {Boolean} noMin=false ( )
|
|
62
|
+
* @props {Boolean} noMin=false ( )
|
|
63
|
+
* 是否不要最小化
|
|
56
64
|
*/
|
|
57
65
|
noMin: {
|
|
58
66
|
type: Boolean,
|
|
59
67
|
default: false
|
|
60
68
|
},
|
|
61
69
|
/**
|
|
62
|
-
* @props { Boolean } often= ( )
|
|
70
|
+
* @props { Boolean } often= ( )
|
|
71
|
+
* 是否时时变化
|
|
63
72
|
*/
|
|
64
73
|
often: {
|
|
65
74
|
type: Boolean
|
|
66
75
|
},
|
|
76
|
+
/**
|
|
77
|
+
* @props { Boolean } max= ( )
|
|
78
|
+
* 是否要最大化
|
|
79
|
+
*/
|
|
67
80
|
max: {
|
|
68
81
|
type: Boolean
|
|
69
82
|
}
|
|
@@ -16,6 +16,8 @@ const index$3 = require("../../box-mask/index.cjs");
|
|
|
16
16
|
const index$2 = require("../../box-teleport/index.cjs");
|
|
17
17
|
const setClassName = require("@fangzhongya/utils/css/setClassName");
|
|
18
18
|
const index$6 = require("../../../directives/drag/index.cjs");
|
|
19
|
+
const _hoisted_1 = ["title"];
|
|
20
|
+
const _hoisted_2 = ["title"];
|
|
19
21
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
20
22
|
__name: "index",
|
|
21
23
|
props: data.dataProps,
|
|
@@ -35,6 +37,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
37
|
vue.watch(
|
|
36
38
|
() => props.modelValue,
|
|
37
39
|
() => {
|
|
40
|
+
console.log("props.modelValue", props.modelValue);
|
|
38
41
|
if (props.modelValue) {
|
|
39
42
|
isClose.value = false;
|
|
40
43
|
isMin.value = false;
|
|
@@ -86,6 +89,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
89
|
isMin.value = false;
|
|
87
90
|
};
|
|
88
91
|
const remove = () => {
|
|
92
|
+
console.log("remove");
|
|
89
93
|
isClose.value = true;
|
|
90
94
|
emit("update:modelValue", false);
|
|
91
95
|
emit("close");
|
|
@@ -110,6 +114,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
114
|
setCss.setCss(refBox.value, "display", "block");
|
|
111
115
|
}
|
|
112
116
|
}
|
|
117
|
+
console.log("isClose", isClose);
|
|
113
118
|
}
|
|
114
119
|
function setMax() {
|
|
115
120
|
if (refBody.value) {
|
|
@@ -197,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
197
202
|
props.mask ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.BoxMask), {
|
|
198
203
|
key: 0,
|
|
199
204
|
onClick: onMaskClose,
|
|
200
|
-
cssprefix: vue.unref(cs).z()
|
|
205
|
+
cssprefix: props.cssprefix || vue.unref(cs).z()
|
|
201
206
|
}, null, 8, ["cssprefix"])) : vue.createCommentVNode("", true),
|
|
202
207
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
203
208
|
ref_key: "refBody",
|
|
@@ -206,41 +211,50 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
206
211
|
}, [
|
|
207
212
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).title, {}, () => [
|
|
208
213
|
vue.createVNode(vue.unref(index$4.BoxTitle), {
|
|
209
|
-
cssprefix: vue.unref(cs).z(),
|
|
210
214
|
onClose,
|
|
211
215
|
title: props.title
|
|
212
216
|
}, {
|
|
213
217
|
icon: vue.withCtx(() => [
|
|
214
|
-
!props.noMin ? (vue.openBlock(), vue.
|
|
218
|
+
!props.noMin ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
215
219
|
key: 0,
|
|
216
220
|
title: vue.unref(getLocale)("minh"),
|
|
217
221
|
onClick: onMin,
|
|
218
|
-
class: vue.normalizeClass(
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
class: vue.normalizeClass([
|
|
223
|
+
vue.unref(cs).z("title-icon"),
|
|
224
|
+
vue.unref(cs).z("title-min")
|
|
225
|
+
])
|
|
226
|
+
}, [
|
|
227
|
+
vue.createVNode(vue.unref(index$5.Icon), null, {
|
|
228
|
+
default: vue.withCtx(() => [
|
|
229
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot)["icon-min"], {}, () => [
|
|
230
|
+
vue.createVNode(bar.default)
|
|
231
|
+
])
|
|
232
|
+
]),
|
|
233
|
+
_: 3
|
|
234
|
+
})
|
|
235
|
+
], 10, _hoisted_1)) : vue.createCommentVNode("", true),
|
|
236
|
+
vue.createElementVNode("span", {
|
|
228
237
|
title: vue.unref(getLocale)(isMax.value ? "tmaxh" : "maxh"),
|
|
229
238
|
onClick: onMax,
|
|
230
|
-
class: vue.normalizeClass(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
class: vue.normalizeClass([
|
|
240
|
+
vue.unref(cs).z("title-icon"),
|
|
241
|
+
vue.unref(cs).z("title-max")
|
|
242
|
+
])
|
|
243
|
+
}, [
|
|
244
|
+
vue.createVNode(vue.unref(index$5.Icon), null, {
|
|
245
|
+
default: vue.withCtx(() => [
|
|
246
|
+
isMax.value ? vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot)["icon-full"], { key: 0 }, () => [
|
|
247
|
+
vue.createVNode(frame.default)
|
|
248
|
+
]) : vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot)["icon-max"], { key: 1 }, () => [
|
|
249
|
+
vue.createVNode(star.default)
|
|
250
|
+
])
|
|
251
|
+
]),
|
|
252
|
+
_: 3
|
|
253
|
+
})
|
|
254
|
+
], 10, _hoisted_2)
|
|
241
255
|
]),
|
|
242
256
|
_: 3
|
|
243
|
-
}, 8, ["
|
|
257
|
+
}, 8, ["title"])
|
|
244
258
|
]),
|
|
245
259
|
vue.createElementVNode("div", {
|
|
246
260
|
class: vue.normalizeClass(vue.unref(cs).z("body-div"))
|
|
@@ -14,6 +14,8 @@ import { BoxMask } from "../../box-mask/index.js";
|
|
|
14
14
|
import { BoxTeleport } from "../../box-teleport/index.js";
|
|
15
15
|
import { setClassName } from "@fangzhongya/utils/css/setClassName";
|
|
16
16
|
import vDrag from "../../../directives/drag/index.js";
|
|
17
|
+
const _hoisted_1 = ["title"];
|
|
18
|
+
const _hoisted_2 = ["title"];
|
|
17
19
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
20
|
__name: "index",
|
|
19
21
|
props: dataProps,
|
|
@@ -33,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
35
|
watch(
|
|
34
36
|
() => props.modelValue,
|
|
35
37
|
() => {
|
|
38
|
+
console.log("props.modelValue", props.modelValue);
|
|
36
39
|
if (props.modelValue) {
|
|
37
40
|
isClose.value = false;
|
|
38
41
|
isMin.value = false;
|
|
@@ -84,6 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
87
|
isMin.value = false;
|
|
85
88
|
};
|
|
86
89
|
const remove = () => {
|
|
90
|
+
console.log("remove");
|
|
87
91
|
isClose.value = true;
|
|
88
92
|
emit("update:modelValue", false);
|
|
89
93
|
emit("close");
|
|
@@ -108,6 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
112
|
setCss(refBox.value, "display", "block");
|
|
109
113
|
}
|
|
110
114
|
}
|
|
115
|
+
console.log("isClose", isClose);
|
|
111
116
|
}
|
|
112
117
|
function setMax() {
|
|
113
118
|
if (refBody.value) {
|
|
@@ -195,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
195
200
|
props.mask ? (openBlock(), createBlock(unref(BoxMask), {
|
|
196
201
|
key: 0,
|
|
197
202
|
onClick: onMaskClose,
|
|
198
|
-
cssprefix: unref(cs).z()
|
|
203
|
+
cssprefix: props.cssprefix || unref(cs).z()
|
|
199
204
|
}, null, 8, ["cssprefix"])) : createCommentVNode("", true),
|
|
200
205
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
201
206
|
ref_key: "refBody",
|
|
@@ -204,41 +209,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
204
209
|
}, [
|
|
205
210
|
renderSlot(_ctx.$slots, unref(dataSlot).title, {}, () => [
|
|
206
211
|
createVNode(unref(BoxTitle), {
|
|
207
|
-
cssprefix: unref(cs).z(),
|
|
208
212
|
onClose,
|
|
209
213
|
title: props.title
|
|
210
214
|
}, {
|
|
211
215
|
icon: withCtx(() => [
|
|
212
|
-
!props.noMin ? (openBlock(),
|
|
216
|
+
!props.noMin ? (openBlock(), createElementBlock("span", {
|
|
213
217
|
key: 0,
|
|
214
218
|
title: unref(getLocale)("minh"),
|
|
215
219
|
onClick: onMin,
|
|
216
|
-
class: normalizeClass(
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
class: normalizeClass([
|
|
221
|
+
unref(cs).z("title-icon"),
|
|
222
|
+
unref(cs).z("title-min")
|
|
223
|
+
])
|
|
224
|
+
}, [
|
|
225
|
+
createVNode(unref(Icon), null, {
|
|
226
|
+
default: withCtx(() => [
|
|
227
|
+
renderSlot(_ctx.$slots, unref(dataSlot)["icon-min"], {}, () => [
|
|
228
|
+
createVNode(Bar)
|
|
229
|
+
])
|
|
230
|
+
]),
|
|
231
|
+
_: 3
|
|
232
|
+
})
|
|
233
|
+
], 10, _hoisted_1)) : createCommentVNode("", true),
|
|
234
|
+
createElementVNode("span", {
|
|
226
235
|
title: unref(getLocale)(isMax.value ? "tmaxh" : "maxh"),
|
|
227
236
|
onClick: onMax,
|
|
228
|
-
class: normalizeClass(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
class: normalizeClass([
|
|
238
|
+
unref(cs).z("title-icon"),
|
|
239
|
+
unref(cs).z("title-max")
|
|
240
|
+
])
|
|
241
|
+
}, [
|
|
242
|
+
createVNode(unref(Icon), null, {
|
|
243
|
+
default: withCtx(() => [
|
|
244
|
+
isMax.value ? renderSlot(_ctx.$slots, unref(dataSlot)["icon-full"], { key: 0 }, () => [
|
|
245
|
+
createVNode(Frame)
|
|
246
|
+
]) : renderSlot(_ctx.$slots, unref(dataSlot)["icon-max"], { key: 1 }, () => [
|
|
247
|
+
createVNode(Star)
|
|
248
|
+
])
|
|
249
|
+
]),
|
|
250
|
+
_: 3
|
|
251
|
+
})
|
|
252
|
+
], 10, _hoisted_2)
|
|
239
253
|
]),
|
|
240
254
|
_: 3
|
|
241
|
-
}, 8, ["
|
|
255
|
+
}, 8, ["title"])
|
|
242
256
|
]),
|
|
243
257
|
createElementVNode("div", {
|
|
244
258
|
class: normalizeClass(unref(cs).z("body-div"))
|
package/dist/css/icon.css
CHANGED
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
.icon {
|
|
16
16
|
--color: inherit;
|
|
17
|
+
height: 1em;
|
|
18
|
+
width: 1em;
|
|
19
|
+
line-height: 1em;
|
|
17
20
|
display: inline-flex;
|
|
18
21
|
justify-content: center;
|
|
19
22
|
align-items: center;
|
|
@@ -21,4 +24,14 @@
|
|
|
21
24
|
fill: currentColor;
|
|
22
25
|
color: var(--color);
|
|
23
26
|
font-size: inherit;
|
|
27
|
+
}
|
|
28
|
+
.icon-cont {
|
|
29
|
+
border: 0;
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
object-fit: contain;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
font-size: inherit !important;
|
|
35
|
+
width: inherit !important;
|
|
36
|
+
height: inherit !important;
|
|
24
37
|
}
|
package/dist/css/index.css
CHANGED
|
@@ -310,6 +310,7 @@
|
|
|
310
310
|
padding: 0;
|
|
311
311
|
margin: 0;
|
|
312
312
|
transition: 0s;
|
|
313
|
+
min-height: 60px;
|
|
313
314
|
}
|
|
314
315
|
.seamless-scroll .seamless-scroll-warp-line,
|
|
315
316
|
.seamless-scroll .seamless-scroll-warp {
|
|
@@ -340,9 +341,10 @@
|
|
|
340
341
|
display: flex;
|
|
341
342
|
flex-direction: column;
|
|
342
343
|
}
|
|
343
|
-
.window-body
|
|
344
|
+
.window-body .window-title-icon {
|
|
344
345
|
width: 20px;
|
|
345
|
-
|
|
346
|
+
display: inline-flex;
|
|
347
|
+
align-items: center;
|
|
346
348
|
margin: 0 4px;
|
|
347
349
|
cursor: pointer;
|
|
348
350
|
}
|
|
@@ -367,6 +369,9 @@
|
|
|
367
369
|
|
|
368
370
|
.icon {
|
|
369
371
|
--color: inherit;
|
|
372
|
+
height: 1em;
|
|
373
|
+
width: 1em;
|
|
374
|
+
line-height: 1em;
|
|
370
375
|
display: inline-flex;
|
|
371
376
|
justify-content: center;
|
|
372
377
|
align-items: center;
|
|
@@ -375,6 +380,16 @@
|
|
|
375
380
|
color: var(--color);
|
|
376
381
|
font-size: inherit;
|
|
377
382
|
}
|
|
383
|
+
.icon-cont {
|
|
384
|
+
border: 0;
|
|
385
|
+
display: inline-flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
object-fit: contain;
|
|
388
|
+
justify-content: center;
|
|
389
|
+
font-size: inherit !important;
|
|
390
|
+
width: inherit !important;
|
|
391
|
+
height: inherit !important;
|
|
392
|
+
}
|
|
378
393
|
|
|
379
394
|
.lists-div .lists-table {
|
|
380
395
|
width: 100%;
|
|
@@ -573,6 +588,80 @@
|
|
|
573
588
|
background-color: #f5f5f5;
|
|
574
589
|
}
|
|
575
590
|
|
|
591
|
+
.retract {
|
|
592
|
+
position: relative;
|
|
593
|
+
}
|
|
594
|
+
.retract .retract-but {
|
|
595
|
+
position: absolute;
|
|
596
|
+
background-color: rgba(201, 201, 201, 0.5);
|
|
597
|
+
}
|
|
598
|
+
.retract .retract-but .retract-icon {
|
|
599
|
+
width: 100%;
|
|
600
|
+
height: 100%;
|
|
601
|
+
display: inline-flex;
|
|
602
|
+
pointer-events: all;
|
|
603
|
+
align-items: center;
|
|
604
|
+
justify-content: center;
|
|
605
|
+
cursor: pointer;
|
|
606
|
+
transform: rotate(0);
|
|
607
|
+
transition: transform 0.3s;
|
|
608
|
+
}
|
|
609
|
+
.retract .retract-but .retract-icon.is-reverse {
|
|
610
|
+
transform: rotate(-180deg);
|
|
611
|
+
}
|
|
612
|
+
.retract .retract-but.is-left {
|
|
613
|
+
top: 50%;
|
|
614
|
+
width: 20px;
|
|
615
|
+
height: 50px;
|
|
616
|
+
margin-top: -25px;
|
|
617
|
+
left: -20px;
|
|
618
|
+
}
|
|
619
|
+
.retract .retract-but.is-left .retract-icon {
|
|
620
|
+
transform: rotate(0);
|
|
621
|
+
}
|
|
622
|
+
.retract .retract-but.is-left .retract-icon.is-reverse {
|
|
623
|
+
transform: rotate(-180deg);
|
|
624
|
+
}
|
|
625
|
+
.retract .retract-but.is-right {
|
|
626
|
+
top: 50%;
|
|
627
|
+
width: 20px;
|
|
628
|
+
height: 50px;
|
|
629
|
+
margin-top: -25px;
|
|
630
|
+
right: -20px;
|
|
631
|
+
}
|
|
632
|
+
.retract .retract-but.is-right .retract-icon {
|
|
633
|
+
transform: rotate(-180deg);
|
|
634
|
+
}
|
|
635
|
+
.retract .retract-but.is-right .retract-icon.is-reverse {
|
|
636
|
+
transform: rotate(0);
|
|
637
|
+
}
|
|
638
|
+
.retract .retract-but.is-top {
|
|
639
|
+
left: 50%;
|
|
640
|
+
width: 50px;
|
|
641
|
+
height: 20px;
|
|
642
|
+
margin-left: -25px;
|
|
643
|
+
top: -20px;
|
|
644
|
+
}
|
|
645
|
+
.retract .retract-but.is-top .retract-icon {
|
|
646
|
+
transform: rotate(90deg);
|
|
647
|
+
}
|
|
648
|
+
.retract .retract-but.is-top .retract-icon.is-reverse {
|
|
649
|
+
transform: rotate(-90deg);
|
|
650
|
+
}
|
|
651
|
+
.retract .retract-but.is-bottom {
|
|
652
|
+
left: 50%;
|
|
653
|
+
width: 50px;
|
|
654
|
+
height: 20px;
|
|
655
|
+
margin-left: -25px;
|
|
656
|
+
bottom: -20px;
|
|
657
|
+
}
|
|
658
|
+
.retract .retract-but.is-bottom .retract-icon {
|
|
659
|
+
transform: rotate(-90deg);
|
|
660
|
+
}
|
|
661
|
+
.retract .retract-but.is-bottom .retract-icon.is-reverse {
|
|
662
|
+
transform: rotate(90deg);
|
|
663
|
+
}
|
|
664
|
+
|
|
576
665
|
.array {
|
|
577
666
|
width: 100%;
|
|
578
667
|
display: inline-flex;
|