-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feature/collapse transition #72
base: main
Are you sure you want to change the base?
Conversation
npm install 额 |
import { css, globalCSS } from 'omi'; | ||
|
||
import globalStye from '../_common/style/web/_global.less'; | ||
import themeStyle from '../_common/style/web/theme/_index.less'; |
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.
不需要使用theme.less,已经在style中引入
@@ -1,4 +1,4 @@ | |||
import { bind, Component, signal, tag } from 'omi'; |
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.
需要增加static propsType,在纯html环境下需要使用
src/collapse/collapse-panel.tsx
Outdated
@tag('t-collapse-panel') | ||
export default class CollapsePanel extends Component<TdCollapsePanelProps> { | ||
static isLightDom = true; | ||
static css = [ | ||
`.t-collapse-panel__wrapper--border-less .t-collapse-panel__header { |
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.
class的t使用classPrefix替换
collapse 组件