@dcloudio/uni-shared 3.0.0-alpha-3030820220114009 → 3.0.0-alpha-3030820220114011
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/uni-shared.cjs.js +99 -98
- package/dist/uni-shared.d.ts +1 -1
- package/dist/uni-shared.es.js +100 -99
- package/package.json +1 -1
package/dist/uni-shared.cjs.js
CHANGED
|
@@ -300,10 +300,106 @@ function formatLog(module, ...args) {
|
|
|
300
300
|
.join(' ')}`;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
function cache(fn) {
|
|
304
|
+
const cache = Object.create(null);
|
|
305
|
+
return (str) => {
|
|
306
|
+
const hit = cache[str];
|
|
307
|
+
return hit || (cache[str] = fn(str));
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
function cacheStringFunction(fn) {
|
|
311
|
+
return cache(fn);
|
|
312
|
+
}
|
|
313
|
+
function getLen(str = '') {
|
|
314
|
+
return ('' + str).replace(/[^\x00-\xff]/g, '**').length;
|
|
315
|
+
}
|
|
316
|
+
function hasLeadingSlash(str) {
|
|
317
|
+
return str.indexOf('/') === 0;
|
|
318
|
+
}
|
|
319
|
+
function addLeadingSlash(str) {
|
|
320
|
+
return hasLeadingSlash(str) ? str : '/' + str;
|
|
321
|
+
}
|
|
322
|
+
function removeLeadingSlash(str) {
|
|
323
|
+
return hasLeadingSlash(str) ? str.substr(1) : str;
|
|
324
|
+
}
|
|
325
|
+
const invokeArrayFns = (fns, arg) => {
|
|
326
|
+
let ret;
|
|
327
|
+
for (let i = 0; i < fns.length; i++) {
|
|
328
|
+
ret = fns[i](arg);
|
|
329
|
+
}
|
|
330
|
+
return ret;
|
|
331
|
+
};
|
|
332
|
+
function updateElementStyle(element, styles) {
|
|
333
|
+
for (const attrName in styles) {
|
|
334
|
+
element.style[attrName] = styles[attrName];
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
function once(fn, ctx = null) {
|
|
338
|
+
let res;
|
|
339
|
+
return ((...args) => {
|
|
340
|
+
if (fn) {
|
|
341
|
+
res = fn.apply(ctx, args);
|
|
342
|
+
fn = null;
|
|
343
|
+
}
|
|
344
|
+
return res;
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val;
|
|
348
|
+
const _completeValue = (value) => (value > 9 ? value : '0' + value);
|
|
349
|
+
function formatDateTime({ date = new Date(), mode = 'date' }) {
|
|
350
|
+
if (mode === 'time') {
|
|
351
|
+
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes()));
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
return (date.getFullYear() +
|
|
355
|
+
'-' +
|
|
356
|
+
_completeValue(date.getMonth() + 1) +
|
|
357
|
+
'-' +
|
|
358
|
+
_completeValue(date.getDate()));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function callOptions(options, data) {
|
|
362
|
+
options = options || {};
|
|
363
|
+
if (typeof data === 'string') {
|
|
364
|
+
data = {
|
|
365
|
+
errMsg: data,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
if (/:ok$/.test(data.errMsg)) {
|
|
369
|
+
if (typeof options.success === 'function') {
|
|
370
|
+
options.success(data);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
if (typeof options.fail === 'function') {
|
|
375
|
+
options.fail(data);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if (typeof options.complete === 'function') {
|
|
379
|
+
options.complete(data);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
function getValueByDataPath(obj, path) {
|
|
383
|
+
if (!shared.isString(path)) {
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
path = path.replace(/\[(\d+)\]/g, '.$1');
|
|
387
|
+
const parts = path.split('.');
|
|
388
|
+
let key = parts[0];
|
|
389
|
+
if (!obj) {
|
|
390
|
+
obj = {};
|
|
391
|
+
}
|
|
392
|
+
if (parts.length === 1) {
|
|
393
|
+
return obj[key];
|
|
394
|
+
}
|
|
395
|
+
return getValueByDataPath(obj[key], parts.slice(1).join('.'));
|
|
396
|
+
}
|
|
397
|
+
|
|
303
398
|
function formatKey(key) {
|
|
304
399
|
return shared.camelize(key.substring(5));
|
|
305
400
|
}
|
|
306
|
-
|
|
401
|
+
// question/139181,增加副作用,避免 initCustomDataset 在 build 下被 tree-shaking
|
|
402
|
+
const initCustomDatasetOnce = /*#__PURE__*/ once(() => {
|
|
307
403
|
const prototype = HTMLElement.prototype;
|
|
308
404
|
const setAttribute = prototype.setAttribute;
|
|
309
405
|
prototype.setAttribute = function (key, value) {
|
|
@@ -323,7 +419,7 @@ function initCustomDataset() {
|
|
|
323
419
|
}
|
|
324
420
|
removeAttribute.call(this, key);
|
|
325
421
|
};
|
|
326
|
-
}
|
|
422
|
+
});
|
|
327
423
|
function getCustomDataset(el) {
|
|
328
424
|
return shared.extend({}, el.dataset, el.__uniDataset);
|
|
329
425
|
}
|
|
@@ -1063,101 +1159,6 @@ const ACTION_TYPE_ADD_WXS_EVENT = 12;
|
|
|
1063
1159
|
const ACTION_TYPE_PAGE_SCROLL = 15;
|
|
1064
1160
|
const ACTION_TYPE_EVENT = 20;
|
|
1065
1161
|
|
|
1066
|
-
function cache(fn) {
|
|
1067
|
-
const cache = Object.create(null);
|
|
1068
|
-
return (str) => {
|
|
1069
|
-
const hit = cache[str];
|
|
1070
|
-
return hit || (cache[str] = fn(str));
|
|
1071
|
-
};
|
|
1072
|
-
}
|
|
1073
|
-
function cacheStringFunction(fn) {
|
|
1074
|
-
return cache(fn);
|
|
1075
|
-
}
|
|
1076
|
-
function getLen(str = '') {
|
|
1077
|
-
return ('' + str).replace(/[^\x00-\xff]/g, '**').length;
|
|
1078
|
-
}
|
|
1079
|
-
function hasLeadingSlash(str) {
|
|
1080
|
-
return str.indexOf('/') === 0;
|
|
1081
|
-
}
|
|
1082
|
-
function addLeadingSlash(str) {
|
|
1083
|
-
return hasLeadingSlash(str) ? str : '/' + str;
|
|
1084
|
-
}
|
|
1085
|
-
function removeLeadingSlash(str) {
|
|
1086
|
-
return hasLeadingSlash(str) ? str.substr(1) : str;
|
|
1087
|
-
}
|
|
1088
|
-
const invokeArrayFns = (fns, arg) => {
|
|
1089
|
-
let ret;
|
|
1090
|
-
for (let i = 0; i < fns.length; i++) {
|
|
1091
|
-
ret = fns[i](arg);
|
|
1092
|
-
}
|
|
1093
|
-
return ret;
|
|
1094
|
-
};
|
|
1095
|
-
function updateElementStyle(element, styles) {
|
|
1096
|
-
for (const attrName in styles) {
|
|
1097
|
-
element.style[attrName] = styles[attrName];
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
function once(fn, ctx = null) {
|
|
1101
|
-
let res;
|
|
1102
|
-
return ((...args) => {
|
|
1103
|
-
if (fn) {
|
|
1104
|
-
res = fn.apply(ctx, args);
|
|
1105
|
-
fn = null;
|
|
1106
|
-
}
|
|
1107
|
-
return res;
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val;
|
|
1111
|
-
const _completeValue = (value) => (value > 9 ? value : '0' + value);
|
|
1112
|
-
function formatDateTime({ date = new Date(), mode = 'date' }) {
|
|
1113
|
-
if (mode === 'time') {
|
|
1114
|
-
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes()));
|
|
1115
|
-
}
|
|
1116
|
-
else {
|
|
1117
|
-
return (date.getFullYear() +
|
|
1118
|
-
'-' +
|
|
1119
|
-
_completeValue(date.getMonth() + 1) +
|
|
1120
|
-
'-' +
|
|
1121
|
-
_completeValue(date.getDate()));
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
function callOptions(options, data) {
|
|
1125
|
-
options = options || {};
|
|
1126
|
-
if (typeof data === 'string') {
|
|
1127
|
-
data = {
|
|
1128
|
-
errMsg: data,
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
if (/:ok$/.test(data.errMsg)) {
|
|
1132
|
-
if (typeof options.success === 'function') {
|
|
1133
|
-
options.success(data);
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
else {
|
|
1137
|
-
if (typeof options.fail === 'function') {
|
|
1138
|
-
options.fail(data);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
if (typeof options.complete === 'function') {
|
|
1142
|
-
options.complete(data);
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
function getValueByDataPath(obj, path) {
|
|
1146
|
-
if (!shared.isString(path)) {
|
|
1147
|
-
return;
|
|
1148
|
-
}
|
|
1149
|
-
path = path.replace(/\[(\d+)\]/g, '.$1');
|
|
1150
|
-
const parts = path.split('.');
|
|
1151
|
-
let key = parts[0];
|
|
1152
|
-
if (!obj) {
|
|
1153
|
-
obj = {};
|
|
1154
|
-
}
|
|
1155
|
-
if (parts.length === 1) {
|
|
1156
|
-
return obj[key];
|
|
1157
|
-
}
|
|
1158
|
-
return getValueByDataPath(obj[key], parts.slice(1).join('.'));
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
1162
|
function debounce(fn, delay) {
|
|
1162
1163
|
let timeout;
|
|
1163
1164
|
const newFn = function () {
|
|
@@ -1471,7 +1472,7 @@ exports.getCustomDataset = getCustomDataset;
|
|
|
1471
1472
|
exports.getEnvLocale = getEnvLocale;
|
|
1472
1473
|
exports.getLen = getLen;
|
|
1473
1474
|
exports.getValueByDataPath = getValueByDataPath;
|
|
1474
|
-
exports.
|
|
1475
|
+
exports.initCustomDatasetOnce = initCustomDatasetOnce;
|
|
1475
1476
|
exports.invokeArrayFns = invokeArrayFns;
|
|
1476
1477
|
exports.isAppNVueNativeTag = isAppNVueNativeTag;
|
|
1477
1478
|
exports.isAppNativeTag = isAppNativeTag;
|
package/dist/uni-shared.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ declare interface HTMLElementWithDataset extends HTMLElement {
|
|
|
231
231
|
|
|
232
232
|
export declare const I18N_JSON_DELIMITERS: [string, string];
|
|
233
233
|
|
|
234
|
-
export declare
|
|
234
|
+
export declare const initCustomDatasetOnce: () => void;
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* nodeId
|
package/dist/uni-shared.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isHTMLTag, isSVGTag, hyphenate, camelize,
|
|
1
|
+
import { isHTMLTag, isSVGTag, hyphenate, camelize, isString, extend, isPlainObject, isArray, toTypeString, toRawType, capitalize } from '@vue/shared';
|
|
2
2
|
|
|
3
3
|
const BUILT_IN_TAG_NAMES = [
|
|
4
4
|
'ad',
|
|
@@ -296,10 +296,106 @@ function formatLog(module, ...args) {
|
|
|
296
296
|
.join(' ')}`;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
+
function cache(fn) {
|
|
300
|
+
const cache = Object.create(null);
|
|
301
|
+
return (str) => {
|
|
302
|
+
const hit = cache[str];
|
|
303
|
+
return hit || (cache[str] = fn(str));
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function cacheStringFunction(fn) {
|
|
307
|
+
return cache(fn);
|
|
308
|
+
}
|
|
309
|
+
function getLen(str = '') {
|
|
310
|
+
return ('' + str).replace(/[^\x00-\xff]/g, '**').length;
|
|
311
|
+
}
|
|
312
|
+
function hasLeadingSlash(str) {
|
|
313
|
+
return str.indexOf('/') === 0;
|
|
314
|
+
}
|
|
315
|
+
function addLeadingSlash(str) {
|
|
316
|
+
return hasLeadingSlash(str) ? str : '/' + str;
|
|
317
|
+
}
|
|
318
|
+
function removeLeadingSlash(str) {
|
|
319
|
+
return hasLeadingSlash(str) ? str.substr(1) : str;
|
|
320
|
+
}
|
|
321
|
+
const invokeArrayFns = (fns, arg) => {
|
|
322
|
+
let ret;
|
|
323
|
+
for (let i = 0; i < fns.length; i++) {
|
|
324
|
+
ret = fns[i](arg);
|
|
325
|
+
}
|
|
326
|
+
return ret;
|
|
327
|
+
};
|
|
328
|
+
function updateElementStyle(element, styles) {
|
|
329
|
+
for (const attrName in styles) {
|
|
330
|
+
element.style[attrName] = styles[attrName];
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
function once(fn, ctx = null) {
|
|
334
|
+
let res;
|
|
335
|
+
return ((...args) => {
|
|
336
|
+
if (fn) {
|
|
337
|
+
res = fn.apply(ctx, args);
|
|
338
|
+
fn = null;
|
|
339
|
+
}
|
|
340
|
+
return res;
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val;
|
|
344
|
+
const _completeValue = (value) => (value > 9 ? value : '0' + value);
|
|
345
|
+
function formatDateTime({ date = new Date(), mode = 'date' }) {
|
|
346
|
+
if (mode === 'time') {
|
|
347
|
+
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes()));
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return (date.getFullYear() +
|
|
351
|
+
'-' +
|
|
352
|
+
_completeValue(date.getMonth() + 1) +
|
|
353
|
+
'-' +
|
|
354
|
+
_completeValue(date.getDate()));
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function callOptions(options, data) {
|
|
358
|
+
options = options || {};
|
|
359
|
+
if (typeof data === 'string') {
|
|
360
|
+
data = {
|
|
361
|
+
errMsg: data,
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
if (/:ok$/.test(data.errMsg)) {
|
|
365
|
+
if (typeof options.success === 'function') {
|
|
366
|
+
options.success(data);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
if (typeof options.fail === 'function') {
|
|
371
|
+
options.fail(data);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
if (typeof options.complete === 'function') {
|
|
375
|
+
options.complete(data);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
function getValueByDataPath(obj, path) {
|
|
379
|
+
if (!isString(path)) {
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
path = path.replace(/\[(\d+)\]/g, '.$1');
|
|
383
|
+
const parts = path.split('.');
|
|
384
|
+
let key = parts[0];
|
|
385
|
+
if (!obj) {
|
|
386
|
+
obj = {};
|
|
387
|
+
}
|
|
388
|
+
if (parts.length === 1) {
|
|
389
|
+
return obj[key];
|
|
390
|
+
}
|
|
391
|
+
return getValueByDataPath(obj[key], parts.slice(1).join('.'));
|
|
392
|
+
}
|
|
393
|
+
|
|
299
394
|
function formatKey(key) {
|
|
300
395
|
return camelize(key.substring(5));
|
|
301
396
|
}
|
|
302
|
-
|
|
397
|
+
// question/139181,增加副作用,避免 initCustomDataset 在 build 下被 tree-shaking
|
|
398
|
+
const initCustomDatasetOnce = /*#__PURE__*/ once(() => {
|
|
303
399
|
const prototype = HTMLElement.prototype;
|
|
304
400
|
const setAttribute = prototype.setAttribute;
|
|
305
401
|
prototype.setAttribute = function (key, value) {
|
|
@@ -319,7 +415,7 @@ function initCustomDataset() {
|
|
|
319
415
|
}
|
|
320
416
|
removeAttribute.call(this, key);
|
|
321
417
|
};
|
|
322
|
-
}
|
|
418
|
+
});
|
|
323
419
|
function getCustomDataset(el) {
|
|
324
420
|
return extend({}, el.dataset, el.__uniDataset);
|
|
325
421
|
}
|
|
@@ -1059,101 +1155,6 @@ const ACTION_TYPE_ADD_WXS_EVENT = 12;
|
|
|
1059
1155
|
const ACTION_TYPE_PAGE_SCROLL = 15;
|
|
1060
1156
|
const ACTION_TYPE_EVENT = 20;
|
|
1061
1157
|
|
|
1062
|
-
function cache(fn) {
|
|
1063
|
-
const cache = Object.create(null);
|
|
1064
|
-
return (str) => {
|
|
1065
|
-
const hit = cache[str];
|
|
1066
|
-
return hit || (cache[str] = fn(str));
|
|
1067
|
-
};
|
|
1068
|
-
}
|
|
1069
|
-
function cacheStringFunction(fn) {
|
|
1070
|
-
return cache(fn);
|
|
1071
|
-
}
|
|
1072
|
-
function getLen(str = '') {
|
|
1073
|
-
return ('' + str).replace(/[^\x00-\xff]/g, '**').length;
|
|
1074
|
-
}
|
|
1075
|
-
function hasLeadingSlash(str) {
|
|
1076
|
-
return str.indexOf('/') === 0;
|
|
1077
|
-
}
|
|
1078
|
-
function addLeadingSlash(str) {
|
|
1079
|
-
return hasLeadingSlash(str) ? str : '/' + str;
|
|
1080
|
-
}
|
|
1081
|
-
function removeLeadingSlash(str) {
|
|
1082
|
-
return hasLeadingSlash(str) ? str.substr(1) : str;
|
|
1083
|
-
}
|
|
1084
|
-
const invokeArrayFns = (fns, arg) => {
|
|
1085
|
-
let ret;
|
|
1086
|
-
for (let i = 0; i < fns.length; i++) {
|
|
1087
|
-
ret = fns[i](arg);
|
|
1088
|
-
}
|
|
1089
|
-
return ret;
|
|
1090
|
-
};
|
|
1091
|
-
function updateElementStyle(element, styles) {
|
|
1092
|
-
for (const attrName in styles) {
|
|
1093
|
-
element.style[attrName] = styles[attrName];
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
function once(fn, ctx = null) {
|
|
1097
|
-
let res;
|
|
1098
|
-
return ((...args) => {
|
|
1099
|
-
if (fn) {
|
|
1100
|
-
res = fn.apply(ctx, args);
|
|
1101
|
-
fn = null;
|
|
1102
|
-
}
|
|
1103
|
-
return res;
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
const sanitise = (val) => (val && JSON.parse(JSON.stringify(val))) || val;
|
|
1107
|
-
const _completeValue = (value) => (value > 9 ? value : '0' + value);
|
|
1108
|
-
function formatDateTime({ date = new Date(), mode = 'date' }) {
|
|
1109
|
-
if (mode === 'time') {
|
|
1110
|
-
return (_completeValue(date.getHours()) + ':' + _completeValue(date.getMinutes()));
|
|
1111
|
-
}
|
|
1112
|
-
else {
|
|
1113
|
-
return (date.getFullYear() +
|
|
1114
|
-
'-' +
|
|
1115
|
-
_completeValue(date.getMonth() + 1) +
|
|
1116
|
-
'-' +
|
|
1117
|
-
_completeValue(date.getDate()));
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
function callOptions(options, data) {
|
|
1121
|
-
options = options || {};
|
|
1122
|
-
if (typeof data === 'string') {
|
|
1123
|
-
data = {
|
|
1124
|
-
errMsg: data,
|
|
1125
|
-
};
|
|
1126
|
-
}
|
|
1127
|
-
if (/:ok$/.test(data.errMsg)) {
|
|
1128
|
-
if (typeof options.success === 'function') {
|
|
1129
|
-
options.success(data);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
else {
|
|
1133
|
-
if (typeof options.fail === 'function') {
|
|
1134
|
-
options.fail(data);
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
if (typeof options.complete === 'function') {
|
|
1138
|
-
options.complete(data);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
function getValueByDataPath(obj, path) {
|
|
1142
|
-
if (!isString(path)) {
|
|
1143
|
-
return;
|
|
1144
|
-
}
|
|
1145
|
-
path = path.replace(/\[(\d+)\]/g, '.$1');
|
|
1146
|
-
const parts = path.split('.');
|
|
1147
|
-
let key = parts[0];
|
|
1148
|
-
if (!obj) {
|
|
1149
|
-
obj = {};
|
|
1150
|
-
}
|
|
1151
|
-
if (parts.length === 1) {
|
|
1152
|
-
return obj[key];
|
|
1153
|
-
}
|
|
1154
|
-
return getValueByDataPath(obj[key], parts.slice(1).join('.'));
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
1158
|
function debounce(fn, delay) {
|
|
1158
1159
|
let timeout;
|
|
1159
1160
|
const newFn = function () {
|
|
@@ -1343,4 +1344,4 @@ function getEnvLocale() {
|
|
|
1343
1344
|
return (lang && lang.replace(/[.:].*/, '')) || 'en';
|
|
1344
1345
|
}
|
|
1345
1346
|
|
|
1346
|
-
export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, E$1 as Emitter, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultNVueRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatAppLog, formatDateTime, formatH5Log, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath,
|
|
1347
|
+
export { ACTION_TYPE_ADD_EVENT, ACTION_TYPE_ADD_WXS_EVENT, ACTION_TYPE_CREATE, ACTION_TYPE_EVENT, ACTION_TYPE_INSERT, ACTION_TYPE_PAGE_CREATE, ACTION_TYPE_PAGE_CREATED, ACTION_TYPE_PAGE_SCROLL, ACTION_TYPE_REMOVE, ACTION_TYPE_REMOVE_ATTRIBUTE, ACTION_TYPE_REMOVE_EVENT, ACTION_TYPE_SET_ATTRIBUTE, ACTION_TYPE_SET_TEXT, ATTR_CHANGE_PREFIX, ATTR_CLASS, ATTR_INNER_HTML, ATTR_STYLE, ATTR_TEXT_CONTENT, ATTR_V_OWNER_ID, ATTR_V_RENDERJS, ATTR_V_SHOW, BACKGROUND_COLOR, BUILT_IN_TAGS, BUILT_IN_TAG_NAMES, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, DATA_RE, E$1 as Emitter, EventChannel, EventModifierFlags, I18N_JSON_DELIMITERS, JSON_PROTOCOL, LINEFEED, MINI_PROGRAM_PAGE_RUNTIME_HOOKS, NAVBAR_HEIGHT, NODE_TYPE_COMMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PAGE, NODE_TYPE_TEXT, NVUE_BUILT_IN_TAGS, NVUE_U_BUILT_IN_TAGS, ON_ADD_TO_FAVORITES, ON_APP_ENTER_BACKGROUND, ON_APP_ENTER_FOREGROUND, ON_BACK_PRESS, ON_ERROR, ON_HIDE, ON_KEYBOARD_HEIGHT_CHANGE, ON_LAUNCH, ON_LOAD, ON_NAVIGATION_BAR_BUTTON_TAP, ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_PAGE_NOT_FOUND, ON_PAGE_SCROLL, ON_PULL_DOWN_REFRESH, ON_REACH_BOTTOM, ON_REACH_BOTTOM_DISTANCE, ON_READY, ON_RESIZE, ON_SHARE_APP_MESSAGE, ON_SHARE_TIMELINE, ON_SHOW, ON_TAB_ITEM_TAP, ON_THEME_CHANGE, ON_UNHANDLE_REJECTION, ON_UNLOAD, ON_WEB_INVOKE_APP_SERVICE, ON_WXS_INVOKE_CALL_METHOD, PLUS_RE, PRIMARY_COLOR, RENDERJS_MODULES, RESPONSIVE_MIN_WIDTH, SCHEME_RE, SELECTED_COLOR, SLOT_DEFAULT_NAME, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, UNI_STORAGE_LOCALE, UniBaseNode, UniCommentNode, UniElement, UniEvent, UniInputElement, UniLifecycleHooks, UniNode, UniTextAreaElement, UniTextNode, WEB_INVOKE_APPSERVICE, WXS_MODULES, WXS_PROTOCOL, addFont, addLeadingSlash, cache, cacheStringFunction, callOptions, createIsCustomElement, createRpx2Unit, createUniEvent, customizeEvent, debounce, decode, decodedQuery, defaultMiniProgramRpx2Unit, defaultNVueRpx2Unit, defaultRpx2Unit, dynamicSlotName, forcePatchProp, formatAppLog, formatDateTime, formatH5Log, formatLog, getCustomDataset, getEnvLocale, getLen, getValueByDataPath, initCustomDatasetOnce, invokeArrayFns, isAppNVueNativeTag, isAppNativeTag, isBuiltInComponent, isComponentInternalInstance, isComponentTag, isH5CustomElement, isH5NativeTag, isMiniProgramNativeTag, isRootHook, normalizeDataset, normalizeEventType, normalizeTarget, once, parseEventName, parseQuery, parseUrl, passive, plusReady, removeLeadingSlash, resolveComponentInstance, resolveOwnerEl, resolveOwnerVm, sanitise, scrollTo, stringifyQuery, updateElementStyle };
|
package/package.json
CHANGED