Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): 新增 tt 的 button 属性 bindGetIdentityInfo #16220

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ require("./taro");
},
Button: {
bindGetPhoneNumber: _empty,
bindGetIdentityInfo: _empty,
"data-channel": _empty,
"data-aweme-id": _empty,
"group-id": _empty,
Expand Down Expand Up @@ -653,24 +654,24 @@ require("./taro");
}
function maybeInvokeDelegate(delegate, context) {
var methodName = context.method, method = delegate.iterator[methodName];
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return",
context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw",
context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")),
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return",
context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw",
context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")),
ContinueSentinel;
var record = tryCatch(method, delegate.iterator, context.arg);
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg,
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg,
context.delegate = null, ContinueSentinel;
var info = record.arg;
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc,
"return" !== context.method && (context.method = "next", context.arg = undefined),
context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"),
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc,
"return" !== context.method && (context.method = "next", context.arg = undefined),
context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"),
context.delegate = null, ContinueSentinel);
}
function pushTryEntry(locs) {
var entry = {
tryLoc: locs[0]
};
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2],
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2],
entry.afterLoc = locs[3]), this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
Expand All @@ -689,7 +690,7 @@ require("./taro");
if ("function" == typeof iterable.next) return iterable;
if (!isNaN(iterable.length)) {
var i = -1, next = function next() {
for (;++i < iterable.length; ) if (hasOwn.call(iterable, i)) return next.value = iterable[i],
for (;++i < iterable.length; ) if (hasOwn.call(iterable, i)) return next.value = iterable[i],
next.done = !1, next;
return next.value = undefined, next.done = !0, next;
};
Expand All @@ -712,13 +713,13 @@ require("./taro");
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
value: GeneratorFunction,
configurable: !0
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"),
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"),
exports.isGeneratorFunction = function(genFun) {
var ctor = "function" == typeof genFun && genFun.constructor;
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
}, exports.mark = function(genFun) {
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype,
define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp),
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype,
define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp),
genFun;
}, exports.awrap = function(arg) {
return {
Expand Down Expand Up @@ -749,8 +750,8 @@ require("./taro");
}, exports.values = values, Context.prototype = {
constructor: Context,
reset: function reset(skipTempReset) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1,
this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry),
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1,
this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry),
!skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
},
stop: function stop() {
Expand All @@ -763,7 +764,7 @@ require("./taro");
if (this.done) throw exception;
var context = this;
function handle(loc, caught) {
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next",
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next",
context.arg = undefined), !!caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
Expand Down Expand Up @@ -793,19 +794,19 @@ require("./taro");
}
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
var record = finallyEntry ? finallyEntry.completion : {};
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next",
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next",
this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
},
complete: function complete(record, afterLoc) {
if ("throw" === record.type) throw record.arg;
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg,
this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc),
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg,
this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc),
ContinueSentinel;
},
finish: function finish(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc),
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc),
resetTryEntry(entry), ContinueSentinel;
}
},
Expand Down Expand Up @@ -983,7 +984,7 @@ module.exports = {
e: function (n) {
return 'tmpl_' + n + '_container'
},

}

/** filePath: dist/vendors.js **/
Expand Down
1 change: 1 addition & 0 deletions packages/taro-tt/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const components = {
},
Button: {
bindGetPhoneNumber: _empty,
bindGetIdentityInfo: _empty,
'data-channel': _empty,
'data-aweme-id': _empty,
'group-id': _empty,
Expand Down
Loading