profile
viewpoint

pull request commentant-design/ant-design

fix: Descriptions.Item ts define

太广了 我猜设计的就是只接收 string number element之类的作为children ReactChild
@chenshuai2144

Nokecy

comment created time in 2 days

pull request commentant-design/ant-design

fix: Descriptions.Item ts define

不是的 ReactNode 包括了很多东西

Nokecy

comment created time in 3 days

Pull request review commentant-design/ant-design

fix eslint error

 import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; export interface DescriptionsItemProps {   prefixCls?: string;   label: React.ReactNode;-  children: JSX.Element;   span?: number;+  children?: React.ReactNode; } -const DescriptionsItem: React.SFC<DescriptionsItemProps> = ({ children }) => children;+const DescriptionsItem: React.SFC<DescriptionsItemProps> = ({ children }) => (+  <span>{children}</span>

什么 error

chenshuai2144

comment created time in 4 days

issue commentdenoland/deno

website/style.css: Text gets cut off, even if the browser window is wide enough

No need to fix it because we can scroll to the right, the current style is good for me.

ry

comment created time in 6 days

pull request commentant-design/ant-design

docs: 3.19.3 change-log

其实应该用 fix 的,虽然是过去完成的,但是这个意思是表示一件很通常的事,我修复了xxx,而不是我已经修复了xxx。

ikobe

comment created time in 9 days

issue commentant-design/ant-design

antd for flutter

这不是一样的东西啊。。。

luneice

comment created time in 9 days

push eventztplz/antd-tools

ztplz

commit sha e122f259ddc5539a2def2f99f16102a501f0c5c3

Remove useless config

view details

push time in 10 days

pull request commentant-design/ant-design

docs: 3.19.3 change-log

不是还没到周末吗

ikobe

comment created time in 10 days

Pull request review commentant-design/ant-design

docs: 3.19.3 change-log

 timeline: true  --- +## 3.19.3++`2019-06-06`++- 🐞 Fixed Breadcrumb validateDOMNesting warning. [16929](https://github.com/ant-design/ant-design/pull/16929)+- 🐞 Fix InputNumber with `number` type display native spinner. [16926](https://github.com/ant-design/ant-design/pull/16926)+- 🐞 Fix Transfer render Empty when customize without data. [16925](https://github.com/ant-design/ant-design/pull/16925)+- 🐞 Fixed Table header extra vertical scrollbar problem. [16950](https://github.com/ant-design/ant-design/pull/16950)+- 🐞 Fix Table miss `border-raidus` in Firefox. [16957](https://github.com/ant-design/ant-design/pull/16957)

raidus => radius

ikobe

comment created time in 10 days

pull request commentant-design/ant-design

Suppress autoprefixer warning

antd-tool里不改也没用

ztplz

comment created time in 11 days

pull request commentant-design/antd-tools

Suppress autoprefixer warning

那现在这里的autoprefixer的配置就没必要了

ztplz

comment created time in 11 days

PullRequestEvent

PR closed ant-design/antd-tools

Suppress autoprefixer warning

ref: https://github.com/ant-design/ant-design/issues/16970

+2 -2

2 comments

2 changed files

ztplz

pr closed time in 11 days

pull request commentant-design/ant-design

Suppress autoprefixer warning

IOS Android 我去了

ztplz

comment created time in 11 days

PR opened ant-design/ant-design

Suppress autoprefixer warning

<!-- First of all, thank you for your contribution! 😄

New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!

[中文版模板 / Chinese template] -->

🤔 This is a ...

  • [ ] New feature
  • [ ] Bug fix
  • [ ] Site / document update
  • [ ] Component style update
  • [ ] TypeScript definition update
  • [ ] Refactoring
  • [ ] Code style optimization
  • [ ] Test Case
  • [ ] Branch merge
  • [x] Other (about what?) Suppress autoprefixer warning

👻 What's the background?

https://github.com/ant-design/ant-design/issues/16970 <!--

  1. Describe the source of requirement, like related issue link.

  2. Describe the problem and the scenario. -->

💡 Solution

<!--

  1. How to fix the problem, and list final API implementation and usage sample if that is an new feature.

  2. GIF or snapshot should be provided if includes UI/interactive modification. -->

📝 Changelog

<!-- Describe changes from userside, and list all potential break changes or other risks. --->

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • [ ] Doc is updated/provided or not needed
  • [ ] Demo is updated/provided or not needed
  • [ ] TypeScript definition is updated/provided or not needed
  • [ ] Changelog is provided or not needed
+6 -0

0 comment

1 changed file

pr created time in 11 days

create barnchztplz/ant-design

branch : auto

created branch time in 11 days

pull request commentant-design/antd-tools

Suppress autoprefixer warning

@afc163 @zombieJ 要么在packagejson里放browserslist的配置 要么把browsers改成overrideBrowserslist

ztplz

comment created time in 11 days

PR opened ant-design/antd-tools

Suppress autoprefixer warning

ref: https://github.com/ant-design/ant-design/issues/16970

+2 -2

0 comment

2 changed files

pr created time in 11 days

push eventztplz/antd-tools

ztplz

commit sha 27f282997da621dc3a155a1fb2c18fc45a95e96a

Suppress autoprefixer warning

view details

push time in 11 days

push eventztplz/antd-tools

ztplz

commit sha 4b4bf72390a2d8ba7d978a437689b644ecaa4ff8

Set from to undefined to suppress warning (#84)

view details

afc163

commit sha 6be9de3215d1c8229fb81aa23ea02d6f5e2952c4

:bug: fix done is undefined

view details

zombiej

commit sha dcfe44089a23ff9f457a46748ec9f64f966e2291

add done

view details

zombiej

commit sha c944c9ef7e47504cd351db00de7b3e264676be3d

bump 6.2.6

view details

zombiej

commit sha 58b0cdadf0bd6888b62f5418f89e409be0115f9e

add space related rule

view details

陈帅

commit sha 96d28749ad8d98184e9f2d99482a083f1b6cee08

Merge pull request #87 from ant-design/spaceRule add space related rule

view details

zombiej

commit sha f6a703bf3bac8c5d1214115c29a0f03bc949ac3f

bump 6.3.0

view details

zombiej

commit sha fe646355b80fb3cd273c881d625860ca256b74fe

prettier

view details

zombiej

commit sha fc695d958533ad0b4af3bae4eab556aef05f4835

add image transform

view details

zombiej

commit sha 64258456c32e4fa8f18c4d9ca5b0f0f6cedc73e4

dist support svg

view details

zombiej

commit sha a20f382b834f3d69f0016178351533a4c42c81fd

update babel config

view details

zombiej

commit sha b61e10376263e698ce88ccf4f475b8a6f8f1bc98

bump 6.4.2

view details

zombiej

commit sha e0242e06c53c243554ef5d21b3f9dafa7160c1f5

use url-loader to pass imageProcesser

view details

zombiej

commit sha e05b3bee4484f51372d73823c523462ae26d4e75

fix babel 7 of css path mapping

view details

zombiej

commit sha b7c8997f29aca9f6aa8418acbf99686d78c06b61

bump 6.4.4

view details

偏右

commit sha 35e758c118170c84b5e119ecaaea55cc9d87582d

Update README.md

view details

zombiej

commit sha 390a4b0402963ae7bc958606d7b702a99e8cd9ab

support inline svg

view details

zombiej

commit sha 047182e4bec6cccab0f6c6d88ab20391335315af

bump 6.5.0

view details

zombiej

commit sha 47ec44e3998762eab5b033b91a96b85b7adeec7a

update jest deps & bump 7.0.0

view details

zombiej

commit sha 2f672493d34e77db78135869115c8071c67d47cb

prettier

view details

push time in 11 days

push eventztplz/antd-tools

ztplz

commit sha b39104970694d449f9517d7b93fffad649a19253

Suppress autoprefixer warning

view details

push time in 11 days

issue commentant-design/ant-design

Table header lost border radius in Firefox

系统 10.13

afc163

comment created time in 12 days

issue commentant-design/ant-design

Table header lost border radius in Firefox

也是 67.0啊 image

afc163

comment created time in 12 days

issue commentant-design/ant-design

Table header lost border radius in Firefox

image 我这里是正常的

afc163

comment created time in 12 days

issue commentant-design/ant-design

I tried to add React Fragment into Collapse component and it break the design

Not a high priority, we still need to do a lot of things if we fully support Fragment.

atherdon

comment created time in 12 days

issue commentant-design/ant-design

module.exports = exports['default']; missing after v3.11.2

image npm install failed, no permission to install this library.

c19

comment created time in 12 days

issue commentant-design/ant-design

[site] static SSR with correct title

image 这个string里的This变成蓝色的了

afc163

comment created time in 13 days

delete branch ztplz/ant-design

delete branch : type

delete time in 14 days

PR opened ant-design/ant-design

Remove useless type

<!-- First of all, thank you for your contribution! 😄

New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!

[中文版模板 / Chinese template] -->

🤔 This is a ...

  • [ ] New feature
  • [ ] Bug fix
  • [ ] Site / document update
  • [ ] Component style update
  • [x] TypeScript definition update
  • [ ] Refactoring
  • [ ] Code style optimization
  • [ ] Test Case
  • [ ] Branch merge
  • [ ] Other (about what?)

👻 What's the background?

<!--

  1. Describe the source of requirement, like related issue link.

  2. Describe the problem and the scenario. -->

💡 Solution

https://github.com/microsoft/TypeScript/blob/master/lib/lib.webworker.d.ts#L552 https://github.com/microsoft/TypeScript/blob/master/lib/lib.webworker.d.ts#L1346 <!--

  1. How to fix the problem, and list final API implementation and usage sample if that is an new feature.

  2. GIF or snapshot should be provided if includes UI/interactive modification. -->

📝 Changelog

<!-- Describe changes from userside, and list all potential break changes or other risks. --->

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • [ ] Doc is updated/provided or not needed
  • [ ] Demo is updated/provided or not needed
  • [ ] TypeScript definition is updated/provided or not needed
  • [ ] Changelog is provided or not needed
+0 -4

0 comment

1 changed file

pr created time in 14 days

create barnchztplz/ant-design

branch : type

created branch time in 14 days

Pull request review commentant-design/ant-design

fix: fix type of action and RcFile

 export interface HttpRequestHeader {  export interface RcFile extends File {   uid: string;-  lastModifiedDate: Date;+  readonly name: string;+  readonly type: string;+  readonly lastModified: number;+  readonly lastModifiedDate: Date;+  readonly size: number;+  readonly webkitRelativePath: string;

只有webkitRelativePath 是需要加的 重复定义了 像name, type, lastModified, size都是 File 里本身就有的

DiamondYuan

comment created time in 14 days

Pull request review commentant-design/ant-design

fix: add maskClosable is false ESC close

 class Drawer extends React.Component<DrawerProps & ConfigConsumerProps, IDrawerS     }   }; -  onMaskClick = (e: EventType) => {-    if (!this.props.maskClosable) {+  onMaskClick = (e: any) => {

EventType & React.KeyboardEvent<HTMLDivElement> 这样不好 React.KeyboardEvent<HTMLDivElement> 应该在 EventType里 其实是判断的问题 不推荐用e.keyCode来判断 keyCode有没有, 因为 MouseEvent里是没有keyCode!e.keyCode => !("keyCode" in e)

jljsj33

comment created time in 14 days

issue commentant-design/ant-design

[doc]icon shake in dropdown doc with Chrome

我老想着重构

GFwer

comment created time in 18 days

PR closed react-component/drawer

Reduce code

Just a improve.

+1 -4

0 comment

1 changed file

ztplz

pr closed time in 19 days

Pull request review commentreact-component/drawer

Reduce code

 class Drawer extends React.PureComponent {     if (open !== undefined && open !== this.props.open) {       this.isOpenChange = true;       // 没渲染 dom 时,获取默认数据;-      const getContainerBool = typeof getContainer === 'function' &&-        typeof this.props.getContainer === 'function' ?-        this.props.getContainer() === getContainer() :-        this.props.getContainer === getContainer;+      const getContainerBool = getContainer.toString() === this.props.getContainer.toString();

对哦 那就这样

ztplz

comment created time in 19 days

delete branch ztplz/ant-design

delete branch : slider

delete time in 19 days

pull request commentant-design/ant-design

Fix typescript compile error

@zy410419243 不是一样的 下面还有个 我们直接 image 这样用typeof编译的时候挂了

ztplz

comment created time in 20 days

pull request commentant-design/ant-design

Fix typescript compile error

@zombieJ ci挂了

ztplz

comment created time in 20 days

pull request commentant-design/ant-design

Fix typescript compile error

image

ztplz

comment created time in 20 days

pull request commentant-design/ant-design

Fix typescript compile error

我感觉其他的也会有类似问题 只不过暂时没人提

ztplz

comment created time in 20 days

PR opened ant-design/ant-design

Fix typescript compile error

<!-- First of all, thank you for your contribution! 😄

New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!

[中文版模板 / Chinese template] -->

🤔 This is a ...

  • [ ] New feature
  • [ ] Bug fix
  • [ ] Site / document update
  • [ ] Component style update
  • [x] TypeScript definition update
  • [ ] Refactoring
  • [ ] Code style optimization
  • [ ] Test Case
  • [ ] Branch merge
  • [ ] Other (about what?)

👻 What's the background?

<!--

  1. Describe the source of requirement, like related issue link. https://github.com/ant-design/ant-design/issues/16805
  2. Describe the problem and the scenario. -->

💡 Solution

<!--

  1. How to fix the problem, and list final API implementation and usage sample if that is an new feature.

  2. GIF or snapshot should be provided if includes UI/interactive modification. -->

📝 Changelog

<!-- Describe changes from userside, and list all potential break changes or other risks. --->

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • [ ] Doc is updated/provided or not needed
  • [ ] Demo is updated/provided or not needed
  • [ ] TypeScript definition is updated/provided or not needed
  • [ ] Changelog is provided or not needed
+1 -1

0 comment

1 changed file

pr created time in 20 days

create barnchztplz/ant-design

branch : slider

created branch time in 20 days

delete branch ztplz/ant-design

delete branch : slider

delete time in 20 days

delete branch ztplz/deno

delete branch : typo

delete time in 23 days

pull request commentant-design/ant-design

update Select getPopupContainer type define error

但是不会是null啊 image 要是null 代码都挂了

SunshineH2

comment created time in 23 days

pull request commentant-design/ant-design

update Select getPopupContainer type define error

@chj-damon 你是按照文档字面意思理解的吗 其实就是要你指定一个元素 然后这个popup放你指定的那个元素下面 现在的类型严格意义上来说确实是错的 不光是react的虚拟dom还是真实的dom元素都可以

SunshineH2

comment created time in 23 days

issue commentant-design/ant-design

WeekPicker周和月的语言能够和系统一致

@595113876 你贴代码没用的,之前有过这样的情况,跟moment的引用有关系。你应该建一个重现的git repo,确保环境一致。

595113876

comment created time in 23 days

pull request commentant-design/ant-design

update Select getPopupContainer type define error

为啥会有null null会直接挂吧

SunshineH2

comment created time in 23 days

Pull request review commentant-design/ant-design

Fix the problem that the Slider's Tooltip is in the incorrect position when use modal

 title: Slider | onAfterChange | 与 `onmouseup` 触发时机一致,把当前值作为参数传入。 | Function(value) | NOOP | | onChange | 当 Slider 的值发生改变时,会触发 onChange 事件,并把改变后的值作为参数传入。 | Function(value) | NOOP | | tooltipVisible | 值为`true`时,Tooltip 将会始终显示;否则始终不显示,哪怕在拖拽及移入时。 | Boolean |  |+| getTooltipPopupContainer | 浮层渲染父节点,默认渲染到 body 上。 | Function | () => document.body |

这个从直接组件copy过来的 忘记改了

ztplz

comment created time in 23 days

push eventztplz/ant-design

ztplz

commit sha 951b03f20b4bf94af940126ecbd52c1bde8adb05

Update docs

view details

push time in 23 days

push eventztplz/ant-design

ztplz

commit sha db6a34f43f688ae7281ce9dc0fcfbf7a978c4420

Add docs

view details

push time in 23 days

issue commentant-design/ant-design

WeekPicker周和月的语言能够和系统一致

@595113876 能写个在线例子或者建个重现仓库?

595113876

comment created time in 23 days

issue closedant-design/ant-design

WeekPicker周和月的语言能够和系统一致

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

WeekPicker不设置默认值的情况下,周和月份与系统语言不一致

What does the proposed API look like?

WeekPicker周和月的语言能够和系统一致

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

closed time in 23 days

595113876

issue commentant-design/ant-design

WeekPicker周和月的语言能够和系统一致

这不是一个ui库该做的事,获取系统语言应该由你自己获取,再更改antd的语言设置。

595113876

comment created time in 23 days

Pull request review commentant-design/ant-design

Fix the problem that the Slider's Tooltip is in the incorrect position when use modal

 export interface SliderProps {   id?: string;   style?: React.CSSProperties;   tooltipVisible?: boolean;+  getTooltipPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;

这边怎么复用rc-slider那边

ztplz

comment created time in 24 days

Pull request review commentant-design/ant-design

Fix the problem that the Slider's Tooltip is in the incorrect position when use modal

 export interface SliderProps {   id?: string;   style?: React.CSSProperties;   tooltipVisible?: boolean;+  getTooltipPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;

rc-slider怎么有一个createSliderWithTooltip

ztplz

comment created time in 24 days

PR opened react-component/drawer

Reduce code

Just a improve.

+1 -4

0 comment

1 changed file

pr created time in 24 days

create barnchztplz/drawer

branch : reduce

created branch time in 24 days

push eventztplz/ant-design

ztplz

commit sha 58fceeccd8496e98ec7292f9c904efc1e50af101

Public Slider's ref

view details

push time in 24 days

pull request commentant-design/ant-design

Fix the problem that the Slider's Tooltip is in the incorrect position when use modal

@zombieJ 用户要么加个元素挂上去 要么就挂在slider的ref上 这个要看代码的 我把slider的ref public了

ztplz

comment created time in 24 days

push eventztplz/ant-design

ztplz

commit sha 6d7511512aab3d71bf49369e1513f288fc63d008

getTooltipPopupContainer default to body

view details

push time in 24 days

startedzerosum0x0/CVE-2019-0708

started time in 24 days

Pull request review commentant-design/ant-design

Fix the problem that the Slider's Tooltip is in the incorrect position when use modal

 export default class Slider extends React.Component<SliderProps, SliderState> {         placement="top"         transitionName="zoom-down"         key={index}+        getPopupContainer={() => (this.tooltipRef ? this.tooltipRef.current.handle : document.body)}

那要写个example啊 不然用户要看代码才能知道那个ref是什么

ztplz

comment created time in 24 days

push eventztplz/ant-design

ztplz

commit sha 133e431b3d2f60ce566782ff57c7a06c6691b70d

Update

view details

push time in 24 days

push eventztplz/ant-design

ztplz

commit sha 5e45da5b18abf51a1d9e24bf1299c0338277ddee

Reduce code

view details

push time in 24 days

issue commentant-design/ant-design

Unresponsive Slider when setting trigger to onAfterChange

Emmm... I just forgot this issue. Let me take a look afternoon.

jshailes

comment created time in 24 days

CommitCommentEvent

Pull request review commentant-design/ant-design

Fix the problem that the Slider's Tooltip is in the incorrect position when use modal

 export default class Slider extends React.Component<SliderProps, SliderState> {         placement="top"         transitionName="zoom-down"         key={index}+        getPopupContainer={() => (this.tooltipRef ? this.tooltipRef.current.handle : document.body)}

不用啊 这是特殊场景 应该放在handle这里的 我这里函数没有必要 直接三目就好了

ztplz

comment created time in 24 days

pull request commentant-design/ant-design

Slider

ref: https://github.com/ant-design/ant-design/issues/16669

ztplz

comment created time in 25 days

PR opened ant-design/ant-design

Slider

<!-- First of all, thank you for your contribution! 😄

New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!

[中文版模板 / Chinese template] -->

🤔 This is a ...

  • [ ] New feature
  • [ ] Bug fix
  • [ ] Site / document update
  • [ ] Component style update
  • [ ] TypeScript definition update
  • [ ] Refactoring
  • [ ] Code style optimization
  • [ ] Test Case
  • [ ] Branch merge
  • [ ] Other (about what?)

👻 What's the background?

<!--

  1. Describe the source of requirement, like related issue link.

  2. Describe the problem and the scenario. -->

💡 Solution

<!--

  1. How to fix the problem, and list final API implementation and usage sample if that is an new feature.

  2. GIF or snapshot should be provided if includes UI/interactive modification. -->

📝 Changelog

<!-- Describe changes from userside, and list all potential break changes or other risks. --->

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • [ ] Doc is updated/provided or not needed
  • [ ] Demo is updated/provided or not needed
  • [ ] TypeScript definition is updated/provided or not needed
  • [ ] Changelog is provided or not needed
+5 -0

0 comment

1 changed file

pr created time in 25 days

push eventztplz/ant-design

ztplz

commit sha 4f055525772610712281ccc3b30204b565eed006

Remove useless comment

view details

push time in 25 days

create barnchztplz/ant-design

branch : slider

created branch time in 25 days

delete branch ztplz/ant-design

delete branch : slider

delete time in 25 days

Pull request review commentreact-component/drawer

add key esc

 ReactDom.render( | afterVisibleChange  | func | null | transition end callback(open) | | onMaskClick | func | null | mask close click function | | onHandleClick | func | nul  | handle icon click function |+| keyboard  | boolean |  true | key `esc` close drawer |

不应该是 shortcut 吗, 键盘怪怪的

jljsj33

comment created time in a month

fork ztplz/DOMPurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

https://cure53.de/purify

fork in a month

startedcure53/DOMPurify

started time in a month

fork ztplz/XSStrike

Most advanced XSS scanner.

https://somdev.me/XSStrike/

fork in a month

startedHacker0x01/hacker101

started time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

It looks more like the reason for other configurations. I just created a new project with cra based on the documentation and it's work for me.

EricAdonis

comment created time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

Sorry, as today is the weekend, I was hang out outside during the day. But I have time at night.

EricAdonis

comment created time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

But after I reload, I ran into the error before.

EricAdonis

comment created time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

image Weird., It's work for me. image Css loaded successfully.

EricAdonis

comment created time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

Sure.

require('dotenv').config()
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const HappyPack = require('happypack')
const core = require('os').cpus().length
const happyThreadPool = HappyPack.ThreadPool({ size: core })

module.exports = {
  entry: './test/index.tsx',
  module: {
    rules: [
      {
        test: /\.(tsx|jsx|ts|js)?$/,
        exclude: /node_modules/,
        use: [
          { loader: 'happypack/loader?id=1' }
        ]
      },
      {
        test: /\.css$/,
        use: [
          { loader: 'happypack/loader?id=2' }
        ]
      },
      {
        test: /\.less$/,
        use: [
          { loader: 'happypack/loader?id=3' }
        ]
      },
      {
        test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
        use: [
          { loader: 'happypack/loader?id=4' }
        ]
      },
      {
        test: /\.(png|jpg|jpeg|gif)(\?v=\d+\.\d+\.\d+)?$/i,
        use: [
          { loader: 'happypack/loader?id=5' }
        ]
      }
    ]
  },
  resolve: {
    extensions: [
      '.ts', '.tsx', '.js', '.jsx', '.json', '.less'
    ]
  },
  devtool: 'eval',
  devServer: {
    historyApiFallback: true,
    hot: true,
    hotOnly: true,
    inline: true,
    watchContentBase: true,
    contentBase: [
      path.resolve(__dirname, 'test'),
      path.resolve(__dirname, 'src')
    ],
    compress: true,
    port: process.env.PORT || 12345
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.AutomaticPrefetchPlugin(),
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, 'test/index.html'),
      filename: 'index.html',
      inject: true
    }),
    new HappyPack({
      loaders: [
        {
          loader: 'babel-loader',
          options: {
            cacheDirectory: true,
            presets: [
              '@babel/env',
              '@babel/preset-react',
              '@babel/preset-typescript'
            ],
            plugins: [
              ['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }],
              ['@babel/plugin-proposal-decorators', { legacy: true }],
              ['@babel/plugin-proposal-class-properties', { loose : true }]
            ]
          }
        }
      ],
      threadPool: happyThreadPool,
      threads: core,
      id: '1'
    }),
    new HappyPack({
      loaders: [
        { loader: 'style-loader' },
        { loader: 'css-loader' },
        { loader: 'less-loader', options: { javascriptEnabled: true } }
        // { loader: 'postcss-loader', options: { ident: 'postcss', plugins: [require('autoprefixer')] } }
      ],
      threadPool: happyThreadPool,
      threads: core,
      id: '2'
    }),
    // new HappyPack({
    //   loaders: [
    //     // { loader: 'style-loader' },
    //     // { loader: 'css-loader' },
    //     // { loader: 'postcss-loader', options: { ident: 'postcss', plugins: [require('autoprefixer')] } },
    //     { loader: 'less-loader', options: { javascriptEnabled: true } }
    //   ],
    //   threadPool: happyThreadPool,
    //   threads: core,
    //   id: '3'
    // }),
    new HappyPack({
      loaders: [
        { loader: 'url-loader', options: { limit: 10000, minetype: 'image/svg+xml' } }
      ],
      threadPool: happyThreadPool,
      threads: core,
      id: '3'
    }),
    new HappyPack({
      loaders: [
        { loader: 'url-loader', options: { limit: 10000 } }
      ],
      threadPool: happyThreadPool,
      threads: core,
      id: '4'
    })
  ]
}
EricAdonis

comment created time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

I found some similar problems but they are all about vue. Here is one of them. https://stackoverflow.com/questions/37031123/why-am-i-not-being-able-to-compile-sass-with-webpack The reason for this is that the plugin is configured repeatedly. Then I checked the webpack configuration of your project, which is also duplicated. I commented on the duplicate configuration. But I got a new error, file-loader is not found. I installed file-loader and it's work for me. image

EricAdonis

comment created time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

I guess you have configured the plugin repeatedly. image It worked for me after I commented.

EricAdonis

comment created time in a month

pull request commentreact-component/drawer

Add type definition

一般项目用ts重写的话 肯定能发现不少原来没发现的错误

ztplz

comment created time in a month

pull request commentreact-component/drawer

Add type definition

rc-tool 那边也要改的 现在不会生成 d.ts 文件, image

ztplz

comment created time in a month

issue commentant-design/ant-design

Error when using HRM with less and antd (typescript)

Any mini repo?

EricAdonis

comment created time in a month

pull request commentreact-component/drawer

Add type definition

关了吧 感觉没意义 用ts重写比较好

ztplz

comment created time in a month

PR opened denoland/deno

Fix typo

<!-- Before submitting a PR read https://deno.land/manual.html#contributing -->

+1 -1

0 comment

1 changed file

pr created time in a month

create barnchztplz/deno

branch : typo

created branch time in a month

PR opened ant-design/ant-design

Format

<!-- First of all, thank you for your contribution! 😄

New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!

[中文版模板 / Chinese template] -->

🤔 This is a ...

  • [ ] New feature
  • [ ] Bug fix
  • [ ] Site / document update
  • [x] Component style update
  • [ ] TypeScript definition update
  • [ ] Refactoring
  • [ ] Code style optimization
  • [ ] Test Case
  • [ ] Branch merge
  • [ ] Other (about what?)

👻 What's the background?

<!--

  1. Describe the source of requirement, like related issue link.

  2. Describe the problem and the scenario. -->

💡 Solution

<!--

  1. How to fix the problem, and list final API implementation and usage sample if that is an new feature.

  2. GIF or snapshot should be provided if includes UI/interactive modification. -->

📝 Changelog

<!-- Describe changes from userside, and list all potential break changes or other risks. --->

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • [ ] Doc is updated/provided or not needed
  • [ ] Demo is updated/provided or not needed
  • [ ] TypeScript definition is updated/provided or not needed
  • [ ] Changelog is provided or not needed
+1 -0

0 comment

1 changed file

pr created time in a month

create barnchztplz/ant-design

branch : format

created branch time in a month

delete branch ztplz/ant-design

delete branch : remove

delete time in a month

pull request commentant-design/ant-design

Fix docs

其实也不对 但是加个React又感觉不好

ztplz

comment created time in a month

more