Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert virtual keyboard paste #858

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/input-item/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Vue.component(InputItem.name, InputItem)
|is-amount|the input is financial figures|Boolean|`false`|-|
|formation|input text formatting callback function|Function(name, curValue, curPos): {value: curValue, range: curPos}|-|passing parameter `name` is the name of input, `curValue` is input value, `curPos` is the current position of input cursor, and returned `value` is formatted value. `range` is the position of input cursor after formatting|
|clearable|use clear control or not|Boolean|`false`|-|
|is-virtual-keyboard|use financial number keyboard control|Boolean|`false`|support paste<sup class="version-after">2.7.1+</sup>|
|is-virtual-keyboard|use financial number keyboard control|Boolean|`false`|-|
|virtual-keyboard-disorder|if number keys of financial number keyboard is out of order|Boolean|`false`|-|
|virtual-keyboard-ok-text|confirmation key texts of financial number keyboard|String|`confirm`|-|
|virtual-keyboard-vm|financial number keyboard ref name|String|-|generally used for custom number keyboard|
Expand Down
2 changes: 1 addition & 1 deletion components/input-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Vue.component(InputItem.name, InputItem)
|is-amount|表单内容为金融数字|Boolean|`false`|-|
|formation|表单文本格式化回调方法|Function(name, curValue, curPos): {value: curValue, range: curPos}|-|传入参数`name`为表单名称,`curValue`为表单值,`curPos`为表单光标当前所在位置<br/>返回参数`value`格式化值, `range`表单光标格式化后所在位置|
|clearable|表单是否使用清除控件|Boolean|`false`|-|
|is-virtual-keyboard|表单是否使用金融数字键盘控件|Boolean|`false`|支持粘贴<sup class="version-after">2.7.1+</sup>|
|is-virtual-keyboard|表单是否使用金融数字键盘控件|Boolean|`false`|-|
|virtual-keyboard-disorder|金融数字键盘数字键乱序|Boolean|`false`|-|
|virtual-keyboard-ok-text|金融数字键盘确认键文案|String|`确定`|-|
|virtual-keyboard-vm|金融数字键盘`ref`名称|String|-|一般用于自定义键盘|
Expand Down
12 changes: 7 additions & 5 deletions components/input-item/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
}"
@click="$_onFakeInputClick"
>
<input class="md-input-item-input" :placeholder="inputPlaceholder" v-model="inputValue"/>
<!-- <span
<span v-text="inputValue"></span>
<span
class="md-input-item-fake-placeholder"
v-if="inputValue === '' && inputPlaceholder !== ''"
v-text="inputPlaceholder"></span> -->
v-text="inputPlaceholder"></span>
</div>
</template>

Expand Down Expand Up @@ -114,7 +114,8 @@
</md-field-item>
</template>

<script>import Icon from '../icon'
<script>
import Icon from '../icon'
import FieldItem from '../field-item'
import NumberKeyboard from '../number-keyboard'
import {getCursorsPosition, setCursorsPosition} from './cursor'
Expand Down Expand Up @@ -569,7 +570,8 @@ export default {
},
},
}
</script>

</script>

<style lang="stylus">
.md-input-item
Expand Down
Loading