UNPKG
bili-tmp-demo
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
vue管理系统结构
xn--github-8y7ih50il8o712hshta
bili-tmp-demo
/
vue
/
src
/
platforms
/
web
/
server
/
modules
/
class.js
11 lines
(8 loc)
•
236 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/* @flow */
import
{ genClassForVnode }
from
'web/util/index'
export
default
function
renderClass
(
node: VNodeWithData
): ?string {
const
classList =
genClassForVnode
(node)
if
(classList) {
return
` class="
${classList}
"`
} }