vue3 draggable

必须响应式

let config: ElementNode = {
        tag: 'div',
        isHtml: true,
        type: 'success',
        children: [{
          tag: 'FormComponent',
          size: 'big',
          inline: true,
          list: reactive([
            {
              tag: '',
              children: 'aaa',
              class: ['text-red-500']
            },
            {
              tag: 'div',
              children: 'bbb'
            },
            {
              tag: 'div',
              children: 'ccc',
              class: ['text-blue-500']

            },
          ])
        }
        ]
      }
      return render.bind(this)(config)
posted @ 2022-07-13 15:03  fight139  阅读(158)  评论(0编辑  收藏  举报