GithubHelp home page GithubHelp logo

odayou / element-plus-designer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wizount/element-plus-designer

0.0 0.0 0.0 6.28 MB

License: MIT License

JavaScript 50.62% HTML 3.03% Vue 41.09% SCSS 5.26%

element-plus-designer's Introduction

Element Plus designer

English | 中文

Thanks to JakHuang's form generator for providing the inspiration. Element Plus designer provides WYSIWYG design of most element plus components, including form design. GitHub demo url

Functional Overview

  • Supports online design of more than 99% of element plus components
  • Online design of native html components
  • Rich and fast component property changes
  • style modification
  • Component slots can be inserted online
  • Form regular expression creation
  • Export and copy vue3 code (supports optional and combined types)
  • Export component background JSON code
  • Code preview

Usage

Use in your project

npm install element-plus-designer

Copy preview.html to your project root directory

Enter the following code in main.js

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

If you need to design, please enter the following code in *.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>

Only use render, please enter the following code in *.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>

Project development

install

npm install

develop

npm run dev

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

publish

npm run build

技术栈

  • Vue3
  • Element Plus
  • Vite5
  • Vuedraggable((modified and used directly in the project)

Next steps

  • Supports the remaining 1% components
  • Support event editing

Contact information: WeChat: glqqyx, QQ: 2537660666 email: [email protected]

element-plus-designer's People

Contributors

wizount avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.