Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: a demo use typescript #21045

Merged
merged 3 commits into from Jan 21, 2020
Merged

docs: a demo use typescript #21045

merged 3 commits into from Jan 21, 2020

Conversation

xiaohuoni
Copy link
Member

@xiaohuoni xiaohuoni commented Jan 21, 2020

🤔 This is a ...

affix、alert、anchor、auto-complete、avatar 组件demo,使用 typescript 重写

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

🔗 Related issue link

💡 Background and solution

📝 Changelog

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

View rendered components/affix/demo/on-change.md
View rendered components/alert/demo/banner.md
View rendered components/alert/demo/basic.md
View rendered components/alert/demo/closable.md
View rendered components/alert/demo/close-text.md
View rendered components/alert/demo/custom-icon.md
View rendered components/alert/demo/description.md
View rendered components/alert/demo/error-boundary.md
View rendered components/alert/demo/icon.md
View rendered components/alert/demo/smooth-closed.md
View rendered components/alert/demo/style.md
View rendered components/anchor/demo/basic.md
View rendered components/anchor/demo/customizeHighlight.md
View rendered components/anchor/demo/onChange.md
View rendered components/anchor/demo/onClick.md
View rendered components/anchor/demo/static.md
View rendered components/anchor/demo/targetOffset.md
View rendered components/auto-complete/demo/basic.md
View rendered components/auto-complete/demo/certain-category.md
View rendered components/auto-complete/demo/custom.md
View rendered components/auto-complete/demo/form-debug.md
View rendered components/auto-complete/demo/non-case-sensitive.md
View rendered components/auto-complete/demo/options.md
View rendered components/auto-complete/demo/uncertain-category.md
View rendered components/avatar/demo/badge.md
View rendered components/avatar/demo/basic.md
View rendered components/avatar/demo/dynamic.md
View rendered components/avatar/demo/toggle-debug.md
View rendered components/avatar/demo/type.md

@ant-design-bot
Copy link
Contributor

@ant-design-bot ant-design-bot commented Jan 21, 2020

@codesandbox-ci
Copy link

@codesandbox-ci codesandbox-ci bot commented Jan 21, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1c1c30e:

Sandbox Source
antd reproduction template Configuration

@codesandbox-ci
Copy link

@codesandbox-ci codesandbox-ci bot commented Jan 21, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit fa14546:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

@codecov codecov bot commented Jan 21, 2020

Codecov Report

Merging #21045 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #21045   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files         296      296           
  Lines        6910     6910           
  Branches     1917     1918    +1     
=======================================
  Hits         6736     6736           
  Misses        174      174

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb43d75...fa14546. Read the comment docs.

@zombieJ
Copy link
Member

@zombieJ zombieJ commented Jan 21, 2020

import React from 'react'; is removable

@xiaohuoni xiaohuoni merged commit c811520 into master Jan 21, 2020
27 checks passed
@xiaohuoni xiaohuoni deleted the a-demo-use-hooks-and-typescript branch Jan 21, 2020
@@ -14,12 +14,11 @@ title:
The simplest usage.

```tsx
import React, { useState, FC } from 'react';
Copy link
Member

@afc163 afc163 Jan 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

尽量保留这个引用,这样和真实场景更接近。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants