@byteluck-fe/model-driven-shared 1.7.3 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/calc.js CHANGED
@@ -45,16 +45,16 @@ export var CALC_AGGREGATE_TYPE;
45
45
  export var CalcScriptEchoItem = function CalcScriptEchoItem(props) {
46
46
  "use strict";
47
47
  _classCallCheck(this, CalcScriptEchoItem);
48
- var _props_name;
49
- this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
50
- var _props_id;
51
- this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : "";
52
- var _props_type;
53
- this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : CALC_TOKEN_TYPE.Number;
54
- var _props_subTableId;
55
- this.subTableId = (_props_subTableId = props === null || props === void 0 ? void 0 : props.subTableId) !== null && _props_subTableId !== void 0 ? _props_subTableId : undefined;
56
- var _props_subTableId1;
57
- this.subTableName = (_props_subTableId1 = props === null || props === void 0 ? void 0 : props.subTableId) !== null && _props_subTableId1 !== void 0 ? _props_subTableId1 : undefined;
58
- var _props_aggregateType;
59
- this.aggregateType = (_props_aggregateType = props === null || props === void 0 ? void 0 : props.aggregateType) !== null && _props_aggregateType !== void 0 ? _props_aggregateType : undefined;
48
+ var ref;
49
+ this.name = (ref = props === null || props === void 0 ? void 0 : props.name) !== null && ref !== void 0 ? ref : "";
50
+ var ref1;
51
+ this.id = (ref1 = props === null || props === void 0 ? void 0 : props.id) !== null && ref1 !== void 0 ? ref1 : "";
52
+ var ref2;
53
+ this.type = (ref2 = props === null || props === void 0 ? void 0 : props.type) !== null && ref2 !== void 0 ? ref2 : CALC_TOKEN_TYPE.Number;
54
+ var ref3;
55
+ this.subTableId = (ref3 = props === null || props === void 0 ? void 0 : props.subTableId) !== null && ref3 !== void 0 ? ref3 : undefined;
56
+ var ref4;
57
+ this.subTableName = (ref4 = props === null || props === void 0 ? void 0 : props.subTableId) !== null && ref4 !== void 0 ? ref4 : undefined;
58
+ var ref5;
59
+ this.aggregateType = (ref5 = props === null || props === void 0 ? void 0 : props.aggregateType) !== null && ref5 !== void 0 ? ref5 : undefined;
60
60
  };
@@ -293,8 +293,8 @@ var Watcher = /*#__PURE__*/ function() {
293
293
  // 订阅事件
294
294
  _proto.on = function on(key, callback) {
295
295
  if (this._events.has(key)) {
296
- var _this__events_get;
297
- (_this__events_get = this._events.get(key)) === null || _this__events_get === void 0 ? void 0 : _this__events_get.push(callback);
296
+ var ref;
297
+ (ref = this._events.get(key)) === null || ref === void 0 ? void 0 : ref.push(callback);
298
298
  } else {
299
299
  this._events.set(key, [
300
300
  callback
@@ -93,7 +93,7 @@ declare const eventMap: readonly [{
93
93
  readonly name: "行选中时";
94
94
  readonly code: "list-rows-checked";
95
95
  }];
96
- export type InnerEventCode = typeof eventMap[number]['code'];
96
+ export declare type InnerEventCode = typeof eventMap[number]['code'];
97
97
  export declare class EventLogic {
98
98
  static readonly events: readonly [{
99
99
  readonly key: "on_click";
@@ -1,8 +1,8 @@
1
1
  import OkI18n from 'ok-i18n';
2
2
  import messages from './locales';
3
- type Message = Partial<typeof messages['zhCN']>;
4
- type Keys = 'caption' | 'placeholder' | 'max' | 'min';
5
- type Variable = {
3
+ declare type Message = Partial<typeof messages['zhCN']>;
4
+ declare type Keys = 'caption' | 'placeholder' | 'max' | 'min';
5
+ declare type Variable = {
6
6
  [key in Keys]?: string | number;
7
7
  };
8
8
  export declare class RulesMessage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-shared",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -25,5 +25,5 @@
25
25
  "humps": "^2.0.1",
26
26
  "ok-i18n": "^3.0.0"
27
27
  },
28
- "gitHead": "e9fe68f49ba42f70edd3df499659028f76968a83"
28
+ "gitHead": "93979e09f5f8198809a2a732c7fb7c14a46292d5"
29
29
  }