uileader / touchwx Goto Github PK
View Code? Open in Web Editor NEW小程序组件化解决方案。官网:https://www.wetouch.net/wx.html
License: MIT License
小程序组件化解决方案。官网:https://www.wetouch.net/wx.html
License: MIT License
PS C:\Users\Mestc\source\repos\LoveU-background> tui dev
(node:4652) UnhandledPromiseRejectionWarning: Error: ENOTEMPTY: directory not empty, rmdir 'C:\Users\Mestc\source\repos\LoveU-background\dist\pages'
at Object.rmdirSync (fs.js:769:3)
at rmkidsSync (C:\Users\Mestc\AppData\Roaming\npm\node_modules\touchui-wx-cli\node_modules\fs-extra\lib\remove\rimraf.js:304:27)
at rmdirSync (C:\Users\Mestc\AppData\Roaming\npm\node_modules\touchui-wx-cli\node_modules\fs-extra\lib\remove\rimraf.js:281:7)
at Object.rimrafSync [as removeSync] (C:\Users\Mestc\AppData\Roaming\npm\node_modules\touchui-wx-cli\node_modules\fs-extra\lib\remove\rimraf.js:252:7)
at C:\Users\Mestc\AppData\Roaming\npm\node_modules\touchui-wx-cli\node_modules\fs-extra\lib\empty\index.js:39:12
at Array.forEach ()
at Object.emptyDirSync (C:\Users\Mestc\AppData\Roaming\npm\node_modules\touchui-wx-cli\node_modules\fs-extra\lib\empty\index.js:37:9)
at Xcx. (C:\Users\Mestc\AppData\Roaming\npm\node_modules\touchui-wx-cli\lib\class\Xcx.js:33:20)
at Generator.next ()
at fulfilled (C:\Users\Mestc\AppData\Roaming\npm\node_modules\touchui-wx-cli\lib\class\Xcx.js:4:58)
(node:4652) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node
process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:4652) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
例如
这个fixed-width 用户不知道怎么用,改又改不了。。
在system.js里面定义一个函数,wx.fn = function(){
}
在一些安卓手机上面调试的时候,调用找不到,一直报错,怎么回事呢?
如题,云开发会在本地安装依赖。而有的时候出错需要删除整个dist,就要重新安装依赖了。
创建基础项目时,拓展提示 node 版本过低,本地环境:
Mac 10.13.4 + VS Code 1.23.1 + Node 10.2.1 + yarn 1.7.0 + touchui-wx-cli 1.1.6
集成Echats,空白。有没有交流的地方啊。
我看见在static下的styles中的components.less和icon.less都存在@font-face,两者没区别,为什么都有?
推起来啊,这个解决小程序的单文件。很不错推起来啊,这个解决小程序的单文件。很不错推起来啊,这个解决小程序的单文件。很不错
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Support has ended for 9.x series. Upgrade to @latest
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/postcss-bem
npm ERR! 404
npm ERR! 404 'postcss-bem@^0.4.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'touchui-wx-cli'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
刻度尺在Andriod下,会出现滚动条。在iOS下没有,这个视图不一致。
刻度尺是不是用scroll-view组件?
有什么解决方法没
就是修改dist的路径
如果可以的话,有没有相关的示例呢?
官网开发文档挂了,404了
Error Code: at ui-ruler
ready () {
if (this.data.value) { //当 0 时,错误
this.data.selfValue = Number(this.data.value) - this.data.selfMin
} else {
this.data.selfValue = 0
}
this.data.leftForSure = this.data.selfValue * (this.data.selfLineWidth + this.data.selfStepWidth)
this.setData({
selfValue : this.data.selfValue,
leftForSure: this.data.leftForSure
})
},
Pass Code:
ready () {
if (this.data.value != null) {
this.data.selfValue = Number(this.data.value) - this.data.selfMin
} else {
this.data.selfValue = 0
}
this.data.leftForSure = this.data.selfValue * (this.data.selfLineWidth + this.data.selfStepWidth)
this.setData({
selfValue : this.data.selfValue,
leftForSure: this.data.leftForSure
})
},
attached () {
this.data.lineHeight = this.data.lineHeight || Number(this.data.height) / 4
this.data.keyLineHeight = this.data.keyLineHeight || Number(this.data.lineHeight) * 2
this.data.selfValueStyle = StyleHelper.getPlainStyle(this.data.valueStyle)
this.data.selfStepWidth = Number(this.data.stepWidth)
this.data.selfLineWidth = Number(this.data.lineWidth)
this.data.selfMin = Number(this.data.min)
this.data.selfMax = Number(this.data.max)
this.data.value = this.data.value
this.data.step = Number(this.data.step)
this.data.keyStep = Number(this.data.keyStep)
this.data.pointerWidth = Number(this.data.pointerWidth)
this.data.selfWidth = Number(this.data.width)
if (this.data.width) {
this.data.selfWidth = Number(this.data.width)
} else {
this.data.selfWidth = wx.getSystemInfoSync().windowWidth
}
this.data.padding = this.data.selfWidth / 2
if (!this.data.numberPadding) {
this.setData({
numberPadding: this.data.numberSize / 2,
})
} else {
this.setData({
numberPadding: this.data.numberPadding,
})
}
this.setData({
lineHeight: this.data.lineHeight,
keyLineHeight: this.data.keyLineHeight,
selfValueStyle: this.data.selfValueStyle,
selfStepWidth: this.data.selfStepWidth,
selfLineWidth: this.data.selfLineWidth,
selfMin: this.data.selfMin,
selfMax: this.data.selfMax,
value: this.data.value,
step: this.data.step,
keyStep: this.data.keyStep,
pointerWidth: this.data.pointerWidth
})
this.setData({
padding: this.data.padding,
rulerWrapStyle: OTS(this.rulerWrapStyleObj()),
rulerStyle: OTS(this.rulerStyleObj()),
rulerPointerStyle: OTS(this.rulerPointerStyleObj()),
scrollViewStyle: OTS(this.scrollViewStyleObj()),
rulerPaddingStyle: OTS(this.rulerPaddingStyleObj()),
numberPaddingStyle: OTS(this.numberPaddingStyleObj())
})
},
什么原因呢 为啥文档上没有相应的组件介绍页
使用各种方法都无法找到第二个自定义组件,当前tui版本是1.1.6。不知是否我使用有问题,求高人指点。。
想问一下是否支持vuex?另外像flyio这类的网络请求框架支不支持呢?谢谢。
我想问一下,我们现在用小程序原生已经开发成熟的微信小程序,想转化成touchwx进行后续的开发和迭代,不知道应该怎么操作,我看文档上只是说了一句可以转化,具体怎么操作没有说,请问大佬们可以给介绍一下吗。这么好的框架箱入手啊!!!!谢谢
touchui-wx-cli
(v1.1.6): tui init 时问过小程序appid
,但并未保存到json里
即使手动加在min.config.json
里 也没什么用
build里也没有project.config.json
edit:
而且麻烦的是重新build时,已有的project.config.json
会被删除
开始 vue language service 正常启动,格式化代码没问题, 当 启动服务 tui dev 后,vue language service 就不见了,格式化代码失效, 卸载 这个两个插件,重新安装也无效, 但是偶尔有可以,时灵时不灵. vscode for mac 又正常
如不设置背景色, operate 插槽下半超过50像素部分会始终显示
微信开发工具版本: 1.02.1811150
os: mac
tui -v: 1.1.6
ui-v-tabs 选中效果在真机上有问题,会报错,在开发工具就正常。其实跟数据无关,只要一渲染就报错
<ui-v-tabs
height="{{tabHeight}}"
tab-style="{{tabStyle}}"
active-tab-style="{{activeTabStyle}}"
class="tab-item"
index="{{ current }}"
data-key="current">
<ui-v-tab wx:for="{{ tabItems }}" data-index="{{index}}" data-category="{{item.id}}" bindtap="handleChange">
{{ item.name }}
</ui-v-tab>
</ui-v-tabs>
no such file or directory, open 'E:\dist\game.json' game.json文件就没有生成啊
我在项目的根目录下,创建了一个packages的文件夹,然后创建了一个cc-test.wxc,编译后看不到文件,也看不到控制台输出有编译信息??
动态 images 打包不了,反正写在 js 中或者 html 里用变量的都无法打包到 dist 目录
设备:iphone6
微信版本:6.6.7
描述:级联选择打开状态下 能够上下随意拖动,是什么鬼?
export const uploadFile = (obj) => new Promise((resolve, reject) => {
wx.uploadFile({
...obj,
success(res) {
resolve(res);
},
fail(e) {
reject(e);
}
});
});
SyntaxError: unknown: Unexpected token (155:4)
请问有办法把packages下某个目录全部文件全部打包到dist目录下吗?
求助,级联选择器使用程序中自带的 city.js ,选择第三层时会出错,无法选择
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.