mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Cell: titleClass wrong type (#2780)
This commit is contained in:
parent
98f14dd5f1
commit
267b47ac54
@ -103,9 +103,9 @@ Vue.use(Cell).use(CellGroup);
|
|||||||
| is-link | Whether to show link icon | `Boolean` | `false` |
|
| is-link | Whether to show link icon | `Boolean` | `false` |
|
||||||
| required | Whether to show required mark | `Boolean` | `false` |
|
| required | Whether to show required mark | `Boolean` | `false` |
|
||||||
| arrow-direction | Can be set to `left` `up` `down` | `String` | - |
|
| arrow-direction | Can be set to `left` `up` `down` | `String` | - |
|
||||||
| title-class | Title className | `String` | - |
|
| title-class | Title className | `any` | - |
|
||||||
| value-class | Value className | `String` | - |
|
| value-class | Value className | `any` | - |
|
||||||
| label-class | Label className | `String` | - |
|
| label-class | Label className | `any` | - |
|
||||||
|
|
||||||
### Cell Event
|
### Cell Event
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { use, isDef } from '../utils';
|
import { use, isDef } from '../utils';
|
||||||
import { cellProps, SharedCellProps } from './shared';
|
import { cellProps, SharedCellProps } from './shared';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
import { routeProps, functionalRoute } from '../mixins/router';
|
import { routeProps, RouteProps, functionalRoute } from '../mixins/router';
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
@ -9,7 +9,7 @@ import { CreateElement, RenderContext } from 'vue/types';
|
|||||||
import { ScopedSlot, DefaultSlots } from '../utils/use/sfc';
|
import { ScopedSlot, DefaultSlots } from '../utils/use/sfc';
|
||||||
import { Mods } from '../utils/use/bem';
|
import { Mods } from '../utils/use/bem';
|
||||||
|
|
||||||
export type CellProps = SharedCellProps & {
|
export type CellProps = RouteProps & SharedCellProps & {
|
||||||
size?: string;
|
size?: string;
|
||||||
clickable?: boolean;
|
clickable?: boolean;
|
||||||
arrowDirection?: string;
|
arrowDirection?: string;
|
||||||
|
@ -4,9 +4,9 @@ export type SharedCellProps = {
|
|||||||
center?: boolean;
|
center?: boolean;
|
||||||
isLink?: boolean;
|
isLink?: boolean;
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
titleClass?: string;
|
titleClass?: any;
|
||||||
valueClass?: string;
|
valueClass?: any;
|
||||||
labelClass?: string;
|
labelClass?: any;
|
||||||
title?: string | number;
|
title?: string | number;
|
||||||
value?: string | number;
|
value?: string | number;
|
||||||
label?: string | number;
|
label?: string | number;
|
||||||
@ -17,9 +17,9 @@ export const cellProps = {
|
|||||||
center: Boolean,
|
center: Boolean,
|
||||||
isLink: Boolean,
|
isLink: Boolean,
|
||||||
required: Boolean,
|
required: Boolean,
|
||||||
titleClass: String,
|
titleClass: null as any,
|
||||||
valueClass: String,
|
valueClass: null as any,
|
||||||
labelClass: String,
|
labelClass: null as any,
|
||||||
title: [String, Number],
|
title: [String, Number],
|
||||||
value: [String, Number],
|
value: [String, Number],
|
||||||
label: [String, Number],
|
label: [String, Number],
|
||||||
|
@ -105,9 +105,9 @@ Vue.use(Cell).use(CellGroup);
|
|||||||
| required | 是否显示表单必填星号 | `Boolean` | `false` | - |
|
| required | 是否显示表单必填星号 | `Boolean` | `false` | - |
|
||||||
| center | 是否使内容垂直居中 | `Boolean` | `false` | 1.0.3 |
|
| center | 是否使内容垂直居中 | `Boolean` | `false` | 1.0.3 |
|
||||||
| arrow-direction | 箭头方向,可选值为 `left` `up` `down` | `String` | - | 1.1.10 |
|
| arrow-direction | 箭头方向,可选值为 `left` `up` `down` | `String` | - | 1.1.10 |
|
||||||
| title-class | 左侧标题额外类名 | `String` | - | 1.4.8 |
|
| title-class | 左侧标题额外类名 | `any` | - | 1.4.8 |
|
||||||
| value-class | 右侧内容额外类名 | `String` | - | 1.4.8 |
|
| value-class | 右侧内容额外类名 | `any` | - | 1.4.8 |
|
||||||
| label-class | 描述信息额外类名 | `String` | - | 1.4.8 |
|
| label-class | 描述信息额外类名 | `any` | - | 1.4.8 |
|
||||||
|
|
||||||
### Cell Event
|
### Cell Event
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user