-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat(cascader): cascader #475
base: develop
Are you sure you want to change the base?
Conversation
cascader Tencent#426
import useDefault from 'tdesign-mobile-react/_util/useDefault'; | ||
import { Popup } from 'tdesign-mobile-react/popup'; | ||
import { Radio, RadioGroup } from 'tdesign-mobile-react/radio'; | ||
import Tabs from 'tdesign-mobile-react/tabs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs 已完成组件升级,辛苦rebase dev
import last from 'lodash/last'; | ||
import React, { forwardRef, useCallback, useContext, useEffect, useMemo, useState } from 'react'; | ||
import { CheckIcon, Icon } from 'tdesign-icons-react'; | ||
import useDefault from 'tdesign-mobile-react/_util/useDefault'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
组件内部使用相对路径
@@ -5,7 +5,7 @@ import { ReactElement, ReactNode, CSSProperties, FormEvent, DragEvent, Synthetic | |||
// TElement 表示 API 只接受传入组件 | |||
export type TElement<T = undefined> = T extends undefined ? ReactElement : (props: T) => ReactElement; | |||
// 1. TNode = ReactNode; 2. TNode<T> = (props: T) => ReactNode | |||
export type TNode<T = undefined> = T extends undefined ? ReactNode : (props: T) => ReactNode; | |||
export type TNode<T = undefined> = T extends undefined ? ReactNode | (() => ReactNode) : ReactNode | ((props: T) => ReactNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里暂时不更新,等全量组件全部升级完之后在更新~
@@ -0,0 +1,11 @@ | |||
.t-cascader { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
理论上不需要复写样式🤔
fix #426
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
feat(cascader): 新增 cascader 组件
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单