针对一信通平台短信发送内容预览的通用组件
npm i --save flag-ui-preview
1. vue
import sendType from 'flag-ui-preview'
传入参数 | 类型 | 是否必填 | 默认 | 说明 |
---|---|---|---|---|
sendContent |
Object | 是 | 确定发送类型 | 预览对象 |
{
//基本信息
sendContent: {
//内容
text: '',
//敏感词
sensitiveMatchList: []
}
}
<template>
<div>
<preview ref="previewIt" :sendContent="sendContent"></preview>
</div>
</template>
<script>
import preview from 'flag-ui-preview'
export default {
data() {
return {
sendContent: {
//内容
text: '',
//敏感词
sensitiveMatchList: []
}
}
},
methods: {
previewIt() {
this.$refs.previewIt.showIt()
},
}
components: {
sendType
}
}
</script>
version 1.0.0