From e543372cc70a19ff2630c79d8421c2c593e54e5f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 02 六月 2021 17:15:21 +0800
Subject: [PATCH] 2021-06-02

---
 src/templates/modalconfig/source.jsx |   75 ++++++++++++++++++++++++++++++++-----
 1 files changed, 64 insertions(+), 11 deletions(-)

diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx
index 8c4276e..6e831de 100644
--- a/src/templates/modalconfig/source.jsx
+++ b/src/templates/modalconfig/source.jsx
@@ -2,7 +2,7 @@
 import zhCN from '@/locales/zh-CN/model.js'
 import enUS from '@/locales/en-US/model.js'
 
-const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS
+const CommonDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
 
 export const BaseConfig = {
   type: 'Modal',
@@ -17,7 +17,6 @@
     display: 'modal'
   },
   tables: [],
-  groups: [],
   fields: [
     {
       origin: true,
@@ -31,6 +30,8 @@
       options: [],
       orderType: 'asc',
       decimal: 0,
+      span: 12,
+      labelwidth: 33.3,
       min: '',
       max: '',
       readonly: 'false',
@@ -47,6 +48,8 @@
       options: [],
       orderType: 'asc',
       decimal: 0,
+      span: 12,
+      labelwidth: 33.3,
       min: '',
       max: '',
       readonly: 'false',
@@ -63,6 +66,8 @@
       options: [],
       orderType: 'asc',
       decimal: 0,
+      span: 12,
+      labelwidth: 33.3,
       min: '',
       max: '',
       readonly: 'false',
@@ -74,32 +79,56 @@
 export const SearchItems = [
   {
     type: 'form',
-    label: CommonDict['header.form.text'],
+    label: CommonDict['model.form.text'],
     subType: 'text',
     url: ''
   },
   {
     type: 'form',
-    label: CommonDict['header.form.number'],
+    label: CommonDict['model.form.number'],
     subType: 'number',
     url: ''
   },
   {
     type: 'form',
-    label: CommonDict['header.form.select'],
+    label: CommonDict['model.form.select'],
     subType: 'select',
     url: ''
   },
   {
     type: 'form',
-    label: CommonDict['header.form.multiselect'],
+    label: CommonDict['model.form.multiselect'],
     subType: 'multiselect',
     url: ''
   },
   {
     type: 'form',
-    label: CommonDict['header.form.link'],
+    label: CommonDict['model.form.link'],
     subType: 'link',
+    url: ''
+  },
+  {
+    type: 'form',
+    label: '寮�鍏�',
+    subType: 'switch',
+    url: ''
+  },
+  {
+    type: 'form',
+    label: '澶氶�夋',
+    subType: 'checkbox',
+    url: ''
+  },
+  {
+    type: 'form',
+    label: '鍗曢�夋',
+    subType: 'radio',
+    url: ''
+  },
+  {
+    type: 'form',
+    label: '閫夐」鍗�',
+    subType: 'checkcard',
     url: ''
   },
   {
@@ -110,26 +139,38 @@
   },
   {
     type: 'form',
-    label: CommonDict['header.form.dateday'],
+    label: CommonDict['model.form.dateday'],
     subType: 'date',
     url: ''
   },
   {
     type: 'form',
-    label: CommonDict['header.form.datemonth'],
+    label: CommonDict['model.form.datemonth'],
     subType: 'datemonth',
     url: ''
   },
   {
     type: 'form',
-    label: CommonDict['header.form.datetime'],
+    label: CommonDict['model.form.datetime'],
     subType: 'datetime',
     url: ''
   },
   {
     type: 'form',
-    label: CommonDict['header.form.textarea'],
+    label: CommonDict['model.form.textarea'],
     subType: 'textarea',
+    url: ''
+  },
+  {
+    type: 'form',
+    label: CommonDict['model.form.color'],
+    subType: 'color',
+    url: ''
+  },
+  {
+    type: 'form',
+    label: '瀵屾枃鏈�',
+    subType: 'brafteditor',
     url: ''
   },
   {
@@ -137,6 +178,18 @@
     label: CommonDict['header.form.funcvar'],
     subType: 'funcvar',
     url: ''
+  },
+  {
+    type: 'form',
+    label: '鎻愮ず',
+    subType: 'hint',
+    url: ''
+  },
+  {
+    type: 'form',
+    label: '鍒嗗壊绾�',
+    subType: 'split',
+    url: ''
   }
 ]
 

--
Gitblit v1.8.0