UNPKG

653 BJSXView Raw
1/**
2 * Value of form field.
3 * @class ApFieldValue
4 */
5
6'use strict'
7
8import React, {PropTypes as types} from 'react'
9import classnames from 'classnames'
10
11/** @lends ApFieldValue*/
12const ApFieldValue = React.createClass({
13
14 // --------------------
15 // Specs
16 // --------------------
17
18 propTypes: {},
19
20 mixins: [],
21
22 statics: {},
23
24 getInitialState () {
25 return {}
26 },
27
28 getDefaultProps () {
29 return {}
30 },
31
32 render () {
33 const s = this
34 let { props } = s
35
36 return (
37 <div className={ classnames('ap-field-value', props.className) }
38 >
39 { props.children }
40 </div>
41 )
42 }
43
44})
45
46export default ApFieldValue