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-text/props.js | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 110 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-text/props.js b/uni_modules/uview-ui/components/u-text/props.js new file mode 100644 index 0000000..d330075 --- /dev/null +++ b/uni_modules/uview-ui/components/u-text/props.js @@ -0,0 +1,110 @@ +export default { + props: { + // ������������ + type: { + type: String, + default: uni.$u.props.text.type + }, + // ������������ + show: { + type: Boolean, + default: uni.$u.props.text.show + }, + // ������������ + text: { + type: [String, Number], + default: uni.$u.props.text.text + }, + // ������������ + prefixIcon: { + type: String, + default: uni.$u.props.text.prefixIcon + }, + // ������������ + suffixIcon: { + type: String, + default: uni.$u.props.text.suffixIcon + }, + // ��������������������������� + // text-���������������price-���������phone-������������name-���������date-���������link-��������� + mode: { + type: String, + default: uni.$u.props.text.mode + }, + // mode=link��������������������� + href: { + type: String, + default: uni.$u.props.text.href + }, + // ��������������� + format: { + type: [String, Function], + default: uni.$u.props.text.format + }, + // mode=phone������������������������������������ + call: { + type: Boolean, + default: uni.$u.props.text.call + }, + // ������������������������ + openType: { + type: String, + default: uni.$u.props.text.openType + }, + // ���������������������normal + bold: { + type: Boolean, + default: uni.$u.props.text.bold + }, + // ������������ + block: { + type: Boolean, + default: uni.$u.props.text.block + }, + // ������������������������������������������������������������������������������ + lines: { + type: [String, Number], + default: uni.$u.props.text.lines + }, + // ������������ + color: { + type: String, + default: uni.$u.props.text.color + }, + // ������������ + size: { + type: [String, Number], + default: uni.$u.props.text.size + }, + // ��������������� + iconStyle: { + type: [Object, String], + default: uni.$u.props.text.iconStyle + }, + // ��������������������������������������������������� none|underline|line-through + decoration: { + type: String, + default: uni.$u.props.text.decoration + }, + // ��������������������������������������������������� + margin: { + type: [Object, String, Number], + default: uni.$u.props.text.margin + }, + // ������������ + lineHeight: { + type: [String, Number], + default: uni.$u.props.text.lineHeight + }, + // ������������������������������left|center|right + align: { + type: String, + default: uni.$u.props.text.align + }, + // ������������������������break-word|normal|anywhere + wordWrap: { + type: String, + default: uni.$u.props.text.wordWrap + } + } +} -- Gitblit v1.8.0