Skip to content

Commit fe9c731

Browse files
committed
feat: support table mode
1 parent 37fcc3e commit fe9c731

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ English | [简体中文](./docs/README.zh-CN.md)
2222
<a href="https://github.com/cloydlau/json-editor-vue#develop"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"></a>
2323
</p>
2424

25-
<img width="49.738%" src="./docs/light-theme.png" alt="light-theme">&nbsp;<img width="49.738%" src="./docs/dark-theme.png" alt="dark-theme">
25+
<img width="49.738%" src="./docs/dark-theme.png" alt="dark theme">&nbsp;<img width="49.738%" src="https://raw.githubusercontent.com/josdejong/svelte-jsoneditor/main/misc/jsoneditor_table_mode_screenshot.png" alt="table mode">
2626

2727
<br>
2828

@@ -707,7 +707,7 @@ Including the boolean properties of `svelte-jsoneditor` like `readOnly` with no
707707
<a name="Mode"></a>
708708

709709
```ts
710-
type Mode = 'tree' | 'text'
710+
type Mode = 'tree' | 'text' | 'table'
711711
```
712712
713713
<br>

docs/README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<a href="https://github.com/cloydlau/json-editor-vue#develop"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"></a>
2121
</p>
2222

23-
<img width="49.738%" src="./light-theme.png" alt="light-theme">&nbsp;<img width="49.738%" src="./dark-theme.png" alt="dark-theme">
23+
<img width="49.738%" src="./dark-theme.png" alt="dark theme">&nbsp;<img width="49.738%" src="https://raw.githubusercontent.com/josdejong/svelte-jsoneditor/main/misc/jsoneditor_table_mode_screenshot.png" alt="table mode">
2424

2525
<br>
2626

@@ -703,7 +703,7 @@ export default {
703703
## 类型
704704

705705
```ts
706-
type Mode = 'tree' | 'text'
706+
type Mode = 'tree' | 'text' | 'table'
707707
```
708708
709709
<br>

docs/dark-theme.png

-941 Bytes
Loading

src/Component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { debounce } from 'lodash-es'
1616
import { pascalCasedName as name } from '../package.json'
1717
import { globalAttrs, globalProps } from './install'
1818

19-
export type Mode = 'tree' | 'text'
19+
export type Mode = 'tree' | 'text' | 'table'
2020

2121
const modelValueProp = isVue3 ? 'modelValue' : 'value'
2222
const updateModelValue = isVue3 ? 'update:modelValue' : 'input'

0 commit comments

Comments
 (0)