Skip to content

Commit 6f3a886

Browse files
committed
fix: compile warning.
1 parent 75faea4 commit 6f3a886

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
</div>
2424

25+
[![](./static/screenshot.png)](https://github.com/leezng/vue-json-pretty)
26+
2527
English | [简体中文](./README.zh_CN.md)
2628

2729
## Features

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-json-pretty",
3-
"version": "2.0.0-rc.2",
3+
"version": "2.0.0-rc.3",
44
"description": "A JSON tree view component that is easy to use and also supports data selection.",
55
"author": "leezng <[email protected]>",
66
"main": "lib/vue-json-pretty.js",
@@ -36,7 +36,7 @@
3636
"@typescript-eslint/eslint-plugin": "^4.7.0",
3737
"@typescript-eslint/parser": "^4.7.0",
3838
"@vue/babel-plugin-jsx": "^1.0.0-rc.3",
39-
"@vue/compiler-sfc": "^3.0.2",
39+
"@vue/compiler-sfc": "^3.0.4",
4040
"@vue/eslint-config-typescript": "^7.0.0",
4141
"autoprefixer": "^10.0.1",
4242
"babel-loader": "^8.1.0",
@@ -69,7 +69,7 @@
6969
"shelljs": "^0.8.4",
7070
"typescript": "^4.0.5",
7171
"url-loader": "^4.1.0",
72-
"vue": "^3.0.2",
72+
"vue": "^3.0.4",
7373
"vue-loader": "^16.0.0-rc.1",
7474
"vue-style-loader": "^4.1.2",
7575
"webpack": "^5.3.0",

src/components/Tree/styles.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.@{css-prefix}-tree {
44
font-family: 'Monaco', 'Menlo', 'Consolas', 'Bitstream Vera Sans Mono', monospace;
55
font-size: 14px;
6+
text-align: left;
67

78
&.is-virtual {
89
overflow: auto;

src/components/TreeNode/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default defineComponent({
200200
/>
201201
))}
202202

203-
{node.key && <span class="vjs-key"> {state.prettyKey}:&nbsp; </span>}
203+
{node.key && <span class="vjs-key">{`${state.prettyKey}: `}</span>}
204204

205205
<span>
206206
{node.type !== 'content' ? (
@@ -211,7 +211,7 @@ export default defineComponent({
211211
<span class={state.valueClass}>{defaultFormatter(node.content)}</span>
212212
)}
213213

214-
{node.showComma && <span>,</span>}
214+
{node.showComma && <span>{','}</span>}
215215

216216
{showLength && collapsed && <span class="vjs-comment"> // {node.length} items </span>}
217217
</span>

static/logo.sketch

6.13 KB
Binary file not shown.

static/screenshot.png

439 KB
Loading

0 commit comments

Comments
 (0)