index.js 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. !(function (e) {
  2. const t = {};function a(n) {
  3. if (t[n]) return t[n].exports;const o = t[n] = { i: n, l: !1, exports: {} };return e[n].call(o.exports, o, o.exports, a), o.l = !0, o.exports;
  4. }a.m = e, a.c = t, a.d = function (e, t, n) {
  5. a.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: n });
  6. }, a.r = function (e) {
  7. 'undefined' !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }), Object.defineProperty(e, '__esModule', { value: !0 });
  8. }, a.t = function (e, t) {
  9. if (1 & t && (e = a(e)), 8 & t) return e;if (4 & t && 'object' === typeof e && e && e.__esModule) return e;const n = Object.create(null);if (a.r(n), Object.defineProperty(n, 'default', { enumerable: !0, value: e }), 2 & t && 'string' !== typeof e) for (const o in e)a.d(n, o, (t => e[t]).bind(null, o));return n;
  10. }, a.n = function (e) {
  11. const t = e && e.__esModule ? function () {
  12. return e.default;
  13. } : function () {
  14. return e;
  15. };return a.d(t, 'a', t), t;
  16. }, a.o = function (e, t) {
  17. return Object.prototype.hasOwnProperty.call(e, t);
  18. }, a.p = '', a(a.s = 21);
  19. }({ 21(e, t) {
  20. Component({ externalClasses: ['ext-class', 'input-class', 'textarea-class'], options: { addGlobalClass: !0 }, behaviors: ['wx://form-field'], properties: { name: { type: String, value: '' }, value: { type: String, value: '', observer(e) {
  21. this.updated(e);
  22. } }, type: { type: String, value: 'text' }, password: { type: Boolean, value: !1 }, placeholder: { type: String, value: '' }, placeholderStyle: { type: String, value: '' }, placeholderClass: { type: String, value: 'seal-field__placeholder' }, disabled: { type: Boolean, value: !1 }, readonly: { type: Boolean, value: !1 }, maxLength: { type: Number, value: -1 }, cursor: { type: Number, value: '-1' }, cursorSpacing: { type: Number, value: '0' }, focus: { type: Boolean, value: !1 }, autoFocus: { type: Boolean, value: !1 }, confirmType: { type: String, value: 'done' }, confirmHold: { type: Boolean, value: !1 }, autoHeight: { type: Boolean, value: !1 }, fixed: { type: Boolean, value: !1 }, showConfirmBar: { type: Boolean, value: !0 }, disableDefaultPadding: { type: Boolean, value: !0 }, hasCount: { type: Boolean, value: !1 }, border: { type: Boolean, value: !1 }, borderPosition: { type: String, value: 'surrounded' }, error: { type: Boolean, value: !1 }, selectionStart: { type: Number, value: '-1' }, selectionEnd: { type: Number, value: '-1' }, adjustPosition: { type: Boolean, value: !0 }, holdKeyboard: { type: Boolean, value: !1 } }, data: { focusFlag: !1 }, methods: { updated(e) {
  23. this.data.value !== e && this.setData({ value: e });
  24. }, handleInput(e) {
  25. const t = e.detail.value;this.updated(t), this.triggerEvent('input', e.detail);
  26. }, handleFocus(e) {
  27. this.setData({ focusFlag: !0 }), this.triggerEvent('focus', e.detail);
  28. }, handleBlur(e) {
  29. this.setData({ focusFlag: !1 }), this.triggerEvent('blur', e.detail);
  30. }, handleConfirm(e) {
  31. this.triggerEvent('confirm', e.detail);
  32. }, handleLineChange(e) {
  33. this.triggerEvent('linechange', e.detail);
  34. }, handleKeyboardHeightChange(e) {
  35. this.triggerEvent('keyboardheightchange', e.detail);
  36. } } });
  37. } }));