You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// before 2.1.0 we can doplay('this is my component',module).add('with text',h=>h(MyCompoent))// now we can alsoplay(MyComponent,module).displayName('this is my component').add('with text',h=>h(MyCompoent))
v2.0.0 (2016/11/03)
Core
Set preview to an independent webpack entry and load it in iframe
Update play entry syntax to be more similar to react-storybook
Other
Update vue-play-cli to support new core changes
v2.0.0-beta.1 (2016/10/30)
Core
Use iframe to load scenario
add play.describe method for adding playspot
play.describe('Button',add=>{add('with text','<button>text</button>')})// if no callback function, it returns the `add` functionconstaddButton=play.describe('Button')addButton('with text','<button>text</button>')
play.start now only needs the selector argument, and it defaults to #app
// mount the app to #root elementplay.start('#root')
add action to replace this.$log and this.$clear
Other
adjust the buzz words
playspot is for the thing you play.describe
scenario is a scenario for demonstrating your playspot
play app is the whole app
// describe a playspotplay.describe('button',add=>{// add a scenario called 'with text'add('with text','<button>text</button>')})