Skip to content

Commit 0b2fb73

Browse files
author
yinquan
committed
- added:
- touch support for drag and drop. - the isTheTouchOperationFromTheTree method. - the getDragFrom method. - the fnCustomClasses property. - fixed: - the previously selected node will be deselected if the user clicks a node and then the fnBeforeSelect function returns false. - the input box's width didn't fit its content well. - the reload() method caused an animation playing. - a node was able to be dragged while the user was editing its title. - reverted the performance optimization that might lead to the fnAfterCalculate property not working in 2.0.0. - when the dropped a node from another tree, two drop events were emitted. - security: - upgraded some dependencies. migrate from jest to vitest.
1 parent 2d735c1 commit 0b2fb73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+8095
-10219
lines changed

CHANGELOG.md

Lines changed: 20 additions & 3 deletions

CHANGELOG.zh.md

Lines changed: 19 additions & 3 deletions

build.docs.config.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

build.lib.config.js

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import resolve from '@rollup/plugin-node-resolve';
88
import replace from '@rollup/plugin-replace';
99
import babel from '@rollup/plugin-babel';
1010
import PostCSS from 'rollup-plugin-postcss';
11-
import { terser } from 'rollup-plugin-terser';
11+
import terser from '@rollup/plugin-terser';
1212
import minimist from 'minimist';
1313

1414
// Get browserslist config and remove ie from es build targets
@@ -112,13 +112,13 @@ if (!argv.format || argv.format === 'es') {
112112
}
113113

114114
if (!argv.format || argv.format === 'cjs') {
115-
const umdConfig = {
115+
const cjsConfig = {
116116
...baseConfig,
117117
input: 'src/entry.js',
118118
external,
119119
output: {
120120
compact: true,
121-
file: 'lib/vue-tree.ssr.js',
121+
file: 'lib/vue-tree.cjs.js',
122122
format: 'cjs',
123123
name: 'VueTree',
124124
exports: 'auto',
@@ -133,6 +133,31 @@ if (!argv.format || argv.format === 'cjs') {
133133
commonjs(),
134134
],
135135
};
136+
buildFormats.push(cjsConfig);
137+
}
138+
139+
if (!argv.format || argv.format === 'umd') {
140+
const umdConfig = {
141+
...baseConfig,
142+
input: 'src/entry.js',
143+
external,
144+
output: {
145+
compact: true,
146+
file: 'lib/vue-tree.umd.js',
147+
format: 'umd',
148+
name: 'VueTree',
149+
exports: 'auto',
150+
globals,
151+
},
152+
plugins: [
153+
replace(baseConfig.plugins.replace),
154+
...baseConfig.plugins.preVue,
155+
vue(baseConfig.plugins.vue),
156+
...baseConfig.plugins.postVue,
157+
babel(baseConfig.plugins.babel),
158+
commonjs(),
159+
],
160+
};
136161
buildFormats.push(umdConfig);
137162
}
138163

docs/assets/index-111f4aa3.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-14f74e60.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-152babca.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-172eaf85.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-1cba7cd3.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-1ffd0ced.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)