From f267d04e0561a0a20d1f2a9f558a273558ece90d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 24 五月 2021 17:50:19 +0800 Subject: [PATCH] 2021-05-24 --- src/menu/components/tabs/tabcomponents/index.jsx | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/menu/components/tabs/tabcomponents/index.jsx b/src/menu/components/tabs/tabcomponents/index.jsx index 0c48cc1..f25da70 100644 --- a/src/menu/components/tabs/tabcomponents/index.jsx +++ b/src/menu/components/tabs/tabcomponents/index.jsx @@ -6,7 +6,7 @@ import Utils from '@/utils/utils.js' import MKEmitter from '@/utils/events.js' -import MenuUtils from '@/menu/utils/menuUtils.js' +import MenuUtils from '@/utils/utils-custom.js' import Card from './card' import './index.scss' @@ -89,13 +89,20 @@ let name = '' let names = { - bar: '鏌辩姸鍥�', + bbar: '鏌辩姸鍥�', line: '鎶樼嚎鍥�', tabs: '鏍囩缁�', pie: '楗煎浘', search: '鎼滅储', table: '琛ㄦ牸', group: '鍒嗙粍', + editor: '瀵屾枃鏈�', + code: '鑷畾涔�', + carousel: '杞挱', + form: '琛ㄥ崟', + dashboard: '浠〃鐩�', + scatter: '鏁g偣鍥�', + tree: '鏍戝舰鍒楄〃', card: '鍗$墖' } let i = 1 @@ -107,14 +114,6 @@ } i++ } - - let dataName = '' - while (!dataName) { - let _dataName = Utils.getdataName() - if (config.components.filter(com => com.dataName === _dataName).length === 0) { - dataName = _dataName - } - } let newcard = { uuid: Utils.getuuid(), @@ -124,7 +123,7 @@ subtype: item.subtype, config: item.config, width: item.width || 24, - dataName: dataName, + dataName: Utils.getdataName(), name: name, floor: config.floor ? (config.floor + 1) : 2, // 缁勪欢鐨勫眰绾� isNew: true // 鏂版坊鍔犳爣蹇楋紝鐢ㄤ簬鍒濆鍖� -- Gitblit v1.8.0