Results 9 issues of mirari

比如倒计时从02:01开始,下一秒会显示01:60,而不是02:00 原因是源码中的 ``` let diff = (this.options.date.getTime() - Date.now() + this.options.offset) / 1000 ``` diff绝大多数时候都是一个带毫秒数的浮点数,这就导致后面的 ``` if (diff >= 60) { dateData.min = Math.floor(diff / 60) diff -= dateData.min *...

bug

**Describe the bug** 图片列表中存在无法显示的图片时,inline模式无法正常运行 **To Reproduce** Steps to reproduce the behavior: 在线demo: https://codepen.io/mirari/pen/yLVrpNd 当前例子为viewer的inline模式正常显示状态。 将脚本12行的异常URL注释取消,即可看到viewer无法正常运行 **Expected behavior** 除了无法显示的图片,viewer应该能够显示。 **Additional context** 发现之前也有几个issue反馈类似问题,但没有提供在线例子。 #325 #344

enhancement

**Is your feature request related to a problem? Please describe.** 有些需求希望在图片展示后,对其进行一些附加动作,比如在图片指定位置添加标注,需要通过canvas等方式实现,且能够跟随图片的缩放、拖拽一起运动。但是现在.viewer-canvas下只有一个img标签,缩放拖拽只能直接操作它,没法在img标签里插入其他的元素。 **Describe the solution you'd like** 希望能将 `.viewer-canvas > img` 改成`.viewer-canvas > div > img`这样的形式,在img外面包裹一层div,缩放拖拽等操作的对象是这个div。这样就可以在viewed事件之后在div里进行一些元素操作。 **Describe alternatives you've considered** 如果启用这个功能的实际效果不稳定或者可能附带其他潜在问题,可以作为试验性的配置项,默认关闭。

enhancement

我在u-collapse-item放了一些表单项u-form-item,实际使用时存在以下问题: 1. 在H5下表现正常,但在微信小程序里,展开后的高度总是会大一些,使底部出现了大段空白。与#435 类似。 2. 由于表单元素带校验,验证失败时会出现错误信息,因此高度会增加,导致看不到底部元素。 从u-collapse-item源码中看到, 问题1的直接原因是nextTick里执行的$uGetRect尝试获取内部元素高度,在小程序中可能因为时机等关系,无法获得正确的高度。 问题2的原因则是因为u-collapse-item写死了元素高度,无法感知内部元素变化,只能笨拙地手动刷新。 #290 这个PR的做法是不太恰当的,看似展开收缩正常,实际上没有过渡动画了,因为height值为auto时,transition不会起作用。 以下方案可以一次性解决这两个问题: 1. 移除init里的高度监听代码以及queryRect方法。 2. 监听isShow: ``` isShow (val) { // 查询内容高度 // $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://www.uviewui.com/js/getRect.html // 组件内部一般用this.$uGetRect,对外的为this.$u.getRect,二者功能一致,名称不同 this.$uGetRect('#' + this.elId).then(res =>...

我仿照 http://mapv.baidu.com/examples/#baidu-map-point-heatmap-time.html 做了一个动画效果的热力图,内容随查询条件变化而刷新。 实际应用时发现,每次刷新数据,浏览器都会变得越来越卡,直至动画无法流畅播放或崩溃。 更新图层动作如下: ``` function (result) { mapvLayer&&mapvLayer.hide(); var dataSet = new mapv.DataSet(convertData(result.data)); mapvLayer = new mapv.baiduMapLayer(map, dataSet, option); } ``` option与例子一致: ``` var option = { size:...

Fixed the problem that the URLs of fonts and images in the CSS files are incorrect when `assetsPublicPath` set to `./` in production environment. Now the 'dist' directory can be...

我的帖子、我的回复、我的收藏,主要是这几个,希望能实现批量自动化处理 毕竟水了快20年论坛,几万个帖子想一个个存已经不太现实了……

I have tried to rewrite `UiSplitterPanel` like this, with `useForwardExpose`: ``` import { SplitterPanel, useForwardExpose, useForwardPropsEmits } from 'radix-vue' import type { SplitterPanelEmits, SplitterPanelProps } from 'radix-vue' const props =...

``` Sub item one Sub item one content Sub item two ``` I wrote it like the example of radix-vue, but the menu is horizontal, even if the orientation is...