From 4e5fbe31fca624a60dfcac5edaf1b5e532875fab Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 15 Mar 2018 11:51:26 +0800 Subject: [PATCH] =?UTF-8?q?fineui=E7=9A=84demo=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gruntfile.js | 2 +- demo/config.js | 4 ---- demo/demo.js | 3 +++ dist/demo.js | 10 ++++------ 4 files changed, 8 insertions(+), 11 deletions(-) create mode 100644 demo/demo.js diff --git a/Gruntfile.js b/Gruntfile.js index 1e2ca846b..a837742c0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -125,7 +125,7 @@ module.exports = function (grunt) { dest: "dist/config.js" }, demoJs: { - src: ["demo/app.js", "demo/js/**/*.js", " demo/config.js"], + src: ["demo/demo.js", "demo/app.js", "demo/js/**/*.js", "demo/config.js"], dest: "dist/demo.js" }, demoCss: { diff --git a/demo/config.js b/demo/config.js index 8487774c2..4e59b9990 100644 --- a/demo/config.js +++ b/demo/config.js @@ -1,7 +1,3 @@ -Demo = { - version: 1.0 -}; - Demo.CONFIG = Demo.CORE_CONFIG.concat(Demo.BASE_CONFIG).concat(Demo.CASE_CONFIG).concat(Demo.WIDGET_CONFIG).concat(Demo.COMPONENT_CONFIG).concat(Demo.FIX_CONFIG).concat(Demo.CATEGORY_CONFIG); Demo.CONSTANTS = { diff --git a/demo/demo.js b/demo/demo.js new file mode 100644 index 000000000..ecaa4de93 --- /dev/null +++ b/demo/demo.js @@ -0,0 +1,3 @@ +Demo = { + version: 1.0 +}; \ No newline at end of file diff --git a/dist/demo.js b/dist/demo.js index 99af480b7..decc378a7 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -1,4 +1,6 @@ -$(function () { +Demo = { + version: 1.0 +};$(function () { var ref; var AppRouter = BI.inherit(BI.Router, { routes: { @@ -14501,11 +14503,7 @@ Demo.YearQuarterCombo = BI.inherit(BI.Widget, { } }); -BI.shortcut("demo.year_quarter_combo", Demo.YearQuarterCombo);Demo = { - version: 1.0 -}; - -Demo.CONFIG = Demo.CORE_CONFIG.concat(Demo.BASE_CONFIG).concat(Demo.CASE_CONFIG).concat(Demo.WIDGET_CONFIG).concat(Demo.COMPONENT_CONFIG).concat(Demo.FIX_CONFIG).concat(Demo.CATEGORY_CONFIG); +BI.shortcut("demo.year_quarter_combo", Demo.YearQuarterCombo);Demo.CONFIG = Demo.CORE_CONFIG.concat(Demo.BASE_CONFIG).concat(Demo.CASE_CONFIG).concat(Demo.WIDGET_CONFIG).concat(Demo.COMPONENT_CONFIG).concat(Demo.FIX_CONFIG).concat(Demo.CATEGORY_CONFIG); Demo.CONSTANTS = { SIMPLE_ITEMS: BI.map("柳州市城贸金属材料有限责任公司 柳州市建福房屋租赁有限公司 柳州市迅昌数码办公设备有限责任公司 柳州市河海贸易有限责任公司 柳州市花篮制衣厂 柳州市兴溪物资有限公司 柳州市针织总厂 柳州市衡管物资有限公司 柳州市琪成机电设备有限公司 柳州市松林工程机械修理厂".match(/[^\s]+/g), function (i, v) {