提交 f222a1cd 编写于 作者: Q qiang

fix: 修复 dateset 使用驼峰写法时获取数据格式不一致的问题 question/119034

上级 7dce2dee
......@@ -45,7 +45,7 @@ export function getTargetDataset (target) {
const $attrs = vm.$attrs
for (const key in $attrs) {
if (key.startsWith('data-')) {
const newKey = camelize(key.substr(5))
const newKey = camelize(key.substr(5).toLowerCase())
const value = $attrs[key]
dataset[newKey] = force ? value : dataset[newKey] || value
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册