neuronetio / gantt-elastic

Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]

Home Page:https://neuronet.io/gantt-elastic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'options-locale' does not take effect

yifire opened this issue · comments

I am having a problem during use, the options-locale is set but it does not take effect.
This is my code:
<gantt-elastic :options="options" :tasks="tasks"> <gantt-header slot="header"></gantt-header> </gantt-elastic>
locale: { code: "zh-cn", Now: "今天", "X-Scale": "列宽", "Y-Scale": "行高", "Task list width": "标题宽度", "Before/After": "调整时间范围", "Display task list": "是否显示项目名称" }
result:
image

OS: windows 10 1903
Browser: chrome 77.0.3865.90
Version: 1.0.10
Vue:2.6.10

Hi! You need to add props 'options' to gantt-header. It's look like this:
<gantt-elastic :options="options" :tasks="tasks"> <gantt-header slot="header" :options="options"></gantt-header> </gantt-elastic>

if the problem still occurs - respond here and I will reopen this issue