0.0.6 • Published 4 years ago

hft-vant-common v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

文档

  1. 引入
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);
  1. 参数
export class LookMaxItem {
  imgList: Array<{url: string, des?: string}> = new Array<{url: string, des?: string}>();
  index: number = 0;
}
  1. 回调事件