ijry / uview-plus Goto Github PK
View Code? Open in Web Editor NEWuview-plus,是uni-app全面兼容nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。
Home Page: https://uview-plus.jiangruyi.com
License: MIT License
uview-plus,是uni-app全面兼容nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。
Home Page: https://uview-plus.jiangruyi.com
License: MIT License
请问报这个module 'uni_modules/uview-plusbs/config/props/alert.js' is not defined, require args is './props/alert.js'是什么原因
向右滑动时控制台报错:[渲染层错误] TypeError: Cannot read property 'nv_disabled' of undefined
使用静态数据滑动不会报错,比如:
<u-swipe-action-item v-for="customer in list" :key="customer.id" :options="[{text: "删除"}]">
使用响应式数据则会报错,比如:
<u-swipe-action-item v-for="customer in list" :key="customer.id" :options="swipeOptions">
const swipeOptions = computed(() => { const opts = [] // 有删除权限 if (hasPermi(['customer:delete'])) { opts.push({ text: '删除' }) } return opts })
uview-plus版本:3.1.35
<u-form-item label="04 您是否有自己的学生团队" prop="userInfo.name" borderBottom>
<u-radio-group placement="column">
<u-radio
:customStyle="{ marginBottom: '8px' }"
:key="index"
label="是(团队人员规模是)"
name="是(团队人员规模是)"
>
</u-radio>
<u-form-item prop="userInfo.name" borderBottom>
<u--input border="bottom"></u--input>
</u-form-item>
<u-radio :customStyle="{ marginBottom: '8px' }" :key="index" label="否" name="否"> </u-radio>
</u-radio-group>
</u-form-item>
<u-form-item label="05 您是否有创业经验或者校外项目对接经验" prop="userInfo.name" borderBottom>
<u-radio-group placement="column">
<u-radio
:customStyle="{ marginBottom: '8px' }"
:key="index"
label="是(请简单描述一下)"
name="是(请简单描述一下)"
>
</u-radio>
<u-form-item prop="userInfo.name" borderBottom>
<u--input border="bottom"></u--input>
</u-form-item>
<u-radio :customStyle="{ marginBottom: '8px' }" :key="index" label="否" name="否"> </u-radio>
<u-radio :customStyle="{ marginBottom: '8px' }" :key="index" label="其他" name="其他">
</u-radio>
<u-form-item prop="userInfo.name" borderBottom>
<u--input border="bottom"></u--input>
</u-form-item>
</u-radio-group>
</u-form-item>
</u--form>
<img class="img_box2" @click="onSubmit" src="../../static/images/button_zhaomu.png" alt="" />
</view>
</view>
能不能把datetime-picker组件里面的console.log去掉
uni-template@ dev:h5 /Users/zcy1/Desktop/hushui/uni-template
uni
Please note that in running mode, due to log output, sourcemap, and uncompressed source code, the performance and package size are not as good as release mode.
Compiling...
(node:10623) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node:path'
引入组件库后在微信开发工具一直提示 Some selectors are not allowed in component wxss
的警告
经排查,定位到问题出自 libs/css/components.scss
的下列样式导致:
/* #ifndef APP-NVUE */
view, scroll-view, swiper-item {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
/* #endif */
查阅了相关文档,在微信 组件样式 一览中规定,禁止在 组件中 使用标签名选择器,提示该样式在组件中也 不会生效。
然而实际上 flex-direction: column
的样式是生效的,目前来讲在微信小程序上除了有警告,是没任何影响的。但出于官方文档的描述,不排除以后会出现一系列不确定因素,看后续针对此处如何做出改动
在uniapp中使用u-textarea 显示最大数量,但是可以输入超过最大数量的字符(会默认截取到最大字符的数量),但是输入的字符统计不对,可以超过最大字符
微信与H5预览地址失效
对于需要用到组件ref的情况,请问组合式写法怎么办
例如: this.$refs.uToast
根据步骤配置以后出现:
19:13:34.912 Could not resolve "./App" from "../../../../E:/guigu-tuan/main.js" 19:13:34.912 file: E:/guigu-tuan/main.js
错误
轮播图swiper中怎么使用本地图片的引用?
您好,uview-plus 如何支持国际化?
效果大致是,点开默认选中赋予的日期,第一打开是可以的,随后如果浏览其他的选项不确认,关闭再打开就不是之前赋予的日期,而是最后浏览的日期,看了源码使用updateIndexs更改也不行,请看一下给个答复 @ijry
使用v-for动态生成u-image的时候页面卡顿2s左右(大概40个) 使用uniapp 的image 正常
uni.$u.setConfig({ color: { primary:"red" }, // 修改$u.config对象的属性 config: { // 修改默认单位为rpx,相当于执行 uni.$u.config.unit = 'rpx' unit: 'rpx' }, // 修改$u.props对象的属性 props: { // 修改radio组件的size参数的默认值,相当于执行 uni.$u.props.radio.size = 30 button: { text:'登录' } // 其他组件属性配置 // ...... } }) uni.$u.props.button.text = '登录'//也没效果 uni.$u.color.info = 'green'//也没效果
数据变了,但是页面效果没有变化
因为是在组件内部写死的,px修改为rpx之后,许多组件显示异常
Vue3 uView-Plus component example display failure,Connection to server timed out。
——2023/7/12/18:23
按照官方 Http请求 方法
在main.js 引入js
`
export function createApp() {
const app = createSSRApp(App);
import('/config/request.js')
app.use(uviewPlus);
return {
app
}
}`
报错
Invalid value "iife" for option "output.format" - UMD and IIFE output formats are not supported for code-splitting builds.
vue3 + vite + ts 使用cli创建的项目,windows10,联想模拟器
如今typescript在前端领域十分重要,希望uview可以对typescript做出更好的支持,这或许会增加uview团队的开发成本,但是这实在是时代所趋
举个例子:
<u--image src="https://img01.yzcdn.cn/upload_files/2022/11/03/FjC1yBeheuMmgX6_nUWsAyAaJYqN.jpg!middle.jpg" mode="widthFix" width="200rpx" height="auto"></u--image>
v2.0:这种情况下,图片的高度会自适应。
v3.0:图片不显示,排查发现高度为0
使用编译成app时使用u-back-top组件会导致白屏无法启动产生以下报错:
reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'mpMixin' of undefined
解决方式是将:
mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
改成:
mixins: [mpMixin, mixin, props],
封装的组件不应该是传了zIndex并开启遮罩的情况下,组件里面的遮罩设置传入的zIndex-1吗
日历组件希望可以添加切换年份、月份方向按钮功能;目前的只能选择近几月
代码位置:https://github.com/ijry/uview-plus/blob/master/uni_modules/uview-plus/components/u-transition/transition.js#L42
在支付宝和微信小程序里,也要保留 sleep(20)
如题,cli 方式 app-plus 运行到手机端报错,如下:
reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'mpMixin' of undefined
at (app-service.js:16263:21)
at (app-service.js:27792:3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.