<template>
	<div id="send-cmp">
		<send-content
			v-model="sendContent"
			:config="config"
			:tpldata.sync="tpldata"
			:urls="sendContentUrl"
		>
		</send-content>
	</div>
</template>

<script>
	import SendContent from '../../lib/SendContent.vue'

	export default {
		components: {
			SendContent
		},
		created() {

		},
		props: {},
		data() {
			return {
				//发送内容
				sendContent: {
					//内容
					text: '',
					//敏感词
					sensitiveMatchList: []
				},
				//发送内容配置
				config: {
					//标题
					title: '短信内容', /**/
					//签名
					spSign: '【测试签名】',
					//是否为长短信
					isLongText: false,
					//是否将输入框置灰
					disableEdit: false
				},
				//发送内容url
				sendContentUrl: {
					//敏感词匹配url
					sensitive: '/sensitive-word/match',
					dynDataUpload: 'http://10.0.0.194:8085/dynamicdata/upload',
					dynDataTplDownload: '/notexist'
				},

				//当前选择模版
				tpldata: {
					id: '123',
					text: '尊敬的{姓名,3},您的单号:{单号,15}已经寄出,请保持手机:{手机号,11}畅通,请注意查收'
				}
			}
		},
		computed: {},
		methods: {},
		watch: {},
		mounted: function () {

		}

	}
</script>

<style scoped>
	#send-cmp {
		width:710px;
		padding:10px;
	}
</style>
