{{ formData.price }}
hello world
hello world
Add new Row
666
888
<script>
import Dropdown, { DropdownItem } from 'packages/dropdown'
import VTable from 'packages/table'
import VSwitch from 'packages/switch'
import VPagination from 'packages/pagination'
import VForm, {
Field as VField,
Input as VInput,
Select as VSelect,
Checkbox as VCheckbox,
Radio as VRadio
} from 'packages/form'
export default {
data () {
return {
formData: {
price: '请选择价格',
isCheap: true,
note: 'hello',
tag: null,
schoolCheck: [],
isOwn: null
},
page: 6,
tableCols: [ '__select|', 'first', 'second|第二'],
tableRows: [
{
first: 'a',
second: 'b'
}
]
}
},
methods: {
_addRow () {
this.tableRows.push({
first: 'cc',
second: 'dd'
})
},
_handleOnPage (page) {
console.debug('async ...', page)
this.$refs.pager.disabled = true
setTimeout(n => {
this.$refs.pager.disabled = false
}, 3000)
}
},
components: {
Dropdown,
DropdownItem,
VTable, VSwitch,
VForm, VField, VInput,
VSelect, VCheckbox, VRadio,
VPagination
}
}
</script>
<style lang="scss" type="text/scss">
.v-table {
display: table !important;
}
.my-x-table {
thead > tr {
th:first-child {
width: 80px;
}
}
}
</style>
香港中文大学
香港中文大学2
是
否