1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import _ from 'lodash'
- import {baseConfig} from "../base";
- import {radiogroup} from "../../Defaults";
- import {
- disabled,
- fieldLabel,
- gravity, height, metaId,
- PropertyDescriptionTable,
- tooltip,
- value, width,
- YvBase
- } from "../../PropertyDescriptionTable";
- import {PropertyDescription} from "../../PropertyDescription";
- export default function () {
- const cc = Ext.form.RadioGroup.prototype.constructor
- const {initComponent} = Ext.form.RadioGroup.prototype
- Ext.form.RadioGroup.override({
- constructor(config) {
- const newConfig = _.defaultsDeep({
- // 强制属性
- }, baseConfig(config, 'col-item'), config, radiogroup)
- cc.call(this, newConfig)
- },
- initComponent() {
- initComponent.call(this)
- },
- });
- PropertyDescriptionTable.set(
- 'radiogroup',
- new PropertyDescription(YvBase, {
- props: [
- fieldLabel, value, disabled,
- gravity, tooltip, metaId, width, height
- ],
- })
- )
- }
|