flag-ui-preview

1.0.2 • Public • Published

发送类型通用组件

针对一信通平台短信发送内容预览的通用组件

安装

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

Readme

Keywords

Package Sidebar

Install

npm i flag-ui-preview

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

17 kB

Total Files

5

Last publish

Collaborators

  • flaginfo