Waiter 7d74a169fe
feat(Cell): add title-style prop, fix Field label width (#3370)
* fix(Field): title width

* feat(Field): add spacing

* feat(Cell): add titleStyle

* fix(Cell): no observer

Co-authored-by: songweite <songweite@youzan.com>
2020-07-13 16:38:39 +08:00

44 lines
801 B
TypeScript

import { link } from '../mixins/link';
import { VantComponent } from '../common/component';
import { Weapp } from 'definitions/weapp';
VantComponent({
classes: [
'title-class',
'label-class',
'value-class',
'right-icon-class',
'hover-class',
],
mixins: [link],
props: {
title: null,
value: null,
icon: String,
size: String,
label: String,
center: Boolean,
isLink: Boolean,
required: Boolean,
clickable: Boolean,
titleWidth: String,
customStyle: String,
arrowDirection: String,
useLabelSlot: Boolean,
border: {
type: Boolean,
value: true,
},
titleStyle: String,
},
methods: {
onClick(event: Weapp.Event) {
this.$emit('click', event.detail);
this.jumpLink();
},
},
});