代码拉取完成,页面将自动刷新
npm install @femessage/element-ui -S
#or
yarn add @femessage/element-ui
import Vue from 'vue'
import Element from '@femessage/element-ui'
Vue.use(Element)
// or
import {
Select,
Button
// ...
} from '@femessage/element-ui'
Vue.component(Select.name, Select)
Vue.component(Button.name, Button)
For more information, please refer to Quick Start in our documentation.
# fork this repository
git clone https://github/{ user || owner }/element.git
# remember: if want to update your component and its css, must merge latest only-component branch into your repository
git checkout -b only-component new-theme
# modify packages/theme-chalk/src/common/var.scss
# modify package name in packages/theme-chalk/package.json
sh ./publish-theme.sh
# now a new theme publish to npm for your own
The reason to checkout from branch only-component
, can be found in Contributing Guide
# install dependence
yarn bootstrap
# generate files for examples site
yarn build:file
# generate theme files
yarn build:theme
# generate utils files
yarn build:utils
# generate files about locale
yarn build:umd
# clean files from yarn dist
yarn clean
# bundle examples site
yarn deploy:build
# bundle extension files
yarn deploy:extension
# extension local dev
yarn dev:extension
# local dev and preview examples site
yarn dev
# local dev single component
yarn dev:play
# bundle all lib
yarn dist
# generate i18n files
yarn i18n
# using eslint to check code style
yarn lint
# run unit test
yarn test
Please make sure to read the Contributing Guide before making a pull request.
Modern browsers and Internet Explorer 10+.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。