update bundle

This commit is contained in:
王劲鹏 2021-03-03 16:13:58 +08:00 committed by osborn
parent 28519d20c7
commit 0e430cc342
7 changed files with 27 additions and 15 deletions

View File

@ -2715,7 +2715,7 @@ var Input = /** @class */ (function (_super) {
return this.nativeChannel(context, 'releaseFocus')(); return this.nativeChannel(context, 'releaseFocus')();
}; };
__decorate$3([ __decorate$3([
Property, InconsistProperty,
__metadata$3("design:type", String) __metadata$3("design:type", String)
], Input.prototype, "text", void 0); ], Input.prototype, "text", void 0);
__decorate$3([ __decorate$3([
@ -2911,7 +2911,7 @@ var Switch = /** @class */ (function (_super) {
return _super !== null && _super.apply(this, arguments) || this; return _super !== null && _super.apply(this, arguments) || this;
} }
__decorate([ __decorate([
Property, InconsistProperty,
__metadata("design:type", Boolean) __metadata("design:type", Boolean)
], Switch.prototype, "state", void 0); ], Switch.prototype, "state", void 0);
__decorate([ __decorate([

View File

@ -2081,7 +2081,7 @@ class Input extends View {
} }
} }
__decorate$3([ __decorate$3([
Property, InconsistProperty,
__metadata$3("design:type", String) __metadata$3("design:type", String)
], Input.prototype, "text", void 0); ], Input.prototype, "text", void 0);
__decorate$3([ __decorate$3([
@ -2216,7 +2216,7 @@ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
class Switch extends View { class Switch extends View {
} }
__decorate([ __decorate([
Property, InconsistProperty,
__metadata("design:type", Boolean) __metadata("design:type", Boolean)
], Switch.prototype, "state", void 0); ], Switch.prototype, "state", void 0);
__decorate([ __decorate([

View File

@ -3576,7 +3576,7 @@ class Input extends View {
} }
} }
__decorate$3([ __decorate$3([
Property, InconsistProperty,
__metadata$3("design:type", String) __metadata$3("design:type", String)
], Input.prototype, "text", void 0); ], Input.prototype, "text", void 0);
__decorate$3([ __decorate$3([
@ -3711,7 +3711,7 @@ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
class Switch extends View { class Switch extends View {
} }
__decorate([ __decorate([
Property, InconsistProperty,
__metadata("design:type", Boolean) __metadata("design:type", Boolean)
], Switch.prototype, "state", void 0); ], Switch.prototype, "state", void 0);
__decorate([ __decorate([

View File

@ -22,7 +22,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import { View, Property } from "../ui/view"; import { View, Property, InconsistProperty } from "../ui/view";
import { Color } from "../util/color"; import { Color } from "../util/color";
import { Gravity } from "../util/gravity"; import { Gravity } from "../util/gravity";
import { layoutConfig } from "../util/index.util"; import { layoutConfig } from "../util/index.util";
@ -44,7 +44,7 @@ export class Input extends View {
} }
} }
__decorate([ __decorate([
Property, InconsistProperty,
__metadata("design:type", String) __metadata("design:type", String)
], Input.prototype, "text", void 0); ], Input.prototype, "text", void 0);
__decorate([ __decorate([

View File

@ -22,13 +22,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import { View, Property } from "../ui/view"; import { View, Property, InconsistProperty } from "../ui/view";
import { Color } from "../util/color"; import { Color } from "../util/color";
import { layoutConfig } from "../util/index.util"; import { layoutConfig } from "../util/index.util";
export class Switch extends View { export class Switch extends View {
} }
__decorate([ __decorate([
Property, InconsistProperty,
__metadata("design:type", Boolean) __metadata("design:type", Boolean)
], Switch.prototype, "state", void 0); ], Switch.prototype, "state", void 0);
__decorate([ __decorate([

View File

@ -1674,8 +1674,13 @@ var __decorate$d = (undefined && undefined.__decorate) || function (decorators,
var __metadata$d = (undefined && undefined.__metadata) || function (k, v) { var __metadata$d = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
const PROP_CONSIST = 1;
const PROP_INCONSIST = 2;
function Property(target, propKey) { function Property(target, propKey) {
Reflect.defineMetadata(propKey, true, target); Reflect.defineMetadata(propKey, PROP_CONSIST, target);
}
function InconsistProperty(target, propKey) {
Reflect.defineMetadata(propKey, PROP_INCONSIST, target);
} }
class View { class View {
constructor() { constructor() {
@ -1699,7 +1704,10 @@ class View {
set: (target, p, v, receiver) => { set: (target, p, v, receiver) => {
const oldV = Reflect.get(target, p, receiver); const oldV = Reflect.get(target, p, receiver);
const ret = Reflect.set(target, p, v, receiver); const ret = Reflect.set(target, p, v, receiver);
if (Reflect.getMetadata(p, target) && oldV !== v) { if (Reflect.getMetadata(p, target) === PROP_CONSIST && oldV !== v) {
receiver.onPropertyChanged(p.toString(), oldV, v);
}
else if (Reflect.getMetadata(p, target) === PROP_INCONSIST) {
receiver.onPropertyChanged(p.toString(), oldV, v); receiver.onPropertyChanged(p.toString(), oldV, v);
} }
return ret; return ret;
@ -3622,7 +3630,7 @@ class Input extends View {
} }
} }
__decorate$3([ __decorate$3([
Property, InconsistProperty,
__metadata$3("design:type", String) __metadata$3("design:type", String)
], Input.prototype, "text", void 0); ], Input.prototype, "text", void 0);
__decorate$3([ __decorate$3([
@ -3757,7 +3765,7 @@ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
class Switch extends View { class Switch extends View {
} }
__decorate([ __decorate([
Property, InconsistProperty,
__metadata("design:type", Boolean) __metadata("design:type", Boolean)
], Switch.prototype, "state", void 0); ], Switch.prototype, "state", void 0);
__decorate([ __decorate([
@ -4285,6 +4293,7 @@ exports.Gravity = Gravity;
exports.Group = Group; exports.Group = Group;
exports.HLayout = HLayout; exports.HLayout = HLayout;
exports.Image = Image; exports.Image = Image;
exports.InconsistProperty = InconsistProperty;
exports.Input = Input; exports.Input = Input;
exports.LEFT = LEFT; exports.LEFT = LEFT;
exports.LayoutConfigImpl = LayoutConfigImpl; exports.LayoutConfigImpl = LayoutConfigImpl;
@ -4407,6 +4416,7 @@ var doric_web = (function (exports, axios, sandbox) {
} }
} }
exports.LayoutSpec = void 0;
(function (LayoutSpec) { (function (LayoutSpec) {
LayoutSpec[LayoutSpec["EXACTLY"] = 0] = "EXACTLY"; LayoutSpec[LayoutSpec["EXACTLY"] = 0] = "EXACTLY";
LayoutSpec[LayoutSpec["WRAP_CONTENT"] = 1] = "WRAP_CONTENT"; LayoutSpec[LayoutSpec["WRAP_CONTENT"] = 1] = "WRAP_CONTENT";
@ -5888,6 +5898,8 @@ ${content}
exports.toPixelString = toPixelString; exports.toPixelString = toPixelString;
exports.toRGBAString = toRGBAString; exports.toRGBAString = toRGBAString;
Object.defineProperty(exports, '__esModule', { value: true });
return exports; return exports;
}({}, axios, doric)); }({}, axios, doric));

File diff suppressed because one or more lines are too long