neteaseyanxuan / ossa Goto Github PK
View Code? Open in Web Editor NEWTaro官方推荐的企业级多端 UI 库。目前已支持React语法。
Home Page: https://ossa.miaode.com
License: MIT License
Taro官方推荐的企业级多端 UI 库。目前已支持React语法。
Home Page: https://ossa.miaode.com
License: MIT License
0.2.0
https://github.com/comlejade/ossaui-demo.git
点击一次就可以选中
第二遍点击的时候需要点击两次才能切换到选中状态
No response
No response
0.3.4
OSSA/packages/ossa/types/actionsheet.d.ts
Lines 6 to 8 in 3e26012
正确的类型
OSSA/packages/ossa/types/actionsheet.d.ts
Lines 6 to 8 in 3e26012
No response
0.4.2
<OsInput
label="*活动标题:"
disabledClear={true}
placeholder="例如: 2022年xx青少年xx大赛"
placeholderStyle="color: #7f7f7f;"
value={state.title}
onChange={(v) => {
setState((s) => ({ ...s, title: v }));
}}
/>
disabledClear为true的时候可以关闭clear按钮
disabledClear为true的时候无法关闭clear按钮
No response
No response
我想上传完删除图片,但是没有个handler。这个怎么办?用户必须点击叉叉才能删除吗?
OsTab组件不能通过手势左右滑动更改相应的页面
Calendar
0.4.2
OsUpload的onImageClick回调无效。
<OsUpload
customStyle={{ paddingLeft: 12 }}
max={1}
onImageClick={()=>{
console.log("click")
}}
onChange={(
files: Array<{ file: File; url: string }>,
operationType: string,
index: number
) => {
if (operationType === "add") {
setState((oldState) => ({ ...oldState, coverFile: files[0] }));
} else if (operationType === "remove") {
setState((oldState) => ({ ...oldState, coverFile: undefined }));
}
}}
/>
回调有效
无效
No response
No response
OSSA已经开源一段时间,大家在更丰富的业务场景中对OSSA进行了实践,帮我们发现了一些可优化的点。 我们计划对现有组件进行一次优化,以适配更多的业务场景。
以下是各个组件的升级点,欢迎社区内感兴趣的朋友一块参与进来,如果对优化点有想法或者建议,欢迎一块讨论。
ossa-demo(1.1.0)
System:
OS: macOS 11.3.1
CPU: (8) x64 Apple M1
Memory: 72.88 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 10.24.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.12 - /usr/local/bin/npm
Browsers:
Chrome: 104.0.5112.101
Safari: 14.1
其他的页面场景是否会有同样的问题?
0.0.3
test performance
real performance
No response
No response
0.4.1
tabs/*.scss加载失败
正常编译通过
编译失败
No response
No response
ossaui 版本0.5.1
max 和 multiple 属性,没有起到限制作用
0.1.0
System:
OS: macOS 11.3.1
CPU: (8) x64 Apple M1
Memory: 33.67 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.16.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.11 - /usr/local/bin/npm
Browsers:
Chrome: 104.0.5112.101
Safari: 14.1
No response
0.6.1
npm install && npm run dev:weapp
运行正常
提示tabbar.scss找不到
Ubuntu ,Taro 3.5.11, ossa 0.6.1
No response
all
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
indicatorColor | 指示点颜色,可选 | string | rgba(0, 0, 0, .3) |
indicatorActiveColor | 当前选中指示点颜色,可选 | string | #000000 |
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
indicatorColor | 指示点颜色,可选 | boolean | true |
indicatorActiveColor | 当前选中指示点颜色,可选 | boolean | false |
No response
No response
git pre-push 在测试用例失败的情况下 也能够推送代码到remote
0.7.1
<OsPicker
range={range}
value={value}
>
<OsList title="title" desc="desc" />
</OsPicker>
点击后选项显示在弹窗的中间
点击后选项显示在弹窗的左侧
No response
在开发者工具中看到渲染出来的custom-wrapper
没有picker-container
这个样式,怀疑是CustomWrapper
的样式会丢失。其它组件是有样式的,比如View
的picker-group
。
Tab选项卡-是否可以加以改进呢? 不知道团队是否一直为这个功能完整。
如下我个人的意见:
1,Tab选项卡是否可增加一个内容区域滑动从而标签栏也跟着动态呢? 选项AIP可分为“切换动画-动态切入-静态动画效果”;
2,是否可增加一个粘性布局方便程序员可节省写style样式,方便利用此组件固定到业务上的商品或其他类型导航栏的效果;
3,设定自定义插槽,可方便程序员以及用户操作选项式选择标签栏;
4,是否可新增一个自定义Tab选项卡或标签,方便程序员可自己diy属于一个自己的Tab选项卡;
5:,最后选项式API属性建议丰富多彩,容易理解,也方便理解! 纯属个人建议,不喜勿喷!!!
0.0.3
https://neteaseyanxuan.github.io/OSSA/#/components/input/demo/index
剩余可输入提示跟随输入变化
剩余可输入提示不变
No response
No response
OSSA/packages/ossa/src/utils/index.ts
Line 29 in 6573fb0
newProp
有可能会有默认值,导致其值不为null
或undefined
,导致合并的值有误。
比如Modal
组件的closeable
和showCloseIcon
属性的默认值都是true
,如果只指定showCloseIcon
为false
,合并后仍为true
根据微信小程序的文档 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html ,现在获取用户名需要设置input[type=nickname]才行,Taro提供的input组件也是这么做的
0.2.0
代码看这里 https://github.com/comlejade/ossaui-demo.git
应该显示icon
实际效果是这样
taro 3.5.4
No response
^0.4.0
具体一下步骤:
日期还是限制在2022-11-14
日期限制失去了效果
No response
No response
例如:用户点击搜索框之后,如果用户想一个个删除,那没什么,然而高级一些用户会选择删除小圆点,不会失去焦点, 用户可再重新输入用户想搜索的关键字;
普通默认版本搜索框,用户搜完关键字后点击删除不会失去焦点,这样可以让用户重新输入关键字;
建议多套方案:
1,例如可做一个模糊搜索事列,方便更多小白可使用搜索框,就不会再二次封装模糊搜索
2,例如可做多元化,尽可能单调,
3,建议增加icon,程序员以及产品经理、项目经理可选自己公司产品的logo以及网易严选默认logo
Tab选项卡-是否可以加以改进呢? 不知道团队是否一直为这个功能完整。
如下我个人的意见:
1,Tab选项卡是否可增加一个内容区域滑动从而标签栏也跟着动态呢? 选项AIP可分为“切换动画-动态切入-静态动画效果”;
2,是否可增加一个粘性布局方便程序员可节省写style样式,方便利用此组件固定到业务上的商品或其他类型导航栏的效果;
3,设定自定义插槽,可方便程序员以及用户操作选项式选择标签栏;
4,是否可新增一个自定义Tab选项卡或标签,方便程序员可自己diy属于一个自己的Tab选项卡;
5:,最后选项式API属性建议丰富多彩,容易理解,也方便理解! 纯属个人建议,不喜勿喷!!!
0.7.0
<OsButton icon="add">文字</OsButton>
icon与文字一致都是 28rpx
icon的style上设置了 20px
,而且没有
被转换成rpx
System:
OS: macOS 14.0
CPU: (12) arm64 Apple M2 Max
Memory: 375.50 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
npm: 9.5.1 - ~/.volta/tools/image/node/18.16.0/bin/npm
pnpm: 8.10.0 - ~/.volta/tools/image/pnpm/8.10.0/bin/pnpm
Browsers:
Chrome: 118.0.5993.70
Safari: 17.0
npmPackages:
@babel/core: ^7.8.0 => 7.23.2
@babel/runtime: ^7.7.7 => 7.23.2
@commitlint/cli: ^18.2.0 => 18.2.0
@commitlint/config-conventional: ^18.1.0 => 18.1.0
@pmmmwh/react-refresh-webpack-plugin: ^0.5.5 => 0.5.11
@tarojs/cli: 3.6.18 => 3.6.18
@tarojs/components: 3.6.18 => 3.6.18
@tarojs/helper: 3.6.18 => 3.6.18
@tarojs/plugin-framework-react: 3.6.18 => 3.6.18
@tarojs/plugin-platform-weapp: 3.6.18 => 3.6.18
@tarojs/react: 3.6.18 => 3.6.18
@tarojs/runtime: 3.6.18 => 3.6.18
@tarojs/shared: 3.6.18 => 3.6.18
@tarojs/taro: 3.6.18 => 3.6.18
@tarojs/taro-loader: 3.6.18 => 3.6.18
@tarojs/webpack5-runner: 3.6.18 => 3.6.18
@types/node: ^18.15.11 => 18.18.8
@types/react: ^18.0.0 => 18.2.34
@types/webpack-env: ^1.13.6 => 1.18.3
babel-plugin-import: ^1.13.8 => 1.13.8
babel-preset-taro: 3.6.18 => 3.6.18
envinfo: ^7.11.0 => 7.11.0
foca: ^3.2.0 => 3.2.0
foca-taro-storage: ^1.0.4 => 1.0.4
husky: ^8.0.3 => 8.0.3
ossaui: ^0.7.0 => 0.7.0
postcss: ^8.4.18 => 8.4.31
prettier: ^3.0.3 => 3.0.3
react: ^18.0.0 => 18.2.0
react-dom: ^18.0.0 => 18.2.0
react-refresh: ^0.14.0 => 0.14.0
redux-logger: ^3.0.6 => 3.0.6
ts-node: ^10.9.1 => 10.9.1
typescript: ^5.2.2 => 5.2.2
webpack: ^5.78.0 => 5.89.0
另外button上为啥有那么多属性?类似这种bindagreeprivacyauthorization="eh"
一堆,占用小程序可怜的体积(2M)
目前这个组件只支持日期上的选择限制, 希望能增加可以限制选择日期和时间.
1.0.0
iPhone X+ 机型访问 https://neteaseyanxuan.github.io/OSSA/pr-preview/pr-4/#/components/actionsheet/demo/index
底部安全区域被覆盖
为底部区局留足一定的空间以方便用户切后台/点击
iPhone 12
No response
Picker选择器是否可以改进呢? 不知团队里是否正在做PickerAPI完善!
建议完善:
1,建议增多类型,例如:titie可修改 分为三个组件 一组件滑动可选 二组件默认(可选) 三组件默认(可选)
2,增加地区列表栏,方便程序员以及小白可方便获取接口遍历地区以及精准到地区地理位置,也可有团队默认的地址(方便用于电商类型的收货信息栏、以及方便个人用户信息收集、如果可以最好全端!)
3,可选做数据未加载画面,用于用户网络信号不好的情况下,程序员可做出有404效果,建议API可选的动画效果-以及可多元化的动态效果
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.