Releases: pardnchiu/NanoJSON
Releases · pardnchiu/NanoJSON
v1.1.7
FIX
- [valueInput.js]: Fix number input validation to allow leading minus and decimal point (
-and.)
STYLE
- [src/sass/NanoJSON.scss]: Add
width: 100%to pre element, addtext-align: leftto textarea
DOC
- [README.md]: Add ChatGPT translation note, reorganize table of contents, adjust section titles and descriptions, remove Author badge, move license description to separate section
- [README.zh.md]: Adjust table of contents structure, change heading to "三大核心特色", remove Author badge, move license description to separate section, add supplementary section
FIX
- [valueInput.js]: 修正數字輸入驗證邏輯,允許輸入負號與小數點前導符號(
-和.)
STYLE
- [src/sass/NanoJSON.scss]: pre 元素新增
width: 100%、textarea 新增text-align: left
DOC
- [README.md]: 新增 ChatGPT 翻譯註記、重新組織目錄結構、調整段落標題與內容描述、移除 Author badge、移動授權說明至獨立章節
- [README.zh.md]: 調整目錄結構、標題層級改為「三大核心特色」、移除 Author badge、移動授權說明至獨立章節、新增補充章節
v1.1.6
v1.1.4-v1.1.5
Update
- Updated createElement function to enhance element creation and event binding.
- Updated getJSON function to handle various data types more effectively.
- Refactored keyInput and valueInput functions for better clarity and functionality.
v1.1.3
Features
- Allow importing CSS via custom paths
editor = new JSONEditor({ ... css: "https://cdn.jsdelivr.net/npm/@pardnchiu/[email protected]/dist/NanoJSON.css", ... });
v1.1.2
Features
- Added readonly mode support:
enable(): Method to enable editing mode.disable(): Method to disable editing and enter readonly mode.- Hides action buttons and disables inputs in readonly state.
功能
- 新增唯讀模式:
enable():啟用編輯模式。disable():禁用編輯並進入唯讀模式。- 唯讀狀態下隱藏操作按鈕並禁用輸入。
v1.0.0
v0.4.0
v0.3.4
v0.3.3
Refactor
- Change to child node-based block rendering approach:
Introduce partition rendering logic based on child nodes, reducing overall DOM update frequency.
Modifications only affect related child nodes instead of regenerating the entire UI.
重構
- 改以子節點為區塊的渲染方式:
引入基於子節點的分區渲染邏輯,減少了整體 DOM 更新次數。
修改僅影響到相關的子節點,而非重新生成整體 UI。
v0.3.0
Features
- Initialization settings:
path: TypeString, specifies the location of.jsonfile.json: TypeObject, JSON content for configuration.file: TypeFile, uploaded file.
Fix
- Resolve the issue where
Booleancheckbox disappears.
功能
- 初始化設定:
path:型別String,指定.json檔案的位置。json:型別Object,用於配置的JSON內容。file:型別File,上傳的檔案。
修復
- 解決
Boolean選擇框消失的問題。