title | preview |
---|---|
Field |
Arrange vertically and display current contents, status and other allowable operations.
import { Field, FieldItem } from 'mand-mobile'
Vue.component(Field.name, Field)
Vue.component(FieldItem.name, FieldItem)
Props | Description | Type | Default | Note |
---|---|---|---|---|
title | title | String | - | - |
brief | description | String | - | - |
disabled | disable content operation | Boolean | false |
- |
solid | the width of title is fixed or not | Boolean | false |
- |
plain | plain style | Boolean | false |
- |
When use disabled
prop, its descendants can use injectto have access of Field
ancestor.
export default {
name: 'your-component',
inject: {
rootField: {
from: 'rootField',
default: () => ({})
}
},
computed: {
disabled() {
return this.rootField.disabled
}
},
}
default content slot
header content slot
header action slot
footer content slot
Props | Description | Type | Default | Note |
---|---|---|---|---|
title | title | String | - | - |
content | description | String | - | - |
addon | help info text | String | - | - |
disabled | disable item operation | Boolean | false | - |
arrow | arrow indicator | Boolean | false | - |
click event when not disabled
default content slot
left content slot
right content slot
extra children slot