@zcrkey/js-utils 0.0.12 → 0.0.15

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.
@@ -1,59 +0,0 @@
1
- export type TSubscribers = {
2
- key: string;
3
- listeners: Array<(...args: any) => void>;
4
- };
5
- export type TSubscription = {
6
- key: string;
7
- listener: (...args: any) => void;
8
- remove: () => void;
9
- };
10
- export default class CrEventCenter {
11
- /**
12
- * 储存订阅者
13
- */
14
- static subscribers: TSubscribers[];
15
- /**
16
- * 新增订阅
17
- *
18
- * @param {*} key 名称
19
- * @param {*} listener 执行函数
20
- * @returns 订阅信息
21
- * @example
22
- this.subscription = CrEventCenter.on('名称', (参数) => {});
23
- */
24
- static on(key: string, listener: (...args: any) => void): TSubscription;
25
- /**
26
- * 移除订阅
27
- *
28
- * @param {*} subscription
29
- * @param {*} type 'all'
30
- * @example
31
- CrEventCenter.off(this.subscription);
32
- */
33
- static off(subscription: TSubscription, type?: 'all'): void;
34
- /**
35
- * 派发事件
36
- *
37
- * @param {*} key 名称
38
- * @param {*} args 其余参数
39
- * @example
40
- CrEventCenter.emit('名称', 参数数据);
41
- */
42
- static emit(key: string, ...args: any): void;
43
- /**
44
- * 查找事件
45
- *
46
- * @param {*} key 名称
47
- * @example
48
- let subscriber = CrEventCenter.find('名称');
49
- */
50
- static find(key: string): TSubscribers | undefined;
51
- /**
52
- * 清理所有事件
53
- *
54
- * @memberof CrEventCenter
55
- * @example
56
- CrEventCenter.clear();
57
- */
58
- static clear(): void;
59
- }
@@ -1,134 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- var CrEventCenter = /*#__PURE__*/function () {
9
- function CrEventCenter() {
10
- _classCallCheck(this, CrEventCenter);
11
- }
12
- _createClass(CrEventCenter, null, [{
13
- key: "on",
14
- value:
15
- /**
16
- * 新增订阅
17
- *
18
- * @param {*} key 名称
19
- * @param {*} listener 执行函数
20
- * @returns 订阅信息
21
- * @example
22
- this.subscription = CrEventCenter.on('名称', (参数) => {});
23
- */
24
- function on(key, listener) {
25
- var _this = this;
26
- var subscriber = this.subscribers.find(function (item) {
27
- return item.key == key;
28
- });
29
- if (subscriber) {
30
- subscriber.listeners.push(listener);
31
- } else {
32
- this.subscribers.push({
33
- key: key,
34
- listeners: [listener]
35
- });
36
- }
37
- var subscription = {
38
- key: key,
39
- listener: listener,
40
- remove: function remove() {
41
- _this.off(subscription);
42
- }
43
- };
44
- return subscription;
45
- }
46
-
47
- /**
48
- * 移除订阅
49
- *
50
- * @param {*} subscription
51
- * @param {*} type 'all'
52
- * @example
53
- CrEventCenter.off(this.subscription);
54
- */
55
- }, {
56
- key: "off",
57
- value: function off(subscription, type) {
58
- var index = this.subscribers.findIndex(function (item) {
59
- return item.key == subscription.key;
60
- });
61
- if (index > -1) {
62
- if (type == 'all') {
63
- this.subscribers.splice(index, 1);
64
- } else {
65
- var subscriber = this.subscribers[index];
66
- var _index = subscriber.listeners.findIndex(function (item) {
67
- return item == subscription.listener;
68
- });
69
- if (_index > -1) {
70
- subscriber.listeners.splice(_index, 1);
71
- }
72
- }
73
- }
74
- }
75
-
76
- /**
77
- * 派发事件
78
- *
79
- * @param {*} key 名称
80
- * @param {*} args 其余参数
81
- * @example
82
- CrEventCenter.emit('名称', 参数数据);
83
- */
84
- }, {
85
- key: "emit",
86
- value: function emit(key) {
87
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
88
- args[_key - 1] = arguments[_key];
89
- }
90
- var subscriber = this.subscribers.find(function (item) {
91
- return item.key == key;
92
- });
93
- if (subscriber && subscriber.listeners && subscriber.listeners.length > 0) {
94
- subscriber.listeners.forEach(function (listener) {
95
- listener.apply(void 0, args);
96
- });
97
- }
98
- }
99
-
100
- /**
101
- * 查找事件
102
- *
103
- * @param {*} key 名称
104
- * @example
105
- let subscriber = CrEventCenter.find('名称');
106
- */
107
- }, {
108
- key: "find",
109
- value: function find(key) {
110
- return this.subscribers.find(function (item) {
111
- return item.key == key;
112
- });
113
- }
114
-
115
- /**
116
- * 清理所有事件
117
- *
118
- * @memberof CrEventCenter
119
- * @example
120
- CrEventCenter.clear();
121
- */
122
- }, {
123
- key: "clear",
124
- value: function clear() {
125
- this.subscribers.length = 0;
126
- }
127
- }]);
128
- return CrEventCenter;
129
- }();
130
- /**
131
- * 储存订阅者
132
- */
133
- _defineProperty(CrEventCenter, "subscribers", []);
134
- export { CrEventCenter as default };
@@ -1,71 +0,0 @@
1
- /**
2
- * 文件类型
3
- * - OTHER 其他
4
- * - IMAGE 图片
5
- * - VIDEO 视频
6
- * - AUDIO 音频
7
- * - DOCUMENT 文档
8
- * - ARCHIVE 压缩包
9
- */
10
- export declare enum FileTypeEnum {
11
- OTHER = "other",
12
- IMAGE = "image",
13
- VIDEO = "video",
14
- AUDIO = "audio",
15
- DOCUMENT = "document",
16
- ARCHIVE = "archive"
17
- }
18
- /**
19
- * 文档类型
20
- * - OTHER
21
- * - PDF
22
- * - DOC
23
- * - DOCX
24
- * - XLS
25
- * - XLSX
26
- * - PPT
27
- * - PPTX
28
- * - TXT
29
- */
30
- export declare enum DocumentTypeEnum {
31
- OTHER = "other",
32
- PDF = "pdf",
33
- DOC = "doc",
34
- DOCX = "docx",
35
- XLS = "xls",
36
- XLSX = "xlsx",
37
- PPT = "ppt",
38
- PPTX = "pptx",
39
- TXT = "txt"
40
- }
41
- /**
42
- * 文件元信息
43
- */
44
- export interface CrFileMeta {
45
- ext: string;
46
- type: FileTypeEnum;
47
- documentType?: DocumentTypeEnum;
48
- }
49
- export declare class CrFileUtil {
50
- /**
51
- * 提取扩展名(不含 .)
52
- */
53
- static getExt(filename?: string): string;
54
- /**
55
- * 获取文件完整信息
56
- */
57
- static getMeta(filename: string): CrFileMeta;
58
- /**
59
- * 文件类型
60
- */
61
- static getType(filename: string): FileTypeEnum;
62
- /**
63
- * 文档类型
64
- */
65
- static getDocumentType(filename: string): DocumentTypeEnum;
66
- static isImage(filename: string): boolean;
67
- static isVideo(filename: string): boolean;
68
- static isAudio(filename: string): boolean;
69
- static isDocument(filename: string): boolean;
70
- static isArchive(filename: string): boolean;
71
- }
package/dist/esm/file.js DELETED
@@ -1,268 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- /**
11
- * 文件类型
12
- * - OTHER 其他
13
- * - IMAGE 图片
14
- * - VIDEO 视频
15
- * - AUDIO 音频
16
- * - DOCUMENT 文档
17
- * - ARCHIVE 压缩包
18
- */
19
- export var FileTypeEnum = /*#__PURE__*/function (FileTypeEnum) {
20
- FileTypeEnum["OTHER"] = "other";
21
- FileTypeEnum["IMAGE"] = "image";
22
- FileTypeEnum["VIDEO"] = "video";
23
- FileTypeEnum["AUDIO"] = "audio";
24
- FileTypeEnum["DOCUMENT"] = "document";
25
- FileTypeEnum["ARCHIVE"] = "archive";
26
- return FileTypeEnum;
27
- }({});
28
-
29
- /**
30
- * 文档类型
31
- * - OTHER
32
- * - PDF
33
- * - DOC
34
- * - DOCX
35
- * - XLS
36
- * - XLSX
37
- * - PPT
38
- * - PPTX
39
- * - TXT
40
- */
41
- export var DocumentTypeEnum = /*#__PURE__*/function (DocumentTypeEnum) {
42
- DocumentTypeEnum["OTHER"] = "other";
43
- DocumentTypeEnum["PDF"] = "pdf";
44
- DocumentTypeEnum["DOC"] = "doc";
45
- DocumentTypeEnum["DOCX"] = "docx";
46
- DocumentTypeEnum["XLS"] = "xls";
47
- DocumentTypeEnum["XLSX"] = "xlsx";
48
- DocumentTypeEnum["PPT"] = "ppt";
49
- DocumentTypeEnum["PPTX"] = "pptx";
50
- DocumentTypeEnum["TXT"] = "txt";
51
- return DocumentTypeEnum;
52
- }({});
53
-
54
- /**
55
- * 文件元信息
56
- */
57
-
58
- var FILE_META_LIST = [/* ---------- image ---------- */
59
- {
60
- ext: 'jpg',
61
- type: FileTypeEnum.IMAGE
62
- }, {
63
- ext: 'jpeg',
64
- type: FileTypeEnum.IMAGE
65
- }, {
66
- ext: 'png',
67
- type: FileTypeEnum.IMAGE
68
- }, {
69
- ext: 'gif',
70
- type: FileTypeEnum.IMAGE
71
- }, {
72
- ext: 'bmp',
73
- type: FileTypeEnum.IMAGE
74
- }, {
75
- ext: 'webp',
76
- type: FileTypeEnum.IMAGE
77
- }, {
78
- ext: 'svg',
79
- type: FileTypeEnum.IMAGE
80
- }, {
81
- ext: 'ico',
82
- type: FileTypeEnum.IMAGE
83
- }, {
84
- ext: 'heic',
85
- type: FileTypeEnum.IMAGE
86
- }, {
87
- ext: 'avif',
88
- type: FileTypeEnum.IMAGE
89
- }, /* ---------- video ---------- */
90
- {
91
- ext: 'mp4',
92
- type: FileTypeEnum.VIDEO
93
- }, {
94
- ext: 'mkv',
95
- type: FileTypeEnum.VIDEO
96
- }, {
97
- ext: 'mov',
98
- type: FileTypeEnum.VIDEO
99
- }, {
100
- ext: 'avi',
101
- type: FileTypeEnum.VIDEO
102
- }, {
103
- ext: 'webm',
104
- type: FileTypeEnum.VIDEO
105
- }, {
106
- ext: 'flv',
107
- type: FileTypeEnum.VIDEO
108
- }, /* ---------- audio ---------- */
109
- {
110
- ext: 'mp3',
111
- type: FileTypeEnum.AUDIO
112
- }, {
113
- ext: 'wav',
114
- type: FileTypeEnum.AUDIO
115
- }, {
116
- ext: 'aac',
117
- type: FileTypeEnum.AUDIO
118
- }, {
119
- ext: 'flac',
120
- type: FileTypeEnum.AUDIO
121
- }, {
122
- ext: 'ogg',
123
- type: FileTypeEnum.AUDIO
124
- }, {
125
- ext: 'm4a',
126
- type: FileTypeEnum.AUDIO
127
- }, /* ---------- document ---------- */
128
- {
129
- ext: 'pdf',
130
- type: FileTypeEnum.DOCUMENT,
131
- documentType: DocumentTypeEnum.PDF
132
- }, {
133
- ext: 'doc',
134
- type: FileTypeEnum.DOCUMENT,
135
- documentType: DocumentTypeEnum.DOC
136
- }, {
137
- ext: 'docx',
138
- type: FileTypeEnum.DOCUMENT,
139
- documentType: DocumentTypeEnum.DOCX
140
- }, {
141
- ext: 'xls',
142
- type: FileTypeEnum.DOCUMENT,
143
- documentType: DocumentTypeEnum.XLS
144
- }, {
145
- ext: 'xlsx',
146
- type: FileTypeEnum.DOCUMENT,
147
- documentType: DocumentTypeEnum.XLSX
148
- }, {
149
- ext: 'ppt',
150
- type: FileTypeEnum.DOCUMENT,
151
- documentType: DocumentTypeEnum.PPT
152
- }, {
153
- ext: 'pptx',
154
- type: FileTypeEnum.DOCUMENT,
155
- documentType: DocumentTypeEnum.PPTX
156
- }, {
157
- ext: 'txt',
158
- type: FileTypeEnum.DOCUMENT,
159
- documentType: DocumentTypeEnum.TXT
160
- }, {
161
- ext: 'md',
162
- type: FileTypeEnum.DOCUMENT
163
- }, {
164
- ext: 'csv',
165
- type: FileTypeEnum.DOCUMENT
166
- }, {
167
- ext: 'json',
168
- type: FileTypeEnum.DOCUMENT
169
- }, /* ---------- archive ---------- */
170
- {
171
- ext: 'zip',
172
- type: FileTypeEnum.ARCHIVE
173
- }, {
174
- ext: 'rar',
175
- type: FileTypeEnum.ARCHIVE
176
- }, {
177
- ext: '7z',
178
- type: FileTypeEnum.ARCHIVE
179
- }, {
180
- ext: 'tar',
181
- type: FileTypeEnum.ARCHIVE
182
- }, {
183
- ext: 'gz',
184
- type: FileTypeEnum.ARCHIVE
185
- }];
186
- var FILE_META_MAP = new Map();
187
- FILE_META_LIST.forEach(function (item) {
188
- FILE_META_MAP.set(item.ext, item);
189
- });
190
- var DEFAULT_META = {
191
- ext: '',
192
- type: FileTypeEnum.OTHER,
193
- documentType: DocumentTypeEnum.OTHER
194
- };
195
- export var CrFileUtil = /*#__PURE__*/function () {
196
- function CrFileUtil() {
197
- _classCallCheck(this, CrFileUtil);
198
- }
199
- _createClass(CrFileUtil, null, [{
200
- key: "getExt",
201
- value:
202
- /**
203
- * 提取扩展名(不含 .)
204
- */
205
- function getExt(filename) {
206
- var _filename$trim$split$;
207
- if (!filename || typeof filename !== 'string') return '';
208
- return ((_filename$trim$split$ = filename.trim().split('.').pop()) === null || _filename$trim$split$ === void 0 ? void 0 : _filename$trim$split$.toLowerCase()) || '';
209
- }
210
-
211
- /**
212
- * 获取文件完整信息
213
- */
214
- }, {
215
- key: "getMeta",
216
- value: function getMeta(filename) {
217
- var ext = this.getExt(filename);
218
- if (!ext) return DEFAULT_META;
219
- return FILE_META_MAP.get(ext) || _objectSpread(_objectSpread({}, DEFAULT_META), {}, {
220
- ext: ext
221
- });
222
- }
223
-
224
- /**
225
- * 文件类型
226
- */
227
- }, {
228
- key: "getType",
229
- value: function getType(filename) {
230
- return this.getMeta(filename).type;
231
- }
232
-
233
- /**
234
- * 文档类型
235
- */
236
- }, {
237
- key: "getDocumentType",
238
- value: function getDocumentType(filename) {
239
- return this.getMeta(filename).documentType || DocumentTypeEnum.OTHER;
240
- }
241
- }, {
242
- key: "isImage",
243
- value: function isImage(filename) {
244
- return this.getType(filename) === FileTypeEnum.IMAGE;
245
- }
246
- }, {
247
- key: "isVideo",
248
- value: function isVideo(filename) {
249
- return this.getType(filename) === FileTypeEnum.VIDEO;
250
- }
251
- }, {
252
- key: "isAudio",
253
- value: function isAudio(filename) {
254
- return this.getType(filename) === FileTypeEnum.AUDIO;
255
- }
256
- }, {
257
- key: "isDocument",
258
- value: function isDocument(filename) {
259
- return this.getType(filename) === FileTypeEnum.DOCUMENT;
260
- }
261
- }, {
262
- key: "isArchive",
263
- value: function isArchive(filename) {
264
- return this.getType(filename) === FileTypeEnum.ARCHIVE;
265
- }
266
- }]);
267
- return CrFileUtil;
268
- }();
@@ -1,10 +0,0 @@
1
- export { default as CrColorUtil } from './color';
2
- export type * from './eventCenter';
3
- export { default as CrEventCenter } from './eventCenter';
4
- export * from './file';
5
- export type * from './obj';
6
- export { default as CrObjUtil } from './obj';
7
- export { default as CrStorage } from './storage';
8
- export type * from './tree';
9
- export { default as CrTreeUtil } from './tree';
10
- export { default as CrUtil } from './util';
package/dist/esm/index.js DELETED
@@ -1,7 +0,0 @@
1
- export { default as CrColorUtil } from "./color";
2
- export { default as CrEventCenter } from "./eventCenter";
3
- export * from "./file";
4
- export { default as CrObjUtil } from "./obj";
5
- export { default as CrStorage } from "./storage";
6
- export { default as CrTreeUtil } from "./tree";
7
- export { default as CrUtil } from "./util";
package/dist/esm/obj.js DELETED
@@ -1,41 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import { get, set } from 'lodash';
8
- var CrObjUtil = /*#__PURE__*/function () {
9
- function CrObjUtil() {
10
- _classCallCheck(this, CrObjUtil);
11
- }
12
- _createClass(CrObjUtil, null, [{
13
- key: "getValueByPath",
14
- value:
15
- /**
16
- * 根据字段路径获取对象值
17
- * @param obj { 'a': [{ 'b': { 'c': 3 } }] }
18
- * @param path 'a[0].b.c' | ['a', '0', 'b', 'c']
19
- * @param defaultValue 找不到时返回的默认值
20
- * @returns
21
- */
22
- function getValueByPath(obj, propertyPath, defaultValue) {
23
- return get(obj, propertyPath, defaultValue);
24
- }
25
-
26
- /**
27
- * 根据字段路径设置对象值(可变更新,直接修改原对象)
28
- * @param obj 要修改的原对象 { 'a': [{ 'b': { 'c': 3 } }] }
29
- * @param propertyPath 路径 'a[0].b.c' | ['a', '0', 'b', 'c']
30
- * @param value 要设置的值
31
- * @returns 修改后的原对象(和入参obj是同一个引用)
32
- */
33
- }, {
34
- key: "setValueByPath",
35
- value: function setValueByPath(obj, propertyPath, value) {
36
- return set(obj, propertyPath, value);
37
- }
38
- }]);
39
- return CrObjUtil;
40
- }();
41
- export { CrObjUtil as default };