|
@@ -0,0 +1,23 @@
|
|
|
+import _ from 'lodash'
|
|
|
+import {baseConfig} from "../base";
|
|
|
+import {numberfield} from "../../Defaults";
|
|
|
+
|
|
|
+export default function () {
|
|
|
+
|
|
|
+ const cc = Ext.form.field.Number.prototype.constructor
|
|
|
+ const {initComponent} = Ext.form.field.Number.prototype
|
|
|
+ Ext.form.field.Number.override({
|
|
|
+ constructor(config) {
|
|
|
+ const newConfig = _.defaultsDeep({
|
|
|
+ // 强制属性
|
|
|
+
|
|
|
+ }, baseConfig(config, 'col-item'), config, numberfield)
|
|
|
+
|
|
|
+ cc.call(this, newConfig)
|
|
|
+ },
|
|
|
+
|
|
|
+ initComponent() {
|
|
|
+ initComponent.call(this)
|
|
|
+ },
|
|
|
+ });
|
|
|
+}
|