From a69aee6376d5564b68439a5e51c3177f1d6f88af Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Sat, 19 Jun 2021 17:08:51 +0800
Subject: [PATCH] 修复升级后 Tools 在 h5 模式下 rem 转 px 函数报错的问题

---
 forms/input/CInput.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/forms/input/CInput.vue b/forms/input/CInput.vue
index 38ec252..c6f16c8 100644
--- a/forms/input/CInput.vue
+++ b/forms/input/CInput.vue
@@ -1,5 +1,5 @@
 /**
- * CInput
+ * CInput - 表单项,文本输入框
  * @author Tevin
  */
 
@@ -16,7 +16,9 @@
     >
         <slot />
     </AtInput>
-</template><script>
+</template>
+
+<script>
 import { AtInput } from 'taro-ui-vue';
 import './cInput.scss';
 
@@ -26,9 +28,12 @@
         AtInput,
     },
     props: {
-        type: String,
-        placeholder: String,
+        // 表单数据资源(表单组件内部机制专用)
         itemRes: Object,
+        // 输入框类型,text、number、password、phone、idcard、digit
+        type: String,
+        // 占位提示
+        placeholder: String,
     },
     mounted() {},
 };

--
Gitblit v1.9.1