From f46c9c654820e77025b03ec4ee852fb988d0c225 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 26 Jun 2022 21:58:13 +0800 Subject: [PATCH] chore: improve license of forked code (#10753) --- packages/vant/src/lazyload/vue-lazyload/index.js | 1 + packages/vant/src/lazyload/vue-lazyload/lazy-component.js | 5 +++++ packages/vant/src/lazyload/vue-lazyload/lazy-container.js | 5 +++++ packages/vant/src/lazyload/vue-lazyload/lazy-image.js | 5 +++++ packages/vant/src/lazyload/vue-lazyload/lazy.js | 5 +++++ packages/vant/src/lazyload/vue-lazyload/listener.js | 5 +++++ packages/vant/src/lazyload/vue-lazyload/util.js | 5 +++++ 7 files changed, 31 insertions(+) diff --git a/packages/vant/src/lazyload/vue-lazyload/index.js b/packages/vant/src/lazyload/vue-lazyload/index.js index 209186859..2bdcabdf7 100644 --- a/packages/vant/src/lazyload/vue-lazyload/index.js +++ b/packages/vant/src/lazyload/vue-lazyload/index.js @@ -1,5 +1,6 @@ /** * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support. + * license at https://github.com/hilongjw/vue-lazyload/blob/master/LICENSE */ import Lazy from './lazy'; diff --git a/packages/vant/src/lazyload/vue-lazyload/lazy-component.js b/packages/vant/src/lazyload/vue-lazyload/lazy-component.js index 9f47cf5b3..5f92a0222 100644 --- a/packages/vant/src/lazyload/vue-lazyload/lazy-component.js +++ b/packages/vant/src/lazyload/vue-lazyload/lazy-component.js @@ -1,3 +1,8 @@ +/** + * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support. + * license at https://github.com/hilongjw/vue-lazyload/blob/master/LICENSE + */ + import { h } from 'vue'; import { inBrowser, useRect } from '@vant/use'; diff --git a/packages/vant/src/lazyload/vue-lazyload/lazy-container.js b/packages/vant/src/lazyload/vue-lazyload/lazy-container.js index cb9f75dc1..1fce17b5c 100644 --- a/packages/vant/src/lazyload/vue-lazyload/lazy-container.js +++ b/packages/vant/src/lazyload/vue-lazyload/lazy-container.js @@ -1,3 +1,8 @@ +/** + * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support. + * license at https://github.com/hilongjw/vue-lazyload/blob/master/LICENSE + */ + /* eslint-disable max-classes-per-file */ /* eslint-disable prefer-object-spread */ import { remove } from './util'; diff --git a/packages/vant/src/lazyload/vue-lazyload/lazy-image.js b/packages/vant/src/lazyload/vue-lazyload/lazy-image.js index 1aec9cbf9..40d7045ae 100644 --- a/packages/vant/src/lazyload/vue-lazyload/lazy-image.js +++ b/packages/vant/src/lazyload/vue-lazyload/lazy-image.js @@ -1,3 +1,8 @@ +/** + * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support. + * license at https://github.com/hilongjw/vue-lazyload/blob/master/LICENSE + */ + import { useRect } from '@vant/use'; import { loadImageAsync } from './util'; import { noop } from '../../utils'; diff --git a/packages/vant/src/lazyload/vue-lazyload/lazy.js b/packages/vant/src/lazyload/vue-lazyload/lazy.js index 04435a862..add718e48 100644 --- a/packages/vant/src/lazyload/vue-lazyload/lazy.js +++ b/packages/vant/src/lazyload/vue-lazyload/lazy.js @@ -1,3 +1,8 @@ +/** + * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support. + * license at https://github.com/hilongjw/vue-lazyload/blob/master/LICENSE + */ + import { nextTick } from 'vue'; import { inBrowser, getScrollParent } from '@vant/use'; import { diff --git a/packages/vant/src/lazyload/vue-lazyload/listener.js b/packages/vant/src/lazyload/vue-lazyload/listener.js index cca90d029..69bbc4c80 100644 --- a/packages/vant/src/lazyload/vue-lazyload/listener.js +++ b/packages/vant/src/lazyload/vue-lazyload/listener.js @@ -1,3 +1,8 @@ +/** + * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support. + * license at https://github.com/hilongjw/vue-lazyload/blob/master/LICENSE + */ + import { useRect } from '@vant/use'; import { loadImageAsync } from './util'; import { noop } from '../../utils'; diff --git a/packages/vant/src/lazyload/vue-lazyload/util.js b/packages/vant/src/lazyload/vue-lazyload/util.js index 6929b89c7..e5ecc623f 100644 --- a/packages/vant/src/lazyload/vue-lazyload/util.js +++ b/packages/vant/src/lazyload/vue-lazyload/util.js @@ -1,3 +1,8 @@ +/** + * This is a fork of [vue-lazyload](https://github.com/hilongjw/vue-lazyload) with Vue 3 support. + * license at https://github.com/hilongjw/vue-lazyload/blob/master/LICENSE + */ + import { inBrowser } from '@vant/use'; export const hasIntersectionObserver =