提交 f71ff081 编写于 作者: Q qiang

fix: lint

上级 efb0b5ae
<template> <template>
<uni-video <uni-video
v-bind="attrs" v-bind="attrs"
v-on="$listeners"> v-on="$listeners">
<div <div
ref="container" ref="container"
class="uni-video-container" /> class="uni-video-container" />
<div class="uni-video-slot"> <div class="uni-video-slot">
<slot /> <slot />
...@@ -163,9 +163,7 @@ export default { ...@@ -163,9 +163,7 @@ export default {
attrs.forEach(key => { attrs.forEach(key => {
let val = this.$props[key] let val = this.$props[key]
val = key === 'src' ? this.$getRealPath(val) : val val = key === 'src' ? this.$getRealPath(val) : val
obj[key.replace(/[A-Z]/g, (str) => { obj[key.replace(/[A-Z]/g, str => '-' + str.toLowerCase())] = val
return '-' + str.toLowerCase()
})] = val
}) })
return obj return obj
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册