cube ui 中 cube-scroll、cube-slide 问题总结

嵌套 点击事件重复 解决方案

DOM

<cube-slide>
    <cube-slide
        :options="slideOptions"
        />
</cube-slide>

computed

slideOptions() {
      return {
          click: false,  // 将其中一层的 cube-slide 点击事件屏蔽
      };
 },

cube-slide 子组件文字不能换行 解决方案

在文本的 CSS 加入

  white-space: normal;
posted @ 2022-11-15 10:53  IT_IOS_MAN  阅读(20)  评论(0编辑  收藏  举报