From 10053988134544c32afd27ae9065c4aab8ef07ad Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Thu, 14 Jan 2021 16:53:30 +0800 Subject: [PATCH] 取消页面锁定的设计 --- forms/input/CInput.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/forms/input/CInput.vue b/forms/input/CInput.vue index c09081c..38ec252 100644 --- a/forms/input/CInput.vue +++ b/forms/input/CInput.vue @@ -5,21 +5,20 @@ <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> -</template> - -<script> +</template><script> import { AtInput } from 'taro-ui-vue'; +import './cInput.scss'; export default { name: 'CInput', @@ -29,7 +28,8 @@ props: { type: String, placeholder: String, - itemData: Object, + itemRes: Object, }, + mounted() {}, }; </script> \ No newline at end of file -- Gitblit v1.9.1