hft-vant-common
v0.0.6
Published
1. 引入 ``` main.ts 引入插件css import "hft-vant-common/lib/hft-vant-common.css";
Downloads
3
Readme
文档
- 引入
main.ts
引入插件css
import "hft-vant-common/lib/hft-vant-common.css";
import {LookMaxImg, LookMaxItem} from "hft-vant-common";
let item = new LookMaxItem();
item.imgList = [
{url: "https://img01.yzcdn.cn/vant/apple-1.jpg", des: "卡还是东金卡号圣诞节卡号的空间啊哈打开"},
{url: "https://img01.yzcdn.cn/vant/apple-2.jpg", des: ",阿曼,安科技"},
];
item.index = 1;
LookMaxImg.show(item);
- 参数
export class LookMaxItem {
imgList: Array<{url: string, des?: string}> = new Array<{url: string, des?: string}>();
index: number = 0;
}
- 回调事件