bug fix and performance improvements
This commit is contained in:
@ -0,0 +1,63 @@
|
||||
:: BASE_DOC ::
|
||||
|
||||
## API
|
||||
### Cell Props
|
||||
|
||||
name | type | default | description | required
|
||||
-- | -- | -- | -- | --
|
||||
align | String | middle | options:top/middle/bottom | N
|
||||
arrow | Boolean | false | \- | N
|
||||
bordered | Boolean | true | \- | N
|
||||
description | String / Slot | - | \- | N
|
||||
external-classes | Array | - | `['t-class', 't-class-title', 't-class-note', 't-class-description', 't-class-thumb', 't-class-hover', 't-class-left', 't-class-right']` | N
|
||||
hover | Boolean | - | \- | N
|
||||
image | String / Slot | - | \- | N
|
||||
jump-type | String | navigateTo | options:switchTab/reLaunch/redirectTo/navigateTo | N
|
||||
left-icon | String / Slot | - | \- | N
|
||||
note | String / Slot | - | \- | N
|
||||
required | Boolean | false | \- | N
|
||||
right-icon | String / Slot | - | \- | N
|
||||
title | String / Slot | - | \- | N
|
||||
url | String | - | \- | N
|
||||
|
||||
### Cell Events
|
||||
|
||||
name | params | description
|
||||
-- | -- | --
|
||||
click | - | \-
|
||||
|
||||
|
||||
### CSS Variables
|
||||
The component provides the following CSS variables, which can be used to customize styles.
|
||||
Name | Default Value | Description
|
||||
-- | -- | --
|
||||
--td-cell-group-border-color | @border-color | -
|
||||
--td-cell-group-title-bg-color | @bg-color-secondarycontainer | -
|
||||
--td-cell-group-title-color | @font-gray-3 | -
|
||||
--td-cell-group-title-font-size | 28rpx | -
|
||||
--td-cell-group-title-line-height | 90rpx | -
|
||||
--td-cell-group-title-padding-left | 32rpx | -
|
||||
--td-cell-bg-color | @bg-color-container | -
|
||||
--td-cell-border-color | @component-stroke | -
|
||||
--td-cell-border-left-space | @cell-horizontal-padding | -
|
||||
--td-cell-border-right-space | 0 | -
|
||||
--td-cell-description-color | @font-gray-2 | -
|
||||
--td-cell-description-font-size | @font-size-base | -
|
||||
--td-cell-description-line-height | 44rpx | -
|
||||
--td-cell-height | auto | -
|
||||
--td-cell-horizontal-padding | 32rpx | -
|
||||
--td-cell-hover-color | @bg-color-secondarycontainer | -
|
||||
--td-cell-image-height | 96rpx | -
|
||||
--td-cell-image-width | 96rpx | -
|
||||
--td-cell-left-icon-color | @brand-color | -
|
||||
--td-cell-left-icon-font-size | 48rpx | -
|
||||
--td-cell-line-height | 48rpx | -
|
||||
--td-cell-note-color | @font-gray-3 | -
|
||||
--td-cell-note-font-size | @font-size-m | -
|
||||
--td-cell-required-color | @error-color-6 | -
|
||||
--td-cell-required-font-size | @font-size-m | -
|
||||
--td-cell-right-icon-color | @font-gray-3 | -
|
||||
--td-cell-right-icon-font-size | 48rpx | -
|
||||
--td-cell-title-color | @font-gray-1 | -
|
||||
--td-cell-title-font-size | @font-size-m | -
|
||||
--td-cell-vertical-padding | 32rpx | -
|
||||
127
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/README.md
Normal file
127
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/README.md
Normal file
@ -0,0 +1,127 @@
|
||||
---
|
||||
title: Cell 单元格
|
||||
description: 用于各个类别行的信息展示。
|
||||
spline: data
|
||||
isComponent: true
|
||||
---
|
||||
|
||||
<span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20lines-100%25-blue" /></span><span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20functions-100%25-blue" /></span><span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20statements-100%25-blue" /></span><span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20branches-100%25-blue" /></span>
|
||||
## 引入
|
||||
|
||||
全局引入,在 miniprogram 根目录下的`app.json`中配置,局部引入,在需要引入的页面或组件的`index.json`中配置。
|
||||
|
||||
```json
|
||||
"usingComponents": {
|
||||
"t-cell": "tdesign-miniprogram/cell/cell"
|
||||
}
|
||||
```
|
||||
|
||||
## 代码演示
|
||||
|
||||
### 类型
|
||||
|
||||
单行单元格
|
||||
|
||||
<img src="https://tdesign.gtimg.com/miniprogram/readme/cell-1.png" width="375px" height="50%">
|
||||
|
||||
{{ base }}
|
||||
|
||||
多行单元格
|
||||
|
||||
<img src="https://tdesign.gtimg.com/miniprogram/readme/cell-2.png" width="375px" height="50%">
|
||||
|
||||
{{ multiple }}
|
||||
|
||||
### 样式
|
||||
|
||||
卡片单元格
|
||||
|
||||
{{ theme }}
|
||||
|
||||
## API
|
||||
### Cell Props
|
||||
|
||||
名称 | 类型 | 默认值 | 说明 | 必传
|
||||
-- | -- | -- | -- | --
|
||||
align | String | middle | 内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N
|
||||
arrow | Boolean | false | 是否显示右侧箭头 | N
|
||||
bordered | Boolean | true | 是否显示下边框 | N
|
||||
description | String / Slot | - | 下方内容描述 | N
|
||||
hover | Boolean | - | 是否开启点击反馈 | N
|
||||
image | String / Slot | - | 主图 | N
|
||||
jump-type | String | navigateTo | 链接跳转类型。可选项:switchTab/reLaunch/redirectTo/navigateTo | N
|
||||
left-icon | String / Slot | - | 左侧图标,出现在单元格标题的左侧 | N
|
||||
note | String / Slot | - | 和标题同行的说明文字 | N
|
||||
required | Boolean | false | 是否显示表单必填星号 | N
|
||||
right-icon | String / Slot | - | 最右侧图标 | N
|
||||
title | String / Slot | - | 标题 | N
|
||||
url | String | - | 点击后跳转链接地址。如果值为空,则表示不需要跳转 | N
|
||||
|
||||
### Cell Events
|
||||
|
||||
名称 | 参数 | 描述
|
||||
-- | -- | --
|
||||
click | - | 右侧内容
|
||||
|
||||
### Cell 外部样式类
|
||||
类名 | 说明
|
||||
-- | --
|
||||
t-class | 根节点样式类
|
||||
t-class-title | 标题样式类
|
||||
t-class-description | 下方描述内容样式类
|
||||
t-class-note | 右侧说明文字样式类
|
||||
t-class-hover | 悬停样式类
|
||||
t-class-image | 图片样式类
|
||||
t-class-left | 左侧内容样式类
|
||||
t-class-left-icon | 左侧图标样式类
|
||||
t-class-right | 右侧内容样式类
|
||||
t-class-right-icon | 右侧图标样式类
|
||||
|
||||
### CellGroup Props
|
||||
|
||||
名称 | 类型 | 默认值 | 说明 | 必传
|
||||
-- | -- | -- | -- | --
|
||||
bordered | Boolean | - | 是否显示组边框 | N
|
||||
theme | String | default | 单元格风格。可选项:default/card | N
|
||||
title | String | - | 单元格组标题 | N
|
||||
|
||||
### CellGroup 外部样式类
|
||||
类名 | 说明
|
||||
-- | --
|
||||
t-class | 根节点样式类
|
||||
t-class-title | 标题样式类
|
||||
|
||||
### CSS 变量
|
||||
组件提供了下列 CSS 变量,可用于自定义样式。
|
||||
名称 | 默认值 | 描述
|
||||
-- | -- | --
|
||||
--td-cell-group-border-color | @border-color | -
|
||||
--td-cell-group-title-bg-color | @bg-color-secondarycontainer | -
|
||||
--td-cell-group-title-color | @font-gray-3 | -
|
||||
--td-cell-group-title-font-size | 28rpx | -
|
||||
--td-cell-group-title-line-height | 90rpx | -
|
||||
--td-cell-group-title-padding-left | 32rpx | -
|
||||
--td-cell-bg-color | @bg-color-container | -
|
||||
--td-cell-border-color | @component-stroke | -
|
||||
--td-cell-border-left-space | @cell-horizontal-padding | -
|
||||
--td-cell-border-right-space | 0 | -
|
||||
--td-cell-description-color | @font-gray-2 | -
|
||||
--td-cell-description-font-size | @font-size-base | -
|
||||
--td-cell-description-line-height | 44rpx | -
|
||||
--td-cell-height | auto | -
|
||||
--td-cell-horizontal-padding | 32rpx | -
|
||||
--td-cell-hover-color | @bg-color-secondarycontainer | -
|
||||
--td-cell-image-height | 96rpx | -
|
||||
--td-cell-image-width | 96rpx | -
|
||||
--td-cell-left-icon-color | @brand-color | -
|
||||
--td-cell-left-icon-font-size | 48rpx | -
|
||||
--td-cell-line-height | 48rpx | -
|
||||
--td-cell-note-color | @font-gray-3 | -
|
||||
--td-cell-note-font-size | @font-size-m | -
|
||||
--td-cell-required-color | @error-color-6 | -
|
||||
--td-cell-required-font-size | @font-size-m | -
|
||||
--td-cell-right-icon-color | @font-gray-3 | -
|
||||
--td-cell-right-icon-font-size | 48rpx | -
|
||||
--td-cell-title-color | @font-gray-1 | -
|
||||
--td-cell-title-font-size | @font-size-m | -
|
||||
--td-cell-vertical-padding | 32rpx | -
|
||||
16
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/cell.d.ts
vendored
Normal file
16
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/cell.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
import { SuperComponent, RelationsOptions } from '../common/src/index';
|
||||
export default class Cell extends SuperComponent {
|
||||
externalClasses: string[];
|
||||
relations: RelationsOptions;
|
||||
options: {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
properties: import("./type").TdCellProps;
|
||||
data: {
|
||||
prefix: string;
|
||||
classPrefix: string;
|
||||
isLastChild: boolean;
|
||||
};
|
||||
onClick(e: any): void;
|
||||
jumpLink(urlKey?: string, link?: string): void;
|
||||
}
|
||||
57
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/cell.js
Normal file
57
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/cell.js
Normal file
@ -0,0 +1,57 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
import { SuperComponent, wxComponent } from '../common/src/index';
|
||||
import config from '../common/config';
|
||||
import props from './props';
|
||||
const { prefix } = config;
|
||||
const name = `${prefix}-cell`;
|
||||
let Cell = class Cell extends SuperComponent {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.externalClasses = [
|
||||
`${prefix}-class`,
|
||||
`${prefix}-class-title`,
|
||||
`${prefix}-class-description`,
|
||||
`${prefix}-class-note`,
|
||||
`${prefix}-class-hover`,
|
||||
`${prefix}-class-image`,
|
||||
`${prefix}-class-left`,
|
||||
`${prefix}-class-left-icon`,
|
||||
`${prefix}-class-right`,
|
||||
`${prefix}-class-right-icon`,
|
||||
];
|
||||
this.relations = {
|
||||
'../cell-group/cell-group': {
|
||||
type: 'parent',
|
||||
},
|
||||
};
|
||||
this.options = {
|
||||
multipleSlots: true,
|
||||
};
|
||||
this.properties = props;
|
||||
this.data = {
|
||||
prefix,
|
||||
classPrefix: name,
|
||||
isLastChild: false,
|
||||
};
|
||||
}
|
||||
onClick(e) {
|
||||
this.triggerEvent('click', e.detail);
|
||||
this.jumpLink();
|
||||
}
|
||||
jumpLink(urlKey = 'url', link = 'jumpType') {
|
||||
const url = this.data[urlKey];
|
||||
const jumpType = this.data[link];
|
||||
if (url) {
|
||||
wx[jumpType]({ url });
|
||||
}
|
||||
}
|
||||
};
|
||||
Cell = __decorate([
|
||||
wxComponent()
|
||||
], Cell);
|
||||
export default Cell;
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-icon": "../icon/icon",
|
||||
"t-image": "../image/image"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
<wxs src="../common/utils.wxs" module="_" />
|
||||
|
||||
<view
|
||||
style="{{_._style([style, customStyle])}}"
|
||||
class="class {{prefix}}-class {{classPrefix}} {{ !bordered || isLastChild ? classPrefix + '--borderless' : ''}} {{classPrefix}}--{{align}}"
|
||||
hover-class="{{ hover ? classPrefix + '--hover' : ''}}"
|
||||
hover-stay-time="70"
|
||||
bind:tap="onClick"
|
||||
aria-role="{{ariaRole || (arrow ? 'button' : '')}}"
|
||||
aria-label="{{ariaLabel}}"
|
||||
>
|
||||
<view class="{{classPrefix}}__left {{prefix}}-class-left">
|
||||
<t-icon
|
||||
wx:if="{{ leftIcon }}"
|
||||
name="{{leftIcon}}"
|
||||
t-class="{{classPrefix}}__left-icon {{prefix}}-class-left-icon"
|
||||
/>
|
||||
<slot name="left-icon" />
|
||||
<t-image
|
||||
wx:if="{{ image }}"
|
||||
shape="round"
|
||||
t-class="{{classPrefix}}__left-image {{prefix}}-class-image"
|
||||
src="{{ image }}"
|
||||
/>
|
||||
<slot name="image" />
|
||||
</view>
|
||||
<view class="{{classPrefix}}__title">
|
||||
<view class="{{classPrefix}}__title-text {{prefix}}-class-title">
|
||||
<block wx:if="{{ title }}"> {{ title}} </block>
|
||||
<slot name="title" />
|
||||
<block wx:if="{{required}}">
|
||||
<text decode class="{{classPrefix}}--required"> *</text>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class="{{classPrefix}}__description {{prefix}}-class-description">
|
||||
<view wx:if="{{ description }}" class="{{classPrefix}}__description-text">{{description}}</view>
|
||||
<slot name="description" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="{{classPrefix}}__note {{prefix}}-class-note">
|
||||
<text wx:if="{{ note }}">{{note}}</text>
|
||||
<slot name="note" />
|
||||
</view>
|
||||
|
||||
<view class="{{classPrefix}}__right {{prefix}}-class-right">
|
||||
<t-icon
|
||||
wx:if="{{ arrow }}"
|
||||
name="chevron-right"
|
||||
t-class="{{classPrefix}}__right-icon {{prefix}}-class-right-icon"
|
||||
/>
|
||||
<block wx:else>
|
||||
<t-icon name="{{rightIcon}}" t-class="{{classPrefix}}__right-icon {{prefix}}-class-right-icon" />
|
||||
<slot name="right-icon" />
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
122
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/cell.wxss
Normal file
122
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/cell.wxss
Normal file
@ -0,0 +1,122 @@
|
||||
.t-float-left {
|
||||
float: left;
|
||||
}
|
||||
.t-float-right {
|
||||
float: right;
|
||||
}
|
||||
@keyframes tdesign-fade-out {
|
||||
from {
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
.hotspot-expanded.relative {
|
||||
position: relative;
|
||||
}
|
||||
.hotspot-expanded::after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
.t-cell {
|
||||
position: relative;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
padding: var(--td-cell-vertical-padding, 32rpx) var(--td-cell-horizontal-padding, 32rpx);
|
||||
line-height: var(--td-cell-line-height, 48rpx);
|
||||
height: var(--td-cell-height, auto);
|
||||
background-color: var(--td-cell-bg-color, var(--td-bg-color-container, var(--td-font-white-1, #ffffff)));
|
||||
}
|
||||
.t-cell::after {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
content: ' ';
|
||||
pointer-events: none;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
border-bottom: 1px solid var(--td-cell-border-color, var(--td-component-stroke, var(--td-gray-color-3, #e7e7e7)));
|
||||
transform: scaleY(0.5);
|
||||
left: var(--td-cell-border-left-space, var(--td-cell-horizontal-padding, 32rpx));
|
||||
right: var(--td-cell-border-right-space, 0);
|
||||
}
|
||||
.t-cell--borderless::after {
|
||||
display: none;
|
||||
}
|
||||
.t-cell__description {
|
||||
font-size: var(--td-cell-description-font-size, var(--td-font-size-base, 28rpx));
|
||||
line-height: var(--td-cell-description-line-height, 44rpx);
|
||||
color: var(--td-cell-description-color, var(--td-font-gray-2, rgba(0, 0, 0, 0.6)));
|
||||
}
|
||||
.t-cell__description-text {
|
||||
margin-top: calc(var(--td-spacer, 16rpx) / 2);
|
||||
}
|
||||
.t-cell__note {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
color: var(--td-cell-note-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
|
||||
font-size: var(--td-cell-note-font-size, var(--td-font-size-m, 32rpx));
|
||||
}
|
||||
.t-cell__title,
|
||||
.t-cell__note {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.t-cell__title:empty,
|
||||
.t-cell__note:empty {
|
||||
display: none;
|
||||
}
|
||||
.t-cell__title-text {
|
||||
display: flex;
|
||||
font-size: var(--td-cell-title-font-size, var(--td-font-size-m, 32rpx));
|
||||
color: var(--td-cell-title-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
|
||||
font-weight: 400;
|
||||
}
|
||||
.t-cell__left,
|
||||
.t-cell__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.t-cell__left:not(:empty) {
|
||||
margin-right: var(--td-spacer, 16rpx);
|
||||
}
|
||||
.t-cell__left-icon {
|
||||
color: var(--td-cell-left-icon-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
|
||||
font-size: var(--td-cell-left-icon-font-size, 48rpx);
|
||||
}
|
||||
.t-cell__left-image {
|
||||
height: var(--td-cell-image-height, 96rpx);
|
||||
width: var(--td-cell-image-width, 96rpx);
|
||||
}
|
||||
.t-cell__right {
|
||||
margin-left: calc(var(--td-spacer, 16rpx) / 2);
|
||||
}
|
||||
.t-cell__right-icon {
|
||||
color: var(--td-cell-right-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
|
||||
font-size: var(--td-cell-right-icon-font-size, 48rpx);
|
||||
}
|
||||
.t-cell--hover {
|
||||
background-color: var(--td-cell-hover-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));
|
||||
}
|
||||
.t-cell--required {
|
||||
font-size: var(--td-cell-required-font-size, var(--td-font-size-m, 32rpx));
|
||||
color: var(--td-cell-required-color, var(--td-error-color-6, #d54941));
|
||||
}
|
||||
.t-cell--middle {
|
||||
align-items: center;
|
||||
}
|
||||
.t-cell--top {
|
||||
align-items: flex-start;
|
||||
}
|
||||
.t-cell--bottom {
|
||||
align-items: flex-end;
|
||||
}
|
||||
3
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/props.d.ts
vendored
Normal file
3
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/props.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { TdCellProps } from './type';
|
||||
declare const props: TdCellProps;
|
||||
export default props;
|
||||
@ -0,0 +1,51 @@
|
||||
const props = {
|
||||
align: {
|
||||
type: String,
|
||||
value: 'middle',
|
||||
},
|
||||
arrow: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
bordered: {
|
||||
type: Boolean,
|
||||
value: true,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
},
|
||||
externalClasses: {
|
||||
type: Array,
|
||||
},
|
||||
hover: {
|
||||
type: Boolean,
|
||||
},
|
||||
image: {
|
||||
type: String,
|
||||
},
|
||||
jumpType: {
|
||||
type: String,
|
||||
value: 'navigateTo',
|
||||
},
|
||||
leftIcon: {
|
||||
type: String,
|
||||
},
|
||||
note: {
|
||||
type: String,
|
||||
},
|
||||
required: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
rightIcon: {
|
||||
type: String,
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
},
|
||||
url: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
};
|
||||
export default props;
|
||||
71
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/type.d.ts
vendored
Normal file
71
miniprogram/miniprogram_npm/tdesign-miniprogram/cell/type.d.ts
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
export interface TdCellProps {
|
||||
align?: {
|
||||
type: StringConstructor;
|
||||
value?: 'top' | 'middle' | 'bottom';
|
||||
};
|
||||
arrow?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
bordered?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
style?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
description?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
externalClasses?: {
|
||||
type: ArrayConstructor;
|
||||
value?: [
|
||||
't-class',
|
||||
't-class-title',
|
||||
't-class-note',
|
||||
't-class-description',
|
||||
't-class-thumb',
|
||||
't-class-hover',
|
||||
't-class-left',
|
||||
't-class-right'
|
||||
];
|
||||
};
|
||||
hover?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
image?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
jumpType?: {
|
||||
type: StringConstructor;
|
||||
value?: 'switchTab' | 'reLaunch' | 'redirectTo' | 'navigateTo';
|
||||
};
|
||||
leftIcon?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
note?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
required?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
rightIcon?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
title?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
url?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
export {};
|
||||
Reference in New Issue
Block a user