diff --git a/packages/omi-kbone/README.md b/packages/omi-kbone/README.md index d62c91b0b..afd184370 100644 --- a/packages/omi-kbone/README.md +++ b/packages/omi-kbone/README.md @@ -1,8 +1,3 @@ # omi-kbone 使用 [kbone](https://github.com/wechat-miniprogram/kbone) 和 [omis](https://github.com/Tencent/omi/tree/master/packages/omis) 多端开发(小程序和Web) - -# Todo - -* 热更新 -* build web \ No newline at end of file diff --git a/packages/omi-kbone/build/mp/common/index.js b/packages/omi-kbone/build/mp/common/index.js index b32a84dd3..cdfb035fe 100644 --- a/packages/omi-kbone/build/mp/common/index.js +++ b/packages/omi-kbone/build/mp/common/index.js @@ -191,7 +191,7 @@ var counter_Counter = function Counter(props, store) { counter_Counter.store = function (_) { return { - count: 3, + count: 1, add: function add() { this.count++; this.update(); diff --git a/packages/omi-kbone/package.json b/packages/omi-kbone/package.json index fcebc3ec9..3e4d14e0d 100755 --- a/packages/omi-kbone/package.json +++ b/packages/omi-kbone/package.json @@ -9,7 +9,7 @@ "mp" ], "scripts": { - "start": "cross-env NODE_ENV=production webpack --config scripts/webpack.mp.config.js --progress --hide-modules", + "start": "cross-env NODE_ENV=production webpack --config scripts/webpack.mp.config.js --watch --progress --hide-modules", "web": "node scripts/start.js", "build": "PUBLIC_URL=. node scripts/build.js", "build-windows": "set PUBLIC_URL=.&& node scripts/build.js", diff --git a/packages/omi-kbone/src/components/counter/index.js b/packages/omi-kbone/src/components/counter/index.js index bdaf4857f..b0f04164d 100644 --- a/packages/omi-kbone/src/components/counter/index.js +++ b/packages/omi-kbone/src/components/counter/index.js @@ -15,7 +15,7 @@ const Counter = (props, store) => { Counter.store = _ => { return { - count: 3, + count: 1, add() { this.count++ this.update()