Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- import { Column, Form, FormItem, Option, Select, Button } from 'element-ui'
- Vue.component(Select.name, Select)
- export default {
- components: {
- 'el-form-item': FormItem,
- 'el-form': Form,
- 'el-select': Select,
- 'el-option': Option,
- 'el-button': Button
- },
- data: function () {
- return {
- options: [{
- value: 'Option1',
- label: 'Option1',
- }, {
- value: 'Option2',
- label: 'Option2',
- }, {
- value: 'Option3',
- label: 'Option3',
- }, {
- value: 'Option4',
- label: 'Option4'
- }, {
- value: 'Option5',
- label: 'Option5'
- }],
- sampleValue: '',
- }
- }
- }
- </script>
- <style scoped>
- </style>
- TypeError: Cannot read property '$options' of undefined
- at a.form (element-ui.common.js?ccbf:19132)
- at Kr.get (vue.min.js:6)
- at Kr.evaluate (vue.min.js:6)
- at a.form (vue.min.js:6)
- at a.getRules (element-ui.common.js?ccbf:19253)
- at a.n [as getRules] (vue.min.js:6)
- at a.isRequired (element-ui.common.js?ccbf:19154)
- at Kr.get (vue.min.js:6)
- at Kr.evaluate (vue.min.js:6)
- at a.isRequired (vue.min.js:6)
Add Comment
Please, Sign In to add comment