1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

[bugfix] Cell: titleClass wrong type ()

This commit is contained in:
neverland 2019-02-18 19:48:34 +08:00 committed by GitHub
parent 98f14dd5f1
commit 267b47ac54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 14 deletions

@ -103,9 +103,9 @@ Vue.use(Cell).use(CellGroup);
| is-link | Whether to show link icon | `Boolean` | `false` |
| required | Whether to show required mark | `Boolean` | `false` |
| arrow-direction | Can be set to `left` `up` `down` | `String` | - |
| title-class | Title className | `String` | - |
| value-class | Value className | `String` | - |
| label-class | Label className | `String` | - |
| title-class | Title className | `any` | - |
| value-class | Value className | `any` | - |
| label-class | Label className | `any` | - |
### Cell Event

@ -1,7 +1,7 @@
import { use, isDef } from '../utils';
import { cellProps, SharedCellProps } from './shared';
import { emit, inherit } from '../utils/functional';
import { routeProps, functionalRoute } from '../mixins/router';
import { routeProps, RouteProps, functionalRoute } from '../mixins/router';
import Icon from '../icon';
// Types
@ -9,7 +9,7 @@ import { CreateElement, RenderContext } from 'vue/types';
import { ScopedSlot, DefaultSlots } from '../utils/use/sfc';
import { Mods } from '../utils/use/bem';
export type CellProps = SharedCellProps & {
export type CellProps = RouteProps & SharedCellProps & {
size?: string;
clickable?: boolean;
arrowDirection?: string;

@ -4,9 +4,9 @@ export type SharedCellProps = {
center?: boolean;
isLink?: boolean;
required?: boolean;
titleClass?: string;
valueClass?: string;
labelClass?: string;
titleClass?: any;
valueClass?: any;
labelClass?: any;
title?: string | number;
value?: string | number;
label?: string | number;
@ -17,9 +17,9 @@ export const cellProps = {
center: Boolean,
isLink: Boolean,
required: Boolean,
titleClass: String,
valueClass: String,
labelClass: String,
titleClass: null as any,
valueClass: null as any,
labelClass: null as any,
title: [String, Number],
value: [String, Number],
label: [String, Number],

@ -105,9 +105,9 @@ Vue.use(Cell).use(CellGroup);
| required | 是否显示表单必填星号 | `Boolean` | `false` | - |
| center | 是否使内容垂直居中 | `Boolean` | `false` | 1.0.3 |
| arrow-direction | 箭头方向,可选值为 `left` `up` `down` | `String` | - | 1.1.10 |
| title-class | 左侧标题额外类名 | `String` | - | 1.4.8 |
| value-class | 右侧内容额外类名 | `String` | - | 1.4.8 |
| label-class | 描述信息额外类名 | `String` | - | 1.4.8 |
| title-class | 左侧标题额外类名 | `any` | - | 1.4.8 |
| value-class | 右侧内容额外类名 | `any` | - | 1.4.8 |
| label-class | 描述信息额外类名 | `any` | - | 1.4.8 |
### Cell Event