Skip to content

Latest commit

 

History

History
182 lines (169 loc) · 3.97 KB

File metadata and controls

182 lines (169 loc) · 3.97 KB

Examples

{{ formData.price }} hello world hello world
Add new Row
666 888
香港中文大学 香港中文大学2
是 否

{{ formData.isCheap }}

{{ formData.isCheap ? '' : '不' }}符合饭菜标准
<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>