From 1f76e7315389bf38a697e6db4d4be3fce6425c45 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 28 Dec 2020 11:00:17 +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