cosey 0.10.5 → 0.10.6
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/components/icon/icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed, createVNode,
|
|
1
|
+
import { defineComponent, ref, watch, computed, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { SvgIcon as _SvgIcon } from '../svg-icon/index.js';
|
|
3
3
|
import { IconifyIcon as _IconifyIcon } from '../iconify-icon/index.js';
|
|
4
4
|
import { iconProps } from './icon.api.js';
|
|
@@ -50,7 +50,9 @@ var stdin_default = defineComponent({
|
|
|
50
50
|
};
|
|
51
51
|
});
|
|
52
52
|
return () => {
|
|
53
|
-
return createVNode(
|
|
53
|
+
return createVNode("span", mergeProps(attrs, {
|
|
54
|
+
"class": [hashId.value, `${prefixCls.value}-wrapper`]
|
|
55
|
+
}), [slots.default ? createVNode("span", mergedProps.value, [slots.default()]) : prefix.value === "svg" ? createVNode(_SvgIcon, mergedProps.value, null) : createVNode(_IconifyIcon, mergeProps(mergedProps.value, {
|
|
54
56
|
"prefix": prefix.value
|
|
55
57
|
}), null)]);
|
|
56
58
|
};
|
|
@@ -3,6 +3,9 @@ import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
|
|
|
3
3
|
var stdin_default = getSimpleStyleHook("CoIcon", (token) => {
|
|
4
4
|
const { componentCls } = token;
|
|
5
5
|
return {
|
|
6
|
+
[`${componentCls}-wrapper`]: {
|
|
7
|
+
display: "inline-flex"
|
|
8
|
+
},
|
|
6
9
|
[componentCls]: {
|
|
7
10
|
display: "inline-flex",
|
|
8
11
|
width: "1em",
|