Blame view

node_modules/babel-plugin-transform-vue-jsx/lib/must-use-prop.js 330 Bytes
6a9ffbcc   liuqimichale   地图点击事件
1
2
3
4
5
6
7
8
9
  const acceptValue = ['input','textarea','option','select']
  module.exports = (tag, type, attr) => {
    return (
      (attr === 'value' && acceptValue.includes(tag)) && type !== 'button' ||
      (attr === 'selected' && tag === 'option') ||
      (attr === 'checked' && tag === 'input') ||
      (attr === 'muted' && tag === 'video')
    )
  }