mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[improvement] add Cell props mixin (#2189)
This commit is contained in:
@@ -73,6 +73,7 @@
|
||||
|
||||
<script>
|
||||
import create from '../utils/create';
|
||||
import CellMixin from '../mixins/cell';
|
||||
import { isObj } from '../utils';
|
||||
|
||||
export default create({
|
||||
@@ -80,16 +81,12 @@ export default create({
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
mixins: [CellMixin],
|
||||
|
||||
props: {
|
||||
value: [String, Number],
|
||||
icon: String,
|
||||
label: String,
|
||||
error: Boolean,
|
||||
center: Boolean,
|
||||
isLink: Boolean,
|
||||
leftIcon: String,
|
||||
readonly: Boolean,
|
||||
required: Boolean,
|
||||
clearable: Boolean,
|
||||
labelAlign: String,
|
||||
inputAlign: String,
|
||||
@@ -99,10 +96,6 @@ export default create({
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
},
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user