Skip to content

Commit 44d90d8

Browse files
author
leezng
authored
Merge pull request #106 from leezng/dev
release 2.0.2
2 parents 4697afe + e74d358 commit 44d90d8

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Gh Pages
22

33
on:
44
push:
5-
branches:
6-
- "master"
5+
branches:
6+
- 'master'
77

88
jobs:
99
build-and-deploy:

build/build.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ webpack(webpackConfig, (err, stats) => {
4444
});
4545

4646
buildTypesProcess.on('close', () => {
47-
console.log(chalk.cyan('Build types complete.\n'));
48-
49-
fs.copyFile('types/components/Tree/index.d.ts', 'lib/vue-json-pretty.d.ts', err => {
50-
if (err) throw err;
51-
console.log(chalk.cyan('Build major d.ts complete.\n'));
52-
});
47+
console.log(chalk.cyan('Build types(.d.ts) complete.\n'));
5348
});
5449
}
5550
});

example/SelectControl.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default defineComponent({
154154
state.itemData = !data ? data + '' : data; // 处理 data = null 的情况
155155
};
156156
157-
const handleChange = (newVal, oldVal) => {
157+
const handleChange = () => {
158158
// console.log('newVal: ', newVal, ' oldVal: ', oldVal);
159159
};
160160

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"test": "cypress open",
1313
"lint": "eslint --ext .ts,.tsx,.vue src example"
1414
},
15+
"typings": "types/index.d.ts",
1516
"repository": {
1617
"type": "git",
1718
"url": "git@github.com:leezng/vue-json-pretty.git"

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { defineComponent } from 'vue';
12
import Tree from './components/Tree';
23

3-
export default Tree;
4+
export default defineComponent(Tree);

tsconfig.dts.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"declarationDir": "types"
1010
},
1111
"include": [
12-
"src/components/**/*.ts",
13-
"src/components/**/*.tsx",
14-
"src/components/**/*.vue"
12+
"src/**/*.ts",
13+
"src/**/*.tsx",
14+
"src/**/*.vue"
1515
],
1616
}

0 commit comments

Comments
 (0)