yanzhen-design-vue
Version:
40 lines (39 loc) • 839 B
JavaScript
import { buildProps, definePropType } from "@yanzhen-libs/utils-vue";
import "../../../hooks/index.mjs";
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
const ns = useNamespace("icon");
const iconOptions = {
ns,
class: ns.b(),
name: ns.defineVNodeName()
};
const iconName = iconOptions.name;
const antdIconProps = buildProps({
twoToneColor: {
type: definePropType([String, Array])
},
spin: {
type: definePropType(Boolean),
default: false
},
rotate: {
type: definePropType(Number)
}
// style: {
// type: definePropType<CSSProperties>([String, Object, Array]),
// },
});
const iconProps = buildProps({
...antdIconProps,
type: {
type: definePropType(String)
}
});
const iconEmits = {};
export {
antdIconProps,
iconEmits,
iconName,
iconOptions,
iconProps
};