mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 图表组件图片换成懒加载
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { App } from 'vue';
|
||||
import VueLazyLoad from 'vue3-lazyload'
|
||||
import { requireErrorImg } from '@/utils'
|
||||
|
||||
// import { x } from '@/directives';
|
||||
|
||||
@@ -7,5 +9,9 @@ import { App } from 'vue';
|
||||
* @param app
|
||||
*/
|
||||
export function setupDirectives(app: App) {
|
||||
// 图片懒加载
|
||||
app.use(VueLazyLoad, {
|
||||
error: requireErrorImg(),
|
||||
})
|
||||
// app.directive('x', x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user