Commit 8fc4aa8d authored by 前端-许佳敏's avatar 前端-许佳敏

判断是否选中 转字符串处理

parent 9b17346a
......@@ -185,7 +185,7 @@ function transformSingleTitle(
// 使选中样式受控
data[item].className = cx(
'god-tabtree-select',
Number(nowKey) === Number(data[item].key) ? 'show' : 'hide',
nowKey.toString() === data[item].key.toString() ? 'show' : 'hide',
);
if (disabled) {
data[item].disableCheckbox = disabled;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment