Skip to content

Commit

Permalink
fix bug with setting width without ending in 'px'
Browse files Browse the repository at this point in the history
  • Loading branch information
officert committed Jul 5, 2018
1 parent 82c0907 commit 5a506b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs-src/components/Home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export default {
methods: {
showPanel1() {
vueSlideoutPanelService.show({
// openOn: 'left',
// width: 500,
width: '500px',
component: 'panel-1',
props: {
name: this.example1Form.name
Expand Down
1 change: 1 addition & 0 deletions src/components/SlideoutPanel/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const vm = {
if (!panel.width) panel.styles.width = '900px';
else if (!panel.width.endsWith || !panel.width.endsWith('px')) panel.styles.width = `${panel.width}px`;
else panel.styles.width = panel.width;
this.panels.push(panel);
Expand Down

0 comments on commit 5a506b1

Please sign in to comment.