Skip to content

Commit c13a5a7

Browse files
committed
chore: release v0.6.0
1 parent 46a73c8 commit c13a5a7

File tree

6 files changed

+20815
-26779
lines changed

6 files changed

+20815
-26779
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [0.5.5](https://github.com/xiaoluoboding/vue-smart-widget/compare/v0.5.2...v0.5.5) (2020-01-03)
1+
# [0.6.0](https://github.com/xiaoluoboding/vue-smart-widget/compare/v0.5.5...v0.6.0) (2021-01-04)
22

33

44
### Bug Fixes
@@ -11,6 +11,7 @@
1111
### Features
1212

1313
* add loading.svg ([5b926e3](https://github.com/xiaoluoboding/vue-smart-widget/commit/5b926e31ed3f575b62383cf9606523340acb0f6b))
14+
* add new properties & events on smart-widget-grid ([46a73c8](https://github.com/xiaoluoboding/vue-smart-widget/commit/46a73c8e28b610f13660eca71b16986341d29777))
1415
* add new props for smart-widget-grid ([390b751](https://github.com/xiaoluoboding/vue-smart-widget/commit/390b75175d77d1f41f9a07359e23ee6ce9acd059))
1516
* add static property on smart-widget-grid ([6e12f5d](https://github.com/xiaoluoboding/vue-smart-widget/commit/6e12f5d3e99091925b84c206c3a878c793b3c5ef))
1617
* add the widget headerHeight property ([1bbe378](https://github.com/xiaoluoboding/vue-smart-widget/commit/1bbe378fe5b06ab95efe16bec76ceb38ab8e3ce7))

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,32 @@ new Vue({
137137
## CSS Selector in SmartWidget
138138
139139
| Name | Description |
140-
|:--------:|--------|
140+
|:--------|--------|
141141
| `.smartwidget` | The main selector in SmartWidget |
142142
| `.is-actived` | The state of widget is actived |
143+
| `.vue-grid-item.vue-grid-placeholder` | The default css for the placeholder |
143144
144145
## SmartWidgetGrid Props
145146
146-
> it's similar with [vue-grid-layout](https://github.com/jbaysolutions/vue-grid-layout). Care about the attribute `layout`, The value of layout must be an Array of Object items. Each item must have i, x, y, w and h proprties. especially, the i proprties, it's the unique identifier of the widget item, euqal with widget slot.
147+
> It's similar with [vue-grid-layout](https://github.com/jbaysolutions/vue-grid-layout). Care about the attribute `layout`, The value of layout must be an Array of Object items. Each item must have i, x, y, w and h proprties. especially, the i proprties, it's the unique identifier of the widget item, euqal with widget slot.
147148
148149
| Attribute | Description | Type | Accepted values | Default |
149-
|:--------:|--------|:--------:|:--------:|:--------:|
150+
|:--------|--------|:--------:|:--------:|:--------:|
150151
| layout | This is the initial layout of the grid. | Array | - | `required` |
152+
| responsiveLayouts | This is the initial layouts of the grid per breakpoint if responsive is set to true. | Object | - | `{}` |
151153
| colNum | Says how many columns the grid has. | Number | - | `12` |
152154
| rowHeight | Says what is a height of a single row in pixels. | Number | - | `48` |
155+
| maxRows | Says what is a maximal number of rows in the grid. | Number | - | `Infinity` |
153156
| margin | Says what are the margins of elements inside the grid. | Array | - | `[10, 10]` |
154157
| draggable | Says if the grids items are draggable. | Boolean | `true` or `false` | `true` |
155158
| resizable | Says if the grids items are resizable. | Boolean | `true` or `false` | `true` |
159+
| isMirrored | Says if the RTL/LTR should be reversed. | Boolean | `true` or `false` | `false` |
160+
| autoSize | Says if the container height should swells and contracts to fit contents. | Boolean | `true` or `false` | `true` |
161+
| verticalCompact | Says if the layout should be compact vertically. | Boolean | `true` or `false` | `true` |
162+
| preventCollision | Says if grid items will move when being dragged over. | Boolean | `true` or `false` | `false` |
163+
| responsive | Says if the layout should be responsive to window width. | Boolean | `true` or `false` | `false` |
164+
| breakpoints | Breakpoints defined for responsive layout. Sets widths on wich column number changes. | Object | - | `{ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }` |
165+
| cols | Defines number of columns for each breakpoint. | Object | - | `{ lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }` |
156166
| isStatic | Control all widgets won't be draggable, resizable or moved | Boolean | `true` or `false` | `false` |
157167

158168
## Slot scopes
@@ -172,7 +182,8 @@ new Vue({
172182
| layout-mounted | Emited on the component mounted lifecycle hook | `newLayout` |
173183
| layout-ready | Emited when all the operations on the mount hook finish | `newLayout` |
174184
| layout-updated | Every time the layout has finished updating and positions of all grid-items are recalculated | `newLayout` |
185+
| breakpoint-changed | Every time the breakpoint value changes due to window resize | `(newBreakpoint, newLayout)` |
175186

176187
## License
177188

178-
MIT
189+
MIT [@xiaoluoboding](https://github.com/xiaoluoboding)

0 commit comments

Comments
 (0)