GithubHelp home page GithubHelp logo

websemantics / awesome-ant-design Goto Github PK

View Code? Open in Web Editor NEW
3.1K 100.0 214.0 150 KB

A curated list of Ant Design resources and related projects. The main idea is that everyone can contribute here, so we can have a central repository of informations about Ant Design that we keep up-to-date

Home Page: http://ant.design/

License: Other

awesome-ant-design's People

Contributors

2fd avatar afc163 avatar artyomvancyan avatar austingreen avatar bang88 avatar comerc avatar dhruv-kumar-jha avatar felipepastorelima avatar felixpy avatar fi3ework avatar fjc0k avatar garrett12138 avatar gpoussel avatar huyennbl avatar jackple avatar janily avatar jiangbo2015 avatar kuechlin avatar letshare avatar leungwensen avatar limichange avatar luffyzh avatar mzohaibqc avatar priornix avatar tangjinzhou avatar viewweiwu avatar websemantics avatar xlsdg avatar yash-thakur avatar ychengcloud 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  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

awesome-ant-design's Issues

分离 layout 时,渲染不对

如图所示,我将 layout 的代码分离成 LoSider.vue LoContent.vue LoFooter.vue LoHeader.vue 4个文件。
)%`BPI13H60%7X8TNC4VQXC

但是在渲染以后出现了三个 LoFooter。
4(KQR`UYS~LN%OEZHNE{714

可以在 nzLabel 使用 pipe吗?

我需要使用 nz-select 的 nz-option 时, 将 enum 枚举出来, 放在 nzValue / nzLabel 上, 但是 nzLabel 我想显示中文, 比方:

export enum MyType { Public = 0, Private = 1 } // 希望能在 Label 显示为 "公开, 私有"

<nz-option *ngFor="let x of this.MyTypeList" [nzValue]="x" [nzLabel]="this.Convert(x)">
<nz-option *ngFor="let x of this.MyTypeList" [nzValue]="x">{{ x | myTypePipe }}

ngFor 都没问题, nzValue 也正确 (0, 1). 但是 nzLabel 用了以上两种方法都无法正确.
其中第一种方式 -> 另外做一个 Convert function, 貌似根本编译不过, (试过用 member funciton 也试过用 static function 都不行)
第二种方法能过 但是下拉选单中看不到 Label. (产生的 option 的数量正确, 但是就是看不见. 貌似所有的 Label 都是空字符串, 但事实上在 pipe 中用 console.log 检查过都有正确转换)

再补充一点, 若不考虑转换成中文, nz-option 的 nzValue: 0, 1 以及 nz Label 显示 Public, Private 都没问题
若是定义成 export enum MyType { Public = '公开', Private = '私有' } 也能显示出中文, 但是 value 就不再是 0/1. 而且与数据库相关, 我需要保持使用的都是 0/1 以及 Public/Private

Ant Design Select..Option Multiple

Hello,

I am using ANT Designs Select...Option Multiple in my Next.js - a React.js Framework-based Project. but I'm facing an issue that I have added Select...Option Tag in a Bootstrap Modal, and when I type the option in Select Inputbox, the Suggestions are being shown under the modal, which is not visible on the screen/user.

anyone can tell me how to solve this problem, please.

please help me.

Updated Article List

Hello, I am looking into Ant Design now with very little knowledge of the ecosystem so this repo is a great resource. Thanks for developing it!

I noticed that some of the articles were from a few years ago, and anyone looking into Ant and comes across this project will probably want to read an article in that list.

I will look for some newer articles written in 2018 and post them if they seem like good reads. If someone else knows of some, then please update that list. In my opinion, it is the most important section for a newbie trying to evaluate the Ant Design project.

引用国际化中文包报语法错误

写法是这样的:https://codesandbox.io/embed/antd-reproduction-template-pyg3j

报错如下:
(node:99704) UnhandledPromiseRejectionWarning: D:\学习\React\EDS\node_modules\antd\es\locale\zh_CN.js:1
import Pagination from "rc-pagination/es/locale/zh_CN";
^^^^^^^^^^

SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Module._compile (D:\学习\React\EDS\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.newLoader [as .js] (D:\学习\React\EDS\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (D:\学习\React\EDS\src\ssr/App.js:5:1)
(node:99704) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:99704) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ctrl+点击可以跳转到文件,路径是没问题的,再说这事antd内部引用的啊,也不是babel的问题,其他的引用编译就没问题。。

Question about <Menu/> component

How can i put element between Menu.item when i work with version >=4.20.0

For example, in older version i can do this
"<*Menu >"
"<*Menu.Item >Home</Menu.Item>"
"<h1 >List</h1>"
"<Menu.Item >Search</Menu.item>"
"<
/Menu >"

in new version if i create a list and do " items={items}" in Menu component, how can i put element h1 between Menu Item

Giving typescript related issues while creating build

Hi there,

I have used a table feature from the antd with the latest version in react js with nextjs.

"antd": "^5.2.1",
"react": "17.0.2",
"next": "10.2.3",

import "antd/dist/reset.css"
import { Table } from 'antd';

While creating the build it is giving me tsc related issues like stated below in node_modules and I have recreated node_modules again (so you will see node_modules_old folder) -
`
image

I am sharing the tsconfig.json file with the current version below -
image

Can anyone please suggest if this is a known issue or am I missing something here?

Thanks in advance!

updata to React18 have this problem

I am allrady set my root like this, the root warrning disapear

root.render(
  <Provider store={store}>
    <HashRouter>
      <App />
    </HashRouter>
  </Provider>
)

But when I use Antd ,this has apear again
react_devtools_backend.js:3973 Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
    at Home (http://localhost:3000/static/js/bundle.js:3979:63)
    at Routes (http://localhost:3000/static/js/bundle.js:94030:5)
    at main
    at Basic (http://localhost:3000/static/js/bundle.js:21683:25)
    at Adapter (http://localhost:3000/static/js/bundle.js:21666:37)
    at section
    at BasicLayout (http://localhost:3000/static/js/bundle.js:21698:34)
    at Adapter (http://localhost:3000/static/js/bundle.js:21666:37)
    at section
    at BasicLayout (http://localhost:3000/static/js/bundle.js:21698:34)
    at Adapter (http://localhost:3000/static/js/bundle.js:21666:37)
    at App (http://localhost:3000/static/js/bundle.js:703:63)
    at Router (http://localhost:3000/static/js/bundle.js:93963:15)
    at HashRouter (http://localhost:3000/static/js/bundle.js:93472:5)
    at Provider (http://localhost:3000/static/js/bundle.js:90613:20)

white-space样式属性丢失

在使用 antd4.16.1版本 Radio 组件时 出现了 ant-radio-wrapper 样式里面 white-space 属性丢失的情况,项目是前后端未分离的项目,单独运行前端就不会出现这种情况,用docker运行项目就会。
image

antd pro中的EditableTable maxLength失效

在ModalForm中加了一个EditableTable ,给EditableTable设置了一个比较大的maxLength,结果加到10行的时候,新加的行就变成灰色的了,加不了了,请问有没有大佬知道是什么原因呢?是受限于ModalForm的高度吗?

0zm3w120009600uad8A58

ant-design cli 生成的项目yarn lint 报错

[email protected] lint:js /**/adp-demo
eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src

src/pages/account/settings/index.tsx:57:6
⚠ 57:6 React Hook useLayoutEffect has a missing dependency: resize. Either include it or remove the dependency array. Mutable values like dom.current aren't valid dependencies because mutating them doesn't re-render the component. react-hooks/exhaustive-deps

src/pages/account/center/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/account/settings/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/form/advanced-form/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/form/basic-form/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/form/step-form/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/list/basic-list/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/list/card-list/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/list/search/applications/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/list/search/articles/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/list/table-list/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies

src/pages/user/register/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found.

validateStatus and rule required together is possible?!

I am trying to render an InputNumber component via antd with rule required AND validate status mechanism. my code:
<Form.Item label='My Name' rules={[{ required: true }]} initialValue={someInitialValue} hasFeedback validateStatus={fieldValidationStatus} help={fieldValidationMessage} name='my_name' ><InputNumber value={fieldValue} onChange={(e) => {setFieldValue(e)}} onBlur={(e) => {handleOnBlurField(e.target.value)}} /></Form.Item>

The issue is that the required rule is just not working..if I remove the help property it will work but I want all of them works together.

message 中的 duration

请问一下我在使用 antd 中 "antd": "^3.21.4" 版本的 message 组件,绑定了一个 button,在点击时触发 message,设置了 duration(单独设置/设置 global 都试过),但是我如果 ctrl s 时移动鼠标,或者在 button 中点击之后不移动鼠标,会导致设置的 duration 失效,message 长时间不消失,这个问题应该怎么去解决

help. i want use form in Modal.confirm. ver:5.11.1

export const ModalConfirm = (props: Props) => {
  const {
    title,
    typeColor = 'info',
    cancelText = 'Huỷ',
    okText = 'Xác nhận',
    handleConfirm,
    content,
    okButtonProps,
    ...restProps
  } = props;

  return Modal.confirm({
    ...restProps,
    cancelText,
    className: `wrap-modal-confirm wrap-btn modal-${typeColor}`,
    title: title,
    content: content,
    centered: true,
    open: false,
    async onOk(): Promise<void> {
      await handleConfirm?.();
    },
    okText,
    okButtonProps: { ...okButtonProps, className: `btn-${typeColor} ` },
    cancelButtonProps: { className: `ant-btn-primary btn-grey` },
  });
};
export const InfoPopup = (props: Props) => ModalConfirm({ ...props, icon: <InfoCircleFilled />, typeColor: 'info' });
export const ErrorPopup = (props: Props) => ModalConfirm({ ...props, icon: <WarningFilled />, typeColor: 'error' });
export const WarningPopup = (props: Props) =>
  ModalConfirm({ ...props, icon: <ExclamationCircleFilled />, typeColor: 'primary' });
export const SuccessPopup = (props: Props) =>
  ModalConfirm({ ...props, icon: <CheckCircleFilled />, typeColor: 'success' });

use component

  const handleDeleteRole = () => {
            return ErrorPopup({
              title: 'Bạn có chắc chắn muốn xóa?',
              width: 480,
              okButtonProps: {
                htmlType: 'submit',
              },
              content: (
                <Form onFinish={SubmitDelete}>
                  <p>Thao tác thực hiện xoá vai trò này khỏi danh sách quản lý các vai trò.</p>
                  <p>vui lòng nhập lý do.</p>
                  <Form.Item name={'note'} rules={[{ required: true, message: 'Vui loại nhap lý do' }]}>
                    <TextArea
                      className="text-area-content"
                      autoSize={{ minRows: 6 }}
                      onChange={(e) => handleOnChangeNode(e.target.value)}
                      placeholder="Nhập lý do..."
                    />
                  </Form.Item>
                </Form>
              ),
              handleConfirm: () => SubmitDelete({ id: record?.id }),
            });
          };

Uploading Screenshot 2024-04-25 103247.png…

Tab组件内button元素style一直变化导致组件宽度一直闪动

image
image

上图是我发现在tab组件中有一个button元素,class名为.ant-tabs-nav-more,这个button元素的style在运行过程中一直变化,一会儿出现一会儿消失。
此时如果tab组件宽度设为fit-content或者auto,组件宽度就会一直变化。不想写死tab宽度,请问有什么解决办法吗

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.