fix(layout-sider): placement right does not work (#996)

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
Yugang Cao 2021-08-28 00:06:08 +08:00 committed by GitHub
parent 1cfa229e89
commit 32b30ff2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,10 @@
## Pending
### Fixes
- Fix `n-layout`'s `sider-placement` doesn't work after build, closes [#978](https://github.com/TuSimple/naive-ui/issues/978).
### Feats
- `n-cascader` add `onUpdateValue` prop.

View File

@ -2,6 +2,10 @@
## Pending
### Fixes
- 修复 `n-layout``sider-placement` 属性在打包之后不生效,关闭 [#978](https://github.com/TuSimple/naive-ui/issues/978)
### Feats
- `n-cascader` 新增 `onUpdateValue` 方法

View File

@ -83,7 +83,7 @@ export function createLayoutComponent (isContent: boolean) {
}
}
}
if (__DEV__) provide(layoutInjectionKey, props)
provide(layoutInjectionKey, props)
const hasSiderStyle: CSSProperties = {
display: 'flex',
flexWrap: 'nowrap',