mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
docs(drawer): caveat
This commit is contained in:
parent
a57815d2bf
commit
e6178282d0
@ -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
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
我感觉和 Modal 功能差不太多,位置有点差别。
|
||||
|
||||
<n-alert title="提示" type="warning">
|
||||
如果你需要使用 `n-drawer-content`,`n-drawer` 的 `native-scrollbar` 需要保持为 `true`。
|
||||
</n-alert>
|
||||
|
||||
## 演示
|
||||
|
||||
```demo
|
||||
|
@ -5,6 +5,7 @@
|
||||
"rootDir": ".",
|
||||
"outDir": "../lib",
|
||||
"module": "CommonJS",
|
||||
"target": "ES6"
|
||||
"target": "ES6",
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,7 @@
|
||||
"rootDir": ".",
|
||||
"outDir": "../es",
|
||||
"module": "ES6",
|
||||
"target": "ES6"
|
||||
"target": "ES6",
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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" }]
|
||||
}
|
||||
|
@ -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" }]
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
},
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"jsx": "react",
|
||||
"jsx": "preserve",
|
||||
"jsxFactory": "h",
|
||||
"jsxFragmentFactory": "Fragment",
|
||||
"noImplicitAny": true,
|
||||
|
Loading…
Reference in New Issue
Block a user