Giter VIP home page Giter VIP logo

taro-skeleton's People

Contributors

dependabot[bot] avatar lentoo avatar ziveen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

taro-skeleton's Issues

新增场景支持和部分样式问题

我在项目中使用时大致遇到这集中情况:

  1. 目前来看使用情形比较少。例如多列不包含avater展示等支持
  2. 不少样式固定的,比如avater的margin值固定,多列布局的情况导致不能居中对齐

这写问题还是比较重要的,可以考虑下

row-width/row-height/title-width/avatar-size/avatar-shape这些属性设置无效

tarojs/components版本:1.3.27
taro-skeleton版本:1.0.12
windows版本:Window 7
编译目标平台:H5

【问题】:
row-width/row-height/title-width/avatar-size/avatar-shape这些属性设置无效,但是其余的属性特别是rowProps设置width和height是没有问题的。

【复现步骤】:
1、导入taro-skeleton:
image

2、使用嵌套子组件的方式使用taro-skeleton:
image

3、修改保存以后即可看到如下图所示的样子:
image

4、将row-width属性替换成rowProps:
image

5、修改保存以后即可看到如下图所示的样子:
image

vue版的taro使用该插件不生效。

使用的vue方法写的taro,在项目之中使用该插件不生效。请问是否有vue版本的该插件可以使用,或者说,是支持vue 的,只是我不会正确的操作?

npm err?

cnpm install taro-skeleton 后,cnpm run dev:weapp 提示npm不存在taro-skeleton,但是 node_modules 存在taro-skeleton 文件夹

有基于jsx 的版本吗

直接npm install 报错。 没法使用。。项目框架采用的JSX 。 您这个是TS 的 有办法适配吗

h5使用骨架屏报错

Uncaught (in promise) TypeError: Super expression must either be null or a function at _inherits (_index.mjs?7f0e:4) at eval (index.js?55c0:7) at eval (index.js?55c0:7) at Module../node_modules/taro-skeleton/dist/h5/components/Skeleton/index.js (0.js:148)
已经在config文件中配置
h5: { esnextModules: ['taro-skeleton'] }
小程序端使用正常, taro版本3.2.0-canary.3

没有显示占位

设置了这些属性 但是没有显示占位 loading 初始是true 版本是:taro-skeleton": "^1.1.4
image
请问是还需要设置什么属性吗

编译会报错

image
image

啥都没干,页面上就加了两行
import Skeleton from 'taro-skeleton'
Skeleton title row={3} />

编译就报错,怀疑是不是需要安装一下
cnpm install -s taro-skeleton
然后又编译了一次
还是报错

taro 3.6.2 小程序在编译时 报错

TypeError: (0 , tarojs_shared__WEBPACK_IMPORTED_MODULE_1_.isWebPlatform) is not a function
at Module../node_modules/@tarojs/api/dist/index.esm.js (.._src_env.js:16)
at webpack_require (webpack_bootstrap:19)
at Object../node_modules/taro-skeleton/node_modules/@tarojs/taro/index.js (.node_modules_taro-skeleton_node_modules@tarojs_taro_index.js:1)
at webpack_require (webpack_bootstrap:19)
at ._src_pages_personal_water_index.tsx:400
at Object../node_modules/taro-skeleton/dist/index.umd.js (._src_pages_personal_water_index.tsx:400)
at webpack_require (webpack_bootstrap:19)
at Object../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./node_modules/taro-inject-component-loader/dist/index.js??ruleSet[1].rules[11].use[0]!./src/pages/personal/water/index.tsx (index.js:22)
at webpack_require (webpack_bootstrap:19)
at Object../src/pages/personal/water/index.tsx (._src_pages_personal_water_components_index.ts:1)(env: macOS,mp,1.06.2303220; lib: 2.23.3)
(anonymous) @ VM6797:11
evaluateRes @ VM16 asdebug.js:1
(anonymous) @ VM16 asdebug.js:1
invoke @ VM16 asdebug.js:1
r @ VM16 asdebug.js:1
k @ VM6667 WAService.js:2
batchInjectComponents @ VM6667 WAService.js:2
injectComponentsRecursively @ VM6667 WAService.js:2
va @ VM6667 WAService.js:2
create @ VM6667 WAService.js:2
jt @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
zt @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
ee.emit @ VM6667 WAService.js:2
emit @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
ee.emit @ VM6667 WAService.js:2
emit @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
c @ VM16 asdebug.js:1
d @ VM16 asdebug.js:1
(anonymous) @ VM16 asdebug.js:1
g @ VM16 asdebug.js:1
f @ VM16 asdebug.js:1
(anonymous) @ VM16 asdebug.js:1
ws.onmessage @ VM16 asdebug.js:1
VM6667 WAService.js:2 TypeError: (0 , tarojs_shared__WEBPACK_IMPORTED_MODULE_1
.isWebPlatform) is not a function
at Module../node_modules/@tarojs/api/dist/index.esm.js (.._src_env.js:16)
at webpack_require (webpack_bootstrap:19)
at Object../node_modules/taro-skeleton/node_modules/@tarojs/taro/index.js (.node_modules_taro-skeleton_node_modules@tarojs_taro_index.js:1)
at webpack_require (webpack_bootstrap:19)
at ._src_pages_personal_water_index.tsx:400
at Object../node_modules/taro-skeleton/dist/index.umd.js (._src_pages_personal_water_index.tsx:400)
at webpack_require (webpack_bootstrap:19)
at Object../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./node_modules/taro-inject-component-loader/dist/index.js??ruleSet[1].rules[11].use[0]!./src/pages/personal/water/index.tsx (index.js:22)
at webpack_require (webpack_bootstrap:19)
at Object../src/pages/personal/water/index.tsx (._src_pages_personal_water_components_index.ts:1)(env: macOS,mp,1.06.2303220; lib: 2.23.3)
errorReport @ VM6667 WAService.js:2
thirdErrorReport @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
c @ VM6667 WAService.js:2
a @ VM6667 WAService.js:2
c @ VM16 asdebug.js:1
r @ VM16 asdebug.js:1
window.onerror @ VM6657:9
evaluateRes @ VM16 asdebug.js:1
(anonymous) @ VM16 asdebug.js:1
invoke @ VM16 asdebug.js:1
r @ VM16 asdebug.js:1
k @ VM6667 WAService.js:2
batchInjectComponents @ VM6667 WAService.js:2
injectComponentsRecursively @ VM6667 WAService.js:2
va @ VM6667 WAService.js:2
create @ VM6667 WAService.js:2
jt @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
zt @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
ee.emit @ VM6667 WAService.js:2
emit @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
ee.emit @ VM6667 WAService.js:2
emit @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
(anonymous) @ VM6667 WAService.js:2
c @ VM16 asdebug.js:1
d @ VM16 asdebug.js:1
(anonymous) @ VM16 asdebug.js:1
g @ VM16 asdebug.js:1
f @ VM16 asdebug.js:1
(anonymous) @ VM16 asdebug.js:1
ws.onmessage @ VM16 asdebug.js:1
error (async)
t.default @ VM6657:9
(anonymous) @ VM6657:9
(anonymous) @ VM6657:9
(anonymous) @ VM6657:9
Show 6 more frames
VM6667 WAService.js:2 TypeError: (0 , tarojs_shared__WEBPACK_IMPORTED_MODULE_1
.isWebPlatform) is not a function
at Module../node_modules/@tarojs/api/dist/index.esm.js (.._src_env.js:16)
at webpack_require (webpack_bootstrap:19)
at Object../node_modules/taro-skeleton/node_modules/@tarojs/taro/index.js (.node_modules_taro-skeleton_node_modules@tarojs_taro_index.js:1)
at webpack_require (webpack_bootstrap:19)
at ._src_pages_personal_water_index.tsx:400
at Object../node_modules/taro-skeleton/dist/index.umd.js (._src_pages_personal_water_index.tsx:400)
at webpack_require (webpack_bootstrap:19)
at Object../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./node_modules/taro-inject-component-loader/dist/index.js??ruleSet[1].rules[11].use[0]!./src/pages/personal/water/index.tsx (index.js:22)
at webpack_require (webpack_bootstrap:19)
at Object../src/pages/personal/water/index.tsx (._src_pages_personal_water_components_index.ts:1)(env: macOS,mp,1.06.2303220; lib: 2.23.3)

关于图片骨架的疑惑

大家好。 有一个疑惑

<Skeleton title loading={true} row={1} />
    <Image onload={xxx}></Image>
</Skeleton>

这是一个图片骨架,当 loading = true的时候,图片不会加载。

期望的效果是,当loading= true 时,图片能够加载,在图片 onload时,更改 loading=false,显示图片。
请问这个能实现吗。

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.