diff --git a/src/config.json b/src/config.json index 84f3a4911a..17053bec22 100644 --- a/src/config.json +++ b/src/config.json @@ -518,6 +518,7 @@ }, { "name": "Input", + "taro": true, "sort": 2, "cName": "输入框", "type": "component", @@ -548,6 +549,7 @@ }, { "version": "3.0.0", + "taro": true, "name": "Calendar", "type": "component", "cName": "日历", @@ -578,6 +580,7 @@ }, { "version": "3.0.0", + "taro": true, "name": "TextArea", "type": "component", "cName": "文本域", diff --git a/src/packages/__VUE/calendar/index.scss b/src/packages/__VUE/calendar/index.scss index 8941a21ebe..f98f0cd4e1 100644 --- a/src/packages/__VUE/calendar/index.scss +++ b/src/packages/__VUE/calendar/index.scss @@ -186,3 +186,6 @@ } } } +.nut-calendar-taro { + height: 65vh; +} diff --git a/src/packages/__VUE/calendar/index.taro.vue b/src/packages/__VUE/calendar/index.taro.vue new file mode 100644 index 0000000000..d9f11370be --- /dev/null +++ b/src/packages/__VUE/calendar/index.taro.vue @@ -0,0 +1,129 @@ + + + + + + + + + + + + diff --git a/src/packages/__VUE/calendaritem/index.scss b/src/packages/__VUE/calendaritem/index.scss index 146ce6aeca..077b42e629 100644 --- a/src/packages/__VUE/calendaritem/index.scss +++ b/src/packages/__VUE/calendaritem/index.scss @@ -190,3 +190,6 @@ } } } +.nut-calendar-taro { + height: 65vh; +} diff --git a/src/packages/__VUE/calendaritem/index.vue b/src/packages/__VUE/calendaritem/index.vue index 62b30c97ac..35de50c0da 100644 --- a/src/packages/__VUE/calendaritem/index.vue +++ b/src/packages/__VUE/calendaritem/index.vue @@ -1,6 +1,6 @@ + + * + {{ label }} + + + {{ modelValue }} + + + + + + + + + + diff --git a/src/packages/__VUE/textarea/index.scss b/src/packages/__VUE/textarea/index.scss index 128b1431f5..65915bb5dd 100644 --- a/src/packages/__VUE/textarea/index.scss +++ b/src/packages/__VUE/textarea/index.scss @@ -1,6 +1,7 @@ .nut-textarea { position: relative; width: 100%; + box-sizing: border-box; display: flex; background: $white; font-size: $textarea-font; diff --git a/src/packages/__VUE/textarea/index.taro.vue b/src/packages/__VUE/textarea/index.taro.vue new file mode 100644 index 0000000000..fb5dff503f --- /dev/null +++ b/src/packages/__VUE/textarea/index.taro.vue @@ -0,0 +1,132 @@ + + + + {{ modelValue }} + + + + {{ modelValue.length }}/{{ maxLength }} + + + + + diff --git a/src/sites/mobile-taro/vue/src/app.config.ts b/src/sites/mobile-taro/vue/src/app.config.ts index 3d799189de..b8a07d1994 100644 --- a/src/sites/mobile-taro/vue/src/app.config.ts +++ b/src/sites/mobile-taro/vue/src/app.config.ts @@ -1,5 +1,8 @@ export default { pages: [ + 'pages/textarea/index', + 'pages/calendar/index', + 'pages/input/index', 'pages/swiper/index', 'pages/actionsheet/index', 'pages/popup/index', diff --git a/src/sites/mobile-taro/vue/src/pages/calendar/index.vue b/src/sites/mobile-taro/vue/src/pages/calendar/index.vue new file mode 100644 index 0000000000..f07fc4e14b --- /dev/null +++ b/src/sites/mobile-taro/vue/src/pages/calendar/index.vue @@ -0,0 +1,154 @@ + + + 基础用法 + + + + + + + + + + + + + + + 自定义日历-自动回填 + + + + + + + + 平铺展示 + + + + + + + + + + diff --git a/src/sites/mobile-taro/vue/src/pages/input/index.vue b/src/sites/mobile-taro/vue/src/pages/input/index.vue new file mode 100644 index 0000000000..ab78ab0fc1 --- /dev/null +++ b/src/sites/mobile-taro/vue/src/pages/input/index.vue @@ -0,0 +1,107 @@ + + + 基础用法 + + + 禁用输入框 + + + 限制输入长度 + + 自定义类型 + + + + + + + + + diff --git a/src/sites/mobile-taro/vue/src/pages/textarea/index.vue b/src/sites/mobile-taro/vue/src/pages/textarea/index.vue new file mode 100644 index 0000000000..57886055c7 --- /dev/null +++ b/src/sites/mobile-taro/vue/src/pages/textarea/index.vue @@ -0,0 +1,41 @@ + + + 基础用法 + + 显示字数统计 + + 高度自定义,拉伸 + + 只读状态 + + 禁用 + + + + + + +