Comments (8)
- 已解决,多了个调试语句 pr 了哈
from fower.
恩 自定义属性今天晚上我一下,要不要改成 sx,这个我先看看哈
from fower.
之所以用 css 属性,之前也是借鉴了 emotion。
from fower.
@twinh v1.61.0, 支持 objectPropKeys
配置,用法如下(暂时没文档):
// 默认是 objectPropKeys: ['css'],可以自定义
// 同时支持 css, sx
setConfig({
objectPropKeys: ['css', 'sx'],
});
// 覆盖默认,只支持 sx
setConfig({
objectPropKeys: ['sx'],
});
from fower.
谢谢,我在使用中遇到两个问题
- 自定义
objectPropKeys
后,css
方法失效
import {css, setConfig} from '@fower/core';
setConfig({
objectPropKeys: ['sx'],
});
// 预期输出 toRight,但是会输出空
console.log(css({toRight: true}));
定位到是 https://github.com/forsigner/fower/blob/master/packages/core/src/css.ts#L12 argsToProps
返回了 {css: xx}
对象,但是 Parser
解析时是判断 sx
键名,所以失效了,需要请你看下怎么调整好。
- 单独使用 '@fower/core' 类库,缺少
objectPropKeys
默认配置,导致css
方法失效。
已经提交 https://github.com/forsigner/fower/pull/32/files
from fower.
确实放在 store 会更好,发了新版 v1.62.0
from fower.
- 确认已生效
from fower.
- fixed in new version v1.62.1
from fower.
Related Issues (20)
- not work on taro 3.3.0 HOT 6
- vue里面动态添加的类不起作用 HOT 1
- 根据用户config动态生成类型定义 HOT 7
- expo 工程引入 报错 HOT 4
- 希望可以支持vue3.x (Hope to Support Vue 3.x ) HOT 12
- Taro中产生大量内联样式 HOT 4
- 嵌套样式冲突 HOT 1
- @fower/taro的 Switch 组件 color样式在微信小程序无法覆盖 HOT 3
- [BUG] Taro-H5无法使用Fower HOT 1
- Taro H5 shadow原子不生效 HOT 4
- Taro H5 单位转换不正确
- Svelte Rollup waiting for changes forever HOT 1
- SvelteKit: any support for svelte kit? HOT 2
- Remax: @fower/remax的ts类型问题 HOT 3
- Taro中Space Between失效 HOT 3
- uniapp 打包app时会出现错误
- remax中的 web 模式p-10 w-160无效,微信小程序测试有效!
- 小程序中,有什么办法可以使用熟悉的px大小来开发吗? HOT 1
- 文档错别字 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fower.