uni-ui
uni-ui copied to clipboard
基于uni-app的、全端兼容的、高性能UI框架
只对一级数据生效,无法对二级数据生效。二级数据是动态表单验证,需要使用到validateFunction。
IPhone12 15.4 在使用插槽的情况下 如果同时出现两个按钮,靠边的按钮点击会出现旁边按钮的时候,而旁边的按钮无法点击,安卓上测试没这个问题
背景:使用的vue3.2的script setup语法糖,变量由外部通过props传入,watch监听后赋值,该组件中使用了多个uni-data-picker组件,localdata只有一层的组件回填text值正常,多层的地区选择器回填text无效。 排查: 控制变量,将赋值变为定值后,组件传参改为指定变量,后有如下代码 ``` const props = defineProps({ value: Object }); const areaId = ref(); console.log('1'); // areaId.value = 3501; setTimeout(() => { console.log('3'); // areaId.value = 3503; },...
 Method "time" has already been defined as a data property.
现在我想修改styleType=text的选中时的页签,但是没有可供覆写的class,我看源码styleType=button时有segmented-control__item--button--active,建议styleType=text选中时,加一个segmented-control__item--text--active,或者开个Props,传自定义class或者style进去。
文档中描述的“run() 方法可以传入一个 callback 函数 ,会在所有动画执行完毕后回调”,实际上这个回调在run调用后就立即执行了,没有等到有动画执行完毕后。
vue3+vite项目,npm+easycom;安卓11手机; `"@dcloudio/uni-ui": "^1.4.12",` popup有时会在明显延迟后弹出,有时比较快。 做了一些测试: 调用`open()`方法前打印一个时间,`change`回调中打印了一个时间,两者一般是相同或相差3ms内。 说明应该是动画的问题。
小程序下 type="bottom" 实现圆角只能这样写 导致底部多出10px ```scss .uni-popup__wrapper.bottom { border-radius: 10px 10px 0 0; position: relative; top: -10px } ```