d66f828ce5ef8b4325fb2691af217aa5ef0ca7a4.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, JsonUtil, TablePromptWindow, _crd;
  4. function _reportPossibleCrUseOfJsonUtil(extras) {
  5. _reporterNs.report("JsonUtil", "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil", _context.meta, extras);
  6. }
  7. _export("TablePromptWindow", void 0);
  8. return {
  9. setters: [function (_unresolved_) {
  10. _reporterNs = _unresolved_;
  11. }, function (_cc) {
  12. _cclegacy = _cc.cclegacy;
  13. }, function (_unresolved_2) {
  14. JsonUtil = _unresolved_2.JsonUtil;
  15. }],
  16. execute: function () {
  17. _crd = true;
  18. _cclegacy._RF.push({}, "1e3d7uann5MRokAL2wULm9y", "TablePromptWindow", undefined);
  19. /*
  20. * @Author: dgflash
  21. * @Date: 2022-06-02 09:38:48
  22. * @LastEditors: dgflash
  23. * @LastEditTime: 2022-08-02 14:26:35
  24. */
  25. /** 演示oops-plugin-excel-to-json插件生成的配置表数据结构(可删除) */
  26. _export("TablePromptWindow", TablePromptWindow = class TablePromptWindow {
  27. constructor() {
  28. this.data = void 0;
  29. this.id = 0;
  30. this.id1 = 0;
  31. this.id2 = 0;
  32. }
  33. init(id, id1, id2) {
  34. var table = (_crd && JsonUtil === void 0 ? (_reportPossibleCrUseOfJsonUtil({
  35. error: Error()
  36. }), JsonUtil) : JsonUtil).get(TablePromptWindow.TableName);
  37. this.data = table[id][id1][id2];
  38. this.id = id;
  39. this.id1 = id1;
  40. this.id2 = id2;
  41. }
  42. get title() {
  43. return this.data.title;
  44. }
  45. get describe() {
  46. return this.data.describe;
  47. }
  48. get array() {
  49. return this.data.array;
  50. }
  51. get hp() {
  52. return this.data.hp;
  53. }
  54. });
  55. TablePromptWindow.TableName = "PromptWindow";
  56. _cclegacy._RF.pop();
  57. _crd = false;
  58. }
  59. };
  60. });
  61. //# sourceMappingURL=d66f828ce5ef8b4325fb2691af217aa5ef0ca7a4.js.map