From 7b8b1b156c649f65f8987ce881e19e401bf507e1 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 31 Oct 2017 15:29:24 +0800 Subject: [PATCH] update --- Gruntfile.js | 4 +- public/js/index.js | 144 +++++++++++++++++++++++++++++++++------------ 2 files changed, 109 insertions(+), 39 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b5ddb1c24..c6c72e6b5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -124,7 +124,7 @@ module.exports = function (grunt) { }, bundleJs: { - src: ['public/js/index.js', 'dist/core.js', 'dist/base.js', 'dist/case.js', 'dist/widget.js', 'public/js/**/*.js'], + src: ['dist/core.js', 'dist/base.js', 'dist/case.js', 'dist/widget.js', 'public/js/**/*.js', 'public/js/index.js'], dest: 'dist/bundle.js' }, @@ -138,7 +138,7 @@ module.exports = function (grunt) { dest: 'dist/config.js' }, demoJs: { - src: ['demo/app.js', 'demo/js/**/*.js',' demo/config.js'], + src: ['demo/app.js', 'demo/js/**/*.js', ' demo/config.js'], dest: 'dist/demo.js' }, demoCss: { diff --git a/public/js/index.js b/public/js/index.js index 9a5f70b21..b9dc43d12 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1,52 +1,122 @@ -if (!window.BI) { - window.BI = {}; -} BI.servletURL = "https://fanruan.coding.me/fineui/dist/"; BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/"; BI.i18n = { - "BI-Basic_OK": "确定", - "BI-Basic_Sure": "确定", - "BI-Basic_Clears": "清空", - "BI-Basic_Cancel": "取消", - "BI-Basic_Time": "时间", - "BI-Basic_Simple_Sunday": "日", - "BI-Basic_Simple_Monday": "一", - "BI-Basic_Simple_Tuesday": "二", - "BI-Basic_Simple_Wednesday": "三", - "BI-Basic_Simple_Thursday": "四", - "BI-Basic_Simple_Friday": "五", - "BI-Basic_Simple_Saturday": "六", - "BI-Multi_Date_Year": "年", + "BI-Multi_Date_Quarter_End": "季度末", + "BI-Multi_Date_Month_Begin": "月初", + "BI-Multi_Date_YMD": "年/月/日", + "BI-Custom_Color": "自定义颜色", + "BI-Numerical_Interval_Input_Data": "请输入数值", + "BI-Please_Input_Natural_Number": "请输入非负整数", + "BI-No_More_Data": "无更多数据", + "BI-Basic_Altogether": "共", + "BI-Basic_Sunday": "星期日", + "BI-Widget_Background_Colour": "组件背景", + "BI-Color_Picker_Error_Text": "请输入0~255的正整数", "BI-Multi_Date_Month": "月", - "BI-Multi_Date_Quarter": "季度", - "BI-Basic_Unrestricted": "无限制", + "BI-No_Selected_Item": "没有可选项", + "BI-Multi_Date_Year_Begin": "年初", "BI-Quarter_1": "第1季度", "BI-Quarter_2": "第2季度", "BI-Quarter_3": "第3季度", "BI-Quarter_4": "第4季度", - "BI-Basic_Value": "值", - "BI-Load_More": "加载更多", + "BI-Multi_Date_Year_Next": "年后", + "BI-Multi_Date_Month_Prev": "个月前", + "BI-Month_Trigger_Error_Text": "请输入1~12的正整数", + "BI-Less_And_Equal": "小于等于", + "BI-Year_Trigger_Invalid_Text": "请输入有效时间", + "BI-Multi_Date_Week_Next": "周后", + "BI-Font_Size": "字号", + "BI-Basic_Total": "共", + "BI-Already_Selected": "已选择", + "BI-Formula_Insert": "插入", "BI-Select_All": "全选", + "BI-Basic_Tuesday": "星期二", + "BI-Multi_Date_Month_End": "月末", + "BI-Load_More": "点击加载更多数据", + "BI-Basic_September": "九月", + "BI-Current_Is_Last_Page": "当前已是最后一页", "BI-Basic_Auto": "自动", - "BI-No_More_Data": "无更多数据", - "BI-No_Selected_Value": "没有可选项", - "BI-Basic_Clear": "清除", - "BI-Multi_Date_Relative_Current_Time": "相对当前时间", - "BI-Multi_Date_Year_Prev": "年前", - "BI-Multi_Date_Year_Next": "年后", - "BI-Multi_Date_Year_Begin": "年初", - "BI-Multi_Date_Year_End": "年末", + "BI-Basic_Count": "个", + "BI-Basic_Value": "值", + "BI-Basic_Unrestricted": "无限制", + "BI-Quarter_Trigger_Error_Text": "请输入1~4的正整数", + "BI-Basic_More": "更多", + "BI-Basic_Wednesday": "星期三", + "BI-Basic_Bold": "加粗", + "BI-Basic_Simple_Saturday": "六", + "BI-Multi_Date_Month_Next": "个月后", + "BI-Basic_March": "三月", + "BI-Current_Is_First_Page": "当前已是第一页", + "BI-Basic_Thursday": "星期四", + "BI-Basic_Prompt": "提示", + "BI-Multi_Date_Today": "今天", "BI-Multi_Date_Quarter_Prev": "个季度前", - "BI-Multi_Date_Quarter_Next": "个季度后", + "BI-Row_Header": "行表头", + "BI-Date_Trigger_Error_Text": "日期格式示例:2015-3-11", + "BI-Basic_Cancel": "取消", + "BI-Basic_January": "一月", + "BI-Basic_June": "六月", + "BI-Basic_July": "七月", + "BI-Basic_April": "四月", "BI-Multi_Date_Quarter_Begin": "季度初", - "BI-Multi_Date_Quarter_End": "季度末", - "BI-Multi_Date_Month_Prev": "个月前", - "BI-Multi_Date_Month_Next": "个月后", - "BI-Multi_Date_Month_Begin": "月初", - "BI-Multi_Date_Month_End": "月末", - "BI-Multi_Date_Week_Prev": "周前", - "BI-Multi_Date_Week_Next": "周后", + "BI-Multi_Date_Week": "周", + "BI-Click_Blank_To_Select": "点按\"空格键\"选中匹配项", + "BI-Basic_August": "八月", + "BI-Word_Align_Left": "文字居左", + "BI-Basic_November": "十一月", + "BI-Font_Colour": "字体颜色", "BI-Multi_Date_Day_Prev": "天前", + "BI-Select_Part": "部分选择", "BI-Multi_Date_Day_Next": "天后", - "BI-Multi_Date_Today": "今天" + "BI-Less_Than": "小于", + "BI-Basic_February": "二月", + "BI-Multi_Date_Year": "年", + "BI-Number_Index": "序号", + "BI-Multi_Date_Week_Prev": "周前", + "BI-Next_Page": "下一页", + "BI-Right_Page": "向右翻页", + "BI-Numerical_Interval_Signal_Value": "前后值相等,请将操作符改为“≤”", + "BI-Basic_December": "十二月", + "BI-Basic_Saturday": "星期六", + "BI-Basic_Simple_Wednesday": "三", + "BI-Multi_Date_Quarter_Next": "个季度后", + "BI-Basic_October": "十月", + "BI-Basic_Simple_Friday": "五", + "BI-Primary_Key": "主键", + "BI-Basic_Save": "保存", + "BI-Numerical_Interval_Number_Value": "请保证前面的数值小于/等于后面的数值", + "BI-Previous_Page": "上一页", + "BI-No_Select": "搜索结果为空", + "BI-Basic_Clears": "清空", + "BI-Created_By_Me": "我创建的", + "BI-Basic_Simple_Tuesday": "二", + "BI-Word_Align_Right": "文字居右", + "BI-Summary_Values": "汇总", + "BI-Basic_Clear": "清除", + "BI-Upload_File_Size_Error": "文件大小不支", + "BI-Up_Page": "向上翻页", + "BI-Basic_Simple_Sunday": "日", + "BI-Multi_Date_Relative_Current_Time": "相对当前时间", + "BI-Selected_Data": "已选数据:", + "BI-Multi_Date_Quarter": "季度", + "BI-Check_Selected": "查看已选", + "BI-Basic_Search": "搜索", + "BI-Basic_May": "五月", + "BI-Continue_Select": "继续选择", + "BI-Please_Input_Positive_Integer": "请输入正整数", + "BI-Upload_File_Type_Error": "文件类型不支持", + "BI-Basic_Friday": "星期五", + "BI-Down_Page": "向下翻页", + "BI-Basic_Monday": "星期一", + "BI-Left_Page": "向左翻页", + "BI-Transparent_Color": "透明", + "BI-Basic_Simple_Monday": "一", + "BI-Multi_Date_Year_End": "年末", + "BI-Time_Interval_Error_Text": "请保证前面时间小于/等于后面的时间", + "BI-Basic_Time": "时间", + "BI-Basic_OK": "确定", + "BI-Basic_Simple_Thursday": "四", + "BI-Multi_Date_Year_Prev": "年前", + "BI-Tiao_Data": "条数据", + "BI-Basic_Italic": "斜体" }; \ No newline at end of file