antd-mini
Advanced tools
Comparing version 0.0.5-alpha.2 to 0.0.5-alpha.3
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CheckBoxStore = void 0; | ||
var tslib_1 = require("tslib"); | ||
var baseStore_1 = require("./baseStore"); | ||
var tools_1 = require("./tools"); | ||
var CheckBoxStore = /** @class */ (function (_super) { | ||
__extends(CheckBoxStore, _super); | ||
tslib_1.__extends(CheckBoxStore, _super); | ||
function CheckBoxStore() { | ||
@@ -24,0 +10,0 @@ return _super !== null && _super.apply(this, arguments) || this; |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CollapseStore = void 0; | ||
var tslib_1 = require("tslib"); | ||
var baseStore_1 = require("./baseStore"); | ||
var tools_1 = require("../_util/tools"); | ||
var CollapseStore = /** @class */ (function (_super) { | ||
__extends(CollapseStore, _super); | ||
tslib_1.__extends(CollapseStore, _super); | ||
function CollapseStore() { | ||
@@ -24,0 +10,0 @@ return _super !== null && _super.apply(this, arguments) || this; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isSameDate = exports.isBetweenDate = void 0; | ||
var dayjs_1 = require("dayjs"); | ||
var isBetween_1 = require("dayjs/plugin/isBetween"); | ||
var tslib_1 = require("tslib"); | ||
var dayjs_1 = tslib_1.__importDefault(require("dayjs")); | ||
var isBetween_1 = tslib_1.__importDefault(require("dayjs/plugin/isBetween")); | ||
dayjs_1.default.extend(isBetween_1.default); | ||
@@ -7,0 +8,0 @@ function isBetweenDate(currentDate, startDate, endDate) { |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FilterStore = void 0; | ||
var tslib_1 = require("tslib"); | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
@@ -23,3 +9,3 @@ var baseStore_1 = require("./baseStore"); | ||
var FilterStore = /** @class */ (function (_super) { | ||
__extends(FilterStore, _super); | ||
tslib_1.__extends(FilterStore, _super); | ||
function FilterStore() { | ||
@@ -26,0 +12,0 @@ return _super !== null && _super.apply(this, arguments) || this; |
"use strict"; | ||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Store = void 0; | ||
var async_validator_1 = require("async-validator"); | ||
var tslib_1 = require("tslib"); | ||
var async_validator_1 = tslib_1.__importDefault(require("async-validator")); | ||
var Store = /** @class */ (function () { | ||
@@ -187,3 +132,3 @@ function Store() { | ||
var values = this.getTotalValue(form); | ||
this.formTree[form].validator.validate(__assign(__assign({}, values), (_a = {}, _a[field] = val, _a)), function (errors) { | ||
this.formTree[form].validator.validate(tslib_1.__assign(tslib_1.__assign({}, values), (_a = {}, _a[field] = val, _a)), function (errors) { | ||
var _a, _b; | ||
@@ -199,3 +144,3 @@ var updateErrorInfo = (_a = _this.formTree[form][field]) === null || _a === void 0 ? void 0 : _a.updateErrorInfo; | ||
if (error) { | ||
updateErrorInfo === null || updateErrorInfo === void 0 ? void 0 : updateErrorInfo(__assign({}, error)); | ||
updateErrorInfo === null || updateErrorInfo === void 0 ? void 0 : updateErrorInfo(tslib_1.__assign({}, error)); | ||
} | ||
@@ -232,3 +177,3 @@ else { | ||
else { | ||
(_b = _this.formTree[form][field]) === null || _b === void 0 ? void 0 : _b.updateErrorInfo(__assign({}, errFields[field])); | ||
(_b = _this.formTree[form][field]) === null || _b === void 0 ? void 0 : _b.updateErrorInfo(tslib_1.__assign({}, errFields[field])); | ||
} | ||
@@ -265,5 +210,5 @@ }); | ||
Store.prototype.onFinish = function (form) { | ||
return __awaiter(this, void 0, Promise, function () { | ||
return tslib_1.__awaiter(this, void 0, Promise, function () { | ||
var success; | ||
return __generator(this, function (_a) { | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
@@ -296,3 +241,3 @@ case 0: | ||
if (Array.isArray(rules)) { | ||
descriptor[field] = __spreadArray([], rules, true); | ||
descriptor[field] = tslib_1.__spreadArray([], rules, true); | ||
} | ||
@@ -299,0 +244,0 @@ if (required) { |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StepsStore = void 0; | ||
var tslib_1 = require("tslib"); | ||
var baseStore_1 = require("./baseStore"); | ||
var tools_1 = require("./tools"); | ||
var StepsStore = /** @class */ (function (_super) { | ||
__extends(StepsStore, _super); | ||
tslib_1.__extends(StepsStore, _super); | ||
function StepsStore() { | ||
@@ -24,0 +10,0 @@ return _super !== null && _super.apply(this, arguments) || this; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var computed_1 = require("../mixins/computed"); | ||
var computed_1 = tslib_1.__importDefault(require("../mixins/computed")); | ||
Component({ | ||
@@ -6,0 +7,0 @@ mixins: [computed_1.default], |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var fmtEvent_1 = require("../_util/fmtEvent"); | ||
var htmlType_1 = require("../mixins/htmlType"); | ||
var fmtEvent_1 = tslib_1.__importDefault(require("../_util/fmtEvent")); | ||
var htmlType_1 = tslib_1.__importDefault(require("../mixins/htmlType")); | ||
Component({ | ||
@@ -7,0 +8,0 @@ props: props_1.ButtonDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var form_1 = require("../mixins/form"); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
Component({ | ||
@@ -7,0 +8,0 @@ props: props_1.CheckboxDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var fast_deep_equal_1 = require("fast-deep-equal"); | ||
var fast_deep_equal_1 = tslib_1.__importDefault(require("fast-deep-equal")); | ||
var context_1 = require("./context"); | ||
var form_1 = require("../mixins/form"); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
Component({ | ||
@@ -8,0 +9,0 @@ props: props_1.CheckboxGroupDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var context_1 = require("./context"); | ||
var fast_deep_equal_1 = require("fast-deep-equal"); | ||
var fast_deep_equal_1 = tslib_1.__importDefault(require("fast-deep-equal")); | ||
Component({ | ||
@@ -7,0 +8,0 @@ props: props_1.CollapseDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var fmtEvent_1 = require("../_util/fmtEvent"); | ||
var fmtEvent_1 = tslib_1.__importDefault(require("../_util/fmtEvent")); | ||
var console_1 = require("../_util/console"); | ||
@@ -6,0 +7,0 @@ Component({ |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
@@ -36,3 +26,3 @@ var props_1 = require("./props"); | ||
_this.setData({ | ||
activeObj: __assign(__assign({}, _this.data.activeObj), val.val), | ||
activeObj: tslib_1.__assign(tslib_1.__assign({}, _this.data.activeObj), val.val), | ||
}); | ||
@@ -39,0 +29,0 @@ break; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var fmtEvent_1 = require("../_util/fmtEvent"); | ||
var fmtEvent_1 = tslib_1.__importDefault(require("../_util/fmtEvent")); | ||
Component({ | ||
@@ -6,0 +7,0 @@ props: props_1.IconDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var form_1 = require("../mixins/form"); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
var store_1 = require("../Form/store"); | ||
@@ -7,0 +8,0 @@ Component({ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var fmtEvent_1 = require("../../_util/fmtEvent"); | ||
var fmtEvent_1 = tslib_1.__importDefault(require("../../_util/fmtEvent")); | ||
Component({ | ||
@@ -6,0 +7,0 @@ props: props_1.ListItemDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fmtEvent_1 = require("../_util/fmtEvent"); | ||
var tslib_1 = require("tslib"); | ||
var fmtEvent_1 = tslib_1.__importDefault(require("../_util/fmtEvent")); | ||
var props_1 = require("./props"); | ||
@@ -5,0 +6,0 @@ Component({ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
var fast_deep_equal_1 = require("fast-deep-equal"); | ||
var fast_deep_equal_1 = tslib_1.__importDefault(require("fast-deep-equal")); | ||
function computedData() { | ||
@@ -6,0 +7,0 @@ var _this = this; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
var fast_deep_equal_1 = require("fast-deep-equal"); | ||
var fast_deep_equal_1 = tslib_1.__importDefault(require("fast-deep-equal")); | ||
/** | ||
@@ -6,0 +7,0 @@ * @description 处理通用受控非受控模式 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var computed_1 = require("../mixins/computed"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var fast_deep_equal_1 = require("fast-deep-equal"); | ||
var form_1 = require("../mixins/form"); | ||
var extends_1 = require("@babel/runtime/helpers/extends"); | ||
var computed_1 = tslib_1.__importDefault(require("../mixins/computed")); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
var fast_deep_equal_1 = tslib_1.__importDefault(require("fast-deep-equal")); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
var extends_1 = tslib_1.__importDefault(require("@babel/runtime/helpers/extends")); | ||
var store_1 = require("../Form/store"); | ||
@@ -10,0 +11,0 @@ var noop = function (v) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var fmtEvent_1 = require("../../_util/fmtEvent"); | ||
var fmtEvent_1 = tslib_1.__importDefault(require("../../_util/fmtEvent")); | ||
Component({ | ||
@@ -6,0 +7,0 @@ props: props_1.PopoverItemDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var context_1 = require("./context"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var form_1 = require("../mixins/form"); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
Component({ | ||
@@ -8,0 +9,0 @@ props: props_1.RadioGroupDefaultProps, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
Component({ | ||
@@ -6,0 +7,0 @@ mixins: [(0, controlled_1.default)()], |
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var form_1 = require("../mixins/form"); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
var getFixedValue = function (value, multiple) { | ||
@@ -45,3 +37,3 @@ var fixedValue; | ||
// 之前未选中,增加 | ||
nextValue = __spreadArray(__spreadArray([], fixedValue, true), [value], false); | ||
nextValue = tslib_1.__spreadArray(tslib_1.__spreadArray([], fixedValue, true), [value], false); | ||
} | ||
@@ -48,0 +40,0 @@ // 将 value 重新按 options 排序 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var computed_1 = require("../mixins/computed"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var computed_1 = tslib_1.__importDefault(require("../mixins/computed")); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
var utils_1 = require("./utils"); | ||
var form_1 = require("../mixins/form"); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
Component({ | ||
@@ -9,0 +10,0 @@ mixins: [computed_1.default, (0, controlled_1.default)(), (0, form_1.default)()], |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
var controlled_1 = require("../mixins/controlled"); | ||
var form_1 = require("../mixins/form"); | ||
var controlled_1 = tslib_1.__importDefault(require("../mixins/controlled")); | ||
var form_1 = tslib_1.__importDefault(require("../mixins/form")); | ||
Component({ | ||
@@ -7,0 +8,0 @@ props: props_1.SwitchDefaultProps, |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var props_1 = require("./props"); | ||
@@ -52,6 +17,6 @@ var context_1 = require("./context"); | ||
didMount: function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var index; | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
@@ -103,4 +68,4 @@ case 0: | ||
onWrapTouchStart: function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
@@ -117,6 +82,6 @@ case 0: return [4 /*yield*/, this.calcHeight()]; | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var _b, _c, rects, prevHeight, i, height; | ||
var _this = this; | ||
return __generator(this, function (_d) { | ||
return tslib_1.__generator(this, function (_d) { | ||
switch (_d.label) { | ||
@@ -181,5 +146,5 @@ case 0: | ||
var _a, _b, _c; | ||
return __awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var index; | ||
return __generator(this, function (_d) { | ||
return tslib_1.__generator(this, function (_d) { | ||
switch (_d.label) { | ||
@@ -186,0 +151,0 @@ case 0: return [4 /*yield*/, this.calcHeight()]; |
{ | ||
"name": "antd-mini", | ||
"version": "0.0.5-alpha.2", | ||
"version": "0.0.5-alpha.3", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "minidev dev --less --typescript --no-source-map", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
306184
4527