bole-component
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

BoleCompoment

 docs by vitepress Build With Rollup pnpm element-plus

element-plus增强组件

文档

在线文档

组件列表

  • Form 表单
  • Dialog 对话框
  • Table 表格
  • Filter 搜索
  • Layout 布局

安装

# pnpm
$ pnpm install bole-component

# NPM
$ npm install bole-component --save

# Yarn
$ yarn add bole-component

完整导入

// main.ts / main.js
import { createApp } from 'vue'

// 导入element-plus 及其样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 导入bole-component 及其样式
import BoleComponent from 'bole-component'
import 'bole-component/dist/index.css'

import App from './App.vue'
const app = createApp(App)
app.use(ElementPlus)
// 使用bole-component
app.use(BoleComponent)

app.mount('#app')

自动按需导入

$ npm install -D unplugin-vue-components unplugin-auto-import
// vite.config.ts
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import { BoleComponentResolver } from 'bole-component'

export default defineConfig({
  // ...
  plugins: [
    // ...
    AutoImport({
      resolvers: [ElementPlusResolver()],
    }),
    Components({
      resolvers: [ElementPlusResolver(), BoleComponentResolver()],
    }),
  ],
})

LICENSE

MIT

Package Sidebar

Install

npm i bole-component

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

481 kB

Total Files

169

Last publish

Collaborators

  • luct