@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const dataProps = {
|
|
2
2
|
/**
|
|
3
|
-
* @props { Object
|
|
3
|
+
* @props { Object<ObjAny>} options={}
|
|
4
|
+
* 选择数据集合
|
|
4
5
|
*/
|
|
5
6
|
optionss: {
|
|
6
7
|
type: Object,
|
|
@@ -8,21 +9,41 @@ const dataProps = {
|
|
|
8
9
|
return {};
|
|
9
10
|
}
|
|
10
11
|
},
|
|
12
|
+
/**
|
|
13
|
+
* @props { Object<ListObj> } listobj={}
|
|
14
|
+
* 表单列数据对象
|
|
15
|
+
*/
|
|
11
16
|
listobj: {
|
|
12
17
|
type: Object,
|
|
13
18
|
default() {
|
|
14
19
|
return {};
|
|
15
20
|
}
|
|
16
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @props { Object } valueobj
|
|
24
|
+
* 表单列数据对象
|
|
25
|
+
*/
|
|
17
26
|
valueobj: {
|
|
18
27
|
type: Object
|
|
19
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* @props { String, Number } rowHeight
|
|
31
|
+
* 列的高度
|
|
32
|
+
*/
|
|
20
33
|
rowHeight: {
|
|
21
34
|
type: [String, Number]
|
|
22
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
* @props { String, Number } labelWidth
|
|
38
|
+
* 标签的长度
|
|
39
|
+
*/
|
|
23
40
|
labelWidth: {
|
|
24
41
|
type: [String, Number]
|
|
25
42
|
},
|
|
43
|
+
/**
|
|
44
|
+
* @props { Boolean } hideLabel
|
|
45
|
+
* 是否隐藏标签
|
|
46
|
+
*/
|
|
26
47
|
hideLabel: Boolean,
|
|
27
48
|
/**
|
|
28
49
|
* 传入值
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const dataProps = {
|
|
4
4
|
/**
|
|
5
|
-
* @props { Object
|
|
5
|
+
* @props { Object<ObjAny>} options={}
|
|
6
|
+
* 选择数据集合
|
|
6
7
|
*/
|
|
7
8
|
optionss: {
|
|
8
9
|
type: Object,
|
|
@@ -10,12 +11,20 @@ const dataProps = {
|
|
|
10
11
|
return {};
|
|
11
12
|
}
|
|
12
13
|
},
|
|
14
|
+
/**
|
|
15
|
+
* @props { Object<ListObj> } listobj={}
|
|
16
|
+
* 表单列数据对象
|
|
17
|
+
*/
|
|
13
18
|
listobj: {
|
|
14
19
|
type: Object,
|
|
15
20
|
default() {
|
|
16
21
|
return {};
|
|
17
22
|
}
|
|
18
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* @props { Object } valueobj
|
|
26
|
+
* 表单列数据对象
|
|
27
|
+
*/
|
|
19
28
|
valueobj: {
|
|
20
29
|
type: Object
|
|
21
30
|
},
|
|
@@ -27,7 +36,7 @@ const dataProps = {
|
|
|
27
36
|
type: null
|
|
28
37
|
}
|
|
29
38
|
};
|
|
30
|
-
const dataEmits = ["
|
|
39
|
+
const dataEmits = ["update:modelValue"];
|
|
31
40
|
const dataSlot = {
|
|
32
41
|
default: "default"
|
|
33
42
|
};
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare const dataProps: {
|
|
3
3
|
/**
|
|
4
|
-
* @props { Object
|
|
4
|
+
* @props { Object<ObjAny>} options={}
|
|
5
|
+
* 选择数据集合
|
|
5
6
|
*/
|
|
6
7
|
optionss: {
|
|
7
8
|
type: () => ObjAny;
|
|
8
9
|
default(): {};
|
|
9
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* @props { Object<ListObj> } listobj={}
|
|
13
|
+
* 表单列数据对象
|
|
14
|
+
*/
|
|
10
15
|
listobj: {
|
|
11
16
|
type: () => ListObj;
|
|
12
17
|
default(): {};
|
|
13
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @props { Object } valueobj
|
|
21
|
+
* 表单列数据对象
|
|
22
|
+
*/
|
|
14
23
|
valueobj: {
|
|
15
24
|
type: ObjectConstructor;
|
|
16
25
|
};
|
|
@@ -24,8 +33,8 @@ export declare const dataProps: {
|
|
|
24
33
|
};
|
|
25
34
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
26
35
|
/**
|
|
27
|
-
* @emits
|
|
28
|
-
*
|
|
36
|
+
* @emits update:modelValue (val:[String, Array])
|
|
37
|
+
* 数据
|
|
29
38
|
*/
|
|
30
39
|
export declare const dataEmits: string[];
|
|
31
40
|
export type DataEmits = typeof dataEmits;
|
|
@@ -36,7 +45,5 @@ export declare const dataSlot: {
|
|
|
36
45
|
default: string;
|
|
37
46
|
};
|
|
38
47
|
/**
|
|
39
|
-
* @expose setValue (val:<string>设置的数据 )
|
|
40
|
-
* 设置值
|
|
41
48
|
*/
|
|
42
49
|
export declare const dataExpose: {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const dataProps = {
|
|
2
2
|
/**
|
|
3
|
-
* @props { Object
|
|
3
|
+
* @props { Object<ObjAny>} options={}
|
|
4
|
+
* 选择数据集合
|
|
4
5
|
*/
|
|
5
6
|
optionss: {
|
|
6
7
|
type: Object,
|
|
@@ -8,12 +9,20 @@ const dataProps = {
|
|
|
8
9
|
return {};
|
|
9
10
|
}
|
|
10
11
|
},
|
|
12
|
+
/**
|
|
13
|
+
* @props { Object<ListObj> } listobj={}
|
|
14
|
+
* 表单列数据对象
|
|
15
|
+
*/
|
|
11
16
|
listobj: {
|
|
12
17
|
type: Object,
|
|
13
18
|
default() {
|
|
14
19
|
return {};
|
|
15
20
|
}
|
|
16
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @props { Object } valueobj
|
|
24
|
+
* 表单列数据对象
|
|
25
|
+
*/
|
|
17
26
|
valueobj: {
|
|
18
27
|
type: Object
|
|
19
28
|
},
|
|
@@ -25,7 +34,7 @@ const dataProps = {
|
|
|
25
34
|
type: null
|
|
26
35
|
}
|
|
27
36
|
};
|
|
28
|
-
const dataEmits = ["
|
|
37
|
+
const dataEmits = ["update:modelValue"];
|
|
29
38
|
const dataSlot = {
|
|
30
39
|
default: "default"
|
|
31
40
|
};
|
|
@@ -12,7 +12,7 @@ const dataProps = buildProps.buildProps({
|
|
|
12
12
|
type: definePropType.definePropType(Object)
|
|
13
13
|
},
|
|
14
14
|
/**
|
|
15
|
-
* @
|
|
15
|
+
* @props { Number } zIndex
|
|
16
16
|
*/
|
|
17
17
|
zIndex: Number,
|
|
18
18
|
/**
|
|
@@ -23,10 +23,18 @@ const dataProps = buildProps.buildProps({
|
|
|
23
23
|
type: String,
|
|
24
24
|
default: enums.DefaultConfig.aliasspace
|
|
25
25
|
},
|
|
26
|
+
/**
|
|
27
|
+
* @props { String } namespace
|
|
28
|
+
* element-plus 前缀样式名称
|
|
29
|
+
*/
|
|
26
30
|
namespace: {
|
|
27
31
|
type: String,
|
|
28
32
|
default: enums.DefaultConfig.namespace
|
|
29
33
|
},
|
|
34
|
+
/**
|
|
35
|
+
* @props { String } alias ()
|
|
36
|
+
* 组件别名
|
|
37
|
+
*/
|
|
30
38
|
alias: {
|
|
31
39
|
type: String,
|
|
32
40
|
default: enums.DefaultConfig.alias
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
2
|
import { Locale } from '../../../types/locale';
|
|
3
3
|
import { DefaultConfig } from '../../../utils/enums';
|
|
4
|
+
/**
|
|
5
|
+
* @title {h3} global-config 全局配置文件
|
|
6
|
+
*/
|
|
4
7
|
export declare const dataProps: {
|
|
5
8
|
/**
|
|
6
9
|
* @props { Object<Locale> } locale
|
|
@@ -10,7 +13,7 @@ export declare const dataProps: {
|
|
|
10
13
|
type: PropType<Locale>;
|
|
11
14
|
};
|
|
12
15
|
/**
|
|
13
|
-
* @
|
|
16
|
+
* @props { Number } zIndex
|
|
14
17
|
*/
|
|
15
18
|
zIndex: NumberConstructor;
|
|
16
19
|
/**
|
|
@@ -21,10 +24,18 @@ export declare const dataProps: {
|
|
|
21
24
|
type: StringConstructor;
|
|
22
25
|
default: DefaultConfig;
|
|
23
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* @props { String } namespace
|
|
29
|
+
* element-plus 前缀样式名称
|
|
30
|
+
*/
|
|
24
31
|
namespace: {
|
|
25
32
|
type: StringConstructor;
|
|
26
33
|
default: DefaultConfig;
|
|
27
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* @props { String } alias ()
|
|
37
|
+
* 组件别名
|
|
38
|
+
*/
|
|
28
39
|
alias: {
|
|
29
40
|
type: StringConstructor;
|
|
30
41
|
default: DefaultConfig;
|
|
@@ -10,7 +10,7 @@ const dataProps = buildProps({
|
|
|
10
10
|
type: definePropType(Object)
|
|
11
11
|
},
|
|
12
12
|
/**
|
|
13
|
-
* @
|
|
13
|
+
* @props { Number } zIndex
|
|
14
14
|
*/
|
|
15
15
|
zIndex: Number,
|
|
16
16
|
/**
|
|
@@ -21,10 +21,18 @@ const dataProps = buildProps({
|
|
|
21
21
|
type: String,
|
|
22
22
|
default: DefaultConfig.aliasspace
|
|
23
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* @props { String } namespace
|
|
26
|
+
* element-plus 前缀样式名称
|
|
27
|
+
*/
|
|
24
28
|
namespace: {
|
|
25
29
|
type: String,
|
|
26
30
|
default: DefaultConfig.namespace
|
|
27
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* @props { String } alias ()
|
|
34
|
+
* 组件别名
|
|
35
|
+
*/
|
|
28
36
|
alias: {
|
|
29
37
|
type: String,
|
|
30
38
|
default: DefaultConfig.alias
|
|
@@ -5,18 +5,22 @@ const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
|
5
5
|
const definePropType = require("../../../utils/vues/definePropType.cjs");
|
|
6
6
|
const dataProps = buildProps.buildProps({
|
|
7
7
|
/**
|
|
8
|
-
* @props { String} name= ( )
|
|
8
|
+
* @props { String, Object } name= ( )
|
|
9
9
|
* 图标名称
|
|
10
10
|
*/
|
|
11
11
|
name: {
|
|
12
12
|
type: [String, Object],
|
|
13
13
|
default: ""
|
|
14
14
|
},
|
|
15
|
+
/**
|
|
16
|
+
* @props { String} iconClass= ( )
|
|
17
|
+
* 图标样式名称
|
|
18
|
+
*/
|
|
15
19
|
iconClass: {
|
|
16
20
|
type: String
|
|
17
21
|
},
|
|
18
22
|
/**
|
|
19
|
-
* @props { String} type= ( )
|
|
23
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
20
24
|
* 图标类型
|
|
21
25
|
*/
|
|
22
26
|
type: {
|
|
@@ -29,14 +33,24 @@ const dataProps = buildProps.buildProps({
|
|
|
29
33
|
size: {
|
|
30
34
|
type: [String, Number]
|
|
31
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
32
38
|
runtime: {
|
|
33
39
|
type: Boolean,
|
|
34
40
|
default: false
|
|
35
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
44
|
+
* 图标方向
|
|
45
|
+
*/
|
|
36
46
|
flip: {
|
|
37
47
|
type: definePropType.definePropType(String),
|
|
38
48
|
default: ""
|
|
39
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* @props { Number } rotate=0
|
|
52
|
+
* 图标旋转角度
|
|
53
|
+
*/
|
|
40
54
|
rotate: {
|
|
41
55
|
type: Number,
|
|
42
56
|
default: 0
|
|
@@ -3,18 +3,22 @@ type Flip = 'horizontal' | 'vertical' | 'both' | '';
|
|
|
3
3
|
export type IconType = 'css' | 'id' | 'img' | 'font' | 'str' | 'com';
|
|
4
4
|
export declare const dataProps: {
|
|
5
5
|
/**
|
|
6
|
-
* @props { String} name= ( )
|
|
6
|
+
* @props { String, Object } name= ( )
|
|
7
7
|
* 图标名称
|
|
8
8
|
*/
|
|
9
9
|
name: {
|
|
10
10
|
type: (ObjectConstructor | StringConstructor)[];
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @props { String} iconClass= ( )
|
|
15
|
+
* 图标样式名称
|
|
16
|
+
*/
|
|
13
17
|
iconClass: {
|
|
14
18
|
type: StringConstructor;
|
|
15
19
|
};
|
|
16
20
|
/**
|
|
17
|
-
* @props { String} type= ( )
|
|
21
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
18
22
|
* 图标类型
|
|
19
23
|
*/
|
|
20
24
|
type: {
|
|
@@ -27,14 +31,24 @@ export declare const dataProps: {
|
|
|
27
31
|
size: {
|
|
28
32
|
type: (StringConstructor | NumberConstructor)[];
|
|
29
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
30
36
|
runtime: {
|
|
31
37
|
type: BooleanConstructor;
|
|
32
38
|
default: boolean;
|
|
33
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
42
|
+
* 图标方向
|
|
43
|
+
*/
|
|
34
44
|
flip: {
|
|
35
45
|
type: PropType<Flip>;
|
|
36
46
|
default: string;
|
|
37
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* @props { Number } rotate=0
|
|
50
|
+
* 图标旋转角度
|
|
51
|
+
*/
|
|
38
52
|
rotate: {
|
|
39
53
|
type: NumberConstructor;
|
|
40
54
|
default: number;
|
|
@@ -3,18 +3,22 @@ import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
|
3
3
|
import { definePropType } from "../../../utils/vues/definePropType.js";
|
|
4
4
|
const dataProps = buildProps({
|
|
5
5
|
/**
|
|
6
|
-
* @props { String} name= ( )
|
|
6
|
+
* @props { String, Object } name= ( )
|
|
7
7
|
* 图标名称
|
|
8
8
|
*/
|
|
9
9
|
name: {
|
|
10
10
|
type: [String, Object],
|
|
11
11
|
default: ""
|
|
12
12
|
},
|
|
13
|
+
/**
|
|
14
|
+
* @props { String} iconClass= ( )
|
|
15
|
+
* 图标样式名称
|
|
16
|
+
*/
|
|
13
17
|
iconClass: {
|
|
14
18
|
type: String
|
|
15
19
|
},
|
|
16
20
|
/**
|
|
17
|
-
* @props { String} type= ( )
|
|
21
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
18
22
|
* 图标类型
|
|
19
23
|
*/
|
|
20
24
|
type: {
|
|
@@ -27,14 +31,24 @@ const dataProps = buildProps({
|
|
|
27
31
|
size: {
|
|
28
32
|
type: [String, Number]
|
|
29
33
|
},
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
30
36
|
runtime: {
|
|
31
37
|
type: Boolean,
|
|
32
38
|
default: false
|
|
33
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
42
|
+
* 图标方向
|
|
43
|
+
*/
|
|
34
44
|
flip: {
|
|
35
45
|
type: definePropType(String),
|
|
36
46
|
default: ""
|
|
37
47
|
},
|
|
48
|
+
/**
|
|
49
|
+
* @props { Number } rotate=0
|
|
50
|
+
* 图标旋转角度
|
|
51
|
+
*/
|
|
38
52
|
rotate: {
|
|
39
53
|
type: Number,
|
|
40
54
|
default: 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use '../index.scss' as *;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'affhous';
|
|
3
|
+
src: url('./fonts/iconfont.woff2') format('woff2'),
|
|
4
|
+
url('./fonts/iconfont.woff') format('woff'),
|
|
5
|
+
url('./fonts/iconfont.ttf') format('truetype');
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[class*=' icon-'],
|
|
11
|
+
[class^='icon-'] {
|
|
12
|
+
font-family: 'affhous' !important;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
-webkit-font-smoothing: antialiased;
|
|
16
|
+
-moz-osx-font-smoothing: grayscale;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**报警**/
|
|
20
|
+
.icon-alarm:before {
|
|
21
|
+
content: '\e68e';
|
|
22
|
+
}
|
|
23
|
+
/**换油**/
|
|
24
|
+
.icon-oil-change:before {
|
|
25
|
+
content: '\e600';
|
|
26
|
+
}
|
|
27
|
+
/**开动**/
|
|
28
|
+
.icon-process:before {
|
|
29
|
+
content: '\eb96';
|
|
30
|
+
}
|
|
31
|
+
/**控制**/
|
|
32
|
+
.icon-control:before {
|
|
33
|
+
content: '\eafa';
|
|
34
|
+
}
|
|
35
|
+
/**停机**/
|
|
36
|
+
.icon-usability:before {
|
|
37
|
+
content: '\e601';
|
|
38
|
+
}
|
|
39
|
+
/**待机**/
|
|
40
|
+
.icon-standby:before {
|
|
41
|
+
content: '\e8a7';
|
|
42
|
+
}
|
|
43
|
+
/**运行**/
|
|
44
|
+
.icon-run:before {
|
|
45
|
+
content: '\e605';
|
|
46
|
+
}
|
|
47
|
+
/**电机**/
|
|
48
|
+
.icon-motor-shaft:before {
|
|
49
|
+
content: '\e6a5';
|
|
50
|
+
}
|
|
51
|
+
/**负载**/
|
|
52
|
+
.icon-load:before {
|
|
53
|
+
content: '\e6b9';
|
|
54
|
+
}
|
|
55
|
+
/**电池**/
|
|
56
|
+
.icon-battery:before {
|
|
57
|
+
content: '\1058e';
|
|
58
|
+
}
|
|
59
|
+
/**运动**/
|
|
60
|
+
.icon-motion:before {
|
|
61
|
+
content: '\e6d6';
|
|
62
|
+
}
|
|
63
|
+
/**特性**/
|
|
64
|
+
.icon-model:before {
|
|
65
|
+
content: '\e7a2';
|
|
66
|
+
}
|
|
67
|
+
/**范围**/
|
|
68
|
+
.icon-range:before {
|
|
69
|
+
content: '\e6dc';
|
|
70
|
+
}
|
|
@@ -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);
|