diff --git a/packages/omi-element-ui/README.md b/packages/omi-element-ui/README.md index ce3c7b340..02166f321 100644 --- a/packages/omi-element-ui/README.md +++ b/packages/omi-element-ui/README.md @@ -11,10 +11,10 @@ | ------ | ------ |------ | | ~~el-button~~ | dntzhang |[Usage](https://github.com/Tencent/omi/blob/master/packages/omi-element-ui/src/elements/button/index.js#L19-L118) | | ~~el-icon~~ | dntzhang | | -| el-radio| dntzhang | [Usage](https://github.com/Tencent/omi/blob/master/packages/omi-element-ui/src/elements/radio/index.js#L19-L34)| +| ~~el-radio~~| dntzhang | [Usage](https://github.com/Tencent/omi/blob/master/packages/omi-element-ui/src/elements/radio/index.js#L19-L34)| | el-checkbox| | | | el-input| | | -| el-input-number| dntzhang | | +| ~~el-input-number~~| dntzhang | [Usage](https://github.com/Tencent/omi/blob/master/packages/omi-element-ui/src/elements/input-number/index.js#L18-L22) | | el-select| | | el-cascader| | | el-switch| | diff --git a/packages/omi-element-ui/src/elements/input-number/index.js b/packages/omi-element-ui/src/elements/input-number/index.js index 8c3115884..720b0313c 100644 --- a/packages/omi-element-ui/src/elements/input-number/index.js +++ b/packages/omi-element-ui/src/elements/input-number/index.js @@ -19,7 +19,6 @@ class MyApp extends WeElement {
- ) } diff --git a/packages/omi-element-ui/src/omi-element-ui/el-radio/index.js b/packages/omi-element-ui/src/omi-element-ui/el-radio/index.js index 6f86c1663..e323e48d6 100644 --- a/packages/omi-element-ui/src/omi-element-ui/el-radio/index.js +++ b/packages/omi-element-ui/src/omi-element-ui/el-radio/index.js @@ -8,6 +8,7 @@ class ElRadio extends WeElement { } install() { + this.data.checked = this.props.checked this._initData() } @@ -16,13 +17,15 @@ class ElRadio extends WeElement { } _initData() { - this.data.checked = this.props.checked + this.data.disabled = this.props.disabled this.data.value = this.props.value if (this.parentNode.nodeName === 'EL-RADIO-GROUP') { if (this.parentNode.data.value === this.data.value) { this.data.checked = true + } else { + this.data.checked = false } this._inInGroup = true }