@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
|
@@ -19,6 +19,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
const attrs = useInherit();
|
|
20
20
|
const props = __props;
|
|
21
21
|
const emit = __emit;
|
|
22
|
+
const onLoad = () => {
|
|
23
|
+
emit("load");
|
|
24
|
+
};
|
|
22
25
|
__expose({
|
|
23
26
|
...dataExpose
|
|
24
27
|
});
|
|
@@ -34,6 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
37
|
width: props.width,
|
|
35
38
|
height: props.height,
|
|
36
39
|
frameborder: props.frameborder,
|
|
40
|
+
onLoad,
|
|
37
41
|
src: props.url
|
|
38
42
|
}), null, 16, _hoisted_2)
|
|
39
43
|
], 2);
|
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
@use './seamless-scroll/style/index.scss' as *;
|
|
55
55
|
@use './window/style/index.scss' as *;
|
|
56
56
|
@use './global-config/style/index.scss' as *;
|
|
57
|
-
@use './icon/style/
|
|
57
|
+
@use './icon/style/index2.scss' as *;
|
|
58
58
|
@use './lists/style/index.scss' as *;
|
|
59
59
|
@use './menus/style/index2.scss' as *;
|
|
60
60
|
@use './page/style/index2.scss' as *;
|
|
61
|
+
@use './retract/style/index.scss' as *;
|
|
61
62
|
@use './array/style/index.scss' as *;
|
|
62
63
|
@use './buttons/style/index2.scss' as *;
|
|
63
64
|
@use './cascaders/style/index2.scss' as *;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const dataProps = {
|
|
4
4
|
/**
|
|
5
|
-
* @props { Object } options
|
|
5
|
+
* @props { Object } options={}
|
|
6
|
+
* 选择数据集合
|
|
6
7
|
*/
|
|
7
8
|
options: {
|
|
8
9
|
type: Object,
|
|
@@ -11,7 +12,8 @@ const dataProps = {
|
|
|
11
12
|
}
|
|
12
13
|
},
|
|
13
14
|
/**
|
|
14
|
-
* @props { Object } compons
|
|
15
|
+
* @props { Object } compons={}
|
|
16
|
+
* 外部组件集合
|
|
15
17
|
*/
|
|
16
18
|
compons: {
|
|
17
19
|
type: Object,
|
|
@@ -19,10 +21,18 @@ const dataProps = {
|
|
|
19
21
|
return {};
|
|
20
22
|
}
|
|
21
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
|
|
26
|
+
* 标签位置
|
|
27
|
+
*/
|
|
22
28
|
labelPosition: {
|
|
23
29
|
type: String,
|
|
24
30
|
default: "auto"
|
|
25
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* @props { Array<ListObj> } list=[]
|
|
34
|
+
* 列数据
|
|
35
|
+
*/
|
|
26
36
|
list: {
|
|
27
37
|
type: Array,
|
|
28
38
|
default: () => {
|
|
@@ -35,27 +45,49 @@ const dataProps = {
|
|
|
35
45
|
return {};
|
|
36
46
|
}
|
|
37
47
|
},
|
|
48
|
+
/**
|
|
49
|
+
* @props { Number } column=2
|
|
50
|
+
* 一行展示多少列
|
|
51
|
+
*/
|
|
38
52
|
column: {
|
|
39
53
|
type: Number,
|
|
40
54
|
default() {
|
|
41
55
|
return 2;
|
|
42
56
|
}
|
|
43
57
|
},
|
|
58
|
+
/**
|
|
59
|
+
* @props { Boolean, String } colon
|
|
60
|
+
* 标签后面是否加内容 true 是 :
|
|
61
|
+
*/
|
|
44
62
|
colon: [Boolean, String],
|
|
63
|
+
/**
|
|
64
|
+
* @props {Number, String } labelWidth=[]
|
|
65
|
+
* 标签宽度
|
|
66
|
+
*/
|
|
45
67
|
labelWidth: {
|
|
46
68
|
type: [Number, String]
|
|
47
69
|
// default: '60px',
|
|
48
70
|
},
|
|
49
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @props { Boolean, String } border=true ( )
|
|
73
|
+
* 是否需要边框,边框颜色
|
|
74
|
+
*/
|
|
50
75
|
border: {
|
|
51
76
|
type: [Boolean, String]
|
|
52
77
|
// default: true
|
|
53
78
|
},
|
|
54
|
-
|
|
79
|
+
/**
|
|
80
|
+
* @props { Boolean } aliquots=true ( )
|
|
81
|
+
* 是否等分
|
|
82
|
+
*/
|
|
55
83
|
aliquots: {
|
|
56
84
|
type: Boolean,
|
|
57
85
|
default: true
|
|
58
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* @props { Boolean } componSelected
|
|
89
|
+
* 是否在选中时显示 compon 组件
|
|
90
|
+
*/
|
|
59
91
|
componSelected: Boolean
|
|
60
92
|
};
|
|
61
93
|
const dataEmits = ["list-events"];
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ExtractPropTypes, Component } from 'vue';
|
|
2
2
|
export declare const dataProps: {
|
|
3
3
|
/**
|
|
4
|
-
* @props { Object } options
|
|
4
|
+
* @props { Object } options={}
|
|
5
|
+
* 选择数据集合
|
|
5
6
|
*/
|
|
6
7
|
options: {
|
|
7
8
|
type: ObjectConstructor;
|
|
8
9
|
default(): {};
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
11
|
-
* @props { Object } compons
|
|
12
|
+
* @props { Object } compons={}
|
|
13
|
+
* 外部组件集合
|
|
12
14
|
*/
|
|
13
15
|
compons: {
|
|
14
16
|
type: () => {
|
|
@@ -16,10 +18,18 @@ export declare const dataProps: {
|
|
|
16
18
|
};
|
|
17
19
|
default(): {};
|
|
18
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
|
|
23
|
+
* 标签位置
|
|
24
|
+
*/
|
|
19
25
|
labelPosition: {
|
|
20
26
|
type: () => "left" | "top" | "right" | "center" | "auto";
|
|
21
27
|
default: string;
|
|
22
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @props { Array<ListObj> } list=[]
|
|
31
|
+
* 列数据
|
|
32
|
+
*/
|
|
23
33
|
list: {
|
|
24
34
|
type: {
|
|
25
35
|
(arrayLength: number): ListObj[];
|
|
@@ -43,21 +53,45 @@ export declare const dataProps: {
|
|
|
43
53
|
type: ObjectConstructor;
|
|
44
54
|
default: () => {};
|
|
45
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* @props { Number } column=2
|
|
58
|
+
* 一行展示多少列
|
|
59
|
+
*/
|
|
46
60
|
column: {
|
|
47
61
|
type: NumberConstructor;
|
|
48
62
|
default(): number;
|
|
49
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* @props { Boolean, String } colon
|
|
66
|
+
* 标签后面是否加内容 true 是 :
|
|
67
|
+
*/
|
|
50
68
|
colon: (BooleanConstructor | StringConstructor)[];
|
|
69
|
+
/**
|
|
70
|
+
* @props {Number, String } labelWidth=[]
|
|
71
|
+
* 标签宽度
|
|
72
|
+
*/
|
|
51
73
|
labelWidth: {
|
|
52
74
|
type: (StringConstructor | NumberConstructor)[];
|
|
53
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* @props { Boolean, String } border=true ( )
|
|
78
|
+
* 是否需要边框,边框颜色
|
|
79
|
+
*/
|
|
54
80
|
border: {
|
|
55
81
|
type: (BooleanConstructor | StringConstructor)[];
|
|
56
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* @props { Boolean } aliquots=true ( )
|
|
85
|
+
* 是否等分
|
|
86
|
+
*/
|
|
57
87
|
aliquots: {
|
|
58
88
|
type: BooleanConstructor;
|
|
59
89
|
default: boolean;
|
|
60
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* @props { Boolean } componSelected
|
|
93
|
+
* 是否在选中时显示 compon 组件
|
|
94
|
+
*/
|
|
61
95
|
componSelected: BooleanConstructor;
|
|
62
96
|
};
|
|
63
97
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const dataProps = {
|
|
2
2
|
/**
|
|
3
|
-
* @props { Object } options
|
|
3
|
+
* @props { Object } options={}
|
|
4
|
+
* 选择数据集合
|
|
4
5
|
*/
|
|
5
6
|
options: {
|
|
6
7
|
type: Object,
|
|
@@ -9,7 +10,8 @@ const dataProps = {
|
|
|
9
10
|
}
|
|
10
11
|
},
|
|
11
12
|
/**
|
|
12
|
-
* @props { Object } compons
|
|
13
|
+
* @props { Object } compons={}
|
|
14
|
+
* 外部组件集合
|
|
13
15
|
*/
|
|
14
16
|
compons: {
|
|
15
17
|
type: Object,
|
|
@@ -17,10 +19,18 @@ const dataProps = {
|
|
|
17
19
|
return {};
|
|
18
20
|
}
|
|
19
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
|
|
24
|
+
* 标签位置
|
|
25
|
+
*/
|
|
20
26
|
labelPosition: {
|
|
21
27
|
type: String,
|
|
22
28
|
default: "auto"
|
|
23
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* @props { Array<ListObj> } list=[]
|
|
32
|
+
* 列数据
|
|
33
|
+
*/
|
|
24
34
|
list: {
|
|
25
35
|
type: Array,
|
|
26
36
|
default: () => {
|
|
@@ -33,27 +43,49 @@ const dataProps = {
|
|
|
33
43
|
return {};
|
|
34
44
|
}
|
|
35
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @props { Number } column=2
|
|
48
|
+
* 一行展示多少列
|
|
49
|
+
*/
|
|
36
50
|
column: {
|
|
37
51
|
type: Number,
|
|
38
52
|
default() {
|
|
39
53
|
return 2;
|
|
40
54
|
}
|
|
41
55
|
},
|
|
56
|
+
/**
|
|
57
|
+
* @props { Boolean, String } colon
|
|
58
|
+
* 标签后面是否加内容 true 是 :
|
|
59
|
+
*/
|
|
42
60
|
colon: [Boolean, String],
|
|
61
|
+
/**
|
|
62
|
+
* @props {Number, String } labelWidth=[]
|
|
63
|
+
* 标签宽度
|
|
64
|
+
*/
|
|
43
65
|
labelWidth: {
|
|
44
66
|
type: [Number, String]
|
|
45
67
|
// default: '60px',
|
|
46
68
|
},
|
|
47
|
-
|
|
69
|
+
/**
|
|
70
|
+
* @props { Boolean, String } border=true ( )
|
|
71
|
+
* 是否需要边框,边框颜色
|
|
72
|
+
*/
|
|
48
73
|
border: {
|
|
49
74
|
type: [Boolean, String]
|
|
50
75
|
// default: true
|
|
51
76
|
},
|
|
52
|
-
|
|
77
|
+
/**
|
|
78
|
+
* @props { Boolean } aliquots=true ( )
|
|
79
|
+
* 是否等分
|
|
80
|
+
*/
|
|
53
81
|
aliquots: {
|
|
54
82
|
type: Boolean,
|
|
55
83
|
default: true
|
|
56
84
|
},
|
|
85
|
+
/**
|
|
86
|
+
* @props { Boolean } componSelected
|
|
87
|
+
* 是否在选中时显示 compon 组件
|
|
88
|
+
*/
|
|
57
89
|
componSelected: Boolean
|
|
58
90
|
};
|
|
59
91
|
const dataEmits = ["list-events"];
|
|
@@ -29,7 +29,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
/**
|
|
32
|
-
* @props { Object } compons
|
|
32
|
+
* @props { Object } compons={}
|
|
33
|
+
* 外部组件集合
|
|
33
34
|
*/
|
|
34
35
|
compons: {
|
|
35
36
|
type: Object,
|
|
@@ -38,12 +39,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
/**
|
|
42
|
+
* @props { Boolean, String } level
|
|
41
43
|
* 是否带层级
|
|
42
44
|
*/
|
|
43
45
|
level: [Boolean, String],
|
|
46
|
+
/**
|
|
47
|
+
* @props { String } value
|
|
48
|
+
* 当前选中的
|
|
49
|
+
*/
|
|
44
50
|
value: {
|
|
45
51
|
type: String
|
|
46
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @props { Array<ListObj> } list=[]
|
|
55
|
+
* 列数据
|
|
56
|
+
*/
|
|
47
57
|
list: {
|
|
48
58
|
type: Array,
|
|
49
59
|
default() {
|
|
@@ -27,7 +27,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
/**
|
|
30
|
-
* @props { Object } compons
|
|
30
|
+
* @props { Object } compons={}
|
|
31
|
+
* 外部组件集合
|
|
31
32
|
*/
|
|
32
33
|
compons: {
|
|
33
34
|
type: Object,
|
|
@@ -36,12 +37,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
/**
|
|
40
|
+
* @props { Boolean, String } level
|
|
39
41
|
* 是否带层级
|
|
40
42
|
*/
|
|
41
43
|
level: [Boolean, String],
|
|
44
|
+
/**
|
|
45
|
+
* @props { String } value
|
|
46
|
+
* 当前选中的
|
|
47
|
+
*/
|
|
42
48
|
value: {
|
|
43
49
|
type: String
|
|
44
50
|
},
|
|
51
|
+
/**
|
|
52
|
+
* @props { Array<ListObj> } list=[]
|
|
53
|
+
* 列数据
|
|
54
|
+
*/
|
|
45
55
|
list: {
|
|
46
56
|
type: Array,
|
|
47
57
|
default() {
|
|
@@ -5,47 +5,54 @@ const data = require("../../box/src/data.cjs");
|
|
|
5
5
|
const dataProps = buildProps.buildProps({
|
|
6
6
|
...data.dataProps,
|
|
7
7
|
/**
|
|
8
|
-
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
8
|
+
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
9
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
9
10
|
*/
|
|
10
11
|
drag: {
|
|
11
12
|
type: [String, Boolean],
|
|
12
13
|
default: ".com-title-name"
|
|
13
14
|
},
|
|
14
15
|
/**
|
|
15
|
-
* @props { } drag= ( )
|
|
16
|
+
* @props { Boolean } drag= ( )
|
|
17
|
+
* 是否支持改变大小
|
|
16
18
|
*/
|
|
17
19
|
adjust: {
|
|
18
20
|
type: Boolean
|
|
19
21
|
},
|
|
20
22
|
/**
|
|
21
|
-
* @props { } 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 { } maskClose=true ( )
|
|
31
|
+
* @props { Boolean } maskClose=true ( )
|
|
32
|
+
* 是否要遮罩是否关闭
|
|
29
33
|
*/
|
|
30
34
|
maskClose: {
|
|
31
35
|
type: Boolean,
|
|
32
36
|
default: true
|
|
33
37
|
},
|
|
34
38
|
/**
|
|
35
|
-
* @props { } self=false ( )
|
|
39
|
+
* @props { Boolean } self=false ( )
|
|
40
|
+
* 是否要自适应 如果为true 将不支持拖拽和改变大小功能
|
|
36
41
|
*/
|
|
37
42
|
self: {
|
|
38
43
|
type: Boolean,
|
|
39
44
|
default: false
|
|
40
45
|
},
|
|
41
46
|
/**
|
|
42
|
-
* @props { Boolean } local= ( )
|
|
47
|
+
* @props { Boolean } local= ( )
|
|
48
|
+
* 是否启动弹框模式
|
|
43
49
|
*/
|
|
44
50
|
local: {
|
|
45
51
|
type: Boolean
|
|
46
52
|
},
|
|
47
53
|
/**
|
|
48
|
-
* @props { Boolean } often= ( )
|
|
54
|
+
* @props { Boolean } often= ( )
|
|
55
|
+
* 是否时时变化
|
|
49
56
|
*/
|
|
50
57
|
often: {
|
|
51
58
|
type: Boolean
|
|
@@ -1,47 +1,55 @@
|
|
|
1
1
|
import { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import { FunctConfig } from '../../../utils/enums';
|
|
2
3
|
export declare const dataProps: {
|
|
3
4
|
/**
|
|
4
|
-
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
5
|
+
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
6
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
5
7
|
*/
|
|
6
8
|
drag: {
|
|
7
9
|
type: (BooleanConstructor | StringConstructor)[];
|
|
8
10
|
default: string;
|
|
9
11
|
};
|
|
10
12
|
/**
|
|
11
|
-
* @props { } drag= ( )
|
|
13
|
+
* @props { Boolean } drag= ( )
|
|
14
|
+
* 是否支持改变大小
|
|
12
15
|
*/
|
|
13
16
|
adjust: {
|
|
14
17
|
type: BooleanConstructor;
|
|
15
18
|
};
|
|
16
19
|
/**
|
|
17
|
-
* @props { } mask=true ( )
|
|
20
|
+
* @props { Boolean } mask=true ( )
|
|
21
|
+
* 是否要遮罩
|
|
18
22
|
*/
|
|
19
23
|
mask: {
|
|
20
24
|
type: BooleanConstructor;
|
|
21
25
|
default: boolean;
|
|
22
26
|
};
|
|
23
27
|
/**
|
|
24
|
-
* @props { } maskClose=true ( )
|
|
28
|
+
* @props { Boolean } maskClose=true ( )
|
|
29
|
+
* 是否要遮罩是否关闭
|
|
25
30
|
*/
|
|
26
31
|
maskClose: {
|
|
27
32
|
type: BooleanConstructor;
|
|
28
33
|
default: boolean;
|
|
29
34
|
};
|
|
30
35
|
/**
|
|
31
|
-
* @props { } self=false ( )
|
|
36
|
+
* @props { Boolean } self=false ( )
|
|
37
|
+
* 是否要自适应 如果为true 将不支持拖拽和改变大小功能
|
|
32
38
|
*/
|
|
33
39
|
self: {
|
|
34
40
|
type: BooleanConstructor;
|
|
35
41
|
default: boolean;
|
|
36
42
|
};
|
|
37
43
|
/**
|
|
38
|
-
* @props { Boolean } local= ( )
|
|
44
|
+
* @props { Boolean } local= ( )
|
|
45
|
+
* 是否启动弹框模式
|
|
39
46
|
*/
|
|
40
47
|
local: {
|
|
41
48
|
type: BooleanConstructor;
|
|
42
49
|
};
|
|
43
50
|
/**
|
|
44
|
-
* @props { Boolean } often= ( )
|
|
51
|
+
* @props { Boolean } often= ( )
|
|
52
|
+
* 是否时时变化
|
|
45
53
|
*/
|
|
46
54
|
often: {
|
|
47
55
|
type: BooleanConstructor;
|
|
@@ -52,13 +60,17 @@ export declare const dataProps: {
|
|
|
52
60
|
modelValue: {
|
|
53
61
|
type: BooleanConstructor;
|
|
54
62
|
};
|
|
63
|
+
boxClass: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
55
66
|
to: {
|
|
56
67
|
type: StringConstructor;
|
|
68
|
+
default: FunctConfig;
|
|
57
69
|
};
|
|
58
70
|
disabled: {
|
|
59
71
|
type: BooleanConstructor;
|
|
60
72
|
};
|
|
61
|
-
|
|
73
|
+
cssprefix: {
|
|
62
74
|
type: StringConstructor;
|
|
63
75
|
};
|
|
64
76
|
};
|
|
@@ -3,47 +3,54 @@ import { dataProps as dataProps$1, dataEmits as dataEmits$1, dataSlot as dataSlo
|
|
|
3
3
|
const dataProps = buildProps({
|
|
4
4
|
...dataProps$1,
|
|
5
5
|
/**
|
|
6
|
-
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
6
|
+
* @props { String, Boolean } drag='.com-title-name' ( )
|
|
7
|
+
* 可拖拽的元素样式 为空字符串就不拖拽
|
|
7
8
|
*/
|
|
8
9
|
drag: {
|
|
9
10
|
type: [String, Boolean],
|
|
10
11
|
default: ".com-title-name"
|
|
11
12
|
},
|
|
12
13
|
/**
|
|
13
|
-
* @props { } drag= ( )
|
|
14
|
+
* @props { Boolean } drag= ( )
|
|
15
|
+
* 是否支持改变大小
|
|
14
16
|
*/
|
|
15
17
|
adjust: {
|
|
16
18
|
type: Boolean
|
|
17
19
|
},
|
|
18
20
|
/**
|
|
19
|
-
* @props { } mask=true ( )
|
|
21
|
+
* @props { Boolean } mask=true ( )
|
|
22
|
+
* 是否要遮罩
|
|
20
23
|
*/
|
|
21
24
|
mask: {
|
|
22
25
|
type: Boolean,
|
|
23
26
|
default: true
|
|
24
27
|
},
|
|
25
28
|
/**
|
|
26
|
-
* @props { } maskClose=true ( )
|
|
29
|
+
* @props { Boolean } maskClose=true ( )
|
|
30
|
+
* 是否要遮罩是否关闭
|
|
27
31
|
*/
|
|
28
32
|
maskClose: {
|
|
29
33
|
type: Boolean,
|
|
30
34
|
default: true
|
|
31
35
|
},
|
|
32
36
|
/**
|
|
33
|
-
* @props { } self=false ( )
|
|
37
|
+
* @props { Boolean } self=false ( )
|
|
38
|
+
* 是否要自适应 如果为true 将不支持拖拽和改变大小功能
|
|
34
39
|
*/
|
|
35
40
|
self: {
|
|
36
41
|
type: Boolean,
|
|
37
42
|
default: false
|
|
38
43
|
},
|
|
39
44
|
/**
|
|
40
|
-
* @props { Boolean } local= ( )
|
|
45
|
+
* @props { Boolean } local= ( )
|
|
46
|
+
* 是否启动弹框模式
|
|
41
47
|
*/
|
|
42
48
|
local: {
|
|
43
49
|
type: Boolean
|
|
44
50
|
},
|
|
45
51
|
/**
|
|
46
|
-
* @props { Boolean } often= ( )
|
|
52
|
+
* @props { Boolean } often= ( )
|
|
53
|
+
* 是否时时变化
|
|
47
54
|
*/
|
|
48
55
|
often: {
|
|
49
56
|
type: Boolean
|
|
@@ -59,22 +59,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
59
59
|
default: vue.withCtx(() => [
|
|
60
60
|
isInit.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
61
61
|
key: 0,
|
|
62
|
-
class: vue.normalizeClass([vue.unref(cs).z(), props.self ? "
|
|
62
|
+
class: vue.normalizeClass([vue.unref(cs).z(), props.self ? vue.unref(cs).z("center") : ""])
|
|
63
63
|
}, [
|
|
64
64
|
props.mask ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.BoxMask), {
|
|
65
65
|
key: 0,
|
|
66
66
|
onClick: onMaskClose,
|
|
67
|
-
cssprefix: vue.unref(cs).z()
|
|
67
|
+
cssprefix: props.cssprefix || vue.unref(cs).z()
|
|
68
68
|
}, null, 8, ["cssprefix"])) : vue.createCommentVNode("", true),
|
|
69
69
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
70
70
|
class: vue.normalizeClass(vue.unref(cs).z("body"))
|
|
71
71
|
}, [
|
|
72
72
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).title, {}, () => [
|
|
73
73
|
vue.createVNode(vue.unref(index$4.BoxTitle), {
|
|
74
|
-
cssprefix: vue.unref(cs).z(),
|
|
75
74
|
onClose,
|
|
76
75
|
title: props.title
|
|
77
|
-
}, null, 8, ["
|
|
76
|
+
}, null, 8, ["title"])
|
|
78
77
|
]),
|
|
79
78
|
vue.createElementVNode("div", {
|
|
80
79
|
class: vue.normalizeClass(vue.unref(cs).z("body-div"))
|