Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e84b6249
authored
Oct 23, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.21.0_10' into 'v3.21.0'
限制输入 See merge request
!13
2 parents
11321740
27e9e095
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/components/inputNumRange/index.vue
src/components/inputNumRange/index.vue
View file @
e84b624
...
...
@@ -7,7 +7,8 @@
ref=
"input_from"
v-model=
"formData[keyObj.from]"
:disabled=
"disabled"
onkeyup=
"value=value.replace(/^(0+)|[^\d]+/g,'')"
onkeyup=
"value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/^\d
{6}\d+(\.\d+)?/g, value.substr(0,6)).replace(/\.{2,}/g, '').replace('.', '$#$')
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value"
placeholder=""
@input="handleInputChangeFrom"
>
</el-input>
...
...
@@ -19,7 +20,8 @@
<el-input
ref=
"input_to"
v-model=
"formData[keyObj.to]"
onkeyup=
"value=value.replace(/^(0+)|[^\d]+/g,'')"
onkeyup=
"value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/^\d
{6}\d+(\.\d+)?/g, value.substr(0,6)).replace(/\.{2,}/g, '').replace('.', '$#$')
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value"
:disabled="disabled"
placeholder=""
@input="handleInputChangeTo"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment