From 182445f68ca03beb95a90e57867f356fe155126b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 13 十一月 2021 21:14:23 +0800
Subject: [PATCH] 2021-11-13

---
 src/templates/zshare/editTable/index.jsx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/templates/zshare/editTable/index.jsx b/src/templates/zshare/editTable/index.jsx
index 2d487c4..14c3554 100644
--- a/src/templates/zshare/editTable/index.jsx
+++ b/src/templates/zshare/editTable/index.jsx
@@ -7,11 +7,13 @@
 import Utils from '@/utils/utils.js'
 import ColorSketch from '@/mob/colorsketch'
 import PasteForm from '@/templates/zshare/pasteform'
+import asyncComponent from '@/utils/asyncComponent'
 import CusSwitch from './cusSwitch'
 import zhCN from '@/locales/zh-CN/model.js'
 import enUS from '@/locales/en-US/model.js'
 import './index.scss'
 
+const MkIcon = asyncComponent(() => import('@/components/mkIcon'))
 let eTDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
 const EditableContext = React.createContext()
 const { confirm } = Modal
@@ -85,6 +87,8 @@
       return <InputNumber min={min} max={max} precision={0} onPressEnter={() => this.getValue(form)} />
     } else if (inputType === 'color') {
       return <ColorSketch />
+    } else if (inputType === 'icon') {
+      return <MkIcon allowClear/>
     } else if (inputType === 'switch') {
       return <CusSwitch />
     } else if (inputType === 'select') {

--
Gitblit v1.8.0