slightning-coco-widget
Version:
SLIGHTNING 的 CoCo 控件框架。
27 lines (26 loc) • 1.11 kB
JavaScript
import { excludeBoolean } from "../../utils";
import { transformIcon, traverseTypes } from "./utils";
export function transformIconsExceptWidgetIcon(types, widget) {
traverseTypes(types, {
PropertyGroup(node) {
var _a, _b;
transformIcon(excludeBoolean((_a = node.value.blockOptions) === null || _a === void 0 ? void 0 : _a.get));
transformIcon(excludeBoolean((_b = node.value.blockOptions) === null || _b === void 0 ? void 0 : _b.set));
},
PropertyTypes(node) {
var _a, _b;
transformIcon(excludeBoolean((_a = node.value.blockOptions) === null || _a === void 0 ? void 0 : _a.get));
transformIcon(excludeBoolean((_b = node.value.blockOptions) === null || _b === void 0 ? void 0 : _b.set));
},
MethodGroup(node) {
transformIcon(node.value.blockOptions);
},
MethodTypes(node) {
transformIcon(node.value.blockOptions);
},
EventTypes(node) {
transformIcon(node.value.blockOptions);
}
});
return [types, widget];
}