GithubHelp home page GithubHelp logo

dcloudio / uni-app Goto Github PK

View Code? Open in Web Editor NEW
39.4K 512.0 3.6K 3.35 GB

A cross-platform framework using Vue.js

Home Page: https://uniapp.dcloud.io

License: Apache License 2.0

JavaScript 91.04% Vue 0.25% CSS 0.19% TypeScript 8.51% HTML 0.01% SCSS 0.01%
uni-app vue miniprogram javascript uniapp uni hbuilderx vue3 android cross-platform

uni-app's Issues

关于picker 【date】模式, fields设置成month,真机上无法正确显示

<picker mode="date" :value="date" start="2015-09" end="2040-09" @change="bindDateChange" fields="month">
								<view class="uni-input">{{date}}</view>
							</picker>		
data() {
			return {
				title: 'picker',
				array: ['**', '美国', '巴西', '日本'],
				index: 0,
				date: '2016-09',
				time: '12:01'
			}
		},

手机上显示:只显示2018年,8和9两个月份,还显示了day
qq 20180801162406

uni.getUserInfo接口官方示例无法拿到用户信息

uni.login({
provider: 'weixin',
success: function (loginRes) {
console.log(loginRes.authResult);
// 获取用户信息
uni.getUserInfo({
provider: 'weixin',
success: function (infoRes) {
console.log('用户昵称为:' + infoRes.userInfo.nickname);
}
});
}
});

什么情况?官网打不开了

无法访问此网站
uniapp.dcloud.io 的响应时间过长。
请试试以下办法:

检查网络连接
检查代理服务器和防火墙
运行 Windows 网络诊断
ERR_CONNECTION_TIMED_OUT

想这个uni-app开发的教程,不知有何建议。

本人高校教授一枚,喜欢研究技术。一直是hb的粉丝,也开设了相关课程。没教材所以一直想写本书,又担心对技术钻研不深误人子弟,看到uni出来,试玩了下做了个小项目感觉不错,能够结合vue开发效率比以前高了很多。大家有什么建议可以提出来,我看能不能组织下搞个开放的教程。

系统状态栏的一个小问题

如何我只想要系统状态栏改变颜色。不想添加任何标题 该如何做呢 可不可以自定义呢? 求大佬告知
定义的
.status_bar {
height: var(--status-bar-height);
width: 100%;
background-color: #2cdedf;
}
不会占满一行

期待解决的问题ing

我最关心的问题:
1.怎么统一安卓推送
2.5+怎么丰富打开安卓和苹果的文件管理器,进行文件上传
3.安装第三方包太麻烦了,我如果用很多第三方包,都放在根目录下面的话会显得不整洁
4.赶紧支持增量更新吧
5.希望uni生态越来越好,apicloud虽然是抄袭hbuilder,但是他们的组件很多,希望uni也不用我们开发者再造轮子

mac下启动不了小程序预览

已经是最新版本小程序开发工具了,日志如下:

14:02:59.053 idePortFile: /Users/zhengkai1/Library/Application Support/微信web开发者工具/Default/.ide
14:02:59.066 starting ide...
14:03:02.108 IDE server has started, listening on http://127.0.0.1:50770
14:03:02.117 initialization finished
14:03:02.183 Runtime error: Error
14:03:02.183 Error: getaddrinfo ENOTFOUND http://127.0.0.1 http://127.0.0.1:50770
14:03:02.183 Runtime error: Error
14:03:02.183 Error: socket hang up
14:03:02.410 StatusCodeError: 400 - "{"code":40000,"error":"错误 Error: 系统错误,错误码:1"}"
14:03:02.417 微信开发者工具打开项目失败,请参阅启动日志!
14:03:02.418 注:请将微信开发者工具升级到最新版本!

路由

如何使用vue的路由导航

uni-app必须使用云端打包吗?

之前没用过dcloud的产品,但是了解过。最近在找vue编写app的框架,发现uni-app还不错。这个框架没开源吗?为啥只看到云端编译,核心的代码都放到了服务器吗?

征集uni-app扩展组件

update at 2019-01-08

uni-app 已开放插件市场,对接轮子制造者和需求方,欢迎开发者积极提交插件。

下面是原问题

欢迎已使用uni-app的各位开发者积极分享扩展组件,共同繁荣uni-app生态。

建议大家将封装好的组件开源,在本issues下提交开源地址,我们评估可用性及用户体验后,会在官网单独增加一个生态栏目,将优秀组件推荐给uni-app的开发者。

uni-app项目案例征集

已收集的案例:https://uniapp.dcloud.io/case

为提供更好的技术支持及回访,我们特开设本issues收集uni-app项目的使用情况。

欢迎已使用uni-app的各位开发者积极分享案例,共同繁荣uni-app生态。

uni-app的textarea绑定foucs无效

详细问题描述
[内容]
uni-app的textarea绑定foucs无效
重现步骤
[步骤]
template里面加上<textarea :focus="textareaFocus" auto-height />
在js写上
export default {
data() {
return {
textareaFocus: true
}
},
onLoad: function (option) {
this.textareaFocus = true // 页面加载不能使textarea获得焦点
},
methods: {
focusTextarea() { // 按下按钮也不能使textarea获得焦点
this.textareaFocus = true
}
}
}
[结果]
页面加载完毕,或者按按钮,都不能使textarea获得焦点
[期望]
页面加载完毕,或者按按钮,textarea获得焦点,弹出键盘,用户可以直接填写内容

运行环境
[系统版本]
andriod 8.0
[浏览器版本]
[IDE版本]
HbuilderX 0.1.46.20180810-alpha

最新版hello-uniapp编译不过

错误信息:
14:00:09.289 文件查找失败:'E:/code/uin-app/uni-app/examples/hello-uniapp/platforms/app-plus/tabbar-nvue/tabbar-nvue.vue' at platforms\app-plus\tabbar-nvue\tabbar-nvue.js:3

使用HbuilderX创建的例子接口和模版页面全部打不开报错

21:36:52.155 App Launch at App.vue:4
21:36:52.175 App Show at App.vue:37
21:36:59.987 Do not have handler in current page: pages/API/API. Please make sure that handler has been defined in pages/API/API, or not use handler with 'v-if'
21:37:05.416 success at App.vue:19
21:43:44.963 Do not have handler in current page: pages/API/API. Please make sure that handler has been defined in pages/API/API, or not use handler with 'v-if'

头部系统栏

如何我不想显示 navigationBarTitleText 只改变颜色 该如何做

TypeError: Cannot read property 'for' of undefined 这是个什么错误呢?

模块编译失败:TypeError: Cannot read property 'for' of undefined 14:54:43.057 at fixDefaultIterator (C:\Users\Administrator\Desktop\HBuilderX.0.1.47.20180823-alpha.full\plugins\uniapp\lib\mpvue-template-compiler\build.js:4234:24) 14:54:43.068 at mark (C:\Users\Administrator\Desktop\HBuilderX.0.1.47.20180823-alpha.full\plugins\uniapp\lib\mpvue-template-compiler\build.js:4266:5) 14:54:43.068 at markComponent (C:\Users\Administrator\Desktop\HBuilderX.0.1.47.20180823-alpha.full\plugins\uniapp\lib\mpvue-template-compiler\build.js:4333:5) 14:54:43.078 at baseCompile (C:\Users\Administrator\Desktop\HBuilderX.0.1.47.20180823-alpha.full\plugins\uniapp\lib\mpvue-template-compiler\build.js:4349:15) 14:54:43.090 at compile (C:\Users\Administrator\Desktop\HBuilderX.0.1.47.20180823-alpha.full\plugins\uniapp\lib\mpvue-template-compiler\build.js:4046:28) 14:54:43.101 at Object.module.exports (C:\Users\Administrator\Desktop\HBuilderX.0.1.47.20180823-alpha.full\plugins\uniapp\lib\mpvue-loader\lib\template-compiler\index.js:43:18)

关于组件slot

官方文档说不支持slot的写法,为什么我写slot,有效果呢,是不是官方更新了,文档没有更新的呢??

var(--status-bar-height)不起作用

Hello <script> export default { } </script> <style> .index { flex: 1; flex-direction: column; } .status { height: var(--status-bar-height); width: 100%; } .top_view{ height: var(--status-bar-height); width: 100%; position: fixed; top: 0; } .content{ justify-content: center; align-items: center; } </style>
"globalStyle": {
	"navigationStyle": "custom"
},

这里已经开启了
在andriod 6.0的手机上不起作用?这个是不是BUG,还是不支持

关于动态获取权限的问题

iOS端,当用户禁止APP调用相机权限之后,html5+没有判断是否成功调用相机的回调,Android端也是类似的问题。以前用mui解决这个需求是用了第三方的插件本地打包,uni-app就不知道怎么解决了,官方有没有具体的解决方案。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.