@byteluck-fe/model-driven-shared 1.7.5 → 1.7.14-beta.2
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 +12 -12
- package/dist/esm/watcher.js +2 -2
- package/dist/types/EventLogic.d.ts +1 -1
- package/dist/types/RulesMessage.d.ts +3 -3
- package/package.json +2 -2
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
|
|
49
|
-
this.name = (
|
|
50
|
-
var
|
|
51
|
-
this.id = (
|
|
52
|
-
var
|
|
53
|
-
this.type = (
|
|
54
|
-
var
|
|
55
|
-
this.subTableId = (
|
|
56
|
-
var
|
|
57
|
-
this.subTableName = (
|
|
58
|
-
var
|
|
59
|
-
this.aggregateType = (
|
|
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;
|
|
60
60
|
};
|
package/dist/esm/watcher.js
CHANGED
|
@@ -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
|
|
297
|
-
(
|
|
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);
|
|
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
|
|
96
|
+
export 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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type Message = Partial<typeof messages['zhCN']>;
|
|
4
|
+
type Keys = 'caption' | 'placeholder' | 'max' | 'min';
|
|
5
|
+
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
|
+
"version": "1.7.14-beta.2",
|
|
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": "
|
|
28
|
+
"gitHead": "a6d2664b3d87f8bc7b7ee08e0f2f114aa5fe37c3"
|
|
29
29
|
}
|