| 12345678910111213141516171819202122232425262728293031323334 |
- <template>
- <div style="display:inline-block;">
- <label class="radio-label">Cell Auto-Width: </label>
- <el-radio-group v-model="autoWidth">
- <el-radio :label="true" border>
- True
- </el-radio>
- <el-radio :label="false" border>
- False
- </el-radio>
- </el-radio-group>
- </div>
- </template>
- <script>
- export default {
- props: {
- value: {
- type: Boolean,
- default: true
- }
- },
- computed: {
- autoWidth: {
- get() {
- return this.value
- },
- set(val) {
- this.$emit('input', val)
- }
- }
- }
- }
- </script>
|