docs(drawer): caveat

This commit is contained in:
07akioni 2022-04-17 19:42:22 +08:00
parent a57815d2bf
commit e6178282d0
7 changed files with 23 additions and 15 deletions

View File

@ -2,6 +2,10 @@
I think it is similar with modal, with a bit difference on placement.
<n-alert title="提示" type="warning">
If you need to use `n-drawer-content`, you should keep `n-drawer`'s `native-scrollbar` prop as `true`.
</n-alert>
## Demos
```demo

View File

@ -2,6 +2,10 @@
我感觉和 Modal 功能差不太多,位置有点差别。
<n-alert title="提示" type="warning">
如果你需要使用 `n-drawer-content``n-drawer` 的 `native-scrollbar` 需要保持为 `true`
</n-alert>
## 演示
```demo

View File

@ -5,6 +5,7 @@
"rootDir": ".",
"outDir": "../lib",
"module": "CommonJS",
"target": "ES6"
"target": "ES6",
"jsx": "react"
}
}
}

View File

@ -5,6 +5,7 @@
"rootDir": ".",
"outDir": "../es",
"module": "ES6",
"target": "ES6"
"target": "ES6",
"jsx": "react"
}
}
}

View File

@ -4,9 +4,8 @@
"rootDir": "./src",
"outDir": "./lib",
"module": "CommonJS",
"target": "ES6"
"target": "ES6",
"jsx": "react"
},
"references": [
{ "path": "../../src/tsconfig.cjs.json" }
]
}
"references": [{ "path": "../../src/tsconfig.cjs.json" }]
}

View File

@ -4,9 +4,8 @@
"rootDir": "./src",
"outDir": "./es",
"module": "ES6",
"target": "ES6"
"target": "ES6",
"jsx": "react"
},
"references": [
{ "path": "../../src/tsconfig.esm.json" }
]
}
"references": [{ "path": "../../src/tsconfig.esm.json" }]
}

View File

@ -5,7 +5,7 @@
},
"strict": true,
"strictNullChecks": true,
"jsx": "react",
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"noImplicitAny": true,