v1.7.1 - Add Props & Exposes

This commit is contained in:
LINING-PC\lining
2026-01-11 17:22:32 +08:00
parent 898406802d
commit 189913d6b8
13 changed files with 3272 additions and 50 deletions
+1001 -12
View File
File diff suppressed because it is too large Load Diff
+87
View File
@@ -24,5 +24,92 @@
"story": "Story [{name}]",
"task": "Task [{name}]"
}
},
"toolSettings": {
"title": "Tool Settings",
"currentStatus": {
"title": "Current Status",
"fullscreen": "Fullscreen",
"expandAll": "Expand All",
"locale": "Locale",
"timeScale": "Time Scale",
"theme": "Theme",
"controlMode": "Control Mode",
"active": "Active",
"inactive": "Inactive",
"expanded": "Expanded",
"collapsed": "Collapsed"
},
"controlMode": {
"title": "Control Mode",
"expose": "Expose Methods",
"props": "Props Control",
"exposeHint": "Call component methods via ref.value.method()",
"propsHint": "Control component state by modifying Props"
},
"exposeMethods": {
"sectionTitle": "Expose Methods Control",
"fullscreen": {
"title": "Fullscreen",
"enter": "Enter",
"exit": "Exit",
"toggle": "Toggle"
},
"expand": {
"title": "Expand",
"all": "All",
"none": "None",
"toggle": "Toggle"
},
"timeScale": {
"title": "Scale",
"hour": "Hour",
"day": "Day",
"week": "Week",
"month": "Month",
"quarter": "Quarter",
"year": "Year",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out"
},
"locale": {
"title": "Locale",
"zhCN": "中文",
"enUS": "EN"
},
"theme": {
"title": "Theme",
"light": "Light",
"dark": "Dark"
},
"navigation": {
"title": "Nav",
"today": "Today",
"taskIdPlaceholder": "Task ID",
"go": "Go"
}
},
"propsControl": {
"sectionTitle": "Props Control",
"locale": {
"title": "Locale Prop"
},
"theme": {
"title": "Theme Prop"
},
"timeScale": {
"title": "TimeScale Prop"
},
"fullscreen": {
"title": "Fullscreen Prop",
"true": "True",
"false": "False"
},
"expandAll": {
"title": "ExpandAll Prop",
"true": "True",
"false": "False"
}
}
}
}
+87
View File
@@ -24,5 +24,92 @@
"story": "需求【{name}】",
"task": "任务【{name}】"
}
},
"toolSettings": {
"title": "工具设置",
"currentStatus": {
"title": "当前状态",
"fullscreen": "全屏",
"expandAll": "展开所有",
"locale": "语言",
"timeScale": "时间刻度",
"theme": "主题",
"controlMode": "控制模式",
"active": "激活",
"inactive": "未激活",
"expanded": "已展开",
"collapsed": "已收起"
},
"controlMode": {
"title": "控制模式",
"expose": "Expose 方法",
"props": "Props 控制",
"exposeHint": "通过 ref.value.method() 调用组件方法",
"propsHint": "通过修改 Props 控制组件状态"
},
"exposeMethods": {
"sectionTitle": "Expose 方法控制",
"fullscreen": {
"title": "全屏",
"enter": "进入",
"exit": "退出",
"toggle": "切换"
},
"expand": {
"title": "展开",
"all": "全部",
"none": "无",
"toggle": "切换"
},
"timeScale": {
"title": "时间刻度",
"hour": "小时",
"day": "日",
"week": "周",
"month": "月",
"quarter": "季度",
"year": "年",
"zoomIn": "放大",
"zoomOut": "缩小"
},
"locale": {
"title": "语言",
"zhCN": "中文",
"enUS": "英文"
},
"theme": {
"title": "主题",
"light": "明亮",
"dark": "暗黑"
},
"navigation": {
"title": "导航",
"today": "今日",
"taskIdPlaceholder": "任务ID",
"go": "前往"
}
},
"propsControl": {
"sectionTitle": "Props 属性控制",
"locale": {
"title": "语言属性"
},
"theme": {
"title": "主题属性"
},
"timeScale": {
"title": "时间刻度属性"
},
"fullscreen": {
"title": "全屏属性",
"true": "真",
"false": "假"
},
"expandAll": {
"title": "展开所有属性",
"true": "真",
"false": "假"
}
}
}
}
+20
View File
@@ -436,5 +436,25 @@
"🔧 Fixed: Upgraded vulnerabilities in dependent packages happy-dom, jspdf, vitest",
"<span style=\"font-weight: bold; color: #f00;\">Special thanks to fhjfhj@gitee for their use and feedback</span>"
]
},
{
"version": "1.7.1",
"date": "2026-01-11",
"notes": [
"🎉 新增:GanttChart新增属性,locale, theme, timeScale, fullscreen, expandAll供外部调用",
"🎉 新增:GanttChart暴露国际化相关方法,setLocale & currentLocale",
"🎉 新增:GanttChart暴露主题相关方法,setTheme & currentThemesetTimeScale & currentScale",
"🎉 新增:GanttChart暴露全屏相关方法,toggleFullscreen & enterFullscreen & exitFullscreen & isFullscreen",
"🎉 新增:GanttChart暴露展开/收起相关方法,toggleExpandAll & expandAll & collapseAll & isExpandAll",
"🎉 新增:GanttChart暴露滑至今日/任务/指定日期相关方法,scrollToToday & scrollToTask & scrollToDate",
"<span style=\"font-weight: bold; color: #f00;\">特别感谢 name-hard@github的使用及建议</span>",
"🎉 Added: New properties in GanttChart - locale, theme, timeScale, fullscreen, expandAll for external calls",
"🎉 Added: Exposed internationalization related methods in GanttChart - setLocale & currentLocale",
"🎉 Added: Exposed theme related methods in GanttChart - setTheme & currentTheme, setTimeScale & currentScale",
"🎉 Added: Exposed fullscreen related methods in GanttChart - toggleFullscreen & enterFullscreen & exitFullscreen & isFullscreen",
"🎉 Added: Exposed expand/collapse related methods in GanttChart - toggleExpandAll & expandAll & collapseAll & isExpandAll",
"🎉 Added: Exposed methods in GanttChart to scroll to today/task/specified date - scrollToToday & scrollToTask & scrollToDate",
"<span style=\"font-weight: bold; color: #f00;\">Special thanks to name-hard@github for their use and suggestions</span>"
]
}
]