0.0.8 • Published 6 months ago

@moment-design/promotion-code v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

推广码组件

使用组件

安装依赖

npm install @moment-design/premotion-code --save

使用组件

<template>
  <m-button type="primary" @click="open">打开推广码</m-button>
  <PromotionCode ref="refPromotionCode"></PromotionCode>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import PromotionCode from '../index.vue';

const refPromotionCode = ref();
const open = () => {
  refPromotionCode.value.open({
    // 二维码图片地址
    qrcode: '',
    // 弹窗标题文案
    title: '推广码',
    // 推广二维码文案
    codeText: '推广二维码',
    // 确认按钮文案
    confirmText: '下载二维码',
    // 推广链接文案
    linkText: '推广链接',
    // 推广链接
    link: 'https://pres.71360.com/vvZj3a',
  });
};
</script>

API

Expose

事件名描述参数
open打开推广码组件OpenConfig

OpenConfig

参数名描述类型默认值
baseUrl下载接口地址前缀string-
qrcode二维码图片地址string-
qrcodeText二维码文本string-
title弹窗标题文案string'推广码'
codeText推广二维码文案string'推广二维码'
confirmText确认按钮文案string'下载二维码'
linkText推广链接文案string'推广链接'
link推广链接string-
copy是否可复制booleantrue

Slot

名称描述参数
more扩展展示信息-
button扩展底部按钮-
0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago