From 0227c25e4ed573d3095ada3f9c9a4ba5f18b0de5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 20 一月 2021 10:53:01 +0800 Subject: [PATCH] 2021-01-20 --- src/templates/modalconfig/source.jsx | 66 +++++++++++++++++++++++++++------ 1 files changed, 54 insertions(+), 12 deletions(-) diff --git a/src/templates/modalconfig/source.jsx b/src/templates/modalconfig/source.jsx index c340150..9edd2ae 100644 --- a/src/templates/modalconfig/source.jsx +++ b/src/templates/modalconfig/source.jsx @@ -1,8 +1,8 @@ import Utils from '@/utils/utils.js' -import zhCN from '@/locales/zh-CN/comtable.js' -import enUS from '@/locales/en-US/comtable.js' +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 = localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS export const BaseConfig = { type: 'Modal', @@ -74,32 +74,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,30 +134,48 @@ }, { 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: '鎻愮ず', + subType: 'hint', + url: '' + }, + { + type: 'form', + label: CommonDict['model.form.color'], + subType: 'color', + url: '' + }, + { + type: 'form', + label: '瀵屾枃鏈�', + subType: 'brafteditor', + url: '' + }, + { + type: 'form', label: CommonDict['header.form.funcvar'], subType: 'funcvar', url: '' -- Gitblit v1.8.0