fix(@omiu/date-picker): disable mobile native input
This commit is contained in:
parent
e81d4cfc57
commit
54b8331953
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@omiu/date-picker",
|
||||
"version": "0.0.5",
|
||||
"version": "0.0.9",
|
||||
"description": "Components that select date.",
|
||||
"docsExtend": {
|
||||
"cnName": "日期选择器",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @omiu/date-picker v0.0.5 http://omijs.org
|
||||
* @omiu/date-picker v0.0.9 http://omijs.org
|
||||
* Front End Cross-Frameworks Framework.
|
||||
* By dntzhang https://github.com/dntzhang
|
||||
* Github: https://github.com/Tencent/omi
|
||||
|
@ -27,13 +27,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
var extendStatics$1 = function(d, b) {
|
||||
extendStatics$1 = 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]; };
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics$1(d, b);
|
||||
};
|
||||
|
||||
function __extends$1(d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics$1(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
|
@ -3340,7 +3338,7 @@ var Popover = /** @class */ (function (_super) {
|
|||
}
|
||||
Popover.prototype.updated = function () {
|
||||
var _a = this.props, locale = _a.locale, other = __rest$1(_a, ["locale"]);
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ disableMobile: true, locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
};
|
||||
Popover.prototype.installed = function () {
|
||||
return __awaiter(this, void 0, Promise, function () {
|
||||
|
@ -3353,7 +3351,7 @@ var Popover = /** @class */ (function (_super) {
|
|||
case 1:
|
||||
_b.sent();
|
||||
_a = this.props, locale = _a.locale, other = __rest$1(_a, ["locale"]);
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ disableMobile: true, locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
|
@ -3379,5 +3377,5 @@ var Popover = /** @class */ (function (_super) {
|
|||
return Popover;
|
||||
}(WeElement));
|
||||
|
||||
export default Popover;
|
||||
export { Popover as default };
|
||||
//# sourceMappingURL=index.esm.js.map
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @omiu/date-picker v0.0.5 http://omijs.org
|
||||
* @omiu/date-picker v0.0.9 http://omijs.org
|
||||
* Front End Cross-Frameworks Framework.
|
||||
* By dntzhang https://github.com/dntzhang
|
||||
* Github: https://github.com/Tencent/omi
|
||||
|
@ -28,13 +28,11 @@
|
|||
var extendStatics$1 = function(d, b) {
|
||||
extendStatics$1 = 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]; };
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics$1(d, b);
|
||||
};
|
||||
|
||||
function __extends$1(d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics$1(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
|
@ -3341,7 +3339,7 @@
|
|||
}
|
||||
Popover.prototype.updated = function () {
|
||||
var _a = this.props, locale = _a.locale, other = __rest$1(_a, ["locale"]);
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ disableMobile: true, locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
};
|
||||
Popover.prototype.installed = function () {
|
||||
return __awaiter(this, void 0, Promise, function () {
|
||||
|
@ -3354,7 +3352,7 @@
|
|||
case 1:
|
||||
_b.sent();
|
||||
_a = this.props, locale = _a.locale, other = __rest$1(_a, ["locale"]);
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), __assign$1({ disableMobile: true, locale: locale === 'zh' ? Mandarin : null }, other));
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -114,6 +114,7 @@ export default class Popover extends WeElement<Props> {
|
|||
updated() {
|
||||
const { locale, ...other } = this.props
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), {
|
||||
disableMobile: true,
|
||||
locale: locale === 'zh' ? Mandarin : null,
|
||||
...other
|
||||
})
|
||||
|
@ -125,6 +126,7 @@ export default class Popover extends WeElement<Props> {
|
|||
const { locale, ...other } = this.props
|
||||
|
||||
flatpickr(this.shadowRoot.querySelector('o-input'), {
|
||||
disableMobile: true,
|
||||
locale: locale === 'zh' ? Mandarin : null,
|
||||
...other
|
||||
})
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"@omiu/checkbox": "^0.0.13",
|
||||
"@omiu/color-picker": "^0.0.4",
|
||||
"@omiu/common": "^0.0.11",
|
||||
"@omiu/date-picker": "^0.0.5",
|
||||
"@omiu/date-picker": "^0.0.9",
|
||||
"@omiu/form": "^0.0.6",
|
||||
"@omiu/hamburger-menu": "^0.0.5",
|
||||
"@omiu/icon": "^0.0.4",
|
||||
|
|
|
@ -93,7 +93,7 @@ export default class extends WeElement<Props> {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<div class={tw`bg-gray-100 h-12 text-left border-b-1`}>
|
||||
<div class={tw`h-12 text-left border-b-1`}>
|
||||
<div class={tw`flex justify-between`}>
|
||||
<div class={tw`flex flex-row p-1 order-1`}>
|
||||
<img class={tw`w-8 m-1 ml-3 flex-row`} src={logo} alt="logo" />
|
||||
|
|
Loading…
Reference in New Issue