Skip to content

Commit

Permalink
for diff
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Nov 5, 2018
1 parent c8af654 commit 9790fad
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/omi-weui/src/omi-weui/elements/button/button.js
Original file line number Original file line Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react' import { define, WeElement } from 'omi'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import classNames from '../../utils/classnames' import classNames from '../../utils/classnames'

import css from '../../style/widget/weui-button/_weui-button.less'
/** /**
* Button usage:OK(primary)、Cancel(default)、Warn(warn). * Button usage:OK(primary)、Cancel(default)、Warn(warn).
* *
*/ */
export default class Button extends React.Component { define('ow-button', class extends WeElement {
static propTypes = { static propTypes = {
disabled: PropTypes.bool, disabled: PropTypes.bool,
/** /**
Expand All @@ -27,6 +27,10 @@ export default class Button extends React.Component {
size: 'normal' size: 'normal'
} }


css() {
return css
}

render() { render() {
const { const {
component, component,
Expand Down Expand Up @@ -64,4 +68,4 @@ export default class Button extends React.Component {
</Component> </Component>
) )
} }
} })

0 comments on commit 9790fad

Please sign in to comment.