Skip to content

Commit 0a21d67

Browse files
authored
Merge pull request #15 from FallingCeilingS/v0.1.5/optimise-pack-size
Optimise pack size
2 parents 2cc47fc + 881d918 commit 0a21d67

9 files changed

+265
-1114
lines changed

.npmignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
public
33
examples
44
build
5+
src
56
.editorconfig
67
babel.config.js
78
.eslintrc.js
89
babel.config.js
9-
tsconfig.json
1010
vue.config.js
11+
tsconfig.json
12+
api-extractor.json
1113
*.gif
1214
*.log
1315
*.lock

build/rollup.config.browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config = Object.assign({}, base, {
77
name: "VueVirtualised",
88
file: "dist/vue-virtualised.min.js",
99
format: "iife",
10-
sourcemap: true,
10+
sourcemap: false,
1111
inlineDynamicImports: true,
1212
},
1313
});

build/rollup.config.umd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config = Object.assign({}, base, {
66
name: "VueVertualised",
77
file: "dist/vue-virtualised.umd.js",
88
format: "umd",
9-
sourcemap: true,
9+
sourcemap: false,
1010
// https://github.com/lukeed/navaid/issues/5
1111
inlineDynamicImports: true,
1212
},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-virtualised",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"private": false,
55
"description": "Vue components developed by Vue.js 3.0 for efficiently rendering large scrollable lists and hierarchical data. vue-virtualised is able to render and update 1 million nodes within a few seconds in front-end.",
66
"author": {
@@ -47,7 +47,7 @@
4747
"@vue/cli-plugin-babel": "~5.0.0-alpha.7",
4848
"@vue/cli-plugin-eslint": "~5.0.0-alpha.7",
4949
"@vue/cli-plugin-typescript": "~5.0.0-alpha.8",
50-
"@vue/cli-service": "~5.0.0-alpha.7",
50+
"@vue/cli-service": "^5.0.0-beta.0",
5151
"@vue/compiler-sfc": "^3.0.10",
5252
"@vue/eslint-config-prettier": "^6.0.0",
5353
"@vue/eslint-config-typescript": "^7.0.0",

src/App.vue

-27
This file was deleted.

src/components/Base/VirtualisedBaseScroller.vue

+1
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ export default defineComponent({
353353
requestAnimationFrame(() => {
354354
scrollTop.value = virtualScroller.value?.scrollTop ?? 0;
355355
emit("onScroll", virtualScroller.value?.scrollTop);
356+
// console.log("onScroll", virtualScroller.value?.scrollTop);
356357
357358
if (scrollTop.value === 0)
358359
emit("onStartReached", virtualScroller.value?.scrollTop);

src/components/Base/VirtualisedBaseTree.vue

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ export default defineComponent({
273273
}
274274
275275
onChange(nodes);
276+
// console.log("onChange", nodes);
276277
277278
if (parents.length > 0) {
278279
const flattenedTreeParentNodeIndex = flattenedTree.findIndex((node) =>

src/components/HelloWorld.vue

-108
This file was deleted.

0 commit comments

Comments
 (0)