@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
|
@@ -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
|
|
@@ -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
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
$icon: 'icon';
|
|
4
4
|
@include b($icon) {
|
|
5
5
|
--color: inherit;
|
|
6
|
+
height: 1em;
|
|
7
|
+
width: 1em;
|
|
8
|
+
line-height: 1em;
|
|
6
9
|
display: inline-flex;
|
|
7
10
|
justify-content: center;
|
|
8
11
|
align-items: center;
|
|
@@ -10,4 +13,15 @@ $icon: 'icon';
|
|
|
10
13
|
fill: currentColor;
|
|
11
14
|
color: var(--color);
|
|
12
15
|
font-size: inherit;
|
|
16
|
+
|
|
17
|
+
&-cont {
|
|
18
|
+
border: 0;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
object-fit: contain;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
font-size: inherit !important;
|
|
24
|
+
width: inherit !important;
|
|
25
|
+
height: inherit !important;
|
|
26
|
+
}
|
|
13
27
|
}
|
|
@@ -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
|
|
@@ -119,41 +119,42 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
119
|
});
|
|
120
120
|
return (_ctx, _cache) => {
|
|
121
121
|
return vue.openBlock(), vue.createElementBlock("i", {
|
|
122
|
-
class: vue.normalizeClass(vue.unref(cs).z())
|
|
122
|
+
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
123
|
+
style: vue.normalizeStyle(transformStyle.value)
|
|
123
124
|
}, [
|
|
124
125
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
125
126
|
outputType.value === "css" || outputType.value === "font" ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
126
127
|
key: 0,
|
|
127
|
-
class: vue.normalizeClass([
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
class: vue.normalizeClass([
|
|
129
|
+
vue.unref(cs).z(outputType.value),
|
|
130
|
+
props.iconClass,
|
|
131
|
+
outputName.value,
|
|
132
|
+
vue.unref(cs).z("cont")
|
|
133
|
+
])
|
|
134
|
+
}, null, 2)) : outputType.value === "img" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
130
135
|
key: 1,
|
|
131
|
-
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass]),
|
|
132
|
-
style: vue.normalizeStyle([{ "border": "0", "display": "inline-flex", "align-items": "center", "object-fit": "contain", "justify-content": "center" }, transformStyle.value]),
|
|
136
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")]),
|
|
133
137
|
src: outputName.value
|
|
134
|
-
}, null,
|
|
138
|
+
}, null, 10, _hoisted_1)) : outputType.value === "str" ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
135
139
|
key: 2,
|
|
136
|
-
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass]),
|
|
140
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")]),
|
|
137
141
|
viewBox: "0 0 1024 1024",
|
|
138
142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
139
|
-
style: vue.normalizeStyle(transformStyle.value),
|
|
140
143
|
innerHTML: outputName.value
|
|
141
|
-
}, null,
|
|
144
|
+
}, null, 10, _hoisted_2)) : outputType.value === "id" ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
142
145
|
key: 3,
|
|
143
|
-
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass]),
|
|
144
|
-
style: vue.normalizeStyle(transformStyle.value),
|
|
146
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")]),
|
|
145
147
|
"aria-hidden": "true"
|
|
146
148
|
}, [
|
|
147
149
|
vue.createElementVNode("use", {
|
|
148
150
|
"xlink:href": `#${outputName.value}`
|
|
149
151
|
}, null, 8, _hoisted_3)
|
|
150
|
-
],
|
|
152
|
+
], 2)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(outputName.value), {
|
|
151
153
|
key: 4,
|
|
152
|
-
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass])
|
|
153
|
-
|
|
154
|
-
}, null, 8, ["class", "style"]))
|
|
154
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")])
|
|
155
|
+
}, null, 8, ["class"]))
|
|
155
156
|
])
|
|
156
|
-
],
|
|
157
|
+
], 6);
|
|
157
158
|
};
|
|
158
159
|
}
|
|
159
160
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, renderSlot, createBlock,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createBlock, createElementVNode, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { dataExpose, dataEmits, dataProps } from "./data.js";
|
|
3
3
|
import "../../../hooks/index.js";
|
|
4
4
|
import { useLocale } from "../../../hooks/locale/index.js";
|
|
@@ -117,41 +117,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
117
|
});
|
|
118
118
|
return (_ctx, _cache) => {
|
|
119
119
|
return openBlock(), createElementBlock("i", {
|
|
120
|
-
class: normalizeClass(unref(cs).z())
|
|
120
|
+
class: normalizeClass(unref(cs).z()),
|
|
121
|
+
style: normalizeStyle(transformStyle.value)
|
|
121
122
|
}, [
|
|
122
123
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
123
124
|
outputType.value === "css" || outputType.value === "font" ? (openBlock(), createElementBlock("i", {
|
|
124
125
|
key: 0,
|
|
125
|
-
class: normalizeClass([
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
class: normalizeClass([
|
|
127
|
+
unref(cs).z(outputType.value),
|
|
128
|
+
props.iconClass,
|
|
129
|
+
outputName.value,
|
|
130
|
+
unref(cs).z("cont")
|
|
131
|
+
])
|
|
132
|
+
}, null, 2)) : outputType.value === "img" ? (openBlock(), createElementBlock("img", {
|
|
128
133
|
key: 1,
|
|
129
|
-
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass]),
|
|
130
|
-
style: normalizeStyle([{ "border": "0", "display": "inline-flex", "align-items": "center", "object-fit": "contain", "justify-content": "center" }, transformStyle.value]),
|
|
134
|
+
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass, unref(cs).z("cont")]),
|
|
131
135
|
src: outputName.value
|
|
132
|
-
}, null,
|
|
136
|
+
}, null, 10, _hoisted_1)) : outputType.value === "str" ? (openBlock(), createElementBlock("svg", {
|
|
133
137
|
key: 2,
|
|
134
|
-
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass]),
|
|
138
|
+
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass, unref(cs).z("cont")]),
|
|
135
139
|
viewBox: "0 0 1024 1024",
|
|
136
140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
137
|
-
style: normalizeStyle(transformStyle.value),
|
|
138
141
|
innerHTML: outputName.value
|
|
139
|
-
}, null,
|
|
142
|
+
}, null, 10, _hoisted_2)) : outputType.value === "id" ? (openBlock(), createElementBlock("svg", {
|
|
140
143
|
key: 3,
|
|
141
|
-
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass]),
|
|
142
|
-
style: normalizeStyle(transformStyle.value),
|
|
144
|
+
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass, unref(cs).z("cont")]),
|
|
143
145
|
"aria-hidden": "true"
|
|
144
146
|
}, [
|
|
145
147
|
createElementVNode("use", {
|
|
146
148
|
"xlink:href": `#${outputName.value}`
|
|
147
149
|
}, null, 8, _hoisted_3)
|
|
148
|
-
],
|
|
150
|
+
], 2)) : (openBlock(), createBlock(resolveDynamicComponent(outputName.value), {
|
|
149
151
|
key: 4,
|
|
150
|
-
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass])
|
|
151
|
-
|
|
152
|
-
}, null, 8, ["class", "style"]))
|
|
152
|
+
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass, unref(cs).z("cont")])
|
|
153
|
+
}, null, 8, ["class"]))
|
|
153
154
|
])
|
|
154
|
-
],
|
|
155
|
+
], 6);
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
158
|
});
|
|
@@ -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
|
+
}
|