Skip to content

Optimise pack size #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
public
examples
build
src
.editorconfig
babel.config.js
.eslintrc.js
babel.config.js
tsconfig.json
vue.config.js
tsconfig.json
api-extractor.json
*.gif
*.log
*.lock
2 changes: 1 addition & 1 deletion build/rollup.config.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = Object.assign({}, base, {
name: "VueVirtualised",
file: "dist/vue-virtualised.min.js",
format: "iife",
sourcemap: true,
sourcemap: false,
inlineDynamicImports: true,
},
});
Expand Down
2 changes: 1 addition & 1 deletion build/rollup.config.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = Object.assign({}, base, {
name: "VueVertualised",
file: "dist/vue-virtualised.umd.js",
format: "umd",
sourcemap: true,
sourcemap: false,
// https://github.com/lukeed/navaid/issues/5
inlineDynamicImports: true,
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-virtualised",
"version": "0.1.4",
"version": "0.1.5",
"private": false,
"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.",
"author": {
Expand Down Expand Up @@ -47,7 +47,7 @@
"@vue/cli-plugin-babel": "~5.0.0-alpha.7",
"@vue/cli-plugin-eslint": "~5.0.0-alpha.7",
"@vue/cli-plugin-typescript": "~5.0.0-alpha.8",
"@vue/cli-service": "~5.0.0-alpha.7",
"@vue/cli-service": "^5.0.0-beta.0",
"@vue/compiler-sfc": "^3.0.10",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
Expand Down
27 changes: 0 additions & 27 deletions src/App.vue

This file was deleted.

1 change: 1 addition & 0 deletions src/components/Base/VirtualisedBaseScroller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ export default defineComponent({
requestAnimationFrame(() => {
scrollTop.value = virtualScroller.value?.scrollTop ?? 0;
emit("onScroll", virtualScroller.value?.scrollTop);
// console.log("onScroll", virtualScroller.value?.scrollTop);

if (scrollTop.value === 0)
emit("onStartReached", virtualScroller.value?.scrollTop);
Expand Down
1 change: 1 addition & 0 deletions src/components/Base/VirtualisedBaseTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export default defineComponent({
}

onChange(nodes);
// console.log("onChange", nodes);

if (parents.length > 0) {
const flattenedTreeParentNodeIndex = flattenedTree.findIndex((node) =>
Expand Down
108 changes: 0 additions & 108 deletions src/components/HelloWorld.vue

This file was deleted.

Loading