Git Product home page Git Product logo

bigidear's Introduction

##一、组件规范设计 ###1、封装一个createComponent方法,根据组件数据,动态生成相应组件 ###2、组件数据结构

    {
        name: 'mui-swiper',
        js_address: 'http://xxx', //组件js所在地址,
        css_address: '', // 组件css所在地址,或者用css in js
        npm_name: '', //npm包名
        version: '', //版本,
        snapshot: '', //组件预览图
        options_in: {
            initData: {

            },
            props: { ... }, // 组件属性,需要细化值
            cssClass: {

            },
            cssStyle: {
               ... //key value的样式代码
            },
        },
        options_out: {
            events: {
                ... //键值对,组件内部触发的事件
            }
        }
    }

3、组件的预览图生成

通过pumpter后台拉取组件进行预览生成?

4、组件间的事件

二、编辑区域

前进、回退

参考vuex-undo-redo

bigidear's People

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.