nervjs / taro-ui-demo Goto Github PK
View Code? Open in Web Editor NEW非 Taro UI 官网示例代码
License: MIT License
非 Taro UI 官网示例代码
License: MIT License
能不能提交全部的DEMO,很多都找不到
扫描小程序二维码的例子中有个Swiper滑块视图容器,代码中找不到这个容器的相关代码
My OS :
MAC OSX 10.14.3 (18D109)
My Node version :
node -v
v10.15.1
My npm version:
npm -v
6.9.0
I init node env from zero, and follow your steps and failed.
npm WARN deprecated [email protected]: use babel-plugin-minify-dead-code-elimination and babel-plugin-minify-guarded-expressions
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: use babel-plugin-minify-dead-code-elimination and babel-plugin-minify-guarded-expressions
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
WARN tarball tarball data for @tarojs/[email protected] (sha1-4NjbtLrTnE+VjmdLBzd6js3v3wY=) seems to be corrupted. Trying one more time.
WARN tarball tarball data for @tarojs/[email protected] (sha1-4NjbtLrTnE+VjmdLBzd6js3v3wY=) seems to be corrupted. Trying one more time.
npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting @tarojs/[email protected]:
npm ERR! Verification failed while extracting @tarojs/[email protected]:
npm ERR! sha1-4NjbtLrTnE+VjmdLBzd6js3v3wY= integrity checksum failed when using sha1: wanted sha1-4NjbtLrTnE+VjmdLBzd6js3v3wY= but got sha512-ezLEsZCakmCcGxM5WjcNxkJNPcUpiQGSQPt4DfKxS26EvJGlr+zznfMH8nGzCbnz9AskrmeUoTirESeZX7vVDA== sha1-8pEqWmfepsNUc+GuugGnHIYdxzQ=. (49119 bytes)
npm ERR! A complete log of this run can be found in:
/.npm/_logs/2019-03-19T19_07_50_434Z-debug.log
I cannot believe such big official repo could leave such big mistakes for month, if you are not going to maintain, please remove it!
// 我修改过的
const onResize = () => {
const { documentElement, style } = document
const { width } = documentElement.getBoundingClientRect()
if (width >= 640) return style.fontSize = "40px"
style.fontSize = (width <= 320 ? 20 : width / 320 * 20) + 'px'
//这里有什么意义 ,并没有调用或者修改什么
// let v, u,
// if (!v && !u) {
// let n = !!navigator.appVersion.match(/AppleWebKit.Mobile./);
// v = devicePixelRatio;
// v = n ? v : 1, u = 1 / v
// }
}
addEventListener("resize", () => onResize());
onResize()
// index.html原话,
!function (x) { function w() { var v, u, t, tes, s = x.document, r = s.documentElement, a = r.getBoundingClientRect().width; if (!v && !u) { var n = !!x.navigator.appVersion.match(/AppleWebKit.Mobile./); v = x.devicePixelRatio; tes = x.devicePixelRatio; v = n ? v : 1, u = 1 / v } if (a >= 640) { r.style.fontSize = "40px" } else { if (a <= 320) { r.style.fontSize = "20px" } else { r.style.fontSize = a / 320 * 20 + "px" } } } x.addEventListener("resize", function () { w() }); w() }(window);
生成 依赖文件 dist/npm/lodash/identity.js
生成 依赖文件 dist/npm/lodash/_copyArray.js
生成 依赖文件 dist/npm/lodash/_Symbol.js
生成 依赖文件 dist/npm/lodash/isArguments.js
生成 依赖文件 dist/npm/lodash/_getNative.js
一直停滞在这里,
npm run dev:h5 之前另一个项目怎么设置都没用,各种文档什么都看了,实在没办法,来下载了官方demo,结果一运行还是报同样的错。
node 版本:v 10.14.0
./node_modules/.2.0.1@taro-ui/dist/h5/components/countdown/index.js 105:11
Module parse failed: Unexpected token (105:11)
You may need an appropriate loader to handle this file type.
| } = this.state;
|
return <View className={classNames({
| 'at-countdown': true,
| 'at-countdown--card': isCard
file: src/pages/components/navigator-btn/index.js
unknown: Unexpected token (17:6)
15 |
16 | return (
> 17 | <View
| ^
18 | className='demo-goto-btn'
19 | onClick={this.handleGoto.bind(this, parent, name)}
20 | >查看详情</View>
按照npm i 会报错
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.