Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
fc58559a
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6067
Star
93
Fork
166
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
fc58559a
编写于
3月 07, 2024
作者:
taohebin@dcloud.io
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 批量处理 input&textarea 增加maxlength属性
上级
db27b546
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
14 addition
and
14 deletion
+14
-14
components/input-data/input-data.vue
components/input-data/input-data.vue
+1
-1
pages/API/choose-image/choose-image.uvue
pages/API/choose-image/choose-image.uvue
+3
-3
pages/API/facial-recognition-verify/facial-recognition-verify.uvue
.../facial-recognition-verify/facial-recognition-verify.uvue
+2
-2
pages/API/request/request.uvue
pages/API/request/request.uvue
+1
-1
pages/API/storage/storage.uvue
pages/API/storage/storage.uvue
+2
-2
pages/component/form/form.uvue
pages/component/form/form.uvue
+1
-1
pages/component/unicloud-db-contacts/add.uvue
pages/component/unicloud-db-contacts/add.uvue
+1
-1
pages/component/unicloud-db-contacts/edit.uvue
pages/component/unicloud-db-contacts/edit.uvue
+1
-1
pages/component/web-view/web-view.uvue
pages/component/web-view/web-view.uvue
+1
-1
pages/template/long-list/long-list.uvue
pages/template/long-list/long-list.uvue
+1
-1
未找到文件。
components/input-data/input-data.vue
浏览文件 @
fc58559a
...
...
@@ -82,7 +82,7 @@
</view>
</view>
<view
class=
"input-wrapper"
>
<input
class=
"uni-input"
:type=
"inputType"
:value=
"inputClearValue"
:placeholder=
"title"
@
input=
"input"
@
blur=
"blur"
<input
class=
"uni-input"
:type=
"inputType"
:value=
"inputClearValue"
:placeholder=
"title"
maxlength=
"-1"
@
input=
"input"
@
blur=
"blur"
@
focus=
"focus"
/>
<image
class=
"input-wrapper_image"
src=
"/static/icons/clear.png"
v-if=
"showClearIcon"
@
click=
"clearIcon"
>
</image>
...
...
pages/API/choose-image/choose-image.uvue
浏览文件 @
fc58559a
...
...
@@ -46,7 +46,7 @@
图片质量(%)
</view>
<view class="uni-list-cell-right">
<input :value="cropPercent" @confirm="cropPercentConfim" type="number" />
<input :value="cropPercent" @confirm="cropPercentConfim" type="number"
maxlength="-1"
/>
</view>
</view>
<view class="uni-list-cell cell-pd">
...
...
@@ -54,7 +54,7 @@
裁剪宽度(px)
</view>
<view class="uni-list-cell-right">
<input :value="cropWidth" @confirm="cropWidthConfim" type="number" />
<input :value="cropWidth" @confirm="cropWidthConfim" type="number"
maxlength="-1"
/>
</view>
</view>
<view class="uni-list-cell cell-pd">
...
...
@@ -62,7 +62,7 @@
裁剪高度(px)
</view>
<view class="uni-list-cell-right">
<input :value="cropHeight" @confirm="cropHeightConfim" type="number" />
<input :value="cropHeight" @confirm="cropHeightConfim" type="number"
maxlength="-1"
/>
</view>
</view>
<view class="uni-list-cell cell-pd">
...
...
pages/API/facial-recognition-verify/facial-recognition-verify.uvue
浏览文件 @
fc58559a
...
...
@@ -7,11 +7,11 @@
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v uni-common-mt">
<input class="uni-input" type="text" v-model="realName" name="real-name"
placeholder="姓名" />
placeholder="姓名"
maxlength="-1"
/>
</view>
<view class="uni-btn-v uni-common-mt">
<input class="uni-input" type="text" v-model="idCard" name="id-card"
placeholder="身份证号" />
placeholder="身份证号"
maxlength="-1"
/>
</view>
<view class="uni-btn-v uni-common-mt">
<button type="primary" @click="facialRecognition">开始人脸识别</button>
...
...
pages/API/request/request.uvue
浏览文件 @
fc58559a
...
...
@@ -2,7 +2,7 @@
<view style="flex: 1;">
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-common-mt" style="border-width: 2px;border-style: solid; border-radius: 4px;">
<textarea :value="res" class="uni-textarea"></textarea>
<textarea :value="res" class="uni-textarea"
maxlength="-1"
></textarea>
</view>
<view>
<text>地址 : {{ host + url}}</text>
...
...
pages/API/storage/storage.uvue
浏览文件 @
fc58559a
...
...
@@ -11,7 +11,7 @@
<view class="uni-label">key</view>
</view>
<view class="uni-list-cell-db">
<input class="uni-input" type="text" placeholder="请输入key" name="key" :value="key" @input="keyChange" />
<input class="uni-input" type="text" placeholder="请输入key" name="key" :value="key"
maxlength="-1"
@input="keyChange" />
</view>
</view>
<view class="uni-list-cell">
...
...
@@ -20,7 +20,7 @@
</view>
<view class="uni-list-cell-db">
<input class="uni-input" type="text" placeholder="请输入value" name="data"
:value="typeof data === 'string' ? data : JSON.stringify(data)" @input="dataChange" />
:value="typeof data === 'string' ? data : JSON.stringify(data)"
maxlength="-1"
@input="dataChange" />
</view>
</view>
</view>
...
...
pages/component/form/form.uvue
浏览文件 @
fc58559a
...
...
@@ -6,7 +6,7 @@
<form @submit="onFormSubmit" @reset="onFormReset">
<view class="uni-form-item">
<view class="title">姓名</view>
<input class="uni-input" name="nickname" :value="nickname" placeholder="请输入姓名" />
<input class="uni-input" name="nickname" :value="nickname" placeholder="请输入姓名"
maxlength="-1"
/>
</view>
<view class="uni-form-item">
<view class="title">性别</view>
...
...
pages/component/unicloud-db-contacts/add.uvue
浏览文件 @
fc58559a
...
...
@@ -16,7 +16,7 @@
</view>
<view class="form-item">
<text class="form-item-label">备注</text>
<textarea class="form-item-input" placeholder="备注" name="comment" />
<textarea class="form-item-input" placeholder="备注" name="comment"
maxlength="-1"
/>
</view>
<view class="form-item">
<text class="form-item-label">性别</text>
...
...
pages/component/unicloud-db-contacts/edit.uvue
浏览文件 @
fc58559a
...
...
@@ -19,7 +19,7 @@
</view>
<view class="form-item">
<text class="form-item-label">备注</text>
<textarea class="form-item-input" placeholder="备注" name="comment" :value="data[0].getString('comment')" />
<textarea class="form-item-input" placeholder="备注" name="comment"
maxlength="-1"
:value="data[0].getString('comment')" />
</view>
<view class="form-item">
<text class="form-item-label">性别</text>
...
...
pages/component/web-view/web-view.uvue
浏览文件 @
fc58559a
...
...
@@ -6,7 +6,7 @@
<!-- #ifdef APP -->
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-input-v">
<input class="uni-input" confirmType="go" placeholder="输入网址跳转" @confirm="confirm" />
<input class="uni-input" confirmType="go" placeholder="输入网址跳转" @confirm="confirm"
maxlength="-1"
/>
</view>
<view class="uni-row uni-btn-v">
<button class="uni-flex-item" type="primary" @click="back">后退</button>
...
...
pages/template/long-list/long-list.uvue
浏览文件 @
fc58559a
...
...
@@ -2,7 +2,7 @@
<scroll-view ref="pageScrollView" class="page" :rebound="false"
@startnestedscroll="onStartNestedScroll" @nestedprescroll="onNestedPreScroll">
<view ref="header" class="search-bar">
<input placeholder="搜索..." />
<input placeholder="搜索..."
maxlength="-1"
/>
</view>
<view class="swiper-list">
<scroll-view ref="tabScroll" class="swiper-tabs" direction="horizontal" :show-scrollbar="false">
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录