@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
|
@@ -25,7 +25,7 @@ const dataProps = buildProps.buildProps({
|
|
|
25
25
|
type: [String]
|
|
26
26
|
},
|
|
27
27
|
/**
|
|
28
|
-
* @props { String, Number } size=
|
|
28
|
+
* @props { String, Number } size='30px' ( )
|
|
29
29
|
* 图标大小
|
|
30
30
|
*/
|
|
31
31
|
size: {
|
|
@@ -35,7 +35,7 @@ const dataProps = buildProps.buildProps({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
/**
|
|
38
|
-
* @props {
|
|
38
|
+
* @props { Object } icons={} ( )
|
|
39
39
|
* 图标名称
|
|
40
40
|
*/
|
|
41
41
|
icons: {
|
|
@@ -45,7 +45,7 @@ const dataProps = buildProps.buildProps({
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
/**
|
|
48
|
-
* @props { String} type= ( )
|
|
48
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
49
49
|
* 图标类型
|
|
50
50
|
*/
|
|
51
51
|
type: {
|
|
@@ -42,7 +42,7 @@ export declare const dataProps: {
|
|
|
42
42
|
type: StringConstructor[];
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* @props { String, Number } size=
|
|
45
|
+
* @props { String, Number } size='30px' ( )
|
|
46
46
|
* 图标大小
|
|
47
47
|
*/
|
|
48
48
|
size: {
|
|
@@ -50,7 +50,7 @@ export declare const dataProps: {
|
|
|
50
50
|
default(): "30px";
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
|
-
* @props {
|
|
53
|
+
* @props { Object } icons={} ( )
|
|
54
54
|
* 图标名称
|
|
55
55
|
*/
|
|
56
56
|
icons: {
|
|
@@ -60,7 +60,7 @@ export declare const dataProps: {
|
|
|
60
60
|
default(): {};
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
|
-
* @props { String} type= ( )
|
|
63
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
64
64
|
* 图标类型
|
|
65
65
|
*/
|
|
66
66
|
type: {
|
|
@@ -23,7 +23,7 @@ const dataProps = buildProps({
|
|
|
23
23
|
type: [String]
|
|
24
24
|
},
|
|
25
25
|
/**
|
|
26
|
-
* @props { String, Number } size=
|
|
26
|
+
* @props { String, Number } size='30px' ( )
|
|
27
27
|
* 图标大小
|
|
28
28
|
*/
|
|
29
29
|
size: {
|
|
@@ -33,7 +33,7 @@ const dataProps = buildProps({
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
/**
|
|
36
|
-
* @props {
|
|
36
|
+
* @props { Object } icons={} ( )
|
|
37
37
|
* 图标名称
|
|
38
38
|
*/
|
|
39
39
|
icons: {
|
|
@@ -43,7 +43,7 @@ const dataProps = buildProps({
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
/**
|
|
46
|
-
* @props { String} type= ( )
|
|
46
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
47
47
|
* 图标类型
|
|
48
48
|
*/
|
|
49
49
|
type: {
|
|
@@ -36,7 +36,7 @@ const dataProps = buildProps.buildProps({
|
|
|
36
36
|
default: 0
|
|
37
37
|
},
|
|
38
38
|
/**
|
|
39
|
-
* @props { String }
|
|
39
|
+
* @props { String } label=''
|
|
40
40
|
* 标题名称
|
|
41
41
|
*/
|
|
42
42
|
label: {
|
|
@@ -44,7 +44,7 @@ const dataProps = buildProps.buildProps({
|
|
|
44
44
|
default: ""
|
|
45
45
|
},
|
|
46
46
|
/**
|
|
47
|
-
* @props { Boolean }
|
|
47
|
+
* @props { Boolean } labelHidden=false
|
|
48
48
|
* 标题是否隐藏
|
|
49
49
|
*/
|
|
50
50
|
labelHidden: {
|
|
@@ -52,7 +52,7 @@ const dataProps = buildProps.buildProps({
|
|
|
52
52
|
default: false
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
const dataEmits = [];
|
|
55
|
+
const dataEmits = ["load"];
|
|
56
56
|
const dataSlot = {};
|
|
57
57
|
const dataExpose = {};
|
|
58
58
|
exports.dataEmits = dataEmits;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* @title {h3} iframe iframe组件
|
|
4
|
+
*/
|
|
2
5
|
export declare const dataProps: {
|
|
3
6
|
/**
|
|
4
7
|
* @props { String} url='' ( )
|
|
@@ -33,7 +36,7 @@ export declare const dataProps: {
|
|
|
33
36
|
default: number;
|
|
34
37
|
};
|
|
35
38
|
/**
|
|
36
|
-
* @props { String }
|
|
39
|
+
* @props { String } label=''
|
|
37
40
|
* 标题名称
|
|
38
41
|
*/
|
|
39
42
|
label: {
|
|
@@ -41,7 +44,7 @@ export declare const dataProps: {
|
|
|
41
44
|
default: string;
|
|
42
45
|
};
|
|
43
46
|
/**
|
|
44
|
-
* @props { Boolean }
|
|
47
|
+
* @props { Boolean } labelHidden=false
|
|
45
48
|
* 标题是否隐藏
|
|
46
49
|
*/
|
|
47
50
|
labelHidden: {
|
|
@@ -54,7 +57,7 @@ export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
|
54
57
|
* @emits load ()
|
|
55
58
|
* 加载完成时触发事件
|
|
56
59
|
*/
|
|
57
|
-
export declare const dataEmits:
|
|
60
|
+
export declare const dataEmits: string[];
|
|
58
61
|
export type DataEmits = typeof dataEmits;
|
|
59
62
|
/**
|
|
60
63
|
*/
|
|
@@ -34,7 +34,7 @@ const dataProps = buildProps({
|
|
|
34
34
|
default: 0
|
|
35
35
|
},
|
|
36
36
|
/**
|
|
37
|
-
* @props { String }
|
|
37
|
+
* @props { String } label=''
|
|
38
38
|
* 标题名称
|
|
39
39
|
*/
|
|
40
40
|
label: {
|
|
@@ -42,7 +42,7 @@ const dataProps = buildProps({
|
|
|
42
42
|
default: ""
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
45
|
-
* @props { Boolean }
|
|
45
|
+
* @props { Boolean } labelHidden=false
|
|
46
46
|
* 标题是否隐藏
|
|
47
47
|
*/
|
|
48
48
|
labelHidden: {
|
|
@@ -50,7 +50,7 @@ const dataProps = buildProps({
|
|
|
50
50
|
default: false
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
const dataEmits = [];
|
|
53
|
+
const dataEmits = ["load"];
|
|
54
54
|
const dataSlot = {};
|
|
55
55
|
const dataExpose = {};
|
|
56
56
|
export {
|
|
@@ -21,6 +21,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
const attrs = index$2.useInherit();
|
|
22
22
|
const props = __props;
|
|
23
23
|
const emit = __emit;
|
|
24
|
+
const onLoad = () => {
|
|
25
|
+
emit("load");
|
|
26
|
+
};
|
|
24
27
|
__expose({
|
|
25
28
|
...data.dataExpose
|
|
26
29
|
});
|
|
@@ -36,6 +39,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
39
|
width: props.width,
|
|
37
40
|
height: props.height,
|
|
38
41
|
frameborder: props.frameborder,
|
|
42
|
+
onLoad,
|
|
39
43
|
src: props.url
|
|
40
44
|
}), null, 16, _hoisted_2)
|
|
41
45
|
], 2);
|
|
@@ -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
|