Code Monkey home page Code Monkey logo

acss-dnd's Introduction

Hi 👋, I'm MeetQY

  • 🔓 喜欢写写模板
  • 🌶 常用的技术: Flutter/Vue/Js/Ts/React/TailwindCss/Node
  • 🤩 CV 大法好呀,CV 大法妙

acss-dnd's People

Contributors

meetqy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

acss-dnd's Issues

【Bug】展开text抖动

bug大致位置

  • 菜单(Menu)
  • 模板预览(Template)
  • 编辑器(Editor)
  • 属性编辑(SideBar)
  • 其他(other)

bug 描述

image

版本号

0.0.9

复现步骤

  • 步骤一
  • 步骤二
  • 步骤三

关于拖拽元素插入的方式

目前用的插入到选中元素的后面,会出现

  • 如果是<div class='w-10 h-10' />无法在里面加入元素
  • 如果是<div class='w-10 h-10'>xxxooo</div>里面是文本节点,无法选中xxxooo,导致也没办法在div中加入元素

采用将拖拽元素,加入到选中元素的child中,作为子元素。

  • 还是无法选中文本节点,但是已经规避了这个问题,文本节点本身就不能appendChild
  • 如果是<div class='w-10 h-10'>xxxooo</div>可以直接选中div然后插入div,作为其子元素

关于状态管理的思考

发现 vuese 中的 useStroage可以直接实现监听,借助storage特性可以直接在iframe直接通信,从而取代postMessage的方案。

增加组件的说明

image
如何让倒计时动起来:
daisy ui描述 :

You need to change to --value CSS variable using JS. Value must be a number between 0 and 99

【Bug】模板预览和预期效果不一致

bug大致位置

  • 菜单(Menu)
  • 模板预览(Template)
  • 编辑器(Editor)
  • 属性编辑(SideBar)
  • 其他(other)

bug 描述

image

版本号

0.0.11

复现步骤

(请告诉我们,如何最快的复现该 bug)

  • 步骤一
  • 步骤二
  • 步骤三

【Bug】快捷键移动元素功能缺失

bug大致位置

  • 菜单(Menu)
  • 模板预览(Template)
  • 编辑器(Editor)
  • 属性编辑(SideBar)
  • 其他(other)

bug 描述

image

版本号

0.0.8

复现步骤

(请告诉我们,如何最快的复现该 bug)

  • 步骤一
  • 步骤二
  • 步骤三

【Bug】编辑器中显示不正常

bug大致位置

  • 菜单(Menu)
  • 模板预览(Template)
  • 编辑器(Editor)
  • 属性编辑(SideBar)
  • 其他(other)

bug 描述

image

正常的

image

版本号

0.0.11

复现步骤

(请告诉我们,如何最快的复现该 bug)

  • 步骤一
  • 步骤二
  • 步骤三

关于拖拽细度的一些看法

原因:因为目前所实现的思路是,任意元素拖拽到任意位置

产生了这个最大的问题:

无法做到拖拽到所想的位置

<div>
<header>xxx</header>
<main class='h-50'></main>
</div>

因为外层div是被撑开的,所以他本身没有高度,当我想要选中他时,被header/main所阻碍。
eg: 我想要在main下面增加一个footer标签

初略的一个解决方向,给每个元素/组件/模板 用颗粒度作为区分

三个分类:模板 > 组件 > 元素

  • 模板由组件组成 模板大致范围:footet底部、hero人物卡片等一系列完整的业务组件,拿出来之后做一些小修改就能使用
  • 组件由元素组成 组件大致范围:Button、radio、面包屑
  • 元素为最小颗粒 元素大致范围:文本

所以拖拽的规范就是:不可同级嵌套,当我选中的是一个模板时,就不能选择其他模板进行嵌套,组件,元素同理

根据这个思路,好像Layout布局容器,这种类似的模板就完全没必要了,容器永远只有一个,那就是编辑器

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.