1 Star 0 Fork 393

徐年 / element-plus

forked from element-plus / element-plus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
LOCAL_DEV.md 1.06 KB
一键复制 编辑 原始数据 按行查看 历史

Local Development

Generate new component

With command

$ pnpm gen component-name

Note the component-name must be in kebab-case, combining words by replacing each space with a dash.

And component type must be added to typings/global.d.ts.

Bootstrap project

With command

$ pnpm i

the project will install all dependencies

Website preview

With command

$ pnpm docs:gen-locale
$ pnpm docs:dev

the project will launch website for you to preview all existing component

Local development

See Local development guide

  1. With command
$ pnpm dev

will start the local development environment

  1. Add your component into play/src/App.vue

App.vue

<template>
  <ComponentYouAreDeveloping />
</template>

<script setup lang="ts">
// make sure this component is registered in @element-plus/components
import { ComponentYouAreDeveloping } from '@element-plus/components'
</script>

Modify App.vue file per your needs to get things work.

JavaScript
1
https://gitee.com/zhoushing/element-plus.git
git@gitee.com:zhoushing/element-plus.git
zhoushing
element-plus
element-plus
dev

搜索帮助