New Huajishe Check ChaoXing
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
:: BASE_DOC ::
|
||||
|
||||
## API
|
||||
|
||||
### Image Props
|
||||
|
||||
name | type | default | description | required
|
||||
-- | -- | -- | -- | --
|
||||
style | Object | - | CSS(Cascading Style Sheets) | N
|
||||
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
|
||||
error | String / Slot | 'default' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
|
||||
height | String / Number | - | \- | N
|
||||
lazy | Boolean | false | \- | N
|
||||
loading | String / Slot | 'default' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
|
||||
mode | String | scaleToFill | options: scaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right | N
|
||||
shape | String | square | options: circle/round/square | N
|
||||
show-menu-by-longpress | Boolean | false | \- | N
|
||||
src | String | - | src attribute of `<img>`. image File can also be loaded | N
|
||||
t-id | String | - | `1.2.10`。image tag id | N
|
||||
webp | Boolean | false | \- | N
|
||||
width | String / Number | - | \- | N
|
||||
|
||||
### Image Events
|
||||
|
||||
name | params | description
|
||||
-- | -- | --
|
||||
error | - | trigger on image load failed
|
||||
load | - | trigger on image loaded
|
||||
### Image External Classes
|
||||
|
||||
className | Description
|
||||
-- | --
|
||||
t-class | \-
|
||||
t-class-load | \-
|
||||
t-class-image | \-
|
||||
t-class-error | \-
|
||||
|
||||
### CSS Variables
|
||||
|
||||
The component provides the following CSS variables, which can be used to customize styles.
|
||||
Name | Default Value | Description
|
||||
-- | -- | --
|
||||
--td-image-color | @font-gray-3 | -
|
||||
--td-image-loading-bg-color | @bg-color-secondarycontainer | -
|
||||
--td-image-loading-color | @font-gray-3 | -
|
||||
--td-image-round-radius | @radius-default | -
|
||||
@@ -0,0 +1,91 @@
|
||||
---
|
||||
title: Image 图片
|
||||
description: 用于展示效果,主要为上下左右居中裁切、拉伸、平铺等方式。
|
||||
spline: base
|
||||
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-image": "tdesign-miniprogram/image/image"
|
||||
}
|
||||
```
|
||||
|
||||
## 代码演示
|
||||
|
||||
<a href="https://developers.weixin.qq.com/s/wP7zUima7kSF" title="在开发者工具中预览效果" target="_blank" rel="noopener noreferrer"> 在开发者工具中预览效果 </a>
|
||||
|
||||
<blockquote style="background-color: #d9e1ff; font-size: 15px; line-height: 26px;margin: 16px 0 0;padding: 16px; border-radius: 6px; color: #0052d9" >
|
||||
<p>Tips: 请确保开发者工具为打开状态。导入开发者工具后,依次执行:npm i > 构建npm包 > 勾选 "将JS编译成ES5"</p>
|
||||
</blockquote>
|
||||
|
||||
### 裁切样式
|
||||
|
||||
{{ base }}
|
||||
|
||||
### 加载状态
|
||||
|
||||
{{ status }}
|
||||
|
||||
## 常见问题
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
本地图片无法正确引用?
|
||||
<span class="icon">👇</span>
|
||||
</summary>
|
||||
<p style="margin-top: 10px; color: rgba(0, 0, 0, .6)">
|
||||
建议使用绝对路径,而不是相对路径。绝对路径以 app.json 所在位置为基准。
|
||||
</p>
|
||||
</details>
|
||||
|
||||
## API
|
||||
|
||||
### Image Props
|
||||
|
||||
名称 | 类型 | 默认值 | 描述 | 必传
|
||||
-- | -- | -- | -- | --
|
||||
style | Object | - | 样式 | N
|
||||
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
|
||||
error | String / Slot | 'default' | 加载失败时显示的内容。值为 `default` 则表示使用默认加载失败风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `error`;值为其他则表示普通文本内容,如“加载失败”。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
|
||||
height | String / Number | - | 高度,默认单位为`px` | N
|
||||
lazy | Boolean | false | 是否开启图片懒加载 | N
|
||||
loading | String / Slot | 'default' | 加载态内容。值为 `default` 则表示使用默认加载中风格;值为其他则表示普通文本内容,如“加载中”。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
|
||||
mode | String | scaleToFill | 图片裁剪、缩放的模式;[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/image.html)。可选项:scaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right | N
|
||||
shape | String | square | 图片圆角类型。可选项:circle/round/square | N
|
||||
show-menu-by-longpress | Boolean | false | 长按图片显示发送给朋友、收藏、保存图片、搜一搜、打开名片/前往群聊/打开小程序(若图片中包含对应二维码或小程序码)的菜单。 | N
|
||||
src | String | - | 图片链接 | N
|
||||
t-id | String | - | `1.2.10`。图片标签id | N
|
||||
webp | Boolean | false | 默认不解析 webP 格式,只支持网络资源 | N
|
||||
width | String / Number | - | 宽度,默认单位为`px` | N
|
||||
|
||||
### Image Events
|
||||
|
||||
名称 | 参数 | 描述
|
||||
-- | -- | --
|
||||
error | - | 图片加载失败时触发
|
||||
load | - | 图片加载完成时触发
|
||||
### Image External Classes
|
||||
|
||||
类名 | 描述
|
||||
-- | --
|
||||
t-class | 根节点样式类
|
||||
t-class-load | 加载样式类
|
||||
t-class-image | 图片样式类
|
||||
t-class-error | 加载失败样式类
|
||||
|
||||
### CSS Variables
|
||||
|
||||
组件提供了下列 CSS 变量,可用于自定义样式。
|
||||
名称 | 默认值 | 描述
|
||||
-- | -- | --
|
||||
--td-image-color | @font-gray-3 | -
|
||||
--td-image-loading-bg-color | @bg-color-secondarycontainer | -
|
||||
--td-image-loading-color | @font-gray-3 | -
|
||||
--td-image-round-radius | @radius-default | -
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"key": "Image",
|
||||
"label": "图片",
|
||||
"icon": "",
|
||||
"properties": [
|
||||
{
|
||||
"key": "error",
|
||||
"type": ["String", "TNode"],
|
||||
"defaultValue": "'default'",
|
||||
"desc": "加载失败时显示的内容。值为 `default` 则表示使用默认加载失败风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `error`;值为其他则表示普通文本内容,如“加载失败”",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "externalClasses",
|
||||
"type": ["Array"],
|
||||
"defaultValue": "",
|
||||
"desc": "组件类名,分别用于设置加载组件外层元素,中间内容等元素类名",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "lazy",
|
||||
"type": ["Boolean"],
|
||||
"defaultValue": "false",
|
||||
"desc": "是否开启图片懒加载",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "loading",
|
||||
"type": ["String", "TNode"],
|
||||
"defaultValue": "'default'",
|
||||
"desc": "加载态内容。值为 `default` 则表示使用默认加载中风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `loading`;值为其他则表示普通文本内容,如“加载中”",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "MP_EXCLUDE_PROPS",
|
||||
"type": ["String"],
|
||||
"defaultValue": "",
|
||||
"desc": "为避免重复或冲突,需要过滤掉的小程序原生属性",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "MP_PROPS",
|
||||
"type": ["String"],
|
||||
"defaultValue": "",
|
||||
"desc": "[小程序原生属性](https://developers.weixin.qq.com/miniprogram/dev/component/image.html)",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "shape",
|
||||
"type": ["String"],
|
||||
"defaultValue": "square",
|
||||
"desc": "图片圆角类型",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "src",
|
||||
"type": ["String"],
|
||||
"defaultValue": "",
|
||||
"desc": "图片链接",
|
||||
"label": ""
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"key": "error",
|
||||
"desc": "图片加载失败时触发",
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"key": "load",
|
||||
"desc": "图片加载完成时触发",
|
||||
"label": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
26
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/image.d.ts
vendored
Normal file
26
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/image.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { SuperComponent } from '../common/src/index';
|
||||
export default class Image extends SuperComponent {
|
||||
externalClasses: string[];
|
||||
options: {
|
||||
multipleSlots: boolean;
|
||||
};
|
||||
properties: import("./type").TdImageProps;
|
||||
data: {
|
||||
prefix: string;
|
||||
isLoading: boolean;
|
||||
isFailed: boolean;
|
||||
innerStyle: string;
|
||||
classPrefix: string;
|
||||
};
|
||||
preSrc: any;
|
||||
observers: {
|
||||
src(): void;
|
||||
'width, height'(width: any, height: any): void;
|
||||
};
|
||||
methods: {
|
||||
onLoaded(e: any): void;
|
||||
onLoadError(e: any): void;
|
||||
calcSize(width: any, height: any): void;
|
||||
update(): void;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
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 ImageProps from './props';
|
||||
import config from '../common/config';
|
||||
import { addUnit, getRect, appBaseInfo } from '../common/utils';
|
||||
import { compareVersion } from '../common/version';
|
||||
const { prefix } = config;
|
||||
const name = `${prefix}-image`;
|
||||
let Image = class Image extends SuperComponent {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.externalClasses = [`${prefix}-class`, `${prefix}-class-load`, `${prefix}-class-image`, `${prefix}-class-error`];
|
||||
this.options = {
|
||||
multipleSlots: true,
|
||||
};
|
||||
this.properties = ImageProps;
|
||||
this.data = {
|
||||
prefix,
|
||||
isLoading: true,
|
||||
isFailed: false,
|
||||
innerStyle: '',
|
||||
classPrefix: name,
|
||||
};
|
||||
this.preSrc = undefined;
|
||||
this.observers = {
|
||||
src() {
|
||||
if (this.preSrc === this.properties.src)
|
||||
return;
|
||||
this.update();
|
||||
},
|
||||
'width, height'(width, height) {
|
||||
this.calcSize(width, height);
|
||||
},
|
||||
};
|
||||
this.methods = {
|
||||
onLoaded(e) {
|
||||
const sdkVersion = appBaseInfo.SDKVersion;
|
||||
const { mode, tId } = this.properties;
|
||||
const isInCompatible = compareVersion(sdkVersion, '2.10.3') < 0;
|
||||
if (mode === 'heightFix' && isInCompatible) {
|
||||
const { height: picHeight, width: picWidth } = e.detail;
|
||||
getRect(this, `#${tId || 'image'}`).then((rect) => {
|
||||
const { height } = rect;
|
||||
const resultWidth = ((height / picHeight) * picWidth).toFixed(2);
|
||||
this.setData({ innerStyle: `height: ${addUnit(height)}; width: ${resultWidth}px;` });
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
isLoading: false,
|
||||
isFailed: false,
|
||||
});
|
||||
this.triggerEvent('load', e.detail);
|
||||
},
|
||||
onLoadError(e) {
|
||||
this.setData({
|
||||
isLoading: false,
|
||||
isFailed: true,
|
||||
});
|
||||
this.triggerEvent('error', e.detail);
|
||||
},
|
||||
calcSize(width, height) {
|
||||
let innerStyle = '';
|
||||
if (width) {
|
||||
innerStyle += `width: ${addUnit(width)};`;
|
||||
}
|
||||
if (height) {
|
||||
innerStyle += `height: ${addUnit(height)};`;
|
||||
}
|
||||
this.setData({
|
||||
innerStyle,
|
||||
});
|
||||
},
|
||||
update() {
|
||||
const { src } = this.properties;
|
||||
this.preSrc = src;
|
||||
if (!src) {
|
||||
this.onLoadError({ errMsg: '图片链接为空' });
|
||||
}
|
||||
else {
|
||||
this.setData({
|
||||
isLoading: true,
|
||||
isFailed: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
};
|
||||
Image = __decorate([
|
||||
wxComponent()
|
||||
], Image);
|
||||
export default Image;
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"component": true,
|
||||
"styleIsolation": "apply-shared",
|
||||
"usingComponents": {
|
||||
"t-loading": "../loading/loading",
|
||||
"t-icon": "../icon/icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<wxs src="../common/utils.wxs" module="_" />
|
||||
|
||||
<view style="{{_._style([style, customStyle])}}" class="class {{prefix}}-class {{classPrefix}}">
|
||||
<!-- 加载中占位 -->
|
||||
<view
|
||||
wx:if="{{isLoading}}"
|
||||
style="{{_._style([innerStyle])}}"
|
||||
class="{{classPrefix}}__mask {{classPrefix}}--loading {{classPrefix}}--shape-{{shape}}"
|
||||
aria-hidden="{{ariaHidden}}"
|
||||
>
|
||||
<t-loading
|
||||
wx:if="{{loading === 'default'}}"
|
||||
theme="dots"
|
||||
size="44rpx"
|
||||
loading
|
||||
inherit-color
|
||||
t-class="t-class-load"
|
||||
t-class-text="{{classPrefix}}--loading-text"
|
||||
></t-loading>
|
||||
<view wx:elif="{{loading !== '' && loading !== 'slot'}}" class="{{classPrefix}}__common {{prefix}}-class-load">
|
||||
{{loading}}
|
||||
</view>
|
||||
<slot wx:else name="loading" />
|
||||
</view>
|
||||
<!-- 加载失败占位 -->
|
||||
<view
|
||||
wx:elif="{{isFailed}}"
|
||||
style="{{_._style([innerStyle])}}"
|
||||
class="{{classPrefix}}__mask {{classPrefix}}--failed {{classPrefix}}--shape-{{shape}} {{prefix}}-class-error"
|
||||
aria-hidden="{{ariaHidden}}"
|
||||
>
|
||||
<view wx:if="{{error === 'default'}}" style="font-size: 44rpx" class="{{prefix}}-class-load">
|
||||
<t-icon name="close" aria-role="img" aria-label="加载失败" />
|
||||
</view>
|
||||
<view wx:elif="{{error && error !== 'slot'}}" class="{{classPrefix}}__common {{prefix}}-class-load">
|
||||
{{error}}
|
||||
</view>
|
||||
<slot wx:else name="error" />
|
||||
</view>
|
||||
<!-- 图片 -->
|
||||
<image
|
||||
id="{{tId||'image'}}"
|
||||
wx:if="{{ !isFailed }}"
|
||||
style="{{_._style([innerStyle])}}"
|
||||
class="{{classPrefix}}__img {{classPrefix}}--shape-{{shape}} {{isLoading ? classPrefix + '--lazy' : ''}} {{prefix}}-class-image"
|
||||
src="{{src}}"
|
||||
mode="{{mode}}"
|
||||
webp="{{webp}}"
|
||||
lazy-load="{{lazy}}"
|
||||
bind:load="onLoaded"
|
||||
bind:error="onLoadError"
|
||||
show-menu-by-longpress="{{showMenuByLongpress}}"
|
||||
aria-hidden="{{ariaHidden || isLoading || isFailed}}"
|
||||
aria-label="{{ariaLabel}}"
|
||||
/>
|
||||
</view>
|
||||
@@ -0,0 +1,71 @@
|
||||
.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-image {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
.t-image__mask,
|
||||
.t-image__img {
|
||||
color: var(--td-image-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, 0.4))));
|
||||
vertical-align: top;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
}
|
||||
.t-image__mask {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--td-image-loading-bg-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));
|
||||
color: var(--td-image-loading-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, 0.4))));
|
||||
}
|
||||
.t-image--loading-text {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.t-image__common {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.t-image--lazy {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.t-image--shape-circle {
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.t-image--shape-round {
|
||||
border-radius: var(--td-image-round-radius, var(--td-radius-default, 12rpx));
|
||||
overflow: hidden;
|
||||
}
|
||||
.t-image--shape-square {
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
4
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/index.d.ts
vendored
Normal file
4
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/index.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { TdImageProps } from './type';
|
||||
export declare type ImageProps = TdImageProps;
|
||||
export * from './props';
|
||||
export * from './image';
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './props';
|
||||
export * from './image';
|
||||
3
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/props.d.ts
vendored
Normal file
3
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/props.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { TdImageProps } from './type';
|
||||
declare const props: TdImageProps;
|
||||
export default props;
|
||||
@@ -0,0 +1,45 @@
|
||||
const props = {
|
||||
error: {
|
||||
type: String,
|
||||
value: 'default',
|
||||
},
|
||||
height: {
|
||||
type: null,
|
||||
},
|
||||
lazy: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
loading: {
|
||||
type: String,
|
||||
value: 'default',
|
||||
},
|
||||
mode: {
|
||||
type: String,
|
||||
value: 'scaleToFill',
|
||||
},
|
||||
shape: {
|
||||
type: String,
|
||||
value: 'square',
|
||||
},
|
||||
showMenuByLongpress: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
src: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
tId: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
webp: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
width: {
|
||||
type: null,
|
||||
},
|
||||
};
|
||||
export default props;
|
||||
46
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/type.d.ts
vendored
Normal file
46
HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/image/type.d.ts
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
export interface TdImageProps {
|
||||
error?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
height?: {
|
||||
type: null;
|
||||
value?: string | number;
|
||||
};
|
||||
lazy?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
loading?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
mode?: {
|
||||
type: StringConstructor;
|
||||
value?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
|
||||
};
|
||||
shape?: {
|
||||
type: StringConstructor;
|
||||
value?: 'circle' | 'round' | 'square';
|
||||
};
|
||||
showMenuByLongpress?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
src?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
tId?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
webp?: {
|
||||
type: BooleanConstructor;
|
||||
value?: boolean;
|
||||
};
|
||||
width?: {
|
||||
type: null;
|
||||
value?: string | number;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Reference in New Issue
Block a user