npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@alicloud/console-components

v2.2.35

Published

Alibaba Cloud React Components

Downloads

1,594

Readme

@alicloud/console-components

console-components 是针对 阿里云控制台场景 的 React 组件库,基于 Alibaba Fusion 组件库实现。由于 Fusion 配套的 DSM 系统无法做到对组件的完全样式自定义,所以需要通过属性、样式的覆盖来实现一些设计规范。

主要内容

和 Fusion API 的差异

  • Balloon
    • 默认使用 v2 版本
    • 修改 animation 属性默认值为 { in: 'fadeIn', out: 'fadeOut' }
  • Balloon.Tooltip
    • 默认使用 v2 版本
    • 修改 delay 属性默认值为 150
    • 修改 popupProps.animation 属性默认值为 { in: 'fadeIn', out: 'fadeOut' }
  • Button
    • 对只包含一个 IconButton 样式做了特殊处理
  • Card
    • 覆盖了部分样式
    • 增加了以下子组件,由于历史依赖关系,暂时保留,但不推荐使用
      • Card.DropdownActions
      • Card.CollapsableHead
      • Card.CollapsableTail
  • CascaderSelect
    • 修改 popupProps.align 属性默认值为 tl bl
    • 修改 popupProps.offset 属性默认值为 [0, 4]
  • DatePicker
    • 修改 format 属性默认值为 moment().localeData().longDateFormat('ll')
  • Dialog
    • 新增 size 属性,不同 size 会设置不同 style.width 默认值
      • mini - 400px
      • small - 600px
      • medium - 800px
      • large - 1200px
    • 修改 shouldUpdatePosition 属性默认值为 true
  • Drawer
    • 覆盖了部分属性默认值
  • Form
    • 修改 labelTextAlign 属性默认值为 left
  • Icon
    • 无改动,但建议替换为 @ali/xconsole-icons
  • MenuButton
    • 修改 popupProps.align 属性默认值为 tl bl
    • 修改 popupProps.offset 属性默认值为 [0, 4]
  • Nav
    • directionver 时,activeDirection 默认值为 right
  • Pagination
    • 修改 shape 属性默认值为 normal
    • 修改 pageSizePosition 属性默认值为 end
  • Range
    • 修改 marksPosition 属性默认值为 below
  • Rating
    • 修改 allowClear 属性默认值为 true
  • Search
    • 覆盖了 filterProps 属性默认值
      • 修改 popupProps.align 属性默认值为 tl bl
      • 修改 popupProps.offset 属性默认值为 [0, 4]
  • Select
    • 修改 popupProps.align 属性默认值为 tl bl
    • 修改 popupProps.offset 属性默认值为 [0, 4]
    • 修改 autoWidth 属性默认值为 false
  • SplitButton
    • 修改 popupProps.align 属性默认值为 tl bl
    • 修改 popupProps.offset 属性默认值为 [0, 4]
  • Step
    • 修改 stretch 属性默认值为 true
  • Table
    • 替换 Table 为 Table.StickyLock,两者 API 一致
    • 修改 hasBorder 属性默认值为 false
  • Transfer
    • 修改 searchProps.size 属性默认值为 small

样式覆盖

参见设计规范

新增组件

  • Skeleton
    • 使用了 react-loading-skeleton
  • SlidePanel
    • 使用了 @alicloud/console-components-slide-panel

删除组件

  • Tag.Colored
  • Tag.ColoredGroup

设计规范

使用组件库

import { Button } from '@alicloud/console-components'; // 纯组件,无样式
// 如果你使用了 @ali/xconsole,可以替换为
// import { Button } from '@ali/xconsole/ui';
import '@alicloud/console-components/dist/xconsole.css'; // 样式文件

export { Button };

DEV

Install

npm install

同步主题

npm run update-theme

本地调试

npm run dev

发布

npm publish