* [bug#55027] modify data params of thinkmatrixoptions.

This commit is contained in:
Zhangyu
2024-09-13 08:40:28 +08:00
committed by 刘刚
parent 7487f1e2ad
commit a4c696a4c2
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -304,6 +304,8 @@ class ThinkMatrixOptions extends zui.Component
_renderCol(item, $preCol, $list, $cols)
{
const options = this.options;
const tipQuestion = $('.think-multiple').data().tipQuestion;
const cannotDeleteColumnTip = $('.think-multiple').data().cannotDeleteColumnTip;
let $col = $cols.filter(`[data-id="${item.id}"]`);
if(!$col.length) $col = this._createCol(item, options);
+2 -2
View File
@@ -40,8 +40,6 @@ class thinkMatrixOptions extends wg
{
global $lang, $app;
$app->loadLang('thinkstep');
jsVar('tipQuestion', $lang->thinkstep->tips->question);
jsVar('cannotDeleteColumnTip', $lang->thinkstep->tips->cannotDeleteColumn);
$id = $this->prop('id') ? $this->prop('id') : $this->gid;
$deleteColTip = $this->prop('deleteColTip', $lang->thinkstep->tips->deleteCol);
@@ -54,6 +52,8 @@ class thinkMatrixOptions extends wg
setClass('think-multiple w-full'),
div(setClass('think-multiple-body flex overflow-x-auto overflow-y-hidden')),
setData('quotedQuestions', $this->prop('quotedQuestions')),
setData('tipQuestion', $lang->thinkstep->tips->question),
setData('cannotDeleteColumnTip', $lang->thinkstep->tips->cannotDeleteColumn),
zui::thinkMatrixOptions
(
set::_to("#$id"),