forked from mengyxu/noob-components
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 months ago | |
|---|---|---|
| .claude | 6 months ago | |
| examples | 6 months ago | |
| packages | 6 months ago | |
| plugs | 6 months ago | |
| public | 3 years ago | |
| .env.development | 6 months ago | |
| .env.production | 3 years ago | |
| .gitignore | 6 months ago | |
| README.md | 6 months ago | |
| babel.config.js | 3 years ago | |
| bun.lock | 6 months ago | |
| index.html | 6 months ago | |
| index.ts | 3 years ago | |
| package-lock.json | 6 months ago | |
| package.json | 6 months ago | |
| tsconfig.build.json | 6 months ago | |
| tsconfig.json | 6 months ago | |
| vite.config.ts | 6 months ago | |
| vue-shim.d.ts | 6 months ago | |
| vue.config.js | 3 years ago | |
README.md
noob-components
基于vue3.0和element-plus的组件库
Installation
npm install noob-mengyxu
# or
yarn add noob-mengyxu
# or
pnpm add noob-mengyxu
Usage
Import from main entry (all exports)
import { NoobButton, useListTable, pageEmpty } from 'noob-mengyxu'
Import from specific subpaths (recommended for better tree-shaking)
// Components
import { NoobButton, NoobInput, ListTable } from 'noob-mengyxu/components'
// Composables
import { useListTable, useModifyForm, useSysDict } from 'noob-mengyxu/composables'
// HTTP utilities
import { pageEmpty, PageResponse } from 'noob-mengyxu/http'
// API modules
import { dictionary, role, user } from 'noob-mengyxu/api'
// Other utilities
import { asyncMap } from 'noob-mengyxu/utils'
import { ElMessage } from 'noob-mengyxu/element'
import { i18n } from 'noob-mengyxu/i18n'
Available Subpaths
noob-mengyxu/components- Base UI componentsnoob-mengyxu/tools- Tool components (Terminal, Color picker, etc.)noob-mengyxu/manage- Management componentsnoob-mengyxu/composables- Vue composablesnoob-mengyxu/api- API modulesnoob-mengyxu/http- HTTP utilitiesnoob-mengyxu/i18n- Internationalizationnoob-mengyxu/config- Configurationnoob-mengyxu/element- Element Plus utilitiesnoob-mengyxu/store- Vuex store utilitiesnoob-mengyxu/utils- General utilities
Development
# Install dependencies
npm install
# Run dev server
npm run dev
# Build library
npm run build:lib
# Lint
npm run lint