     @props.handleAddData title, deck
     @setState
       saveDisable: true
+      preDisable: true
+      showPre: false
       deckChecked: [false, false, false, false]
       title: ''
       tags: []

      </Panel>
      <div style={display: 'flex'}>
        <Button bsSize='small'
                disabled={@state.saveDisable}
                onClick={@handlePreClick}
                style={width: '50%'}>
          {__ 'Preview'}

        if deck
          flag = true
          break
      saveDisable = true
      preDisable = true
      if flag
        preDisable = false
        if @state.title.length > 0
          saveDisable = false
      @setState
        deckChecked: deckChecked
        saveDisable: saveDisable
        preDisable: preDisable
        showPre: false
  render: ->
    <div className='tab-container'>
      <Button bsSize='small'
