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.
34 lines
672 B
34 lines
672 B
BI.BehaviorFactory = { |
|
createBehavior: function (key, options) { |
|
var behavior; |
|
switch (key) { |
|
case "highlight": |
|
behavior = BI.HighlightBehavior; |
|
break; |
|
case "redmark": |
|
behavior = BI.RedMarkBehavior; |
|
break; |
|
} |
|
return new behavior(options); |
|
} |
|
}; |
|
|
|
/** |
|
* guy |
|
* 行为控件 |
|
* @class BI.Behavior |
|
* @extends BI.OB |
|
*/ |
|
|
|
import OB from "../3.ob"; |
|
export default class Behavior extends OB { |
|
_defaultConfig() { |
|
return BI.extend(super._defaultConfig(arguments), { |
|
rule: () => true |
|
}); |
|
} |
|
|
|
doBehavior() { |
|
|
|
} |
|
}
|
|
|