Skip to content

Commit 10817e2

Browse files
Merge pull request #30 from xiaoluoboding/develop
Develop
2 parents 02c944c + e74df4f commit 10817e2

File tree

10 files changed

+93
-99
lines changed

10 files changed

+93
-99
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
## 0.5.1 (2019-11-27)
1+
## [0.5.5](https://github.com/xiaoluoboding/vue-smart-widget/compare/v0.5.2...v0.5.5) (2020-01-03)
22

33

44
### Bug Fixes
55

6+
* document.body.removeAttribute will remove the class attribute bug ([b72d725](https://github.com/xiaoluoboding/vue-smart-widget/commit/b72d7254208d4eefeebcaf6d5d21fd6c83c253e3))
67
* fix the bug of slot param contentH is wrong ([bcb00c0](https://github.com/xiaoluoboding/vue-smart-widget/commit/bcb00c0c267c80a5fdab4035964e1ae6efdb0e29))
78
* fullscreen widget contentH calculate wrong problem ([686c665](https://github.com/xiaoluoboding/vue-smart-widget/commit/686c6656bd453d2f269eb757ae054e06ddd57322))
89

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ new Vue({
151151
| colNum | Says how many columns the grid has. | Number | - | `12` |
152152
| rowHeight | Says what is a height of a single row in pixels. | Number | - | `48` |
153153
| margin | Says what are the margins of elements inside the grid. | Array | - | `[10, 10]` |
154-
| isDraggable | Says if the grids items are draggable. | Boolean | `true` or `false` | `true` |
155-
| isResizable | Says if the grids items are resizable. | Boolean | `true` or `false` | `true` |
156-
| static | control all widgets won't be draggable, resizable or moved | Boolean | `true` or `false` | `false` |
154+
| draggable | Says if the grids items are draggable. | Boolean | `true` or `false` | `true` |
155+
| resizable | Says if the grids items are resizable. | Boolean | `true` or `false` | `true` |
156+
| isStatic | Control all widgets won't be draggable, resizable or moved | Boolean | `true` or `false` | `false` |
157157

158158
## Slot scopes
159159

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-smart-widget</title><link href=js/chunk-vendors.cabe8b45.js rel=preload as=script><link href=js/index.bf23d3c3.js rel=preload as=script></head><body><noscript><strong>We're sorry but vue-smart-widget doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.cabe8b45.js></script><script src=js/index.bf23d3c3.js></script></body></html>
1+
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-smart-widget</title><link href=js/chunk-vendors.cabe8b45.js rel=preload as=script><link href=js/index.cd434359.js rel=preload as=script></head><body><noscript><strong>We're sorry but vue-smart-widget doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.cabe8b45.js></script><script src=js/index.cd434359.js></script></body></html>

docs/js/index.bf23d3c3.js renamed to docs/js/index.cd434359.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/vue-smart-widget.common.js

Lines changed: 41 additions & 41 deletions
Large diffs are not rendered by default.

lib/vue-smart-widget.umd.js

Lines changed: 41 additions & 41 deletions
Large diffs are not rendered by default.

lib/vue-smart-widget.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-smart-widget",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"description": "Smart widget is a flexible and extensible content container component for Vue2.5+.",
55
"author": "xiaoluoboding <xiaoluoboding@gmail.com>",
66
"scripts": {

src/packages/SmartWidget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default {
237237
this.widgetBodyOffsetHeight = this.widgetBodyOldHeight
238238
// restore collapsed state
239239
this.isFullScreenCollapsed = this.isFullScreen
240-
document.body.removeAttribute('class', 'no-overflow')
240+
document.body.classList.remove('no-overflow')
241241
}
242242
this.$emit('on-fullscreen', this.isFullScreen)
243243
},

vue.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ const isLib = process.env.VUE_APP_BUILD_MODE === 'lib'
55
const resolve = dir => path.join(__dirname, dir)
66

77
const setChainWebpack = config => {
8-
// 修改默认目录简写
98
config.resolve.alias
109
.set('@', path.resolve('app'))
11-
// 添加对 app 目录的支持
1210
config.module
1311
.rule('js')
1412
.include
@@ -18,11 +16,6 @@ const setChainWebpack = config => {
1816
.loader('babel-loader')
1917

2018
if (isProd) {
21-
/**
22-
* 清除性能警告
23-
* entrypoint size limit (244 KiB)
24-
* asset size limit (244 KiB)
25-
*/
2619
config.performance
2720
.set('maxEntrypointSize', 2500000)
2821
.set('maxAssetSize', 2000000)
@@ -48,7 +41,7 @@ module.exports = {
4841
publicPath: './',
4942
pages: {
5043
index: {
51-
entry: resolve('app/main.js') // 修改默认打包文件入口
44+
entry: resolve('app/main.js')
5245
}
5346
},
5447
lintOnSave: true,

0 commit comments

Comments
 (0)