element-plus/docs/.vitepress/vitepress/index.ts
Jeremy 231709b8cf
feat(docs): api typing shortcuts (#10353)
* Add `FunctionType` and `EnumType` as typing shortcuts.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-11-01 12:31:39 +00:00

35 lines
1010 B
TypeScript

import 'normalize.css'
// import 'element-plus/dist/index.css'
// for dev
// reset
import '../../../packages/theme-chalk/src/reset.scss'
import '../../../packages/theme-chalk/src/index.scss'
// for dark mode
import '../../../packages/theme-chalk/src/dark/css-vars.scss'
import './styles/css-vars.scss'
import './styles/app.scss'
import 'uno.css'
import VPApp from './components/vp-app.vue'
import VPDemo from './components/vp-demo.vue'
import ApiTyping from './components/globals/vp-api-typing.vue'
import ApiFunctionType from './components/globals/vp-api-function.vue'
import ApiEnumType from './components/globals/vp-api-enum.vue'
import IconList from './components/globals/icons.vue'
import type { Component } from 'vue'
export { default as NotFound } from './components/vp-not-found.vue'
export default VPApp
export const globals: [string, Component][] = [
['Demo', VPDemo],
['IconList', IconList],
['ApiTyping', ApiTyping],
['FunctionType', ApiFunctionType],
['EnumType', ApiEnumType],
]