From b460dcf7276212796c1fae17f10cd68f8abff166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=A5=E5=B8=8C?= Date: Fri, 14 Aug 2020 15:39:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Tag=20assets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/public/assets.json | 81 ++++++++----------------- packages/plugin-undo-redo/src/index.tsx | 6 +- packages/react-renderer/package.json | 2 +- 3 files changed, 30 insertions(+), 59 deletions(-) diff --git a/packages/demo/public/assets.json b/packages/demo/public/assets.json index fc7b3155b..cbf185a0e 100644 --- a/packages/demo/public/assets.json +++ b/packages/demo/public/assets.json @@ -10488,11 +10488,6 @@ "destructuring": true }, "props": [ - { - "name": "prefix", - "propType": "string", - "defaultValue": "next-" - }, { "name": "type", "propType": { @@ -10526,11 +10521,6 @@ "propType": "bool", "description": "是否开启动效" }, - { - "name": "afterAppear", - "propType": "func", - "description": "标签出现动画结束后执行的回调" - }, { "name": "onClick", "propType": "func", @@ -10538,17 +10528,11 @@ }, { "name": "children", - "propType": { - "type": "instanceOf", - "value": "node" - } + "propType": "string", + "description": "内容" } ], - "configure": { - "component": { - "isContainer": true - } - } + "configure": {} }, { "componentName": "Tag.Selectable", @@ -10564,11 +10548,6 @@ "subName": "Selectable" }, "props": [ - { - "name": "prefix", - "propType": "string", - "defaultValue": "next-" - }, { "name": "checked", "propType": "bool", @@ -10591,17 +10570,11 @@ }, { "name": "children", - "propType": { - "type": "instanceOf", - "value": "node" - } + "propType": "string", + "description": "内容" } ], - "configure": { - "component": { - "isContainer": true - } - } + "configure": {} }, { "componentName": "Tag.Closeable", @@ -10617,11 +10590,6 @@ "subName": "Closeable" }, "props": [ - { - "name": "prefix", - "propType": "string", - "defaultValue": "next-" - }, { "name": "closeArea", "propType": { @@ -10650,11 +10618,6 @@ "propType": "func", "description": "点击关闭按钮时的回调,返回值 true 则关闭, false 阻止关闭" }, - { - "name": "afterClose", - "propType": "func", - "description": "标签关闭后执行的回调" - }, { "name": "onClick", "propType": "func", @@ -10662,17 +10625,11 @@ }, { "name": "children", - "propType": { - "type": "instanceOf", - "value": "node" - } + "propType": "string", + "description": "内容" } ], - "configure": { - "component": { - "isContainer": true - } - } + "configure": {} }, { "componentName": "TimePicker", @@ -13422,7 +13379,13 @@ "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_tag.png", "schema": { "componentName": "Tag", - "props": {} + "props": { + "prefix": "next-", + "type": "normal", + "size": "medium", + "animation": false, + "children": "Tag" + } } } ] @@ -13439,7 +13402,12 @@ "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_tag.png", "schema": { "componentName": "Tag.Closeable", - "props": {} + "props": { + "prefix": "next-", + "closeArea": "tail", + "size": "medium", + "children": "Tag" + } } } ] @@ -13456,7 +13424,10 @@ "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_tag.png", "schema": { "componentName": "Tag.Selectable", - "props": {} + "props": { + "prefix": "next-", + "children": "Tag" + } } } ] diff --git a/packages/plugin-undo-redo/src/index.tsx b/packages/plugin-undo-redo/src/index.tsx index b3b0f604e..98bec6274 100644 --- a/packages/plugin-undo-redo/src/index.tsx +++ b/packages/plugin-undo-redo/src/index.tsx @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react'; -import { Editor, Title } from '@ali/lowcode-editor-core'; +import { Editor } from '@ali/lowcode-editor-core'; import Icon from '@ali/ve-icons'; import { Button } from '@alifd/next'; import { Designer } from '@ali/lowcode-designer'; @@ -81,7 +81,7 @@ export default class UndoRedo extends PureComponent { return (