From 6277cf12f0d8edb55202941e28b389ff7eaae1b1 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Thu, 25 Mar 2021 14:43:37 +0800 Subject: [PATCH] Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components --- forms/input/CInput.vue | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/forms/input/CInput.vue b/forms/input/CInput.vue index c09081c..67e15b8 100644 --- a/forms/input/CInput.vue +++ b/forms/input/CInput.vue @@ -5,14 +5,14 @@ <template> <AtInput - :name="itemData.name" - :title="itemData.label" + :name="itemRes.name" + :title="itemRes.label" :type="type" :placeholder="placeholder" - :required="itemData.required" - :error="itemData.error" - :value="itemData.formData[itemData.name]" - :onChange="evt=>itemData.onChange(evt)" + :required="itemRes.required" + :error="itemRes.error" + :value="itemRes.formData[itemRes.name]" + :onChange="evt=>itemRes.onChange(evt)" > <slot /> </AtInput> @@ -20,6 +20,7 @@ <script> import { AtInput } from 'taro-ui-vue'; +import './cInput.scss'; export default { name: 'CInput', @@ -29,7 +30,8 @@ props: { type: String, placeholder: String, - itemData: Object, + itemRes: Object, }, + mounted() {}, }; </script> \ No newline at end of file -- Gitblit v1.9.1