0.0.7 • Published 2 years ago

fansheng-dialog v0.0.7

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

安装

npm i unionlife-ui

快速上手

import { Dialog } from "unionlife-ui";

1)只有一个按钮的 confirm 提示框
Dialog.confirm({ message: "message" }).then(() => {
  console.log("点击了确定");
});

2)包含两个按钮的 alert 提示框
Dialog.alert({
  title: "提示",
  message: "提示信息",
  cancelText: "取消",
  confirmText: "确定",
}).then(() => {
  console.log("点击了确定");
}).catch(() => {
  console.log("点击了取消");
});
1、import { FansPdfPreview } from "unionlife-ui";

2、components: { "fans-pdf-preview": FansPdfPreview }

3、data() {
    return {
      pdfUrl: "",
    }
  }

4、<fans-pdf-preview v-model="pdfUrl"></fans-pdf-preview>

5、this.pdfUrl = "XXX";
0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago