MCPcopy Index your code
hub / github.com/Tencent/kbone / value

Method value

packages/miniprogram-render/src/node/element/input.js:116–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 get value() {
117 const type = this.$_attrs.get('type')
118 const value = this.$_attrs.get('value')
119
120 if ((type === 'radio' || type === 'checkbox') && value === undefined) return 'on'
121 return value
122 }
123
124 set value(value) {
125 value = '' + value

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected