Blame view

node_modules/bootstrap-vue/src/mixins/form-custom.js 442 Bytes
4cd4fd28   郭伟龙   feat: 初始化项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { extend } from '../vue'
import { PROP_TYPE_BOOLEAN } from '../constants/props'
import { makeProp, makePropsConfigurable } from '../utils/props'

// --- Props ---

export const props = makePropsConfigurable(
  {
    plain: makeProp(PROP_TYPE_BOOLEAN, false)
  },
  'formControls'
)

// --- Mixin ---

// @vue/component
export const formCustomMixin = extend({
  props,
  computed: {
    custom() {
      return !this.plain
    }
  }
})