Guest User

Untitled

a guest
Jun 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <script>
  2. import { Column, Form, FormItem, Option, Select, Button } from 'element-ui'
  3. Vue.component(Select.name, Select)
  4. export default {
  5. components: {
  6. 'el-form-item': FormItem,
  7. 'el-form': Form,
  8. 'el-select': Select,
  9. 'el-option': Option,
  10. 'el-button': Button
  11. },
  12. data: function () {
  13. return {
  14. options: [{
  15. value: 'Option1',
  16. label: 'Option1',
  17. }, {
  18. value: 'Option2',
  19. label: 'Option2',
  20. }, {
  21. value: 'Option3',
  22. label: 'Option3',
  23. }, {
  24. value: 'Option4',
  25. label: 'Option4'
  26. }, {
  27. value: 'Option5',
  28. label: 'Option5'
  29. }],
  30. sampleValue: '',
  31. }
  32. }
  33. }
  34. </script>
  35. <style scoped>
  36. </style>
  37.  
  38. TypeError: Cannot read property '$options' of undefined
  39. at a.form (element-ui.common.js?ccbf:19132)
  40. at Kr.get (vue.min.js:6)
  41. at Kr.evaluate (vue.min.js:6)
  42. at a.form (vue.min.js:6)
  43. at a.getRules (element-ui.common.js?ccbf:19253)
  44. at a.n [as getRules] (vue.min.js:6)
  45. at a.isRequired (element-ui.common.js?ccbf:19154)
  46. at Kr.get (vue.min.js:6)
  47. at Kr.evaluate (vue.min.js:6)
  48. at a.isRequired (vue.min.js:6)
Add Comment
Please, Sign In to add comment