Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-06 17:02:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
45975e021b58c9282bd075f517ce803e4e16268b
45975e02
1 parent
3d846679
手机录入组件只读显示优化
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
src/components/PhoneField/index.vue
src/components/PhoneField/index.vue
View file @
45975e0
<!--
* @Date: 2022-09-02 10:46:03
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
3-03-17 11:06:49
* @LastEditTime: 202
4-06-06 16:58:14
* @FilePath: /data-table/src/components/PhoneField/index.vue
* @Description: 手机输入框
-->
...
...
@@ -34,7 +34,7 @@
:placeholder="item.component_props.placeholder ? item.component_props.placeholder : '请输入手机号码'"
:rules="rules"
:required="item.component_props.required"
:
disabled
="item.component_props.readonly"
:
readonly
="item.component_props.readonly"
:border="false"
>
</van-field>
...
...
@@ -73,6 +73,9 @@ const props = defineProps({
// 隐藏显示
const HideShow = computed(() => {
return !props.item.component_props.disabled
});
onMounted(() => {
props.item.value = props.item.component_props.default;
})
// web端判断
const readonly = computed(() => wxInfo().isMobile);
...
...
Please
register
or
login
to post a comment