mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
amis-saas-6069 [Improvement.] 测试【编辑器「剪切配置」】剪切配置后ui显示不正确
Change-Id: I3eef34a4a75a768b99242c2d3baad0c3bf0bed9f
This commit is contained in:
parent
22b599e3b2
commit
a5427be09d
@ -1210,10 +1210,10 @@ export class EditorManager {
|
||||
* 复制节点配置
|
||||
* @param id
|
||||
*/
|
||||
copy(id: string) {
|
||||
copy(id: string, toastText: string = '已复制') {
|
||||
const json = this.store.getValueOf(id);
|
||||
this.clipboardData = stringify(json);
|
||||
toast.info('配置项已复制');
|
||||
toast.info('配置项' + toastText);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1221,7 +1221,7 @@ export class EditorManager {
|
||||
* @param id
|
||||
*/
|
||||
cut(id: string) {
|
||||
this.copy(id);
|
||||
this.copy(id, '已剪切');
|
||||
this.del(id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user