1 Star 0 Fork 6

River / element-plus-designer

forked from wizount / element-plus-designer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Element Plus设计器 (Element Plus designer)

English | 中文

感谢 JakHuang form generator 提供的灵感。
Element Plus设计器提供大部分element plus组件所见及所得在线设计,当然也包含表单设计。
GitHub演示地址

功能概述

  • 支持99%以上的element plus组件在线设计
  • 原生html组件在线设计
  • 丰富快速组件属性更改
  • style样式修改
  • 组件插槽在线可插入
  • 表单正则表达式创建
  • 导出和复制vue3代码(支持选项式和组合式)
  • 导出组件后台JSON代码
  • 代码预览

使用

直接引用

npm install element-plus-designer

复制preview.html到你的工程根目录

main.js输入以下代码

import  ElementPlusDesigner from 'element-plus-designer'
import 'element-plus-designer/dist/style.css'
app.use(ElementPlusDesigner)

需要设计,请在*.vue输入以下代码

<script setup>
import {ref} from "vue";
const drawingList=ref([])
</script>
<template>
    <element-plus-designer v-model="drawingList"></element-plus-designer>
</template>
<style>
body{
  margin: 0px;
}
</style>

仅使用render,请在*.vue输入以下代码

<script setup>
import {ref,watch} from "vue";
import data from "./data.json";
const renderJson = ref(data);
const formModel = ref(data);
watch(formModel, (val) => {
  console.info(val);
}, {deep: true})
</script>
<template>
  <div>
    <element-plus-render :draw-item-list="renderJson" v-model="formModel"></element-plus-render>
  </div>
</template>

工程开发安装

安装

npm install

开发

npm run dev

然后访问:http://localhost:5173/

发布

npm run build

技术栈

  • Vue3
  • Element Plus
  • Vite5
  • Vuedraggable(有进行修改,并在项目直接使用)

下一步计划

  • 支持剩下1%组件
  • 支持事件编辑

联系方式:微信:glqqyx, QQ: 2537660666 email: 2537660666@qq.com

MIT License Copyright (c) 2023 wizount Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Element plus 组件在线设计 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/river666/element-plus-designer.git
git@gitee.com:river666/element-plus-designer.git
river666
element-plus-designer
element-plus-designer
master

搜索帮助