From da25434b85fc5b4321c429bf95e719d00ec395bb Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Thu, 11 Jan 2024 16:21:16 +0800 Subject: [PATCH] 定位优化 --- uni_modules/uview-ui/components/u-input/props.js | 187 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 187 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-input/props.js b/uni_modules/uview-ui/components/u-input/props.js new file mode 100644 index 0000000..2c50870 --- /dev/null +++ b/uni_modules/uview-ui/components/u-input/props.js @@ -0,0 +1,187 @@ +export default { + props: { + // ������������ + value: { + type: [String, Number], + default: uni.$u.props.input.value + }, + // ��������������� + // number-���������������������app-vue���������������������������app-nvue��������������������������������������� + // idcard-������������������������������������������������������QQ��������� + // digit-������������������������������App���nvue������������������������������������������������QQ��������� + // text-������������������ + type: { + type: String, + default: uni.$u.props.input.type + }, + // ������ textarea ������������ position:fixed ������������������������������������ fixed ��� true��� + // ������������������������������������������������������������������������QQ��������� + fixed: { + type: Boolean, + default: uni.$u.props.input.fixed + }, + // ��������������������� + disabled: { + type: Boolean, + default: uni.$u.props.input.disabled + }, + // ��������������������������� + disabledColor: { + type: String, + default: uni.$u.props.input.disabledColor + }, + // ������������������������ + clearable: { + type: Boolean, + default: uni.$u.props.input.clearable + }, + // ������������������ + password: { + type: Boolean, + default: uni.$u.props.input.password + }, + // ������������������������������ -1 ������������������������������ + maxlength: { + type: [String, Number], + default: uni.$u.props.input.maxlength + }, + // ������������������������������ + placeholder: { + type: String, + default: uni.$u.props.input.placeholder + }, + // ������placeholder���������������������������������������style���������scoped���������������������������/deep/ + placeholderClass: { + type: String, + default: uni.$u.props.input.placeholderClass + }, + // ������placeholder��������� + placeholderStyle: { + type: [String, Object], + default: uni.$u.props.input.placeholderStyle + }, + // ��������������������������������������� type ="text"���type ="textarea"��������� + showWordLimit: { + type: Boolean, + default: uni.$u.props.input.showWordLimit + }, + // ���������������������������������������������send|search|next|go|done������������������uni-app������ + // https://uniapp.dcloud.io/component/input + // https://uniapp.dcloud.io/component/textarea + confirmType: { + type: String, + default: uni.$u.props.input.confirmType + }, + // ������������������������������������������������������������H5������ + confirmHold: { + type: Boolean, + default: uni.$u.props.input.confirmHold + }, + // focus������������������������������������������������������������������ + holdKeyboard: { + type: Boolean, + default: uni.$u.props.input.holdKeyboard + }, + // ������������������ + // ��� H5 ������������������������������������������������������������������������������������������������nvue ������������������������������������ focus()���blur() ������������������ + focus: { + type: Boolean, + default: uni.$u.props.input.focus + }, + // ������������������������������������������������������App3.0.0+������ + autoBlur: { + type: Boolean, + default: uni.$u.props.input.autoBlur + }, + // ������������ iOS ������������������������������������������������type=textarea��������� + disableDefaultPadding: { + type: Boolean, + default: uni.$u.props.input.disableDefaultPadding + }, + // ������focus������������������ + cursor: { + type: [String, Number], + default: uni.$u.props.input.cursor + }, + // ������������������������������������������ + cursorSpacing: { + type: [String, Number], + default: uni.$u.props.input.cursorSpacing + }, + // ���������������������������������������������������selection-end������������ + selectionStart: { + type: [String, Number], + default: uni.$u.props.input.selectionStart + }, + // ���������������������������������������������������selection-start������������ + selectionEnd: { + type: [String, Number], + default: uni.$u.props.input.selectionEnd + }, + // ������������������������������������������ + adjustPosition: { + type: Boolean, + default: uni.$u.props.input.adjustPosition + }, + // ���������������������������������������������left|center|right + inputAlign: { + type: String, + default: uni.$u.props.input.inputAlign + }, + // ������������������������ + fontSize: { + type: [String, Number], + default: uni.$u.props.input.fontSize + }, + // ��������������������� + color: { + type: String, + default: uni.$u.props.input.color + }, + // ��������������������� + prefixIcon: { + type: String, + default: uni.$u.props.input.prefixIcon + }, + // ��������������������������������������� + prefixIconStyle: { + type: [String, Object], + default: uni.$u.props.input.prefixIconStyle + }, + // ��������������������� + suffixIcon: { + type: String, + default: uni.$u.props.input.suffixIcon + }, + // ��������������������������������������� + suffixIconStyle: { + type: [String, Object], + default: uni.$u.props.input.suffixIconStyle + }, + // ���������������surround-���������������bottom-���������������none-��������� + border: { + type: String, + default: uni.$u.props.input.border + }, + // ������������������disabled������������������disabled���������������������readonly��������� + readonly: { + type: Boolean, + default: uni.$u.props.input.readonly + }, + // ������������������circle-���������square-������ + shape: { + type: String, + default: uni.$u.props.input.shape + }, + // ������������������������������������������������ + formatter: { + type: [Function, null], + default: uni.$u.props.input.formatter + }, + // ��������������������������������������������������������� + ignoreCompositionEvent: { + type: Boolean, + default: true + } + } +} -- Gitblit v1.8.0