@tarojs/runtime 3.6.6 → 3.6.7-alpha.0
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/dom/form.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/runtime.esm.d.ts +4 -1
- package/dist/runtime.esm.js +10 -2
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/dom/form.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TaroElement } from './element';
|
|
2
2
|
import type { TaroEvent } from './event';
|
|
3
3
|
export declare class FormElement extends TaroElement {
|
|
4
|
+
get type(): string;
|
|
5
|
+
set type(val: string);
|
|
4
6
|
get value(): string | boolean | number | any[];
|
|
5
7
|
set value(val: string | boolean | number | any[]);
|
|
6
8
|
dispatchEvent(event: TaroEvent): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { TaroText } from './dom/text';
|
|
|
20
20
|
export { MutationObserver } from './dom-external/mutation-observer';
|
|
21
21
|
export { Current, getCurrentInstance } from './current';
|
|
22
22
|
export { eventSource } from './dom/event-source';
|
|
23
|
-
export { addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, injectPageInstance, removePageInstance, safeExecute, stringify } from './dsl/common';
|
|
23
|
+
export { addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify } from './dsl/common';
|
|
24
24
|
export * from './emitter/emitter';
|
|
25
25
|
export { hydrate } from './hydrate';
|
|
26
26
|
export { nextTick } from './next-tick';
|
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -131,6 +131,8 @@ declare function createEvent(event: MpEvent | string, node?: TaroElement): TaroE
|
|
|
131
131
|
// 小程序的事件代理回调函数
|
|
132
132
|
declare function eventHandler(event: MpEvent): any;
|
|
133
133
|
declare class FormElement extends TaroElement {
|
|
134
|
+
get type(): string;
|
|
135
|
+
set type(val: string);
|
|
134
136
|
get value(): string | boolean | number | any[];
|
|
135
137
|
set value(val: string | boolean | number | any[]);
|
|
136
138
|
dispatchEvent(event: TaroEvent): boolean;
|
|
@@ -690,6 +692,7 @@ declare function removePageInstance(id: string): void;
|
|
|
690
692
|
declare function addLeadingSlash(path?: string): string;
|
|
691
693
|
declare function safeExecute(path: string, lifecycle: string, ...args: unknown[]): any;
|
|
692
694
|
declare function stringify(obj?: Record<string, unknown>): string;
|
|
695
|
+
declare function getPath(id: string, options?: Record<string, unknown>): string;
|
|
693
696
|
declare function createPageConfig(component: any, pageName?: string, data?: Record<string, unknown>, pageConfig?: PageConfig): PageInstance;
|
|
694
697
|
declare function createComponentConfig(component: React.ComponentClass, componentName?: string, data?: Record<string, unknown>): any;
|
|
695
698
|
declare function createRecursiveComponentConfig(componentName?: string): any;
|
|
@@ -704,4 +707,4 @@ declare const nextTick: (cb: Func, ctx?: Record<string, any>) => void;
|
|
|
704
707
|
declare const options: Options;
|
|
705
708
|
declare const incrementId: () => () => string;
|
|
706
709
|
export { hooks } from '@tarojs/shared';
|
|
707
|
-
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$0 as Options, Func, Ctx };
|
|
710
|
+
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$0 as Options, Func, Ctx };
|
package/dist/runtime.esm.js
CHANGED
|
@@ -2517,7 +2517,8 @@ function eventHandler(event) {
|
|
|
2517
2517
|
const dispatch = () => {
|
|
2518
2518
|
const e = createEvent(event, node);
|
|
2519
2519
|
hooks.call('modifyTaroEvent', e, node);
|
|
2520
|
-
|
|
2520
|
+
hooks.call('dispatchTaroEvent', e, node);
|
|
2521
|
+
hooks.call('dispatchTaroEventFinish', e, node);
|
|
2521
2522
|
};
|
|
2522
2523
|
if (hooks.isExist('batchedEventUpdates')) {
|
|
2523
2524
|
const type = event.type;
|
|
@@ -2547,6 +2548,13 @@ function eventHandler(event) {
|
|
|
2547
2548
|
}
|
|
2548
2549
|
|
|
2549
2550
|
class FormElement extends TaroElement {
|
|
2551
|
+
get type() {
|
|
2552
|
+
var _a;
|
|
2553
|
+
return (_a = this.props[TYPE]) !== null && _a !== void 0 ? _a : '';
|
|
2554
|
+
}
|
|
2555
|
+
set type(val) {
|
|
2556
|
+
this.setAttribute(TYPE, val);
|
|
2557
|
+
}
|
|
2550
2558
|
get value() {
|
|
2551
2559
|
// eslint-disable-next-line dot-notation
|
|
2552
2560
|
const val = this.props[VALUE];
|
|
@@ -4167,5 +4175,5 @@ const nextTick = (cb, ctx) => {
|
|
|
4167
4175
|
}
|
|
4168
4176
|
};
|
|
4169
4177
|
|
|
4170
|
-
export { Current, FormElement, History, Location, MutationObserver, SVGElement, Style, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, URL, URLSearchParams, addLeadingSlash, _caf as cancelAnimationFrame, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, document$1 as document, eventCenter, eventHandler, eventSource, getComputedStyle, getCurrentInstance, getPageInstance, history, hydrate, incrementId, injectPageInstance, location, nav as navigator, nextTick, now, options, parseUrl, removePageInstance, _raf as requestAnimationFrame, safeExecute, stringify, window$1 as window };
|
|
4178
|
+
export { Current, FormElement, History, Location, MutationObserver, SVGElement, Style, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, URL, URLSearchParams, addLeadingSlash, _caf as cancelAnimationFrame, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, document$1 as document, eventCenter, eventHandler, eventSource, getComputedStyle, getCurrentInstance, getPageInstance, getPath, history, hydrate, incrementId, injectPageInstance, location, nav as navigator, nextTick, now, options, parseUrl, removePageInstance, _raf as requestAnimationFrame, safeExecute, stringify, window$1 as window };
|
|
4171
4179
|
//# sourceMappingURL=runtime.esm.js.map
|