| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- // https://iconpark.bytedance.com/official
- import type { App } from 'vue'
- import {
- PlayOne,
- FullScreenPlay,
- Lock,
- Unlock,
- Ppt,
- Format,
- Picture,
- FullScreen,
- List,
- OrderedList,
- FlipVertically,
- FlipHorizontally,
- FontSize,
- Code,
- TextBold,
- TextItalic,
- TextUnderline,
- Strikethrough,
- Edit,
- Quote,
- BackgroundColor,
- Group,
- Ungroup,
- Back,
- Next,
- Fullwidth,
- AlignTop,
- AlignLeft,
- AlignRight,
- AlignBottom,
- AlignVertically,
- AlignHorizontally,
- BringToFront,
- SendToBack,
- Send,
- AlignTextLeft,
- AlignTextRight,
- AlignTextCenter,
- AlignTextBoth,
- RowHeight,
- Write,
- InsertTable,
- AddText,
- Fill,
- Tailoring,
- Effects,
- ColorFilter,
- Up,
- Down,
- Plus,
- Minus,
- Connection,
- BringToFrontOne,
- SentToBack,
- Github,
- ChartProportion,
- ChartHistogram,
- ChartHistogramOne,
- ChartLineArea,
- ChartRing,
- ChartScatter,
- ChartLine,
- ChartPie,
- RadarChart,
- Text,
- Rotate,
- LeftTwo,
- RightTwo,
- Platte,
- Close,
- CloseSmall,
- Undo,
- Transform,
- Click,
- Theme,
- ArrowCircleLeft,
- ArrowRight,
- GraphicDesign,
- Logout,
- Erase,
- Clear,
- AlignTextTopOne,
- AlignTextBottomOne,
- AlignTextMiddleOne,
- Pause,
- VolumeMute,
- VolumeNotice,
- VolumeSmall,
- VideoTwo,
- Formula,
- LinkOne,
- FullScreenOne,
- OffScreenOne,
- Power,
- ListView,
- Magic,
- Tips,
- HighLight,
- Download,
- IndentLeft,
- IndentRight,
- VerticalSpacingBetweenItems,
- Copy,
- Delete,
- Square,
- Round,
- Needle,
- TextRotationNone,
- TextRotationDown,
- FormatBrush,
- PreviewOpen,
- PreviewClose,
- StopwatchStart,
- Search,
- Left,
- Right,
- MoveOne,
- HamburgerButton,
- Attention,
- CheckOne,
- CloseOne,
- Info,
- Comment,
- User,
- Switch,
- More,
- LoadingFour, // 引入loadingIcon
- UpTwo
- } from '@icon-park/vue-next'
- export interface Icons {
- [key: string]: typeof PlayOne
- }
- export const icons: Icons = {
- IconPlayOne: PlayOne,
- IconFullScreenPlay: FullScreenPlay,
- IconLock: Lock,
- IconUnlock: Unlock,
- IconPpt: Ppt,
- IconFormat: Format,
- IconPicture: Picture,
- IconFullScreen: FullScreen,
- IconList: List,
- IconOrderedList: OrderedList,
- IconFlipVertically: FlipVertically,
- IconFlipHorizontally: FlipHorizontally,
- IconFontSize: FontSize,
- IconCode: Code,
- IconTextBold: TextBold,
- IconTextItalic: TextItalic,
- IconTextUnderline: TextUnderline,
- IconStrikethrough: Strikethrough,
- IconEdit: Edit,
- IconQuote: Quote,
- IconBackgroundColor: BackgroundColor,
- IconGroup: Group,
- IconUngroup: Ungroup,
- IconBack: Back,
- IconNext: Next,
- IconFullwidth: Fullwidth,
- IconAlignTop: AlignTop,
- IconAlignLeft: AlignLeft,
- IconAlignRight: AlignRight,
- IconAlignBottom: AlignBottom,
- IconAlignVertically: AlignVertically,
- IconAlignHorizontally: AlignHorizontally,
- IconBringToFront: BringToFront,
- IconSendToBack: SendToBack,
- IconSend: Send,
- IconAlignTextLeft: AlignTextLeft,
- IconAlignTextRight: AlignTextRight,
- IconAlignTextCenter: AlignTextCenter,
- IconAlignTextBoth: AlignTextBoth,
- IconRowHeight: RowHeight,
- IconWrite: Write,
- IconInsertTable: InsertTable,
- IconAddText: AddText,
- IconFill: Fill,
- IconTailoring: Tailoring,
- IconEffects: Effects,
- IconColorFilter: ColorFilter,
- IconUp: Up,
- IconDown: Down,
- IconPlus: Plus,
- IconMinus: Minus,
- IconConnection: Connection,
- IconBringToFrontOne: BringToFrontOne,
- IconSentToBack: SentToBack,
- IconGithub: Github,
- IconChartProportion: ChartProportion,
- IconChartHistogram: ChartHistogram,
- IconChartHistogramOne: ChartHistogramOne,
- IconChartLineArea: ChartLineArea,
- IconChartRing: ChartRing,
- IconChartScatter: ChartScatter,
- IconChartLine: ChartLine,
- IconChartPie: ChartPie,
- IconRadarChart: RadarChart,
- IconText: Text,
- IconRotate: Rotate,
- IconLeftTwo: LeftTwo,
- IconRightTwo: RightTwo,
- IconPlatte: Platte,
- IconClose: Close,
- IconCloseSmall: CloseSmall,
- IconUndo: Undo,
- IconTransform: Transform,
- IconClick: Click,
- IconTheme: Theme,
- IconArrowCircleLeft: ArrowCircleLeft,
- IconArrowRight: ArrowRight,
- IconGraphicDesign: GraphicDesign,
- IconLogout: Logout,
- IconErase: Erase,
- IconClear: Clear,
- IconAlignTextTopOne: AlignTextTopOne,
- IconAlignTextBottomOne: AlignTextBottomOne,
- IconAlignTextMiddleOne: AlignTextMiddleOne,
- IconPause: Pause,
- IconVolumeMute: VolumeMute,
- IconVolumeNotice: VolumeNotice,
- IconVolumeSmall: VolumeSmall,
- IconVideoTwo: VideoTwo,
- IconFormula: Formula,
- IconLinkOne: LinkOne,
- IconFullScreenOne: FullScreenOne,
- IconOffScreenOne: OffScreenOne,
- IconPower: Power,
- IconListView: ListView,
- IconMagic: Magic,
- IconTips: Tips,
- IconHighLight: HighLight,
- IconDownload: Download,
- IconIndentLeft: IndentLeft,
- IconIndentRight: IndentRight,
- IconVerticalSpacingBetweenItems: VerticalSpacingBetweenItems,
- IconCopy: Copy,
- IconDelete: Delete,
- IconSquare: Square,
- IconRound: Round,
- IconNeedle: Needle,
- IconTextRotationNone: TextRotationNone,
- IconTextRotationDown: TextRotationDown,
- IconFormatBrush: FormatBrush,
- IconPreviewOpen: PreviewOpen,
- IconPreviewClose: PreviewClose,
- IconStopwatchStart: StopwatchStart,
- IconSearch: Search,
- IconLeft: Left,
- IconRight: Right,
- IconMoveOne: MoveOne,
- IconHamburgerButton: HamburgerButton,
- IconAttention: Attention,
- IconCheckOne: CheckOne,
- IconCloseOne: CloseOne,
- IconInfo: Info,
- IconComment: Comment,
- IconUser: User,
- IconSwitch: Switch,
- IconMore: More,
- IconLoading: LoadingFour, // 添加loadingIcon
- UpTwo: UpTwo
- }
- export default {
- install(app: App) {
- for (const key of Object.keys(icons)) {
- app.component(key, icons[key])
- }
- }
- }
|