@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 +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 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
|
};
|
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 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
|
+
"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": "
|
|
28
|
+
"gitHead": "93979e09f5f8198809a2a732c7fb7c14a46292d5"
|
|
29
29
|
}
|