完善了#AOS开发平台#​的<aos:menu />标签,加入floating属性

本文介绍了如何通过新增floating属性来改进&lt;aos:menu/&gt;标签。当floating设置为true时,该菜单将作为激活型菜单使用,例如右键菜单或按钮下拉菜单;而当floating设置为false时,则该菜单将直接渲染到容器组件的主体可视区域内。

完善了<aos:menu />标签,加入floating属性。为true时作为组件的激活型菜单(如右键菜单、按钮下拉菜单等);为false时作为直接渲染到容器组件主体可视区域的菜单。(如下图的首选项导航)。#AOS开发平台#


gdb libvo_test_so.so /home/mdc/var/log/npu/coredump/core.\!mnt\!vo_test-26826-46889 GNU gdb (GDB) iAOS3.3 9.2-1.AOS3.3 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-aos-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from libvo_test_so.so... (No debugging symbols found in libvo_test_so.so) warning: core file may not match specified executable file. [New LWP 26826] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Core was generated by `./vo_test --mode=func --scene=VoTestBase&#39;. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000e7fbe569cb04 in ?? () Missing separate debuginfos, use: dnf debuginfo-install compiler-rt-builtins-12.--Type <RET> for more, q to quit, c to continue without paging-- 0.1-1.a1.AOS3.3.aarch64 glibc-2.34-AOS3.3.aarch64 (gdb) bt #0 0x0000e7fbe569cb04 in ?? () #1 0x0000e7fbe69677b0 in ?? () from /usr/lib64/libc.so.6 #2 0x0000e7fbe6a9c000 in sys_sigabbrev () from /usr/lib64/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) where #0 0x0000e7fbe569cb04 in ?? () #1 0x0000e7fbe69677b0 in ?? () from /usr/lib64/libc.so.6 #2 0x0000e7fbe6a9c000 in sys_sigabbrev () from /usr/lib64/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)
07-05
这是一段由eyoucms开发的网站,我想不限制产品展示条数,但是代码只展示4个, 以下是源码 <section class="home-mainproduct"> <div class="l-wrap" data-aos="zoom-in"> <div class="mainpro-top"> <div class="mainpro-title"> <div class="home-title">{eyou:field name=&#39;typename&#39; /}</div> </div> <div class="mainpro-button"> <div class="mainproduct-button-prev"><em class="iconfont icon-jiantou_xiangzuo"></em></div> <div class="mainproduct-button-next"><em class="iconfont icon-jiantou_xiangyou"></em></div> </div> </div> <div class="swiper" id="homemainproduct"> <div class="swiper-wrapper homepro-list"> {eyou:artlist titlelen=&#39;30&#39; loop="40"} <div class="swiper-slide"> <a href="{$field.arcurl}" class="lazy-wrap img" title="{$field.title}"> <img data-src="{$field.litpic}" data-sizes="224x0 768w,224x0 1024w,261x0 1280w,282x0 1366w,301x0 1440w,341x0 1600w" width="380" height="380" class="lazy" alt="{$field.title}"/> {eyou:assign name=&#39;tjsp&#39; value=&#39;$eyou.field.tjsp&#39;} {eyou:empty name=&#39;$tjsp&#39;} {eyou:else /} <em class="iconfont icon-videoplay"></em> {/eyou:empty} <span class="lazy-load"></span> </a> <div class="info"> <a href="{$field.arcurl}" class="title">{$field.title}</a> <p class="text">{$field.seo_description|html_msubstr=###,0,78,true}</p> <a href="{$field.arcurl}" class="home-more" rel="nofollow" aria-label="{$field.title}">Read More <em class="iconfont icon-jiantou_xiangyou"></em></a> </div> </div> {/eyou:artlist} </div> </div> <div class="mainproduct-more"> <a href="{eyou:field name=&#39;typeurl&#39; /}" class="home-more" title="{eyou:field name=&#39;typename&#39; /}" rel="nofollow">Main Products<em class="iconfont icon-jiantou_xiangyou"></em></a> </div> </div> </section>css样式是.home-mainproduct #homemainproduct { margin-top: 30px; height: 658px } .home-mainproduct .homepro-list .swiper-slide { background: #FFF; display: flex; align-items: center; height: calc((100% - 30px)/ 2); border-radius: 4px; position: relative } .home-mainproduct .homepro-list .swiper-slide::before { content: ""; position: absolute; top: 0px; left: 50%; transform: translateX(-50%); width: 80%; height: 4px; background: #d8d8d8; border-radius: 2px; z-index: 9; transition: all .1s linear } .home-mainproduct .homepro-list .swiper-slide:hover::before { background: var(--color) } .home-mainproduct .homepro-list .swiper-slide:hover .info .title { color: var(--color) } .home-mainproduct .homepro-list .swiper-slide .img { width: 40%; display: flex; align-items: center; justify-content: center; height: 100%; position: relative; z-index: 1 } .home-mainproduct .homepro-list .swiper-slide:hover .img img { transform: scale(1.03) } .home-mainproduct .homepro-list .swiper-slide .img img { max-width: 100%; max-height: 100%; width: 100%; height: auto; object-fit: cover } .home-mainproduct .homepro-list .swiper-slide .info { flex: 1; padding: 20px } .home-mainproduct .homepro-list .swiper-slide .info .title { font-size: 18px; font-weight: var(--fontblod5); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 20px } .home-mainproduct .homepro-list .swiper-slide .info .text { font-size: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 20px; color: var(--summarycolor) } .home-mainproduct .homepro-list .swiper-slide .info .home-more { min-width: 140px; height: 44px } .home-mainproduct .mainproduct-more { text-align: center; margin-top: 4% }
08-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值