mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
fix: lint
This commit is contained in:
parent
899f79f8a2
commit
7a805289de
@ -116,10 +116,11 @@ export default defineConfig({
|
||||
},
|
||||
transformHtml(code, id) {
|
||||
const html = id.split('/').pop()
|
||||
if (!html) return
|
||||
if (!html)
|
||||
return
|
||||
const style = fileAndStyles[`/${html}`]
|
||||
if (style) {
|
||||
return code.replace(/<\/head>/, style + '</head>')
|
||||
return code.replace(/<\/head>/, `${style}</head>`)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -116,10 +116,11 @@ export default defineConfig({
|
||||
},
|
||||
transformHtml(code, id) {
|
||||
const html = id.split('/').pop()
|
||||
if (!html) return
|
||||
if (!html)
|
||||
return
|
||||
const style = fileAndStyles[`/${html}`]
|
||||
if (style) {
|
||||
return code.replace(/<\/head>/, style + '</head>')
|
||||
return code.replace(/<\/head>/, `${style}</head>`)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -34,15 +34,12 @@ export default defineComponent({
|
||||
const scrollTop = containerRef?.scrollTop
|
||||
|
||||
if (
|
||||
containerRef &&
|
||||
scrollHeight !== undefined &&
|
||||
clientHeight !== undefined &&
|
||||
scrollTop !== undefined
|
||||
) {
|
||||
if (
|
||||
scrollTop + clientHeight >=
|
||||
scrollHeight - props.distance
|
||||
containerRef
|
||||
&& scrollHeight !== undefined
|
||||
&& clientHeight !== undefined
|
||||
&& scrollTop !== undefined
|
||||
) {
|
||||
if (scrollTop + clientHeight >= scrollHeight - props.distance) {
|
||||
loading = true
|
||||
try {
|
||||
await props.onLoad?.()
|
||||
|
Loading…
Reference in New Issue
Block a user