@bubblesjs/vue-infinite-scroll 0.0.4 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,28 +2,32 @@
2
2
 
3
3
  pnpm install @bubblesjs/vue-infinite-scroll
4
4
 
5
-
6
5
  ### 使用
7
6
 
8
7
  ```vue
9
- <template>
10
- <InfiniteScoll :animation-time="20">
11
- <div v-for="row in tableData" :key="row.id" class="table-row">
12
- <div class="cell" style="width: 60px">{{ row.id }}</div>
13
- <div class="cell" style="width: 80px">{{ row.name }}</div>
14
- <div class="cell" style="width: 60px">{{ row.age }}</div>
15
- <div class="cell" style="width: 80px">{{ row.city }}</div>
16
- <div class="cell" style="width: 160px">{{ row.email }}</div>
17
- </div>
18
- </InfiniteScoll>
19
- </template>
20
-
21
-
22
8
  <script setup lang="ts">
23
9
  import { InfiniteScoll } from '@bubblesjs/vue-infinite-scroll'
24
10
  </script>
25
- ```
26
-
27
-
28
-
29
11
 
12
+ <template>
13
+ <InfiniteScoll :animation-time="20">
14
+ <div v-for="row in tableData" :key="row.id" class="table-row">
15
+ <div class="cell" style="width: 60px">
16
+ {{ row.id }}
17
+ </div>
18
+ <div class="cell" style="width: 80px">
19
+ {{ row.name }}
20
+ </div>
21
+ <div class="cell" style="width: 60px">
22
+ {{ row.age }}
23
+ </div>
24
+ <div class="cell" style="width: 80px">
25
+ {{ row.city }}
26
+ </div>
27
+ <div class="cell" style="width: 160px">
28
+ {{ row.email }}
29
+ </div>
30
+ </div>
31
+ </InfiniteScoll>
32
+ </template>
33
+ ```
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import * as vue0 from "vue";
2
-
3
1
  //#region src/InfiniteScoll.vue.d.ts
4
2
  type __VLS_Props = {
5
3
  animationTime?: number;
@@ -8,9 +6,9 @@ declare var __VLS_1: {};
8
6
  type __VLS_Slots = {} & {
9
7
  default?: (props: typeof __VLS_1) => any;
10
8
  };
11
- declare const __VLS_base: vue0.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
10
  animationTime: number;
13
- }, {}, {}, {}, string, vue0.ComponentProvideOptions, false, {}, any>;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
13
  declare const _default: typeof __VLS_export;
16
14
  type __VLS_WithSlots<T, S> = T & {
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { createElementBlock, createElementVNode, defineComponent, nextTick, normalizeStyle, openBlock, ref, renderSlot, useSlots, useTemplateRef, watch } from "vue";
2
-
3
2
  //#region src/InfiniteScoll.vue?vue&type=script&setup=true&lang.ts
4
3
  const _hoisted_1 = { class: "warper" };
5
- var InfiniteScoll_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4
+ var InfiniteScoll_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
6
5
  __name: "InfiniteScoll",
7
6
  props: { animationTime: {
8
7
  type: Number,
@@ -54,7 +53,6 @@ var InfiniteScoll_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
54
53
  };
55
54
  }
56
55
  });
57
-
58
56
  //#endregion
59
57
  //#region \0plugin-vue:export-helper
60
58
  var _plugin_vue_export_helper_default = (sfc, props) => {
@@ -62,10 +60,8 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
62
60
  for (const [key, val] of props) target[key] = val;
63
61
  return target;
64
62
  };
65
-
66
63
  //#endregion
67
64
  //#region src/InfiniteScoll.vue
68
- var InfiniteScoll_default = /* @__PURE__ */ _plugin_vue_export_helper_default(InfiniteScoll_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-e9fa5fec"]]);
69
-
65
+ var InfiniteScoll_default = /*#__PURE__*/ _plugin_vue_export_helper_default(InfiniteScoll_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-e9fa5fec"]]);
70
66
  //#endregion
71
- export { InfiniteScoll_default as InfiniteScoll };
67
+ export { InfiniteScoll_default as InfiniteScoll };
@@ -25,4 +25,3 @@
25
25
  transform: translateY(-50%);
26
26
  }
27
27
  }
28
-
package/package.json CHANGED
@@ -1,58 +1,59 @@
1
1
  {
2
2
  "name": "@bubblesjs/vue-infinite-scroll",
3
- "type": "module",
4
- "version": "0.0.4",
3
+ "version": "0.0.7",
5
4
  "private": false,
6
5
  "description": "A scroll-infinite for a Vue3 component.",
7
- "author": "bubblesplant<435012357@qq.com>",
8
- "license": "MIT",
9
6
  "homepage": "https://github.com/author/library#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/author/library/issues"
9
+ },
10
+ "license": "MIT",
11
+ "author": "bubblesplant<435012357@qq.com>",
10
12
  "repository": {
11
13
  "type": "git",
12
14
  "url": "git+https://github.com/author/library.git"
13
15
  },
14
- "bugs": {
15
- "url": "https://github.com/author/library/issues"
16
- },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "type": "module",
20
+ "main": "./dist/index.js",
21
+ "module": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
17
23
  "exports": {
18
24
  ".": "./dist/index.js",
19
25
  "./package.json": "./package.json"
20
26
  },
21
- "main": "./dist/index.js",
22
- "module": "./dist/index.js",
23
- "types": "./dist/index.d.ts",
24
- "files": [
25
- "dist"
26
- ],
27
27
  "publishConfig": {
28
- "access": "public"
29
- },
30
- "peerDependencies": {
31
- "vue": "^3.0.0"
28
+ "access": "public",
29
+ "registry": "https://registry.npmjs.org/"
32
30
  },
33
31
  "devDependencies": {
34
- "@antfu/eslint-config": "^6.7.1",
32
+ "@antfu/eslint-config": "^9.5.1",
35
33
  "@types/node": "^24.10.1",
36
- "@unocss/eslint-plugin": "^66.5.10",
34
+ "@unocss/eslint-plugin": "^66.11.0",
37
35
  "@vitejs/plugin-vue": "^6.0.2",
38
- "@vitest/browser-playwright": "^4.0.15",
36
+ "@vitest/browser-playwright": "^5.0.4",
39
37
  "bumpp": "^10.3.2",
40
- "eslint": "^9.39.2",
41
- "eslint-plugin-format": "^1.1.0",
42
- "playwright": "^1.57.0",
43
- "tsdown": "^0.18.2",
44
- "typescript": "^5.9.3",
45
- "vite": "^7.2.6",
46
- "vitest": "^4.0.15",
47
- "vitest-browser-vue": "^2.0.1",
48
- "vue": "^3.5.25",
38
+ "eslint": "^10.12.0",
39
+ "eslint-plugin-format": "^2.0.1",
40
+ "playwright": "^1.64.0",
41
+ "typescript": "^6.0.3",
42
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.1.0",
43
+ "vite-plus": "1.1.0",
44
+ "vitest": "^5.0.4",
45
+ "vitest-browser-vue": "^3.1.0",
46
+ "vue": "^3.5.43",
49
47
  "vue-tsc": "^3.1.6"
50
48
  },
49
+ "peerDependencies": {
50
+ "vue": "^3.0.0"
51
+ },
51
52
  "scripts": {
52
- "build": "tsdown",
53
- "dev": "tsdown --watch",
54
- "play": "vite",
55
- "test": "vitest",
53
+ "build": "vp pack",
54
+ "dev": "vp pack --watch",
55
+ "play": "vp dev",
56
+ "test": "vp test",
56
57
  "typecheck": "vue-tsc --noEmit",
57
58
  "release": "bumpp && pnpm publish"
58
59
  }