From d1448cb0ef10f358bb7bddb4e1ec268515e0b787 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 15 七月 2025 11:46:57 +0800 Subject: [PATCH] 项目初始化 --- uni_modules/uview-ui/components/u-count-to/props.js | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-count-to/props.js b/uni_modules/uview-ui/components/u-count-to/props.js new file mode 100644 index 0000000..86873c1 --- /dev/null +++ b/uni_modules/uview-ui/components/u-count-to/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 寮�濮嬬殑鏁板�硷紝榛樿浠�0澧為暱鍒版煇涓�涓暟 + startVal: { + type: [String, Number], + default: uni.$u.props.countTo.startVal + }, + // 瑕佹粴鍔ㄧ殑鐩爣鏁板�硷紝蹇呴』 + endVal: { + type: [String, Number], + default: uni.$u.props.countTo.endVal + }, + // 婊氬姩鍒扮洰鏍囨暟鍊肩殑鍔ㄧ敾鎸佺画鏃堕棿锛屽崟浣嶄负姣锛坢s锛� + duration: { + type: [String, Number], + default: uni.$u.props.countTo.duration + }, + // 璁剧疆鏁板�煎悗鏄惁鑷姩寮�濮嬫粴鍔� + autoplay: { + type: Boolean, + default: uni.$u.props.countTo.autoplay + }, + // 瑕佹樉绀虹殑灏忔暟浣嶆暟 + decimals: { + type: [String, Number], + default: uni.$u.props.countTo.decimals + }, + // 鏄惁鍦ㄥ嵆灏嗗埌杈剧洰鏍囨暟鍊肩殑鏃跺�欙紝浣跨敤缂撴參婊氬姩鐨勬晥鏋� + useEasing: { + type: Boolean, + default: uni.$u.props.countTo.useEasing + }, + // 鍗佽繘鍒跺垎鍓� + decimal: { + type: [String, Number], + default: uni.$u.props.countTo.decimal + }, + // 瀛椾綋棰滆壊 + color: { + type: String, + default: uni.$u.props.countTo.color + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.countTo.fontSize + }, + // 鏄惁鍔犵矖瀛椾綋 + bold: { + type: Boolean, + default: uni.$u.props.countTo.bold + }, + // 鍗冧綅鍒嗛殧绗︼紝绫讳技閲戦鐨勫垎鍓�(锟�23,321.05涓殑",") + separator: { + type: String, + default: uni.$u.props.countTo.separator + } + } +} -- Gitblit v1.9.3