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

Fix 3.0.x ts define #189

Merged
merged 8 commits into from
Aug 9, 2022
Merged

Fix 3.0.x ts define #189

merged 8 commits into from
Aug 9, 2022

Conversation

HaydenOrz
Copy link
Collaborator

@HaydenOrz HaydenOrz commented Aug 4, 2022

ChangeSet

  1. Cicle 组件:修正 Circle 组件的 CicleType 类型定义;并修正 CicleType 类型名称为 CircleType
  2. MultiSearchInput 组件:具名导出 SearchType 类型定义
  3. Cookies 组件:修正类型名称 Filds 为 Fields;并具名导出 Fields 类型定义;移除 getCookieValue 中的 unescape 函数,因为这是无效代码,具体说明看这里
  4. 将 @ant-design/compatible 依赖从 packages.json 的 devDependencies 移到 dependencies,因为 studio 仓库在更新dt-react-component 时会移除 devDependencies 中所有的依赖
  5. 移除下列组件中类型接口中的 children 成员,因为这是无效代码
  • BlockHeaderProps
  • CircleProps
  • ContextMenuItemProps
  • ContextMenuCombinerProps
  • CookiesProps
  • DragDrawerProps
  • ErrorBoundaryProps
  • KeyEventListenerProps
  • ResizeProps
  • ScrollTextProps
  • SwitchWindowProps
  • ToolModalProps

BreakPoint

Circle 组件中导出的 CicleType 类型名称变更为 CircleType

@HaydenOrz HaydenOrz added bug Something isn't working refactor This will improved code readability and reduced complexity labels Aug 4, 2022
@liuxy0551
Copy link
Collaborator

+1

@liuxy0551 liuxy0551 merged commit 3a1738a into beta_3.0.0 Aug 9, 2022
@mumiao mumiao deleted the fix_3.0.x_tsDefine branch August 22, 2022 07:28
mumiao added a commit that referenced this pull request Nov 15, 2022
* build: add sass and uninstall node-sass

* build: update antd 4.x

* build: install @ant-design/compatible

* docs: remove yarn.lock

* build: update antd

* build: update handsontable

* fix: import is replaced with require

* build: import @ant-design/icons

* feat: update stories of ToolModal (#165)

* refactor: upgrade the antd4 for modalwithform (#166)

* feat: delete @ant-design/compatible/assets/index.css

* refactor: compatible handling code for antd 4.x and natter the attention (#167)

* Fix Icon import bug in GoBack and CopyIcon (#164)

* build: update typescript

* chore(release): null

* docs: modified version

* feat: add first pure business component (#168)

* docs: how to contribute (#177)

Co-authored-by: liuyi <liuyi@dtstack.com>

* ci: pr need ci success

* Feat 3.0.0 drag drawer (#175)

* feat: drag drawer complete

* chore: yarnrc node-saas

* feat: drag drawer box-shadow and mask

* feat: drag when more drawer

Co-authored-by: liuyi <liuyi@dtstack.com>

* Feat 3.0.0 block header (#176)

* feat: add components blockHeader

* style: ui check

* feat: feat: add unit cases in BlockHeader

Co-authored-by: liuyi <>
Co-authored-by: beier <beier@dtstack.com>

* ci: node version

* feat: antd 4.x icon (#187)

Co-authored-by: liuyi <liuyi@dtstack.com>

* feat: config node version

* chore: yarn registry

* Fix 3.0.x ts define (#189)

* fix: correct ts definition and optimize code of Circle component

* feat: expose type definition of SearchType

* fix: remove useless prop in ContextMenuCombinerProps

* fix: expose type Fields and correct useless code

* fix: oprimize DragDrawerProps

* fix: optimize props of div in Circle component

* fix: move @ant-design/compatible to dependencies in package.json

* fix: remove children in react component props interface

* fix: yarn check-types

* Feat 3.0.x ci (#196)

* fix: yarn check-types

* ci: yml file

* ci: deploy-storybook with github token

* test(global): rgc blockHeader snapshoot and fix components unit cases

* test(global): refactor modalWithForm components unitcases

* test(blockHeader): fix blockHeader unit cases

* test(mulSelectDropdown): fix mulSelectDropdown unit cases

* ci(global): resolve ci problems

Co-authored-by: liuyi <liuyi@dtstack.com>

* chore: lock antd version

* fix: yarn check-types (#194)

* fix: yarn check-types

* chore: lock antd version

Co-authored-by: liuyi <liuyi@dtstack.com>

* feat: add unit cases in dragDrawer (#188)

* feat: add unit cases in dragDrawer

* fix: merge beta_3.0.0 to fix unit Test

* ci: use yarn registry

* ci: build test

Co-authored-by: liuyi <liuyi@dtstack.com>

* ci: cache key

* feat: antd 4.x icon

* test: mxGraph test waitFor

* refactor: use antd4.0 form (#203)

* feat: supprt initialValue for RenderFormItem (#204)

* feat: add form.layout (#205)

* ci: pr need CI

* Beta 3.0.0 modal with form fc (#207)

* feat: add tooltip to formitem

* refactor: reconstruct ModalWithForm using function components

* feat: the hideModelHandler method removed from the successful callback (#208)

* feat: supprt name for NamePath (#211)

* Beta 3.0.0 form component (#212)

* feat: add extra params

* docs: delete text

* Feat beta 3.0.0 drag drawer (#214)

* fix: add classname for DragDrawer

* fix: fix dragDrawer unit test

* build: upgrade handsontable related package (#216)

* feat: upgrade handsontable@7.0.1

* feat: upgrade @handsontable/react@3.0.0

* improvement:  modified .gitignore

* fix: delete unless .ide config files

* feat: remove empty folder

Co-authored-by: liuyi <liuyi@dtstack.com>

* style: fix style lint error (#217)

* style: fix style lint error

* fix: delete unless files

* ci: run when PR

* feat: update antd version (#220)

* test:  refactor breadcrumb  components and tests (#223)

* chore: delete unless unitTest cases

* test: refactor breadcrumb test

* fix: delete unless files

* feat: add breadcrumb separator stories

* fix: delete unless files

* Support confirmLoading in modalWithForm and refactor code (#224)

* feat: support confirmLoading in ModalWithForm

* refactor: refactor modalWithForm componnet stories part

* fix: delete unless components

* fix: delete unless .idea files

* feat: add modalWithForm codeExmaples

* feat: test confirmLoading in modalWithForm

* fix: delete unless files

* ci: fix hideModalHandler type definition in modalpropsInterface

* fix: delete unless files

* fix: rename hideModelHandler for hideModalHandler

* docs: document url

* ci: branch

* feat: add empty component (#226)

* feat: add empty component

* feat: update review comment

* feat: update empty __snapshots__

* Feat beta 3.0.0 StatusTag (#230)

* feat: update Circle

* feat: update Circle for noBorderCode

* feat: update Circle name to SattusTag

* fix: update __snapshots__ for StatusTag

* fix: update variable name

* fix: rename with restProps in empty Component

* feat: add preserve attr (#231)

* feat: add preserve attr

* feat: integrate the properties of antd Forms

* feat: rest is replaced with restProps

* Beta 3.0.0 lint (#235)

* chore: add ko-lint-config

* feat: remove eslint disable

* chore: prettier fix

* chore: eslint fix

* chore: stylelint fix

* ci: lint ci

Co-authored-by: liuyi <liuyi@dtstack.com>

* feat: update BlockHeader (#236)

* feat: update BlockHeader

* fix: update questionTooltip have tooltip and judge chilren length

* feat: add okbuttonprops for modalwithform (#234)

* feat: add okbuttonprops for modalwithform

* Beta 3.0.0 lint (#235)

* chore: add ko-lint-config

* feat: remove eslint disable

* chore: prettier fix

* chore: eslint fix

* chore: stylelint fix

* ci: lint ci

Co-authored-by: liuyi <liuyi@dtstack.com>

* feat: add onButtonProps test

* feat: update doc and eslint

* feat: add okbuttonprops for modalwithform

* feat: add onButtonProps test

* feat: update doc and eslint

* fix: update eslint

Co-authored-by: Liuyi <liuxy0551@qq.com>
Co-authored-by: liuyi <liuyi@dtstack.com>

* fix: update circle width 6px (#238)

* Modal with form form props (#239)

* refactor: filter out the props of the form

* build: add @testing-library/react-hooks

* test: test useFilterFormProps

* style: fix eslint

Co-authored-by: zaoei <zaoei0108@gmail.com>

* feat: support width for ModalWithForm (#242)

* feat: support more image for empty (#244)

* feat: add addonAfter param the blockHeader component (#246)

* Feat beta 3.0.0 support class name (#245)

* feat: update className for component

* feat: update className for component

* feat: fix locate module cant mapped

* Beta 3.0.0 drawer (#248)

* feat: for antd4.x drawer

* chore: remove DragDrawer

* feat: update SlidePane icon

Co-authored-by: liuyi <liuyi@dtstack.com>

* feat: develop contextMenu (#240)

* chore: remove contextMenuCombiner component

* refactor: replace contextMenu with dropdown

* fix: improve ci

* test(contextMenu): update test cases

* fix: support popconfirm in ContextMenu

* test: update tests

* fix: prevent render dropdown with empty data

Co-authored-by: Bell <47959147+shiqiWang0@users.noreply.github.com>
Co-authored-by: Dienww <32919473+Dienww@users.noreply.github.com>
Co-authored-by: liuxingYuuu <48277170+liuxingYuuu@users.noreply.github.com>
Co-authored-by: Liuxy0551 <liuxy0551@qq.com>
Co-authored-by: liuyi <liuyi@dtstack.com>
Co-authored-by: beier <beier@dtstack.com>
Co-authored-by: Hayden <58289241+HaydenOrz@users.noreply.github.com>
Co-authored-by: mumiao <mumiao@dtstack.com>
Co-authored-by: JingMing <46592356+Zaoei@users.noreply.github.com>
Co-authored-by: LuckyFBB <38368040+LuckyFBB@users.noreply.github.com>
Co-authored-by: mumiao <1270865802zl@gmail.com>
Co-authored-by: zaoei <zaoei0108@gmail.com>
Co-authored-by: 野迂迂 <yangwei1@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor This will improved code readability and reduced complexity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants