Git Product home page Git Product logo

playground's Introduction

playground


UI framework playground

Config the component with the mouse through WYSWYG, have fun!

UI framework configaration

library.config.js

module.exports = {
  name: 'ELEMENT',  // UI framework Name
  url: 'https://unpkg.com/element-ui/lib/index.js',  // UI framework UMD module path
  style: 'https://unpkg.com/element-ui/lib/theme-chalk/index.css',    // UI framework theme
  components: [
    {
      name: 'Button',     //Componnet Name
      title: '按钮',       //Decription Name
      image: '',          //Icon
      property: [         //Componnet props
        {
          name: 'size',         //props name
          title: '尺寸',         //props description name
          type: 'enum',         //type, text, number, object, enum, switch are supported
          values: [             //if type is enum, values are enumerated options
            {label: '中', value: 'medium'},
            {label: '小', value: 'small'},
            {label: '迷你', value: 'mini'},
          ],
          value: 'medium'       //default value of props
        },
      ]
    }
    ...
  ]
}

Component Configaration

名称 描述 默认值 可选值
name 属性名称 - -
title 属性描述 - -
type 类型 - text 文本型
number 数字型
object 对象
enum 枚举型
switch 布尔型
value 默认值 - -
values 枚举的值,只有当类型为enum是有效 - -

Screenshot

Element

playground

playground's People

Contributors

lin-xi avatar

Watchers

James Cloos 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.