@kne/react-modal 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -40,8 +40,9 @@ npm i --save @kne/react-modal
40
40
  #### 示例样式
41
41
 
42
42
  ```scss
43
- /* 示例业务 UI(布局滚动等仍用 @kne/react-modal/dist/index.css) */
44
-
43
+ /* 示例业务 UI(布局滚动等仍用 @kne/react-modal/dist/index.css)
44
+ * Modal/Drawer 挂到 body,demo 类名须 @at-root 逃出 md-doc scope 包裹 */
45
+ @at-root {
45
46
  .candidate-list-toolbar {
46
47
  display: flex;
47
48
  flex-direction: column;
@@ -222,6 +223,7 @@ npm i --save @kne/react-modal
222
223
  color: rgba(0, 0, 0, 0.65);
223
224
  line-height: 1.7;
224
225
  }
226
+ }
225
227
  ```
226
228
 
227
229
  #### 示例代码
@@ -313,7 +315,7 @@ render(
313
315
 
314
316
  - footerButtons 与尺寸
315
317
  - Modal / Drawer 切换:size / footerButtons / 左侧 footer 插槽 / noPadding 预览
316
- - _ReactModal(@kne/current-lib_react-modal)[import * as _ReactModal from "@kne/react-modal"],(@kne/current-lib_react-modal/dist/index.css),(@kne/current-lib_react-modal/doc/style.scss),antd(antd)
318
+ - _ReactModal(@kne/current-lib_react-modal)[import * as _ReactModal from "@kne/react-modal"],(@kne/current-lib_react-modal/dist/index.css),antd(antd)
317
319
 
318
320
  ```jsx
319
321
  const { default: Modal, Drawer, DrawerContextHolder } = _ReactModal;
@@ -1203,7 +1205,7 @@ render(
1203
1205
 
1204
1206
  - 批量候选人评估(Tabs + 分栏)
1205
1207
  - Modal / Drawer 切换:Tabs 分栏 / Splitter / 批次概览
1206
- - _ReactModal(@kne/current-lib_react-modal)[import * as _ReactModal from "@kne/react-modal"],(@kne/current-lib_react-modal/dist/index.css),antd(antd),(@kne/current-lib_react-modal/doc/style.scss)
1208
+ - _ReactModal(@kne/current-lib_react-modal)[import * as _ReactModal from "@kne/react-modal"],(@kne/current-lib_react-modal/dist/index.css),antd(antd)
1207
1209
 
1208
1210
  ```jsx
1209
1211
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kne/react-modal",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "基于 antd 的 React 弹层组件,提供 Modal/Drawer、useModal/useDrawer/useConfirmModal、共用 TabsLayout/ScrollRegion 布局与 createModalRender/createDrawerRender,支持 SimpleBar 与移动端适配。",
5
5
  "syntax": {
6
6
  "esmodules": true