Giter VIP home page Giter VIP logo

chameleon's Introduction

chameleon

Chameleon is ever-changing

A web visual programming engine, help to build a web page with 5 minutes. every people can use it easy.

Docs | Demo

Install

npm i @chamn/engine @chamn/model @chamn/render

Usage

Example Project

ScreenSnapshoot

image

image

image

image

image

chameleon's People

Contributors

dependabot[bot] avatar hlerenow avatar stringke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

itsharex

chameleon's Issues

当两个元素大小重叠之后,无法选中下层元素

  1. 通过左侧大纲书选择

  2. ToolBar 上增加按钮用来快速选择最近元素

  3. 以选中的元素,再次双击的时候选择最近元素

目前可以通过第一点来选择到重叠的元素

{
  "version": "1.0.0",
  "name": "BaseDemoPage",
  "componentsMeta": [],
  "componentsTree": {
    "componentName": "RootContainer",
    "props": {
      "a": 1
    },
    "state": {
      "b": 2,
      "buttonVisible": true,
      "modalVisible": false
    },
    "configure": {
      "propsSetter": {},
      "advanceSetter": {}
    },
    "children": [
      {
        "props": {
          "width": "100%",
          "height": "100px"
        },
        "componentName": "CContainer",
        "id": "h5m7ld",
        "children": [
          {
            "props": {
              "width": "100%",
              "height": "200px"
            },
            "componentName": "CContainer",
            "id": "kfvdv3",
            "children": [
              {
                "props": {
                  "content": "text"
                },
                "componentName": "CText",
                "id": "7connn",
                "configure": {
                  "propsSetter": {},
                  "advanceSetter": {}
                }
              }
            ],
            "configure": {
              "propsSetter": {},
              "advanceSetter": {}
            }
          }
        ],
        "configure": {
          "propsSetter": {},
          "advanceSetter": {}
        }
      }
    ]
  },
  "assets": []
}

编辑的 ToolBar 在页面边缘时候不可见

ToolBar 指下方这个可见,复制,删除设置
CleanShot 2023-04-16 at 13 27 19@2x

CleanShot 2023-04-16 at 13 25 27@2x

  1. 当整个元素在页面顶部的时候
  2. 当元素的宽度不超过 ToolBar 的宽度的时候
{
  "version": "1.0.0",
  "name": "BaseDemoPage",
  "componentsMeta": [
    {
      "componentName": "Table",
      "package": "@chamn/mock-material",
      "exportName": "Table",
      "version": "1.0.0"
    }
  ],
  "componentsTree": {
    "componentName": "RootContainer",
    "props": {
      "a": 1
    },
    "state": {
      "b": 2,
      "buttonVisible": true,
      "modalVisible": false
    },
    "configure": {
      "propsSetter": {},
      "advanceSetter": {}
    },
    "children": [
      {
        "props": {
          "data": [
            {
              "key": "1",
              "name": "John Brown",
              "age": 32,
              "address": "New York No. 1 Lake Park",
              "tags": [
                "nice",
                "developer"
              ]
            }
          ],
          "columns": [
            {
              "title": "Name",
              "dataIndex": "name",
              "key": "name"
            },
            {
              "title": "Name",
              "dataIndex": "Name",
              "filteredValue": "123"
            },
            {
              "title": "Name",
              "dataIndex": "Name",
              "filteredValue": "123"
            },
            {
              "title": "Name",
              "dataIndex": "Name",
              "filteredValue": "123"
            }
          ],
          "name": "123",
          "selectSetter": "jack",
          "testArrayString": [
            "2",
            "1"
          ]
        },
        "children": [
          "I am a Div Table"
        ],
        "componentName": "Table",
        "id": "l6ff4u",
        "configure": {
          "propsSetter": {},
          "advanceSetter": {}
        }
      },
      {
        "props": {
          "width": "100%",
          "height": "200px"
        },
        "componentName": "CContainer",
        "id": "kfvdv3",
        "children": [
          {
            "props": {
              "content": "text"
            },
            "componentName": "CText",
            "id": "7connn",
            "configure": {
              "propsSetter": {},
              "advanceSetter": {}
            }
          }
        ],
        "configure": {
          "propsSetter": {},
          "advanceSetter": {}
        }
      }
    ]
  },
  "assets": [
    {
      "package": "@chamn/mock-material",
      "globalName": "antd",
      "resources": [
        {
          "src": "https://cdn.bootcdn.net/ajax/libs/antd/5.1.2/reset.css"
        },
        {
          "src": "https://cdn.bootcdn.net/ajax/libs/dayjs/1.11.7/dayjs.min.js"
        },
        {
          "src": "https://cdn.bootcdn.net/ajax/libs/antd/5.1.2/antd.js"
        }
      ],
      "id": "hi4qkc"
    }
  ]
}

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.