* [bug#55027] modify data params of thinkmatrixoptions.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user