@tarojs/runtime 3.6.6-alpha.2 → 3.6.6-alpha.3
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/runtime.esm.d.ts +2 -0
- package/dist/runtime.esm.js +9 -1
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +4 -3
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/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;
|
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];
|