diff --git a/.gitignore b/.gitignore index 448b3bd7d..015e42057 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules/ /.idea/ -dist \ No newline at end of file +dist +demo.js +demo.css \ No newline at end of file diff --git a/demo.css b/demo.css deleted file mode 100644 index 8c620b3db..000000000 --- a/demo.css +++ /dev/null @@ -1,9 +0,0 @@ -.demo-main .bg1 { - background-color: #178cdf; -} -.demo-north { - background-color: #3c8dbc; -} -.demo-west { - background-color: #222d32; -} diff --git a/demo.js b/demo.js deleted file mode 100644 index 835c14521..000000000 --- a/demo.js +++ /dev/null @@ -1,76 +0,0 @@ -Demo = { - version: 1.0 -};$(function () { - var ref; - BI.createWidget({ - type: "demo.main", - ref: function (_ref) { - console.log(_ref); - ref = _ref; - }, - element: '#wrapper' - }); - // ref.destroy(); -});Demo.Center = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-center" - }, - beforeCreate: function(){ - console.log("beforeCreate"); - }, - render: function () { - console.log("render"); - }, - created: function () { - console.log("created"); - }, - mounted: function () { - console.log("mounted"); - } -}); -$.shortcut("demo.center", Demo.Center);Demo.Main = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-main" - }, - render: function () { - return { - type: "bi.border", - items: { - north: { - height: 50, - el: { - type: "demo.north" - } - }, - west: { - width: 230, - el: { - type: "demo.west" - } - }, - center: { - el: { - type: "demo.center", - } - } - } - } - } -}); -$.shortcut("demo.main", Demo.Main);Demo.North = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-north" - }, - render: function () { - - } -}); -$.shortcut("demo.north", Demo.North);Demo.West = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-west" - }, - render: function () { - - } -}); -$.shortcut("demo.west", Demo.West); \ No newline at end of file