123456789101112131415161718192021222324252627282930313233343536 |
- var t = require;
- var e = module;
- var i = exports;
- e =
- (this && this.__decorate) ||
- function (t, e, i, s) {
- var o,
- a = arguments.length,
- n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
- else
- for (var r = t.length - 1; 0 <= r; r--)
- (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
- return 3 < a && n && Object.defineProperty(e, i, n), n;
- };
- Object.defineProperty(i, "__esModule", {value: !0}), (i.ShopNormalItem = void 0);
- const s = t("App"),
- {property: o, ccclass: a, menu: n} = cc._decorator;
- t = class extends cc.Component {
- constructor() {
- super(...arguments), (this.iconSpr = null), (this.nameLab = null);
- }
- setData(t, e) {
- (this.nameLab.string = e), s.default.CommonUtils.setSpriteFrame(t, this.iconSpr);
- }
- hide() {
- this.node.active = !1;
- }
- show() {
- this.node.active = !0;
- }
- };
- e([o(cc.Sprite)], t.prototype, "iconSpr", void 0),
- e([o(cc.Label)], t.prototype, "nameLab", void 0),
- (t = e([a, n("view/Shop/ShopNormalItem")], t)),
- (i.ShopNormalItem = t);
|