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-notice-bar/props.js | 70 +++++++++++++++++++++++++++++++++++ 1 files changed, 70 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-notice-bar/props.js b/uni_modules/uview-ui/components/u-notice-bar/props.js new file mode 100644 index 0000000..7040c29 --- /dev/null +++ b/uni_modules/uview-ui/components/u-notice-bar/props.js @@ -0,0 +1,70 @@ +export default { + props: { + // 鏄剧ず鐨勫唴瀹癸紝鏁扮粍 + text: { + type: [Array, String], + default: uni.$u.props.noticeBar.text + }, + // 閫氬憡婊氬姩妯″紡锛宺ow-妯悜婊氬姩锛宑olumn-绔栧悜婊氬姩 + direction: { + type: String, + default: uni.$u.props.noticeBar.direction + }, + // direction = row鏃讹紝鏄惁浣跨敤姝ヨ繘褰㈠紡婊氬姩 + step: { + type: Boolean, + default: uni.$u.props.noticeBar.step + }, + // 鏄惁鏄剧ず宸︿晶鐨勯煶閲忓浘鏍� + icon: { + type: String, + default: uni.$u.props.noticeBar.icon + }, + // 閫氬憡妯″紡锛宭ink-鏄剧ず鍙崇澶达紝closable-鏄剧ず鍙充晶鍏抽棴鍥炬爣 + mode: { + type: String, + default: uni.$u.props.noticeBar.mode + }, + // 鏂囧瓧棰滆壊锛屽悇鍥炬爣涔熶細浣跨敤鏂囧瓧棰滆壊 + color: { + type: String, + default: uni.$u.props.noticeBar.color + }, + // 鑳屾櫙棰滆壊 + bgColor: { + type: String, + default: uni.$u.props.noticeBar.bgColor + }, + // 姘村钩婊氬姩鏃剁殑婊氬姩閫熷害锛屽嵆姣忕婊氬姩澶氬皯px(px)锛岃繖鏈夊埄浜庢帶鍒舵枃瀛楁棤璁哄灏戞椂锛岄兘鑳芥湁涓�涓亽瀹氱殑閫熷害 + speed: { + type: [String, Number], + default: uni.$u.props.noticeBar.speed + }, + // 瀛椾綋澶у皬 + fontSize: { + type: [String, Number], + default: uni.$u.props.noticeBar.fontSize + }, + // 婊氬姩涓�涓懆鏈熺殑鏃堕棿闀匡紝鍗曚綅ms + duration: { + type: [String, Number], + default: uni.$u.props.noticeBar.duration + }, + // 鏄惁绂佹鐢ㄦ墜婊戝姩鍒囨崲 + // 鐩墠HX2.6.11锛屽彧鏀寔App 2.5.5+銆丠5 2.5.5+銆佹敮浠樺疂灏忕▼搴忋�佸瓧鑺傝烦鍔ㄥ皬绋嬪簭 + disableTouch: { + type: Boolean, + default: uni.$u.props.noticeBar.disableTouch + }, + // 璺宠浆鐨勯〉闈㈣矾寰� + url: { + type: String, + default: uni.$u.props.noticeBar.url + }, + // 椤甸潰璺宠浆鐨勭被鍨� + linkType: { + type: String, + default: uni.$u.props.noticeBar.linkType + } + } +} -- Gitblit v1.9.3