forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
274 B
13 lines
274 B
3 years ago
|
export const registDataFun = (Element) => {
|
||
|
Element.registerFunction('data', function (key, value) {
|
||
|
if (!this._data) {
|
||
|
this._data = {};
|
||
|
}
|
||
|
if (BI.isNull(value)) {
|
||
|
return this._data[key];
|
||
|
}
|
||
|
this._data[key] = value;
|
||
|
return this;
|
||
|
});
|
||
|
};
|