diff --git a/src/packages/components/Icons/Icon/config.ts b/src/packages/components/Icons/Icon/config.ts new file mode 100644 index 00000000..677fef67 --- /dev/null +++ b/src/packages/components/Icons/Icon/config.ts @@ -0,0 +1,20 @@ +import { PublicConfigClass } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { chartInitConfig } from '@/settings/designSetting' +import { IconConfig } from './index' +import cloneDeep from 'lodash/cloneDeep' + +export const option = { + // 图标名称 + dataset: 'uim:apple', + color: '#03A9F4', + size: 64, + rotate: 0 // 旋转角度 +} + +export default class Config extends PublicConfigClass implements CreateComponentType { + public key = IconConfig.key + public attr = { ...chartInitConfig, w: 64, h: 64, zIndex: 1 } + public chartConfig = cloneDeep(IconConfig) + public option = cloneDeep(option) +} diff --git a/src/packages/components/Icons/Icon/config.vue b/src/packages/components/Icons/Icon/config.vue new file mode 100644 index 00000000..961f6baa --- /dev/null +++ b/src/packages/components/Icons/Icon/config.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/packages/components/Icons/Icon/index.ts b/src/packages/components/Icons/Icon/index.ts new file mode 100644 index 00000000..58975e64 --- /dev/null +++ b/src/packages/components/Icons/Icon/index.ts @@ -0,0 +1,14 @@ +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' +import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d' + +export const IconConfig: ConfigType = { + key: 'Icon', + chartKey: 'VIcon', + conKey: 'VCIcon', + title: '图标', + category: ChatCategoryEnum.UNICONS, + categoryName: ChatCategoryEnumName.UNICONS, + package: PackagesCategoryEnum.ICONS, + chartFrame: ChartFrameEnum.COMMON, + image: 'icon.png' +} diff --git a/src/packages/components/Icons/Icon/index.vue b/src/packages/components/Icons/Icon/index.vue new file mode 100644 index 00000000..2c139a8a --- /dev/null +++ b/src/packages/components/Icons/Icon/index.vue @@ -0,0 +1,31 @@ + + + + +