vxe-table 3.8.22 → 3.8.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helper/vetur/attributes.json +1 -1966
- package/helper/vetur/tags.json +1 -648
- package/lib/button/src/button.js +4 -2
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +9 -0
- package/lib/button/style/style.min.css +1 -1
- package/lib/custom/src/panel.js +157 -71
- package/lib/custom/src/panel.min.js +1 -1
- package/lib/custom/style/style.css +16 -34
- package/lib/custom/style/style.min.css +1 -1
- package/lib/export/src/export-panel.js +7 -1
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/form/src/form.js +0 -3
- package/lib/form/src/form.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +3475 -3181
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +9 -2
- package/lib/input/src/input.min.js +1 -1
- package/lib/locale/lang/en-US.js +200 -9
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +200 -9
- package/lib/locale/lang/es-ES.js +201 -10
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +201 -10
- package/lib/locale/lang/ja-JP.js +213 -22
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +213 -22
- package/lib/locale/lang/pt-BR.js +200 -9
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +200 -9
- package/lib/locale/lang/zh-CN.js +195 -4
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +195 -4
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +199 -8
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +199 -8
- package/lib/locale/lang/zh-TC.js +199 -8
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +199 -8
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +199 -8
- package/lib/menu/src/panel.js +24 -8
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/menu/style/style.css +10 -27
- package/lib/menu/style/style.min.css +1 -1
- package/lib/select/src/select.js +5 -4
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +33 -46
- package/lib/table/src/methods.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +1 -0
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/vxe-button/style/style.css +9 -0
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-table-custom-module/style/style.css +16 -34
- package/lib/vxe-table-custom-module/style/style.min.css +1 -1
- package/lib/vxe-table-menu-module/style/style.css +10 -27
- package/lib/vxe-table-menu-module/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.js +4 -3
- package/packages/custom/src/panel.js +167 -85
- package/packages/export/src/export-panel.js +11 -3
- package/packages/form/src/form.js +0 -3
- package/packages/input/src/input.js +9 -2
- package/packages/locale/lang/en-US.js +200 -9
- package/packages/locale/lang/es-ES.js +201 -10
- package/packages/locale/lang/ja-JP.js +213 -22
- package/packages/locale/lang/pt-BR.js +200 -9
- package/packages/locale/lang/zh-CN.js +195 -4
- package/packages/locale/lang/zh-TC.js +199 -8
- package/packages/menu/src/panel.js +38 -10
- package/packages/select/src/select.js +5 -4
- package/packages/table/src/methods.js +28 -38
- package/packages/v-x-e-table/src/conf.js +1 -0
- package/styles/button.scss +9 -0
- package/styles/custom.scss +21 -37
- package/styles/menu.scss +21 -39
- package/styles/variable.scss +1 -1
- package/types/module/menu.d.ts +40 -3
- package/types/v-x-e-table/renderer.d.ts +6 -1
- /package/lib/icon/style/{iconfont.1724292682903.ttf → iconfont.1724894779531.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1724292682903.woff → iconfont.1724894779531.woff} +0 -0
- /package/lib/icon/style/{iconfont.1724292682903.woff2 → iconfont.1724894779531.woff2} +0 -0
- /package/lib/{iconfont.1724292682903.ttf → iconfont.1724894779531.ttf} +0 -0
- /package/lib/{iconfont.1724292682903.woff → iconfont.1724894779531.woff} +0 -0
- /package/lib/{iconfont.1724292682903.woff2 → iconfont.1724894779531.woff2} +0 -0
package/lib/input/src/input.js
CHANGED
|
@@ -1456,11 +1456,18 @@ var _default2 = exports.default = {
|
|
|
1456
1456
|
var isShiftKey = evnt.shiftKey;
|
|
1457
1457
|
var isAltKey = evnt.altKey;
|
|
1458
1458
|
var keyCode = evnt.keyCode;
|
|
1459
|
+
var isEsc = keyCode === 27;
|
|
1460
|
+
var isUpArrow = keyCode === 38;
|
|
1461
|
+
var isDwArrow = keyCode === 40;
|
|
1459
1462
|
if (!isCtrlKey && !isShiftKey && !isAltKey && (keyCode === 32 || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191)) {
|
|
1460
1463
|
evnt.preventDefault();
|
|
1461
1464
|
}
|
|
1462
|
-
if (
|
|
1463
|
-
this.
|
|
1465
|
+
if (isEsc) {
|
|
1466
|
+
this.afterCheckValue();
|
|
1467
|
+
} else if (isUpArrow || isDwArrow) {
|
|
1468
|
+
if (controls) {
|
|
1469
|
+
this.numberKeydownEvent(evnt);
|
|
1470
|
+
}
|
|
1464
1471
|
}
|
|
1465
1472
|
}
|
|
1466
1473
|
this.triggerEvent(evnt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=_interopRequireDefault(require("../../mixins/size")),_utils=_interopRequireWildcard(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom")),_event=require("../../tools/event"),_date=require("./date"),_number=require("./number"),_log=require("../../tools/log");function _getRequireWildcardCache(e){var t,i;return"function"!=typeof WeakMap?null:(t=new WeakMap,i=new WeakMap,(_getRequireWildcardCache=function(e){return e?i:t})(e))}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=_typeof(e)&&"function"!=typeof e)return{default:e};t=_getRequireWildcardCache(t);if(t&&t.has(e))return t.get(e);var i,a,n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((a=s?Object.getOwnPropertyDescriptor(e,i):null)&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]);return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var i,a=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)),a}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach(function(e){_defineProperty(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}var yearSize=12,monthSize=20,quarterSize=8;function getNumberValue(e,t){var i=e.type,a=e.exponential,n=e.digitsValue,e=e.inpMaxlength,i="float"===i?(0,_number.toFloatValueFixed)(t,n):_xeUtils.default.toValueString(t);return!a||t!==i&&_xeUtils.default.toValueString(t).toLowerCase()!==_xeUtils.default.toNumber(i).toExponential()?i.slice(0,e):t}function renderDateLabel(t,e,i,a){var n=e.festivalMethod;return n?(i=(e=(n=n(_objectSpread({$input:e,type:e.datePanelType,viewType:e.datePanelType},i)))?_xeUtils.default.isString(n)?{label:n}:n:{}).extra?_xeUtils.default.isString(e.extra)?{label:e.extra}:e.extra:null,n=[t("span",{class:["vxe-input--date-label",{"is-notice":e.notice}]},i&&i.label?[t("span",a),t("span",{class:["vxe-input--date-label--extra",i.important?"is-important":"",i.className],style:i.style},_xeUtils.default.toValueString(i.label))]:a)],(i=e.label)&&(i=_xeUtils.default.toValueString(i).split(","),n.push(t("span",{class:["vxe-input--date-festival",e.important?"is-important":"",e.className],style:e.style},[1<i.length?t("span",{class:["vxe-input--date-festival--overlap","overlap--".concat(i.length)]},i.map(function(e){return t("span",e.substring(0,3))})):t("span",{class:"vxe-input--date-festival--label"},i[0].substring(0,3))]))),n):a}function isDateDisabled(e,t){var i=e.disabledMethod;return i&&i({$input:e,type:e.datePanelType,viewType:e.datePanelType,date:t.date})}function renderDateDayTable(i,a){var e=a.datePanelType,n=a.dateValue,s=a.datePanelValue,t=a.dateHeaders,r=a.dayDatas,l=a.multiple,u=a.dateListValue,o="yyyy-MM-dd";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("thead",[i("tr",t.map(function(e){return i("th",e.label)}))]),i("tbody",r.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(a,t),"is--selected":l?u.some(function(e){return _xeUtils.default.isDateSame(e,t.date,o)}):_xeUtils.default.isDateSame(n,t.date,o),"is--hover":_xeUtils.default.isDateSame(s,t.date,o)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,t.label))}))}))])]}function renderDateWeekTable(a,n){var e=n.datePanelType,s=n.dateValue,r=n.datePanelValue,t=n.weekHeaders,i=n.weekDates,l=n.multiple,u=n.dateListValue,o="yyyyMMdd";return[a("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[a("thead",[a("tr",t.map(function(e){return a("th",e.label)}))]),a("tbody",i.map(function(e){var t=l?e.some(function(t){return u.some(function(e){return _xeUtils.default.isDateSame(e,t.date,o)})}):e.some(function(e){return _xeUtils.default.isDateSame(s,e.date,o)}),i=e.some(function(e){return _xeUtils.default.isDateSame(r,e.date,o)});return a("tr",e.map(function(e){return a("td",{class:{"is--prev":e.isPrev,"is--current":e.isCurrent,"is--now":e.isNow,"is--next":e.isNext,"is--disabled":isDateDisabled(n,e),"is--selected":t,"is--hover":i},on:{click:function(){return n.dateSelectEvent(e)},mouseenter:function(){return n.dateMouseenterEvent(e)}}},renderDateLabel(a,n,e,e.label))}))}))])]}function renderDateMonthTable(i,a){var n=a.dateValue,e=a.datePanelType,t=a.monthDatas,s=a.datePanelValue,r=a.multiple,l=a.dateListValue,u="yyyyMM";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("tbody",t.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(a,t),"is--selected":r?l.some(function(e){return _xeUtils.default.isDateSame(e,t.date,u)}):_xeUtils.default.isDateSame(n,t.date,u),"is--hover":_xeUtils.default.isDateSame(s,t.date,u)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,_conf.default.i18n("vxe.input.date.months.m".concat(t.month))))}))}))])]}function renderDateQuarterTable(i,a){var n=a.dateValue,e=a.datePanelType,t=a.quarterDatas,s=a.datePanelValue,r=a.multiple,l=a.dateListValue,u="yyyyq";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("tbody",t.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(a,t),"is--selected":r?l.some(function(e){return _xeUtils.default.isDateSame(e,t.date,u)}):_xeUtils.default.isDateSame(n,t.date,u),"is--hover":_xeUtils.default.isDateSame(s,t.date,u)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,_conf.default.i18n("vxe.input.date.quarters.q".concat(t.quarter))))}))}))])]}function renderDateYearTable(i,a){var n=a.dateValue,e=a.datePanelType,t=a.yearDatas,s=a.datePanelValue,r=a.multiple,l=a.dateListValue,u="yyyy";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("tbody",t.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(t),"is--selected":r?l.some(function(e){return _xeUtils.default.isDateSame(e,t.date,u)}):_xeUtils.default.isDateSame(n,t.date,u),"is--hover":_xeUtils.default.isDateSame(s,t.date,u)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,t.year))}))}))])]}function renderDateTable(e,t){switch(t.datePanelType){case"week":return renderDateWeekTable(e,t);case"month":return renderDateMonthTable(e,t);case"quarter":return renderDateQuarterTable(e,t);case"year":return renderDateYearTable(e,t)}return renderDateDayTable(e,t)}function renderDatePanel(e,t){var i=t.datePanelType,a=t.selectDatePanelLabel,n=t.isDisabledPrevDateBtn,s=t.isDisabledNextDateBtn,r=t.multiple,l=t.supportMultiples;return[e("div",{class:"vxe-input--date-picker-header"},[e("div",{class:"vxe-input--date-picker-type-wrapper"},[e("span","year"===i?{class:"vxe-input--date-picker-label"}:{class:"vxe-input--date-picker-btn",on:{click:t.dateToggleTypeEvent}},a)]),e("div",{class:"vxe-input--date-picker-btn-wrapper"},[e("span",{class:["vxe-input--date-picker-btn vxe-input--date-picker-prev-btn",{"is--disabled":n}],on:{click:t.datePrevEvent}},[e("i",{class:"vxe-icon-caret-left"})]),e("span",{class:"vxe-input--date-picker-btn vxe-input--date-picker-current-btn",on:{click:t.dateTodayMonthEvent}},[e("i",{class:"vxe-icon-dot"})]),e("span",{class:["vxe-input--date-picker-btn vxe-input--date-picker-next-btn",{"is--disabled":s}],on:{click:t.dateNextEvent}},[e("i",{class:"vxe-icon-caret-right"})]),r&&l?e("span",{class:"vxe-input--date-picker-btn vxe-input--date-picker-confirm-btn"},[e("button",{class:"vxe-input--date-picker-confirm",attrs:{type:"button"},on:{click:t.dateConfirmEvent}},_conf.default.i18n("vxe.button.confirm"))]):null])]),e("div",{class:"vxe-input--date-picker-body"},renderDateTable(e,t))]}function renderTimePanel(i,a){var e=a.dateTimeLabel,n=a.datetimePanelValue,t=a.hourList,s=a.minuteList,r=a.secondList;return[i("div",{class:"vxe-input--time-picker-header"},[i("span",{class:"vxe-input--time-picker-title"},e),i("button",{class:"vxe-input--time-picker-confirm",attrs:{type:"button"},on:{click:a.dateConfirmEvent}},_conf.default.i18n("vxe.button.confirm"))]),i("div",{ref:"timeBody",class:"vxe-input--time-picker-body"},[i("ul",{class:"vxe-input--time-picker-hour-list"},t.map(function(t,e){return i("li",{key:e,class:{"is--selected":n&&n.getHours()===t.value},on:{click:function(e){return a.dateHourEvent(e,t)}}},t.label)})),i("ul",{class:"vxe-input--time-picker-minute-list"},s.map(function(t,e){return i("li",{key:e,class:{"is--selected":n&&n.getMinutes()===t.value},on:{click:function(e){return a.dateMinuteEvent(e,t)}}},t.label)})),i("ul",{class:"vxe-input--time-picker-second-list"},r.map(function(t,e){return i("li",{key:e,class:{"is--selected":n&&n.getSeconds()===t.value},on:{click:function(e){return a.dateSecondEvent(e,t)}}},t.label)}))])]}function renderPanel(e,t){var i=t.type,a=t.vSize,n=t.isDatePickerType,s=t.transfer,r=t.animatVisible,l=t.visiblePanel,u=t.panelPlacement,o=t.panelStyle,d=[];return n?(d.push("datetime"===i?e("div",{class:"vxe-input--panel-layout-wrapper"},[e("div",{class:"vxe-input--panel-left-wrapper"},renderDatePanel(e,t)),e("div",{class:"vxe-input--panel-right-wrapper"},renderTimePanel(e,t))]):e("div",{class:"vxe-input--panel-wrapper"},("time"===i?renderTimePanel:renderDatePanel)(e,t))),e("div",{ref:"panel",class:["vxe-table--ignore-clear vxe-input--panel","type--".concat(i),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"size--".concat(a),a),"is--transfer",s),"animat--leave",r),"animat--enter",l)],attrs:{placement:u},style:o},d)):null}function renderNumberIcon(e,t){return e("span",{class:"vxe-input--number-suffix"},[e("span",{class:["vxe-input--number-prev is--prev",{"is--disabled":t.isDisabledAddNumber}],on:{mousedown:t.numberMousedownEvent,mouseup:t.numberStopDown,mouseleave:t.numberStopDown}},[e("i",{class:["vxe-input--number-prev-icon",_conf.default.icon.INPUT_PREV_NUM]})]),e("span",{class:["vxe-input--number-next is--next",{"is--disabled":t.isDisabledSubtractNumber}],on:{mousedown:t.numberMousedownEvent,mouseup:t.numberStopDown,mouseleave:t.numberStopDown}},[e("i",{class:["vxe-input--number-next-icon",_conf.default.icon.INPUT_NEXT_NUM]})])])}function renderDatePickerIcon(e,t){return e("span",{class:"vxe-input--date-picker-suffix",on:{click:t.datePickerOpenEvent}},[e("i",{class:["vxe-input--date-picker-icon",_conf.default.icon.INPUT_DATE]})])}function renderSearchIcon(e,t){return e("span",{class:"vxe-input--search-suffix",on:{click:t.searchEvent}},[e("i",{class:["vxe-input--search-icon",_conf.default.icon.INPUT_SEARCH]})])}function renderPasswordIcon(e,t){var i=t.showPwd;return e("span",{class:"vxe-input--password-suffix",on:{click:t.passwordToggleEvent}},[e("i",{class:["vxe-input--password-icon",i?_conf.default.icon.INPUT_SHOW_PWD:_conf.default.icon.INPUT_PWD]})])}function rendePrefixIcon(e,t){var i=t.$scopedSlots,a=t.prefixIcon,n=[];return i.prefix?n.push(e("span",{class:"vxe-input--prefix-icon"},i.prefix.call(this,{},e))):a&&n.push(e("i",{class:["vxe-input--prefix-icon",a]})),n.length?e("span",{class:"vxe-input--prefix",on:{click:t.clickPrefixEvent}},n):null}function renderSuffixIcon(e,t){var i=t.$scopedSlots,a=t.inputValue,n=t.isClearable,s=t.disabled,r=t.suffixIcon,l=[];return i.suffix?l.push(e("span",{class:"vxe-input--suffix-icon"},i.suffix.call(this,{},e))):r&&l.push(e("i",{class:["vxe-input--suffix-icon",r]})),n&&l.push(e("i",{class:["vxe-input--clear-icon",_conf.default.icon.INPUT_CLEAR]})),l.length?e("span",{class:["vxe-input--suffix",{"is--clear":n&&!s&&!(""===a||_xeUtils.default.eqNull(a))}],on:{click:t.clickSuffixEvent}},l):null}function renderExtraSuffixIcon(e,t){var i,a=t.controls,n=t.isPawdType,s=t.isNumType,r=t.isDatePickerType,l=t.isSearch;return n?i=renderPasswordIcon(e,t):s?a&&(i=renderNumberIcon(e,t)):r?i=renderDatePickerIcon(e,t):l&&(i=renderSearchIcon(e,t)),i?e("span",{class:"vxe-input--extra-suffix"},[i]):null}var _default2=exports.default={name:"VxeInput",mixins:[_size.default],model:{prop:"value",event:"modelValue"},props:{value:[String,Number,Date],immediate:{type:Boolean,default:!0},name:String,type:{type:String,default:"text"},clearable:{type:Boolean,default:function(){return _conf.default.input.clearable}},readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:function(){return _xeUtils.default.eqNull(_conf.default.input.placeholder)?_conf.default.i18n("vxe.base.pleaseInput"):_conf.default.input.placeholder}},maxLength:[String,Number],autoComplete:{type:String,default:"off"},align:String,form:String,className:String,size:{type:String,default:function(){return _conf.default.input.size||_conf.default.size}},multiple:Boolean,showWordCount:Boolean,countMethod:Function,min:{type:[String,Number],default:null},max:{type:[String,Number],default:null},step:[String,Number],exponential:{type:Boolean,default:function(){return _conf.default.input.exponential}},controls:{type:Boolean,default:function(){return _conf.default.input.controls}},digits:{type:[String,Number],default:function(){return _conf.default.input.digits}},dateConfig:Object,startDate:{type:[String,Number,Date],default:function(){return _conf.default.input.startDate}},endDate:{type:[String,Number,Date],default:function(){return _conf.default.input.endDate}},minDate:[String,Number,Date],maxDate:[String,Number,Date],startWeek:Number,startDay:{type:[String,Number],default:function(){return _conf.default.input.startDay}},labelFormat:{type:String,default:function(){return _conf.default.input.labelFormat}},valueFormat:{type:String,default:function(){return _conf.default.input.valueFormat}},editable:{type:Boolean,default:!0},festivalMethod:{type:Function,default:function(){return _conf.default.input.festivalMethod}},disabledMethod:{type:Function,default:function(){return _conf.default.input.disabledMethod}},selectDay:{type:Number,default:function(){return _conf.default.input.selectDay}},prefixIcon:String,suffixIcon:String,placement:String,transfer:{type:Boolean,default:function(){return _conf.default.input.transfer}},maxlength:[String,Number],autocomplete:String},inject:{$xeform:{default:null},$xeformiteminfo:{default:null}},data:function(){return{panelIndex:0,showPwd:!1,visiblePanel:!1,animatVisible:!1,panelStyle:null,panelPlacement:null,isActivated:!1,inputValue:this.value,datetimePanelValue:null,datePanelValue:null,datePanelLabel:"",datePanelType:"day",selectMonth:null,currentDate:null}},computed:{isNumType:function(){return-1<["number","integer","float"].indexOf(this.type)},isDatePickerType:function(){return this.isDateTimeType||-1<["date","week","month","quarter","year"].indexOf(this.type)},isDateTimeType:function(){var e=this.type;return"time"===e||"datetime"===e},isPawdType:function(){return"password"===this.type},isSearch:function(){return"search"===this.type},inputCount:function(){return _xeUtils.default.getSize(this.inputValue)},isCountError:function(){var e=this.maxLength,t=this.maxlength;return(e||t)&&this.inputCount>_xeUtils.default.toNumber(e||t)},stepValue:function(){var e=this.type,t=this.step;return"integer"===e?_xeUtils.default.toInteger(t)||1:"float"===e?_xeUtils.default.toNumber(t)||1/Math.pow(10,this.digitsValue):_xeUtils.default.toNumber(t)||1},digitsValue:function(){return _xeUtils.default.toInteger(this.digits)||1},isClearable:function(){return this.clearable&&(this.isPawdType||this.isNumType||this.isDatePickerType||"text"===this.type||"search"===this.type)},isDisabledPrevDateBtn:function(){var e=this.selectMonth,t=this.dateStartTime;return!!e&&e<=t},isDisabledNextDateBtn:function(){var e=this.selectMonth,t=this.dateEndTime;return!!e&&t<=e},dateStartTime:function(){return this.startDate?_xeUtils.default.toStringDate(this.startDate):null},dateEndTime:function(){return this.endDate?_xeUtils.default.toStringDate(this.endDate):null},supportMultiples:function(){return["date","week","month","quarter","year"].includes(this.type)},dateListValue:function(){var t=this,e=this.value,i=this.multiple,a=this.isDatePickerType,n=this.dateValueFormat;return i&&e&&a?_xeUtils.default.toValueString(e).split(",").map(function(e){e=t.parseDate(e,n);return _xeUtils.default.isValidDate(e)?e:null}):[]},dateMultipleValue:function(){var e=this.dateListValue,t=this.dateValueFormat;return e.map(function(e){return _xeUtils.default.toDateString(e,t)})},dateMultipleLabel:function(){var e=this.dateListValue,t=this.dateLabelFormat;return e.map(function(e){return _xeUtils.default.toDateString(e,t)}).join(", ")},dateValue:function(){var e=this.value,t=this.isDatePickerType,i=this.dateValueFormat,a=null;return a=e&&t&&(t=this.parseDate(e,i),_xeUtils.default.isValidDate(t))?t:a},dateTimeLabel:function(){var e=this.datetimePanelValue;return e?_xeUtils.default.toDateString(e,"HH:mm:ss"):""},hmsTime:function(){var e=this.dateValue;return e&&this.isDateTimeType?1e3*(3600*e.getHours()+60*e.getMinutes()+e.getSeconds()):0},dateLabelFormat:function(){return this.isDatePickerType?this.labelFormat||_conf.default.i18n("vxe.input.date.labelFormat.".concat(this.type)):null},dateValueFormat:function(){var e=this.type;return"time"===e?"HH:mm:ss":this.valueFormat||("datetime"===e?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd")},selectDatePanelLabel:function(){var e,t,i,a,n;return this.isDatePickerType?(e=this.datePanelType,t=this.selectMonth,i=this.yearList,a="",t&&(a=t.getFullYear(),n=t.getMonth()+1),"quarter"===e?_conf.default.i18n("vxe.input.date.quarterLabel",[a]):"month"===e?_conf.default.i18n("vxe.input.date.monthLabel",[a]):"year"===e?i.length?"".concat(i[0].year," - ").concat(i[i.length-1].year):"":_conf.default.i18n("vxe.input.date.dayLabel",[a,n?_conf.default.i18n("vxe.input.date.m".concat(n)):"-"])):""},firstDayOfWeek:function(){var e=this.startDay,t=this.startWeek;return _xeUtils.default.toNumber(_xeUtils.default.isNumber(e)||_xeUtils.default.isString(e)?e:t)},weekDatas:function(){var e=[];if(this.isDatePickerType){var t=this.firstDayOfWeek;e.push(t);for(var i=0;i<6;i++)6<=t?t=0:t++,e.push(t)}return e},dateHeaders:function(){return this.isDatePickerType?this.weekDatas.map(function(e){return{value:e,label:_conf.default.i18n("vxe.input.date.weeks.w".concat(e))}}):[]},weekHeaders:function(){return this.isDatePickerType?[{label:_conf.default.i18n("vxe.input.date.weeks.w")}].concat(this.dateHeaders):[]},yearList:function(){var e=this.selectMonth,t=this.currentDate,i=[];if(e&&t)for(var a=t.getFullYear(),t=e.getFullYear(),n=new Date(t-t%yearSize,0,1),s=-4;s<yearSize+4;s++){var r=_xeUtils.default.getWhatYear(n,s,"first"),l=r.getFullYear();i.push({date:r,isCurrent:!0,isPrev:s<0,isNow:a===l,isNext:yearSize<=s,year:l})}return i},yearDatas:function(){return _xeUtils.default.chunk(this.yearList,4)},quarterList:function(){var e=this.selectMonth,t=this.currentDate,i=[];if(e&&t)for(var a=t.getFullYear(),n=(0,_date.getDateQuarter)(t),s=_xeUtils.default.getWhatYear(e,0,"first"),r=s.getFullYear(),l=-2;l<quarterSize-2;l++){var u=_xeUtils.default.getWhatQuarter(s,l),o=u.getFullYear(),d=(0,_date.getDateQuarter)(u),c=o<r;i.push({date:u,isPrev:c,isCurrent:o===r,isNow:o===a&&d===n,isNext:!c&&r<o,quarter:d})}return i},quarterDatas:function(){return _xeUtils.default.chunk(this.quarterList,2)},monthList:function(){var e=this.selectMonth,t=this.currentDate,i=[];if(e&&t)for(var a=t.getFullYear(),n=t.getMonth(),s=_xeUtils.default.getWhatYear(e,0,"first").getFullYear(),r=-4;r<monthSize-4;r++){var l=_xeUtils.default.getWhatYear(e,0,r),u=l.getFullYear(),o=l.getMonth(),d=u<s;i.push({date:l,isPrev:d,isCurrent:u===s,isNow:u===a&&o===n,isNext:!d&&s<u,month:o})}return i},monthDatas:function(){return _xeUtils.default.chunk(this.monthList,4)},dayList:function(){var e=this.weekDatas,t=this.selectMonth,i=this.currentDate,a=this.hmsTime,n=[];if(t&&i)for(var s=i.getFullYear(),r=i.getMonth(),l=i.getDate(),u=t.getFullYear(),o=t.getMonth(),i=t.getDay(),e=-e.indexOf(i),d=new Date(_xeUtils.default.getWhatDay(t,e).getTime()+a),c=0;c<42;c++){var h=_xeUtils.default.getWhatDay(d,c),f=h.getFullYear(),p=h.getMonth(),m=h.getDate(),v=h<t;n.push({date:h,isPrev:v,isCurrent:f===u&&p===o,isNow:f===s&&p===r&&m===l,isNext:!v&&o!==p,label:m})}return n},dayDatas:function(){return _xeUtils.default.chunk(this.dayList,7)},weekDates:function(){var e=this.dayDatas,i=this.firstDayOfWeek;return e.map(function(e){var t=e[0];return[{date:t.date,isWeekNumber:!0,isPrev:!1,isCurrent:!1,isNow:!1,isNext:!1,label:_xeUtils.default.getYearWeek(t.date,i)}].concat(e)})},hourList:function(){var e=[];if(this.isDateTimeType)for(var t=0;t<24;t++)e.push({value:t,label:(""+t).padStart(2,0)});return e},minuteList:function(){var e=[];if(this.isDateTimeType)for(var t=0;t<60;t++)e.push({value:t,label:(""+t).padStart(2,0)});return e},secondList:function(){return this.minuteList},inpImmediate:function(){var e=this.type;return this.immediate||!("text"===e||"number"===e||"integer"===e||"float"===e)},inpPlaceholder:function(){var e=this.placeholder;return e?(0,_utils.getFuncText)(e):""},inputType:function(){var e=this.isDatePickerType,t=this.isNumType,i=this.isPawdType,a=this.type,n=this.showPwd;return e||t||i&&n||"number"===a?"text":a},inpMaxlength:function(){var e=this.isNumType,t=this.maxLength,i=this.maxlength;return e&&!_xeUtils.default.toNumber(t||i)?16:t||i},inpReadonly:function(){var e=this.type,t=this.readonly,i=this.editable,a=this.multiple;return t||a||!i||"week"===e||"quarter"===e},numValue:function(){var e=this.type,t=this.isNumType,i=this.inputValue;return t?"integer"===e?_xeUtils.default.toInteger((0,_number.handleNumber)(i)):_xeUtils.default.toNumber((0,_number.handleNumber)(i)):0},isDisabledSubtractNumber:function(){var e=this.min,t=this.isNumType,i=this.inputValue,a=this.numValue;return!(!i&&0!==i||!t||null===e)&&a<=_xeUtils.default.toNumber(e)},isDisabledAddNumber:function(){var e=this.max,t=this.isNumType,i=this.inputValue,a=this.numValue;return!(!i&&0!==i||!t||null===e)&&a>=_xeUtils.default.toNumber(e)}},watch:{value:function(e){this.inputValue=e,this.changeValue()},type:function(){Object.assign(this,{inputValue:this.value,datetimePanelValue:null,datePanelValue:null,datePanelLabel:"",datePanelType:"day",selectMonth:null,currentDate:null}),this.initValue()},dateLabelFormat:function(){this.isDatePickerType&&(this.dateParseValue(this.datePanelValue),this.inputValue=this.multiple?this.dateMultipleLabel:this.datePanelLabel)}},created:function(){this.initValue(),_event.GlobalEvent.on(this,"mousewheel",this.handleGlobalMousewheelEvent),_event.GlobalEvent.on(this,"mousedown",this.handleGlobalMousedownEvent),_event.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent),_event.GlobalEvent.on(this,"blur",this.handleGlobalBlurEvent)},mounted:function(){this.dateConfig&&(0,_log.warnLog)("vxe.error.removeProp",["date-config"]),this.isDatePickerType&&this.transfer&&document.body.appendChild(this.$refs.panel)},beforeDestroy:function(){var e=this.$refs.panel;e&&e.parentNode&&e.parentNode.removeChild(e)},destroyed:function(){this.numberStopDown(),_event.GlobalEvent.off(this,"mousewheel"),_event.GlobalEvent.off(this,"mousedown"),_event.GlobalEvent.off(this,"keydown"),_event.GlobalEvent.off(this,"blur")},render:function(e){var t=this.name,i=this.form,a=this.inputType,n=this.inpPlaceholder,s=this.inpMaxlength,r=this.inpReadonly,l=this.className,u=this.controls,o=this.showWordCount,d=this.countMethod,c=this.inputValue,h=this.isDatePickerType,f=this.visiblePanel,p=this.isActivated,m=this.vSize,v=this.type,y=this.align,b=this.readonly,x=this.disabled,g=this.autoComplete,_=this.autocomplete,D=[],P=rendePrefixIcon(e,this),T=renderSuffixIcon(e,this),t=(P&&D.push(P),D.push(e("input",{ref:"input",class:"vxe-input--inner",domProps:{value:c},attrs:{name:t,form:i,type:a,placeholder:n,maxlength:s,readonly:r,disabled:x,autocomplete:g||_,spellcheck:!1},on:{keydown:this.keydownEvent,keyup:this.triggerEvent,wheel:this.wheelEvent,click:this.clickEvent,input:this.inputEvent,change:this.changeEvent,focus:this.focusEvent,blur:this.blurEvent}})),T&&D.push(T),D.push(renderExtraSuffixIcon(e,this)),h&&D.push(renderPanel(e,this)),!1);return o&&["text","search"].includes(v)&&(t=!0,D.push(e("span",{class:["vxe-input--count",{"is--error":this.isCountError}]},d?"".concat(d({value:c})):"".concat(this.inputCount).concat(s?"/".concat(s):"")))),e("div",{class:["vxe-input","type--".concat(v),l,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"size--".concat(m),m),"is--".concat(y),y),"is--controls",u),"is--prefix",!!P),"is--suffix",!!T),"is--readonly",b),"is--visivle",f),"is--count",t),"is--disabled",x),"is--active",p)]},D)},methods:{focus:function(){return this.isActivated=!0,this.$refs.input.focus(),this.$nextTick()},blur:function(){return this.$refs.input.blur(),this.isActivated=!1,this.$nextTick()},select:function(){return this.$refs.input.select(),this.isActivated=!1,this.$nextTick()},triggerEvent:function(e){var t=this.$refs,i=this.inputValue;this.$emit(e.type,{$panel:t.panel,value:i,$event:e})},emitModel:function(e,t){this.inputValue=e,this.$emit("modelValue",e),this.$emit("input",{value:e,$event:t}),_xeUtils.default.toValueString(this.value)!==e&&(this.$emit("change",{value:e,$event:t}),this.$xeform)&&this.$xeformiteminfo&&this.$xeform.triggerItemEvent(t,this.$xeformiteminfo.itemConfig.field,e)},emitInputEvent:function(e,t){var i=this.inpImmediate,a=this.isDatePickerType;this.inputValue=e,a||(i?this.emitModel(e,t):this.$emit("input",{value:e,$event:t}))},inputEvent:function(e){var t=e.target.value;this.emitInputEvent(t,e)},changeEvent:function(e){this.inpImmediate||this.triggerEvent(e)},focusEvent:function(e){this.isActivated=!0,this.isDatePickerType&&this.datePickerOpenEvent(e),this.triggerEvent(e)},blurEvent:function(e){var t=this.inputValue;this.inpImmediate||this.emitModel(t,e),this.afterCheckValue(),this.visiblePanel||(this.isActivated=!1),this.$emit("blur",{value:t,$event:e})},keydownEvent:function(e){var t,i,a,n,s=this.exponential,r=this.controls;this.isNumType&&(t=e.ctrlKey,i=e.shiftKey,a=e.altKey,n=e.keyCode,t||i||a||!(32===n||(!s||69!==n)&&65<=n&&n<=90||186<=n&&n<=188||191<=n)||e.preventDefault(),r)&&this.numberKeydownEvent(e),this.triggerEvent(e)},wheelEvent:function(e){var t;this.isNumType&&this.controls&&this.isActivated&&(0<(t=e.deltaY)?this.numberNextEvent(e):t<0&&this.numberPrevEvent(e),e.preventDefault()),this.triggerEvent(e)},clickEvent:function(e){this.triggerEvent(e)},clickPrefixEvent:function(e){var t=this.$refs,i=this.disabled,a=this.inputValue;i||this.$emit("prefix-click",{$panel:t.panel,value:a,$event:e})},clickSuffixEvent:function(e){var t=this.$refs,i=this.disabled,a=this.inputValue;i||(_dom.default.hasClass(e.currentTarget,"is--clear")?(this.emitModel("",e),this.clearValueEvent(e,"")):this.$emit("suffix-click",{$panel:t.panel,value:a,$event:e}))},clearValueEvent:function(e,t){var i=this.$refs,a=this.type,n=this.isNumType;this.isDatePickerType&&this.hidePanel(),(n||-1<["text","search","password"].indexOf(a))&&this.focus(),this.$emit("clear",{$panel:i.panel,value:t,$event:e})},parseDate:function(e,t){return"time"===this.type?(0,_date.toStringTimeDate)(e):_xeUtils.default.toStringDate(e,t)},initValue:function(){var e=this.type,t=this.isDatePickerType,i=this.inputValue,a=this.digitsValue;t?this.changeValue():"float"===e&&i&&i!==(t=(0,_number.toFloatValueFixed)(i,a))&&this.emitModel(t,{type:"init"})},changeValue:function(){this.isDatePickerType&&(this.dateParseValue(this.inputValue),this.inputValue=this.multiple?this.dateMultipleLabel:this.datePanelLabel)},afterCheckValue:function(){var e=this.type,t=this.exponential,i=this.inpReadonly,a=this.inputValue,n=this.isDatePickerType,s=this.isNumType,r=this.datetimePanelValue,l=this.dateLabelFormat,u=this.min,o=this.max,d=this.firstDayOfWeek;i||(s?a&&(i="integer"===e?_xeUtils.default.toInteger((0,_number.handleNumber)(a)):_xeUtils.default.toNumber((0,_number.handleNumber)(a)),this.vaildMinNum(i)?this.vaildMaxNum(i)||(i=o):i=u,t&&(s=_xeUtils.default.toValueString(a).toLowerCase())===_xeUtils.default.toNumber(i).toExponential()&&(i=s),this.emitModel(getNumberValue(this,i),{type:"check"})):n&&(a?"week"!==e&&"quarter"!==e&&(o=this.parseDate(a,l),_xeUtils.default.isValidDate(o)?"time"===e?(a!==(o=(0,_date.toStringTimeDate)(o))&&this.emitModel(o,{type:"check"}),this.inputValue=o):(u=!1,"datetime"===e?a===_xeUtils.default.toDateString(this.dateValue,l)&&a===_xeUtils.default.toDateString(o,l)||(u=!0,r.setHours(o.getHours()),r.setMinutes(o.getMinutes()),r.setSeconds(o.getSeconds())):u=!0,this.inputValue=_xeUtils.default.toDateString(o,l,{firstDay:d}),u&&this.dateChange(o)):this.dateRevert()):this.emitModel("",{type:"check"})))},passwordToggleEvent:function(e){var t=this.disabled,i=this.readonly,a=this.showPwd;t||i||(this.showPwd=!a),this.$emit("toggle-visible",{visible:this.showPwd,$event:e})},searchEvent:function(e){this.$emit("search-click",{$event:e})},vaildMinNum:function(e){return null===this.min||e>=_xeUtils.default.toNumber(this.min)},vaildMaxNum:function(e){return null===this.max||e<=_xeUtils.default.toNumber(this.max)},numberStopDown:function(){clearTimeout(this.downbumTimeout)},numberDownPrevEvent:function(e){var t=this;this.downbumTimeout=setTimeout(function(){t.numberPrevEvent(e),t.numberDownPrevEvent(e)},60)},numberDownNextEvent:function(e){var t=this;this.downbumTimeout=setTimeout(function(){t.numberNextEvent(e),t.numberDownNextEvent(e)},60)},numberKeydownEvent:function(e){var t=e.keyCode,i=38===t;!i&&40!==t||(e.preventDefault(),i?this.numberPrevEvent(e):this.numberNextEvent(e))},numberMousedownEvent:function(e){var t,i=this;this.numberStopDown(),0===e.button&&((t=_dom.default.hasClass(e.currentTarget,"is--prev"))?this.numberPrevEvent(e):this.numberNextEvent(e),this.downbumTimeout=setTimeout(function(){t?i.numberDownPrevEvent(e):i.numberDownNextEvent(e)},500))},numberPrevEvent:function(e){var t=this.disabled,i=this.readonly,a=this.isDisabledAddNumber;clearTimeout(this.downbumTimeout),t||i||a||this.numberChange(!0,e),this.$emit("prev-number",{$event:e})},numberNextEvent:function(e){var t=this.disabled,i=this.readonly,a=this.isDisabledSubtractNumber;clearTimeout(this.downbumTimeout),t||i||a||this.numberChange(!1,e),this.$emit("next-number",{$event:e})},numberChange:function(e,t){var i=this.min,a=this.max,n=this.type,s=this.inputValue,r=this.stepValue,n="integer"===n?_xeUtils.default.toInteger((0,_number.handleNumber)(s)):_xeUtils.default.toNumber((0,_number.handleNumber)(s)),s=e?_xeUtils.default.add(n,r):_xeUtils.default.subtract(n,r),e=this.vaildMinNum(s)?this.vaildMaxNum(s)?s:a:i;this.emitInputEvent(getNumberValue(this,e),t)},datePickerOpenEvent:function(e){this.readonly||(e.preventDefault(),this.showPanel())},dateMonthHandle:function(e,t){this.selectMonth=_xeUtils.default.getWhatMonth(e,t,"first")},dateNowHandle:function(){var e=_xeUtils.default.getWhatDay(Date.now(),0,"first");this.currentDate=e,this.dateMonthHandle(e,0)},dateToggleTypeEvent:function(){var e="month"===(e=this.datePanelType)||"quarter"===e?"year":"month";this.datePanelType=e},datePrevEvent:function(e){var t=this.isDisabledPrevDateBtn,i=this.type,a=this.datePanelType;t||(this.selectMonth="year"===i?_xeUtils.default.getWhatYear(this.selectMonth,-yearSize,"first"):"month"===i||"quarter"===i?"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,-yearSize,"first"):_xeUtils.default.getWhatYear(this.selectMonth,-1,"first"):"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,-yearSize,"first"):"month"===a?_xeUtils.default.getWhatYear(this.selectMonth,-1,"first"):_xeUtils.default.getWhatMonth(this.selectMonth,-1,"first"),this.$emit("date-prev",{type:i,$event:e}))},dateTodayMonthEvent:function(e){this.dateNowHandle(),this.multiple||(this.dateChange(this.currentDate),this.hidePanel()),this.$emit("date-today",{type:this.type,$event:e})},dateNextEvent:function(e){var t=this.isDisabledNextDateBtn,i=this.type,a=this.datePanelType;t||(this.selectMonth="year"===i?_xeUtils.default.getWhatYear(this.selectMonth,yearSize,"first"):"month"===i||"quarter"===i?"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,yearSize,"first"):_xeUtils.default.getWhatYear(this.selectMonth,1,"first"):"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,yearSize,"first"):"month"===a?_xeUtils.default.getWhatYear(this.selectMonth,1,"first"):_xeUtils.default.getWhatMonth(this.selectMonth,1,"first"),this.$emit("date-next",{type:i,$event:e}))},dateSelectEvent:function(e){isDateDisabled(this,e)||this.dateSelectItem(e.date)},dateSelectItem:function(e){var t=this.type,i=this.datePanelType,a=this.multiple,n="week"===t;"month"===t?"year"===i?(this.datePanelType="month",this.dateCheckMonth(e)):(this.dateChange(e),a||this.hidePanel()):"year"===t?(this.dateChange(e),a||this.hidePanel()):"quarter"===t?"year"===i?(this.datePanelType="quarter",this.dateCheckMonth(e)):(this.dateChange(e),a||this.hidePanel()):"month"===i?(this.datePanelType="week"===t?t:"day",this.dateCheckMonth(e)):"year"===i?(this.datePanelType="month",this.dateCheckMonth(e)):(this.dateChange(e),"datetime"===t||a||this.hidePanel()),n&&this.changeValue()},dateMouseenterEvent:function(e){var t;isDateDisabled(this,e)||("month"===(t=this.datePanelType)?this.dateMoveMonth(e.date):"quarter"===t?this.dateMoveQuarter(e.date):"year"===t?this.dateMoveYear(e.date):this.dateMoveDay(e.date))},dateHourEvent:function(e,t){this.datetimePanelValue.setHours(t.value),this.dateTimeChangeEvent(e)},dateConfirmEvent:function(){var t,i=this.datetimePanelValue,e=this.isDateTimeType,a=this.dateValueFormat,n=this.dateMultipleValue;this.isDateTimeType&&(this.multiple?e?(e=this.dateListValue,t=[],e.forEach(function(e){e&&(e.setHours(i.getHours()),e.setMinutes(i.getMinutes()),e.setSeconds(i.getSeconds()),t.push(e))}),this.emitModel(t.map(function(e){return _xeUtils.default.toDateString(e,a)}).join(","),{type:"update"})):this.emitModel(n.join(","),{type:"update"}):this.dateChange(this.dateValue||this.currentDate)),this.hidePanel()},dateMinuteEvent:function(e,t){this.datetimePanelValue.setMinutes(t.value),this.dateTimeChangeEvent(e)},dateSecondEvent:function(e,t){this.datetimePanelValue.setSeconds(t.value),this.dateTimeChangeEvent(e)},dateTimeChangeEvent:function(e){this.datetimePanelValue=new Date(this.datetimePanelValue.getTime()),this.updateTimePos(e.currentTarget)},updateTimePos:function(e){var t;e&&(t=e.offsetHeight,e.parentNode.scrollTop=e.offsetTop-4*t)},dateMoveDay:function(t){isDateDisabled(this,{date:t})||(this.dayList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyyMMdd")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateMoveMonth:function(t){isDateDisabled(this,{date:t})||(this.monthList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyyMM")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateMoveQuarter:function(t){isDateDisabled(this,{date:t})||(this.quarterList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyyq")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateMoveYear:function(t){isDateDisabled(this,{date:t})||(this.yearList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyy")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateParseValue:function(e){var t=this.type,i=this.dateLabelFormat,a=this.valueFormat,n=this.firstDayOfWeek,s=null,r="";e&&(s=this.parseDate(e,a)),_xeUtils.default.isValidDate(s)?(r=_xeUtils.default.toDateString(s,i,{firstDay:n}),i&&"week"===t&&_xeUtils.default.getWhatWeek(s,0,n,n).getFullYear()<s.getFullYear()&&-1<(e=i.indexOf("yyyy"))&&(a=Number(r.substring(e,e+4)))&&!isNaN(a)&&(r=r.replace("".concat(a),"".concat(a-1)))):s=null,this.datePanelValue=s,this.datePanelLabel=r},dateOffsetEvent:function(e){var t,i,a,n=this.isActivated,s=this.datePanelValue,r=this.datePanelType,l=this.firstDayOfWeek;n&&(e.preventDefault(),e=37===(n=e.keyCode),t=38===n,i=39===n,n=40===n,"year"===r?(a=_xeUtils.default.getWhatYear(s||Date.now(),0,"first"),e?a=_xeUtils.default.getWhatYear(a,-1):t?a=_xeUtils.default.getWhatYear(a,-4):i?a=_xeUtils.default.getWhatYear(a,1):n&&(a=_xeUtils.default.getWhatYear(a,4)),this.dateMoveYear(a)):"quarter"===r?(a=_xeUtils.default.getWhatQuarter(s||Date.now(),0,"first"),e?a=_xeUtils.default.getWhatQuarter(a,-1):t?a=_xeUtils.default.getWhatQuarter(a,-2):i?a=_xeUtils.default.getWhatQuarter(a,1):n&&(a=_xeUtils.default.getWhatQuarter(a,2)),this.dateMoveQuarter(a)):"month"===r?(a=_xeUtils.default.getWhatMonth(s||Date.now(),0,"first"),e?a=_xeUtils.default.getWhatMonth(a,-1):t?a=_xeUtils.default.getWhatMonth(a,-4):i?a=_xeUtils.default.getWhatMonth(a,1):n&&(a=_xeUtils.default.getWhatMonth(a,4)),this.dateMoveMonth(a)):(r=s||_xeUtils.default.getWhatDay(Date.now(),0,"first"),e?r=_xeUtils.default.getWhatDay(r,-1):t?r=_xeUtils.default.getWhatWeek(r,-1,l):i?r=_xeUtils.default.getWhatDay(r,1):n&&(r=_xeUtils.default.getWhatWeek(r,1,l)),this.dateMoveDay(r)))},datePgOffsetEvent:function(e){var t;this.isActivated&&(t=33===e.keyCode,e.preventDefault(),t?this.datePrevEvent(e):this.dateNextEvent(e))},dateChange:function(t){var e,i,a=this.value,n=this.datetimePanelValue,s=this.dateValueFormat,r=this.firstDayOfWeek,l=this.isDateTimeType,u=this.multiple,o=("week"===this.type?(e=_xeUtils.default.toNumber(this.selectDay),t=_xeUtils.default.getWhatWeek(t,0,e,r)):l&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds())),_xeUtils.default.toDateString(t,s,{firstDay:r}));this.dateCheckMonth(t),u?(e=this.dateMultipleValue,l?(r=this.dateListValue,i=[],-1===(u=_xeUtils.default.findIndexOf(r,function(e){return _xeUtils.default.isDateSame(t,e,"yyyyMMdd")}))?r.push(t):r.splice(u,1),r.forEach(function(e){e&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(n.getSeconds()),i.push(e))}),this.emitModel(i.map(function(e){return _xeUtils.default.toDateString(e,s)}).join(","),{type:"update"})):e.some(function(e){return _xeUtils.default.isEqual(e,o)})?this.emitModel(e.filter(function(e){return!_xeUtils.default.isEqual(e,o)}).join(","),{type:"update"}):this.emitModel(e.concat([o]).join(","),{type:"update"})):_xeUtils.default.isEqual(a,o)||this.emitModel(o,{type:"update"})},dateCheckMonth:function(e){e=_xeUtils.default.getWhatMonth(e,0,"first");_xeUtils.default.isEqual(e,this.selectMonth)||(this.selectMonth=e)},dateOpenPanel:function(){var e=this,t=this.type,i=this.dateValue;-1<["year","quarter","month","week"].indexOf(t)?this.datePanelType=t:this.datePanelType="day",this.currentDate=_xeUtils.default.getWhatDay(Date.now(),0,"first"),i?(this.dateMonthHandle(i,0),this.dateParseValue(i)):this.dateNowHandle(),this.isDateTimeType&&(this.datetimePanelValue=this.datePanelValue||_xeUtils.default.getWhatDay(Date.now(),0,"first"),this.$nextTick(function(){_xeUtils.default.arrayEach(e.$refs.timeBody.querySelectorAll("li.is--selected"),e.updateTimePos)}))},dateRevert:function(){this.inputValue=this.multiple?this.dateMultipleLabel:this.datePanelLabel},updateZindex:function(){this.panelIndex<_utils.default.getLastZIndex()&&(this.panelIndex=_utils.default.nextZIndex())},showPanel:function(){var e=this,t=this.disabled,i=this.visiblePanel,a=this.isDatePickerType;return t||i?this.$nextTick():(clearTimeout(this.hidePanelTimeout),this.isActivated=!0,this.animatVisible=!0,a&&this.dateOpenPanel(),setTimeout(function(){e.visiblePanel=!0},10),this.updateZindex(),this.updatePlacement())},hidePanel:function(){var t=this;return new Promise(function(e){t.visiblePanel=!1,t.hidePanelTimeout=setTimeout(function(){t.animatVisible=!1,e()},350)})},updatePlacement:function(){var f=this;return this.$nextTick().then(function(){var e,t,i,a,n,s,r,l,u=f.$refs,o=f.transfer,d=f.placement,c=f.panelIndex,h=u.input,u=u.panel;if(h&&u)return e=h.offsetHeight,t=h.offsetWidth,i=u.offsetHeight,u=u.offsetWidth,c={zIndex:c},a=(r=_dom.default.getAbsolutePos(h)).boundingTop,n=r.boundingLeft,s=r.visibleHeight,r=r.visibleWidth,l="bottom",console.log(_dom.default.getAbsolutePos(h)),o?(h=a+e,"top"===d?(l="top",h=a-i):d||(s<h+i+5&&(l="top",h=a-i),h<5&&(l="bottom",h=a+e)),r<(o=n)+u+5&&(o-=o+u+5-r),o<5&&(o=5),Object.assign(c,{left:"".concat(o,"px"),top:"".concat(h,"px"),minWidth:"".concat(t,"px")})):"top"===d?(l="top",c.bottom="".concat(e,"px")):d||s<a+e+i&&5<a-e-i&&(l="top",c.bottom="".concat(e,"px")),f.panelStyle=c,f.panelPlacement=l,f.$nextTick()})},handleGlobalMousedownEvent:function(e){var t=this.$refs,i=this.$el,a=this.disabled,n=this.visiblePanel,s=this.isActivated;!a&&s&&(this.isActivated=_dom.default.getEventTargetNode(e,i).flag||_dom.default.getEventTargetNode(e,t.panel).flag,this.isActivated||(this.isDatePickerType?n&&(this.hidePanel(),this.afterCheckValue()):this.afterCheckValue()))},handleGlobalKeydownEvent:function(e){var t,i,a,n,s,r,l,u,o,d,c=this.isDatePickerType,h=this.visiblePanel,f=this.clearable;this.disabled||(i=46===(t=e.keyCode),a=27===t,n=13===t,s=38===t,r=40===t,l=33===t,u=34===t,o=37===t||s||39===t||r,d=this.isActivated,(t=9===t)?(d&&this.afterCheckValue(),this.isActivated=d=!1):o?c&&d&&(h?this.dateOffsetEvent(e):(s||r)&&this.datePickerOpenEvent(e)):n?c&&(h?this.datePanelValue?this.dateSelectItem(this.datePanelValue):this.hidePanel():d&&this.datePickerOpenEvent(e)):(l||u)&&c&&d&&this.datePgOffsetEvent(e),t||a?h&&this.hidePanel():i&&f&&d&&this.clearValueEvent(e,null))},handleGlobalMousewheelEvent:function(e){var t=this.$refs,i=this.disabled,a=this.visiblePanel;i||a&&(_dom.default.getEventTargetNode(e,t.panel).flag?this.updatePlacement():(this.hidePanel(),this.afterCheckValue()))},handleGlobalBlurEvent:function(){var e=this.isActivated;this.visiblePanel?(this.hidePanel(),this.afterCheckValue()):e&&this.afterCheckValue()}}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=_interopRequireDefault(require("../../mixins/size")),_utils=_interopRequireWildcard(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom")),_event=require("../../tools/event"),_date=require("./date"),_number=require("./number"),_log=require("../../tools/log");function _getRequireWildcardCache(e){var t,i;return"function"!=typeof WeakMap?null:(t=new WeakMap,i=new WeakMap,(_getRequireWildcardCache=function(e){return e?i:t})(e))}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=_typeof(e)&&"function"!=typeof e)return{default:e};t=_getRequireWildcardCache(t);if(t&&t.has(e))return t.get(e);var i,a,n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((a=s?Object.getOwnPropertyDescriptor(e,i):null)&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]);return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var i,a=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)),a}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach(function(e){_defineProperty(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}var yearSize=12,monthSize=20,quarterSize=8;function getNumberValue(e,t){var i=e.type,a=e.exponential,n=e.digitsValue,e=e.inpMaxlength,i="float"===i?(0,_number.toFloatValueFixed)(t,n):_xeUtils.default.toValueString(t);return!a||t!==i&&_xeUtils.default.toValueString(t).toLowerCase()!==_xeUtils.default.toNumber(i).toExponential()?i.slice(0,e):t}function renderDateLabel(t,e,i,a){var n=e.festivalMethod;return n?(i=(e=(n=n(_objectSpread({$input:e,type:e.datePanelType,viewType:e.datePanelType},i)))?_xeUtils.default.isString(n)?{label:n}:n:{}).extra?_xeUtils.default.isString(e.extra)?{label:e.extra}:e.extra:null,n=[t("span",{class:["vxe-input--date-label",{"is-notice":e.notice}]},i&&i.label?[t("span",a),t("span",{class:["vxe-input--date-label--extra",i.important?"is-important":"",i.className],style:i.style},_xeUtils.default.toValueString(i.label))]:a)],(i=e.label)&&(i=_xeUtils.default.toValueString(i).split(","),n.push(t("span",{class:["vxe-input--date-festival",e.important?"is-important":"",e.className],style:e.style},[1<i.length?t("span",{class:["vxe-input--date-festival--overlap","overlap--".concat(i.length)]},i.map(function(e){return t("span",e.substring(0,3))})):t("span",{class:"vxe-input--date-festival--label"},i[0].substring(0,3))]))),n):a}function isDateDisabled(e,t){var i=e.disabledMethod;return i&&i({$input:e,type:e.datePanelType,viewType:e.datePanelType,date:t.date})}function renderDateDayTable(i,a){var e=a.datePanelType,n=a.dateValue,s=a.datePanelValue,t=a.dateHeaders,r=a.dayDatas,l=a.multiple,u=a.dateListValue,o="yyyy-MM-dd";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("thead",[i("tr",t.map(function(e){return i("th",e.label)}))]),i("tbody",r.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(a,t),"is--selected":l?u.some(function(e){return _xeUtils.default.isDateSame(e,t.date,o)}):_xeUtils.default.isDateSame(n,t.date,o),"is--hover":_xeUtils.default.isDateSame(s,t.date,o)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,t.label))}))}))])]}function renderDateWeekTable(a,n){var e=n.datePanelType,s=n.dateValue,r=n.datePanelValue,t=n.weekHeaders,i=n.weekDates,l=n.multiple,u=n.dateListValue,o="yyyyMMdd";return[a("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[a("thead",[a("tr",t.map(function(e){return a("th",e.label)}))]),a("tbody",i.map(function(e){var t=l?e.some(function(t){return u.some(function(e){return _xeUtils.default.isDateSame(e,t.date,o)})}):e.some(function(e){return _xeUtils.default.isDateSame(s,e.date,o)}),i=e.some(function(e){return _xeUtils.default.isDateSame(r,e.date,o)});return a("tr",e.map(function(e){return a("td",{class:{"is--prev":e.isPrev,"is--current":e.isCurrent,"is--now":e.isNow,"is--next":e.isNext,"is--disabled":isDateDisabled(n,e),"is--selected":t,"is--hover":i},on:{click:function(){return n.dateSelectEvent(e)},mouseenter:function(){return n.dateMouseenterEvent(e)}}},renderDateLabel(a,n,e,e.label))}))}))])]}function renderDateMonthTable(i,a){var n=a.dateValue,e=a.datePanelType,t=a.monthDatas,s=a.datePanelValue,r=a.multiple,l=a.dateListValue,u="yyyyMM";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("tbody",t.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(a,t),"is--selected":r?l.some(function(e){return _xeUtils.default.isDateSame(e,t.date,u)}):_xeUtils.default.isDateSame(n,t.date,u),"is--hover":_xeUtils.default.isDateSame(s,t.date,u)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,_conf.default.i18n("vxe.input.date.months.m".concat(t.month))))}))}))])]}function renderDateQuarterTable(i,a){var n=a.dateValue,e=a.datePanelType,t=a.quarterDatas,s=a.datePanelValue,r=a.multiple,l=a.dateListValue,u="yyyyq";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("tbody",t.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(a,t),"is--selected":r?l.some(function(e){return _xeUtils.default.isDateSame(e,t.date,u)}):_xeUtils.default.isDateSame(n,t.date,u),"is--hover":_xeUtils.default.isDateSame(s,t.date,u)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,_conf.default.i18n("vxe.input.date.quarters.q".concat(t.quarter))))}))}))])]}function renderDateYearTable(i,a){var n=a.dateValue,e=a.datePanelType,t=a.yearDatas,s=a.datePanelValue,r=a.multiple,l=a.dateListValue,u="yyyy";return[i("table",{class:"vxe-input--date-".concat(e,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[i("tbody",t.map(function(e){return i("tr",e.map(function(t){return i("td",{class:{"is--prev":t.isPrev,"is--current":t.isCurrent,"is--now":t.isNow,"is--next":t.isNext,"is--disabled":isDateDisabled(t),"is--selected":r?l.some(function(e){return _xeUtils.default.isDateSame(e,t.date,u)}):_xeUtils.default.isDateSame(n,t.date,u),"is--hover":_xeUtils.default.isDateSame(s,t.date,u)},on:{click:function(){return a.dateSelectEvent(t)},mouseenter:function(){return a.dateMouseenterEvent(t)}}},renderDateLabel(i,a,t,t.year))}))}))])]}function renderDateTable(e,t){switch(t.datePanelType){case"week":return renderDateWeekTable(e,t);case"month":return renderDateMonthTable(e,t);case"quarter":return renderDateQuarterTable(e,t);case"year":return renderDateYearTable(e,t)}return renderDateDayTable(e,t)}function renderDatePanel(e,t){var i=t.datePanelType,a=t.selectDatePanelLabel,n=t.isDisabledPrevDateBtn,s=t.isDisabledNextDateBtn,r=t.multiple,l=t.supportMultiples;return[e("div",{class:"vxe-input--date-picker-header"},[e("div",{class:"vxe-input--date-picker-type-wrapper"},[e("span","year"===i?{class:"vxe-input--date-picker-label"}:{class:"vxe-input--date-picker-btn",on:{click:t.dateToggleTypeEvent}},a)]),e("div",{class:"vxe-input--date-picker-btn-wrapper"},[e("span",{class:["vxe-input--date-picker-btn vxe-input--date-picker-prev-btn",{"is--disabled":n}],on:{click:t.datePrevEvent}},[e("i",{class:"vxe-icon-caret-left"})]),e("span",{class:"vxe-input--date-picker-btn vxe-input--date-picker-current-btn",on:{click:t.dateTodayMonthEvent}},[e("i",{class:"vxe-icon-dot"})]),e("span",{class:["vxe-input--date-picker-btn vxe-input--date-picker-next-btn",{"is--disabled":s}],on:{click:t.dateNextEvent}},[e("i",{class:"vxe-icon-caret-right"})]),r&&l?e("span",{class:"vxe-input--date-picker-btn vxe-input--date-picker-confirm-btn"},[e("button",{class:"vxe-input--date-picker-confirm",attrs:{type:"button"},on:{click:t.dateConfirmEvent}},_conf.default.i18n("vxe.button.confirm"))]):null])]),e("div",{class:"vxe-input--date-picker-body"},renderDateTable(e,t))]}function renderTimePanel(i,a){var e=a.dateTimeLabel,n=a.datetimePanelValue,t=a.hourList,s=a.minuteList,r=a.secondList;return[i("div",{class:"vxe-input--time-picker-header"},[i("span",{class:"vxe-input--time-picker-title"},e),i("button",{class:"vxe-input--time-picker-confirm",attrs:{type:"button"},on:{click:a.dateConfirmEvent}},_conf.default.i18n("vxe.button.confirm"))]),i("div",{ref:"timeBody",class:"vxe-input--time-picker-body"},[i("ul",{class:"vxe-input--time-picker-hour-list"},t.map(function(t,e){return i("li",{key:e,class:{"is--selected":n&&n.getHours()===t.value},on:{click:function(e){return a.dateHourEvent(e,t)}}},t.label)})),i("ul",{class:"vxe-input--time-picker-minute-list"},s.map(function(t,e){return i("li",{key:e,class:{"is--selected":n&&n.getMinutes()===t.value},on:{click:function(e){return a.dateMinuteEvent(e,t)}}},t.label)})),i("ul",{class:"vxe-input--time-picker-second-list"},r.map(function(t,e){return i("li",{key:e,class:{"is--selected":n&&n.getSeconds()===t.value},on:{click:function(e){return a.dateSecondEvent(e,t)}}},t.label)}))])]}function renderPanel(e,t){var i=t.type,a=t.vSize,n=t.isDatePickerType,s=t.transfer,r=t.animatVisible,l=t.visiblePanel,u=t.panelPlacement,o=t.panelStyle,d=[];return n?(d.push("datetime"===i?e("div",{class:"vxe-input--panel-layout-wrapper"},[e("div",{class:"vxe-input--panel-left-wrapper"},renderDatePanel(e,t)),e("div",{class:"vxe-input--panel-right-wrapper"},renderTimePanel(e,t))]):e("div",{class:"vxe-input--panel-wrapper"},("time"===i?renderTimePanel:renderDatePanel)(e,t))),e("div",{ref:"panel",class:["vxe-table--ignore-clear vxe-input--panel","type--".concat(i),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"size--".concat(a),a),"is--transfer",s),"animat--leave",r),"animat--enter",l)],attrs:{placement:u},style:o},d)):null}function renderNumberIcon(e,t){return e("span",{class:"vxe-input--number-suffix"},[e("span",{class:["vxe-input--number-prev is--prev",{"is--disabled":t.isDisabledAddNumber}],on:{mousedown:t.numberMousedownEvent,mouseup:t.numberStopDown,mouseleave:t.numberStopDown}},[e("i",{class:["vxe-input--number-prev-icon",_conf.default.icon.INPUT_PREV_NUM]})]),e("span",{class:["vxe-input--number-next is--next",{"is--disabled":t.isDisabledSubtractNumber}],on:{mousedown:t.numberMousedownEvent,mouseup:t.numberStopDown,mouseleave:t.numberStopDown}},[e("i",{class:["vxe-input--number-next-icon",_conf.default.icon.INPUT_NEXT_NUM]})])])}function renderDatePickerIcon(e,t){return e("span",{class:"vxe-input--date-picker-suffix",on:{click:t.datePickerOpenEvent}},[e("i",{class:["vxe-input--date-picker-icon",_conf.default.icon.INPUT_DATE]})])}function renderSearchIcon(e,t){return e("span",{class:"vxe-input--search-suffix",on:{click:t.searchEvent}},[e("i",{class:["vxe-input--search-icon",_conf.default.icon.INPUT_SEARCH]})])}function renderPasswordIcon(e,t){var i=t.showPwd;return e("span",{class:"vxe-input--password-suffix",on:{click:t.passwordToggleEvent}},[e("i",{class:["vxe-input--password-icon",i?_conf.default.icon.INPUT_SHOW_PWD:_conf.default.icon.INPUT_PWD]})])}function rendePrefixIcon(e,t){var i=t.$scopedSlots,a=t.prefixIcon,n=[];return i.prefix?n.push(e("span",{class:"vxe-input--prefix-icon"},i.prefix.call(this,{},e))):a&&n.push(e("i",{class:["vxe-input--prefix-icon",a]})),n.length?e("span",{class:"vxe-input--prefix",on:{click:t.clickPrefixEvent}},n):null}function renderSuffixIcon(e,t){var i=t.$scopedSlots,a=t.inputValue,n=t.isClearable,s=t.disabled,r=t.suffixIcon,l=[];return i.suffix?l.push(e("span",{class:"vxe-input--suffix-icon"},i.suffix.call(this,{},e))):r&&l.push(e("i",{class:["vxe-input--suffix-icon",r]})),n&&l.push(e("i",{class:["vxe-input--clear-icon",_conf.default.icon.INPUT_CLEAR]})),l.length?e("span",{class:["vxe-input--suffix",{"is--clear":n&&!s&&!(""===a||_xeUtils.default.eqNull(a))}],on:{click:t.clickSuffixEvent}},l):null}function renderExtraSuffixIcon(e,t){var i,a=t.controls,n=t.isPawdType,s=t.isNumType,r=t.isDatePickerType,l=t.isSearch;return n?i=renderPasswordIcon(e,t):s?a&&(i=renderNumberIcon(e,t)):r?i=renderDatePickerIcon(e,t):l&&(i=renderSearchIcon(e,t)),i?e("span",{class:"vxe-input--extra-suffix"},[i]):null}var _default2=exports.default={name:"VxeInput",mixins:[_size.default],model:{prop:"value",event:"modelValue"},props:{value:[String,Number,Date],immediate:{type:Boolean,default:!0},name:String,type:{type:String,default:"text"},clearable:{type:Boolean,default:function(){return _conf.default.input.clearable}},readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:function(){return _xeUtils.default.eqNull(_conf.default.input.placeholder)?_conf.default.i18n("vxe.base.pleaseInput"):_conf.default.input.placeholder}},maxLength:[String,Number],autoComplete:{type:String,default:"off"},align:String,form:String,className:String,size:{type:String,default:function(){return _conf.default.input.size||_conf.default.size}},multiple:Boolean,showWordCount:Boolean,countMethod:Function,min:{type:[String,Number],default:null},max:{type:[String,Number],default:null},step:[String,Number],exponential:{type:Boolean,default:function(){return _conf.default.input.exponential}},controls:{type:Boolean,default:function(){return _conf.default.input.controls}},digits:{type:[String,Number],default:function(){return _conf.default.input.digits}},dateConfig:Object,startDate:{type:[String,Number,Date],default:function(){return _conf.default.input.startDate}},endDate:{type:[String,Number,Date],default:function(){return _conf.default.input.endDate}},minDate:[String,Number,Date],maxDate:[String,Number,Date],startWeek:Number,startDay:{type:[String,Number],default:function(){return _conf.default.input.startDay}},labelFormat:{type:String,default:function(){return _conf.default.input.labelFormat}},valueFormat:{type:String,default:function(){return _conf.default.input.valueFormat}},editable:{type:Boolean,default:!0},festivalMethod:{type:Function,default:function(){return _conf.default.input.festivalMethod}},disabledMethod:{type:Function,default:function(){return _conf.default.input.disabledMethod}},selectDay:{type:Number,default:function(){return _conf.default.input.selectDay}},prefixIcon:String,suffixIcon:String,placement:String,transfer:{type:Boolean,default:function(){return _conf.default.input.transfer}},maxlength:[String,Number],autocomplete:String},inject:{$xeform:{default:null},$xeformiteminfo:{default:null}},data:function(){return{panelIndex:0,showPwd:!1,visiblePanel:!1,animatVisible:!1,panelStyle:null,panelPlacement:null,isActivated:!1,inputValue:this.value,datetimePanelValue:null,datePanelValue:null,datePanelLabel:"",datePanelType:"day",selectMonth:null,currentDate:null}},computed:{isNumType:function(){return-1<["number","integer","float"].indexOf(this.type)},isDatePickerType:function(){return this.isDateTimeType||-1<["date","week","month","quarter","year"].indexOf(this.type)},isDateTimeType:function(){var e=this.type;return"time"===e||"datetime"===e},isPawdType:function(){return"password"===this.type},isSearch:function(){return"search"===this.type},inputCount:function(){return _xeUtils.default.getSize(this.inputValue)},isCountError:function(){var e=this.maxLength,t=this.maxlength;return(e||t)&&this.inputCount>_xeUtils.default.toNumber(e||t)},stepValue:function(){var e=this.type,t=this.step;return"integer"===e?_xeUtils.default.toInteger(t)||1:"float"===e?_xeUtils.default.toNumber(t)||1/Math.pow(10,this.digitsValue):_xeUtils.default.toNumber(t)||1},digitsValue:function(){return _xeUtils.default.toInteger(this.digits)||1},isClearable:function(){return this.clearable&&(this.isPawdType||this.isNumType||this.isDatePickerType||"text"===this.type||"search"===this.type)},isDisabledPrevDateBtn:function(){var e=this.selectMonth,t=this.dateStartTime;return!!e&&e<=t},isDisabledNextDateBtn:function(){var e=this.selectMonth,t=this.dateEndTime;return!!e&&t<=e},dateStartTime:function(){return this.startDate?_xeUtils.default.toStringDate(this.startDate):null},dateEndTime:function(){return this.endDate?_xeUtils.default.toStringDate(this.endDate):null},supportMultiples:function(){return["date","week","month","quarter","year"].includes(this.type)},dateListValue:function(){var t=this,e=this.value,i=this.multiple,a=this.isDatePickerType,n=this.dateValueFormat;return i&&e&&a?_xeUtils.default.toValueString(e).split(",").map(function(e){e=t.parseDate(e,n);return _xeUtils.default.isValidDate(e)?e:null}):[]},dateMultipleValue:function(){var e=this.dateListValue,t=this.dateValueFormat;return e.map(function(e){return _xeUtils.default.toDateString(e,t)})},dateMultipleLabel:function(){var e=this.dateListValue,t=this.dateLabelFormat;return e.map(function(e){return _xeUtils.default.toDateString(e,t)}).join(", ")},dateValue:function(){var e=this.value,t=this.isDatePickerType,i=this.dateValueFormat,a=null;return a=e&&t&&(t=this.parseDate(e,i),_xeUtils.default.isValidDate(t))?t:a},dateTimeLabel:function(){var e=this.datetimePanelValue;return e?_xeUtils.default.toDateString(e,"HH:mm:ss"):""},hmsTime:function(){var e=this.dateValue;return e&&this.isDateTimeType?1e3*(3600*e.getHours()+60*e.getMinutes()+e.getSeconds()):0},dateLabelFormat:function(){return this.isDatePickerType?this.labelFormat||_conf.default.i18n("vxe.input.date.labelFormat.".concat(this.type)):null},dateValueFormat:function(){var e=this.type;return"time"===e?"HH:mm:ss":this.valueFormat||("datetime"===e?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd")},selectDatePanelLabel:function(){var e,t,i,a,n;return this.isDatePickerType?(e=this.datePanelType,t=this.selectMonth,i=this.yearList,a="",t&&(a=t.getFullYear(),n=t.getMonth()+1),"quarter"===e?_conf.default.i18n("vxe.input.date.quarterLabel",[a]):"month"===e?_conf.default.i18n("vxe.input.date.monthLabel",[a]):"year"===e?i.length?"".concat(i[0].year," - ").concat(i[i.length-1].year):"":_conf.default.i18n("vxe.input.date.dayLabel",[a,n?_conf.default.i18n("vxe.input.date.m".concat(n)):"-"])):""},firstDayOfWeek:function(){var e=this.startDay,t=this.startWeek;return _xeUtils.default.toNumber(_xeUtils.default.isNumber(e)||_xeUtils.default.isString(e)?e:t)},weekDatas:function(){var e=[];if(this.isDatePickerType){var t=this.firstDayOfWeek;e.push(t);for(var i=0;i<6;i++)6<=t?t=0:t++,e.push(t)}return e},dateHeaders:function(){return this.isDatePickerType?this.weekDatas.map(function(e){return{value:e,label:_conf.default.i18n("vxe.input.date.weeks.w".concat(e))}}):[]},weekHeaders:function(){return this.isDatePickerType?[{label:_conf.default.i18n("vxe.input.date.weeks.w")}].concat(this.dateHeaders):[]},yearList:function(){var e=this.selectMonth,t=this.currentDate,i=[];if(e&&t)for(var a=t.getFullYear(),t=e.getFullYear(),n=new Date(t-t%yearSize,0,1),s=-4;s<yearSize+4;s++){var r=_xeUtils.default.getWhatYear(n,s,"first"),l=r.getFullYear();i.push({date:r,isCurrent:!0,isPrev:s<0,isNow:a===l,isNext:yearSize<=s,year:l})}return i},yearDatas:function(){return _xeUtils.default.chunk(this.yearList,4)},quarterList:function(){var e=this.selectMonth,t=this.currentDate,i=[];if(e&&t)for(var a=t.getFullYear(),n=(0,_date.getDateQuarter)(t),s=_xeUtils.default.getWhatYear(e,0,"first"),r=s.getFullYear(),l=-2;l<quarterSize-2;l++){var u=_xeUtils.default.getWhatQuarter(s,l),o=u.getFullYear(),d=(0,_date.getDateQuarter)(u),h=o<r;i.push({date:u,isPrev:h,isCurrent:o===r,isNow:o===a&&d===n,isNext:!h&&r<o,quarter:d})}return i},quarterDatas:function(){return _xeUtils.default.chunk(this.quarterList,2)},monthList:function(){var e=this.selectMonth,t=this.currentDate,i=[];if(e&&t)for(var a=t.getFullYear(),n=t.getMonth(),s=_xeUtils.default.getWhatYear(e,0,"first").getFullYear(),r=-4;r<monthSize-4;r++){var l=_xeUtils.default.getWhatYear(e,0,r),u=l.getFullYear(),o=l.getMonth(),d=u<s;i.push({date:l,isPrev:d,isCurrent:u===s,isNow:u===a&&o===n,isNext:!d&&s<u,month:o})}return i},monthDatas:function(){return _xeUtils.default.chunk(this.monthList,4)},dayList:function(){var e=this.weekDatas,t=this.selectMonth,i=this.currentDate,a=this.hmsTime,n=[];if(t&&i)for(var s=i.getFullYear(),r=i.getMonth(),l=i.getDate(),u=t.getFullYear(),o=t.getMonth(),i=t.getDay(),e=-e.indexOf(i),d=new Date(_xeUtils.default.getWhatDay(t,e).getTime()+a),h=0;h<42;h++){var c=_xeUtils.default.getWhatDay(d,h),f=c.getFullYear(),p=c.getMonth(),m=c.getDate(),v=c<t;n.push({date:c,isPrev:v,isCurrent:f===u&&p===o,isNow:f===s&&p===r&&m===l,isNext:!v&&o!==p,label:m})}return n},dayDatas:function(){return _xeUtils.default.chunk(this.dayList,7)},weekDates:function(){var e=this.dayDatas,i=this.firstDayOfWeek;return e.map(function(e){var t=e[0];return[{date:t.date,isWeekNumber:!0,isPrev:!1,isCurrent:!1,isNow:!1,isNext:!1,label:_xeUtils.default.getYearWeek(t.date,i)}].concat(e)})},hourList:function(){var e=[];if(this.isDateTimeType)for(var t=0;t<24;t++)e.push({value:t,label:(""+t).padStart(2,0)});return e},minuteList:function(){var e=[];if(this.isDateTimeType)for(var t=0;t<60;t++)e.push({value:t,label:(""+t).padStart(2,0)});return e},secondList:function(){return this.minuteList},inpImmediate:function(){var e=this.type;return this.immediate||!("text"===e||"number"===e||"integer"===e||"float"===e)},inpPlaceholder:function(){var e=this.placeholder;return e?(0,_utils.getFuncText)(e):""},inputType:function(){var e=this.isDatePickerType,t=this.isNumType,i=this.isPawdType,a=this.type,n=this.showPwd;return e||t||i&&n||"number"===a?"text":a},inpMaxlength:function(){var e=this.isNumType,t=this.maxLength,i=this.maxlength;return e&&!_xeUtils.default.toNumber(t||i)?16:t||i},inpReadonly:function(){var e=this.type,t=this.readonly,i=this.editable,a=this.multiple;return t||a||!i||"week"===e||"quarter"===e},numValue:function(){var e=this.type,t=this.isNumType,i=this.inputValue;return t?"integer"===e?_xeUtils.default.toInteger((0,_number.handleNumber)(i)):_xeUtils.default.toNumber((0,_number.handleNumber)(i)):0},isDisabledSubtractNumber:function(){var e=this.min,t=this.isNumType,i=this.inputValue,a=this.numValue;return!(!i&&0!==i||!t||null===e)&&a<=_xeUtils.default.toNumber(e)},isDisabledAddNumber:function(){var e=this.max,t=this.isNumType,i=this.inputValue,a=this.numValue;return!(!i&&0!==i||!t||null===e)&&a>=_xeUtils.default.toNumber(e)}},watch:{value:function(e){this.inputValue=e,this.changeValue()},type:function(){Object.assign(this,{inputValue:this.value,datetimePanelValue:null,datePanelValue:null,datePanelLabel:"",datePanelType:"day",selectMonth:null,currentDate:null}),this.initValue()},dateLabelFormat:function(){this.isDatePickerType&&(this.dateParseValue(this.datePanelValue),this.inputValue=this.multiple?this.dateMultipleLabel:this.datePanelLabel)}},created:function(){this.initValue(),_event.GlobalEvent.on(this,"mousewheel",this.handleGlobalMousewheelEvent),_event.GlobalEvent.on(this,"mousedown",this.handleGlobalMousedownEvent),_event.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent),_event.GlobalEvent.on(this,"blur",this.handleGlobalBlurEvent)},mounted:function(){this.dateConfig&&(0,_log.warnLog)("vxe.error.removeProp",["date-config"]),this.isDatePickerType&&this.transfer&&document.body.appendChild(this.$refs.panel)},beforeDestroy:function(){var e=this.$refs.panel;e&&e.parentNode&&e.parentNode.removeChild(e)},destroyed:function(){this.numberStopDown(),_event.GlobalEvent.off(this,"mousewheel"),_event.GlobalEvent.off(this,"mousedown"),_event.GlobalEvent.off(this,"keydown"),_event.GlobalEvent.off(this,"blur")},render:function(e){var t=this.name,i=this.form,a=this.inputType,n=this.inpPlaceholder,s=this.inpMaxlength,r=this.inpReadonly,l=this.className,u=this.controls,o=this.showWordCount,d=this.countMethod,h=this.inputValue,c=this.isDatePickerType,f=this.visiblePanel,p=this.isActivated,m=this.vSize,v=this.type,y=this.align,b=this.readonly,x=this.disabled,g=this.autoComplete,_=this.autocomplete,D=[],P=rendePrefixIcon(e,this),T=renderSuffixIcon(e,this),t=(P&&D.push(P),D.push(e("input",{ref:"input",class:"vxe-input--inner",domProps:{value:h},attrs:{name:t,form:i,type:a,placeholder:n,maxlength:s,readonly:r,disabled:x,autocomplete:g||_,spellcheck:!1},on:{keydown:this.keydownEvent,keyup:this.triggerEvent,wheel:this.wheelEvent,click:this.clickEvent,input:this.inputEvent,change:this.changeEvent,focus:this.focusEvent,blur:this.blurEvent}})),T&&D.push(T),D.push(renderExtraSuffixIcon(e,this)),c&&D.push(renderPanel(e,this)),!1);return o&&["text","search"].includes(v)&&(t=!0,D.push(e("span",{class:["vxe-input--count",{"is--error":this.isCountError}]},d?"".concat(d({value:h})):"".concat(this.inputCount).concat(s?"/".concat(s):"")))),e("div",{class:["vxe-input","type--".concat(v),l,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"size--".concat(m),m),"is--".concat(y),y),"is--controls",u),"is--prefix",!!P),"is--suffix",!!T),"is--readonly",b),"is--visivle",f),"is--count",t),"is--disabled",x),"is--active",p)]},D)},methods:{focus:function(){return this.isActivated=!0,this.$refs.input.focus(),this.$nextTick()},blur:function(){return this.$refs.input.blur(),this.isActivated=!1,this.$nextTick()},select:function(){return this.$refs.input.select(),this.isActivated=!1,this.$nextTick()},triggerEvent:function(e){var t=this.$refs,i=this.inputValue;this.$emit(e.type,{$panel:t.panel,value:i,$event:e})},emitModel:function(e,t){this.inputValue=e,this.$emit("modelValue",e),this.$emit("input",{value:e,$event:t}),_xeUtils.default.toValueString(this.value)!==e&&(this.$emit("change",{value:e,$event:t}),this.$xeform)&&this.$xeformiteminfo&&this.$xeform.triggerItemEvent(t,this.$xeformiteminfo.itemConfig.field,e)},emitInputEvent:function(e,t){var i=this.inpImmediate,a=this.isDatePickerType;this.inputValue=e,a||(i?this.emitModel(e,t):this.$emit("input",{value:e,$event:t}))},inputEvent:function(e){var t=e.target.value;this.emitInputEvent(t,e)},changeEvent:function(e){this.inpImmediate||this.triggerEvent(e)},focusEvent:function(e){this.isActivated=!0,this.isDatePickerType&&this.datePickerOpenEvent(e),this.triggerEvent(e)},blurEvent:function(e){var t=this.inputValue;this.inpImmediate||this.emitModel(t,e),this.afterCheckValue(),this.visiblePanel||(this.isActivated=!1),this.$emit("blur",{value:t,$event:e})},keydownEvent:function(e){var t,i,a,n,s,r,l,u=this.exponential,o=this.controls;this.isNumType&&(t=e.ctrlKey,i=e.shiftKey,a=e.altKey,s=27===(n=e.keyCode),r=38===n,l=40===n,t||i||a||!(32===n||(!u||69!==n)&&65<=n&&n<=90||186<=n&&n<=188||191<=n)||e.preventDefault(),s?this.afterCheckValue():(r||l)&&o&&this.numberKeydownEvent(e)),this.triggerEvent(e)},wheelEvent:function(e){var t;this.isNumType&&this.controls&&this.isActivated&&(0<(t=e.deltaY)?this.numberNextEvent(e):t<0&&this.numberPrevEvent(e),e.preventDefault()),this.triggerEvent(e)},clickEvent:function(e){this.triggerEvent(e)},clickPrefixEvent:function(e){var t=this.$refs,i=this.disabled,a=this.inputValue;i||this.$emit("prefix-click",{$panel:t.panel,value:a,$event:e})},clickSuffixEvent:function(e){var t=this.$refs,i=this.disabled,a=this.inputValue;i||(_dom.default.hasClass(e.currentTarget,"is--clear")?(this.emitModel("",e),this.clearValueEvent(e,"")):this.$emit("suffix-click",{$panel:t.panel,value:a,$event:e}))},clearValueEvent:function(e,t){var i=this.$refs,a=this.type,n=this.isNumType;this.isDatePickerType&&this.hidePanel(),(n||-1<["text","search","password"].indexOf(a))&&this.focus(),this.$emit("clear",{$panel:i.panel,value:t,$event:e})},parseDate:function(e,t){return"time"===this.type?(0,_date.toStringTimeDate)(e):_xeUtils.default.toStringDate(e,t)},initValue:function(){var e=this.type,t=this.isDatePickerType,i=this.inputValue,a=this.digitsValue;t?this.changeValue():"float"===e&&i&&i!==(t=(0,_number.toFloatValueFixed)(i,a))&&this.emitModel(t,{type:"init"})},changeValue:function(){this.isDatePickerType&&(this.dateParseValue(this.inputValue),this.inputValue=this.multiple?this.dateMultipleLabel:this.datePanelLabel)},afterCheckValue:function(){var e=this.type,t=this.exponential,i=this.inpReadonly,a=this.inputValue,n=this.isDatePickerType,s=this.isNumType,r=this.datetimePanelValue,l=this.dateLabelFormat,u=this.min,o=this.max,d=this.firstDayOfWeek;i||(s?a&&(i="integer"===e?_xeUtils.default.toInteger((0,_number.handleNumber)(a)):_xeUtils.default.toNumber((0,_number.handleNumber)(a)),this.vaildMinNum(i)?this.vaildMaxNum(i)||(i=o):i=u,t&&(s=_xeUtils.default.toValueString(a).toLowerCase())===_xeUtils.default.toNumber(i).toExponential()&&(i=s),this.emitModel(getNumberValue(this,i),{type:"check"})):n&&(a?"week"!==e&&"quarter"!==e&&(o=this.parseDate(a,l),_xeUtils.default.isValidDate(o)?"time"===e?(a!==(o=(0,_date.toStringTimeDate)(o))&&this.emitModel(o,{type:"check"}),this.inputValue=o):(u=!1,"datetime"===e?a===_xeUtils.default.toDateString(this.dateValue,l)&&a===_xeUtils.default.toDateString(o,l)||(u=!0,r.setHours(o.getHours()),r.setMinutes(o.getMinutes()),r.setSeconds(o.getSeconds())):u=!0,this.inputValue=_xeUtils.default.toDateString(o,l,{firstDay:d}),u&&this.dateChange(o)):this.dateRevert()):this.emitModel("",{type:"check"})))},passwordToggleEvent:function(e){var t=this.disabled,i=this.readonly,a=this.showPwd;t||i||(this.showPwd=!a),this.$emit("toggle-visible",{visible:this.showPwd,$event:e})},searchEvent:function(e){this.$emit("search-click",{$event:e})},vaildMinNum:function(e){return null===this.min||e>=_xeUtils.default.toNumber(this.min)},vaildMaxNum:function(e){return null===this.max||e<=_xeUtils.default.toNumber(this.max)},numberStopDown:function(){clearTimeout(this.downbumTimeout)},numberDownPrevEvent:function(e){var t=this;this.downbumTimeout=setTimeout(function(){t.numberPrevEvent(e),t.numberDownPrevEvent(e)},60)},numberDownNextEvent:function(e){var t=this;this.downbumTimeout=setTimeout(function(){t.numberNextEvent(e),t.numberDownNextEvent(e)},60)},numberKeydownEvent:function(e){var t=e.keyCode,i=38===t;!i&&40!==t||(e.preventDefault(),i?this.numberPrevEvent(e):this.numberNextEvent(e))},numberMousedownEvent:function(e){var t,i=this;this.numberStopDown(),0===e.button&&((t=_dom.default.hasClass(e.currentTarget,"is--prev"))?this.numberPrevEvent(e):this.numberNextEvent(e),this.downbumTimeout=setTimeout(function(){t?i.numberDownPrevEvent(e):i.numberDownNextEvent(e)},500))},numberPrevEvent:function(e){var t=this.disabled,i=this.readonly,a=this.isDisabledAddNumber;clearTimeout(this.downbumTimeout),t||i||a||this.numberChange(!0,e),this.$emit("prev-number",{$event:e})},numberNextEvent:function(e){var t=this.disabled,i=this.readonly,a=this.isDisabledSubtractNumber;clearTimeout(this.downbumTimeout),t||i||a||this.numberChange(!1,e),this.$emit("next-number",{$event:e})},numberChange:function(e,t){var i=this.min,a=this.max,n=this.type,s=this.inputValue,r=this.stepValue,n="integer"===n?_xeUtils.default.toInteger((0,_number.handleNumber)(s)):_xeUtils.default.toNumber((0,_number.handleNumber)(s)),s=e?_xeUtils.default.add(n,r):_xeUtils.default.subtract(n,r),e=this.vaildMinNum(s)?this.vaildMaxNum(s)?s:a:i;this.emitInputEvent(getNumberValue(this,e),t)},datePickerOpenEvent:function(e){this.readonly||(e.preventDefault(),this.showPanel())},dateMonthHandle:function(e,t){this.selectMonth=_xeUtils.default.getWhatMonth(e,t,"first")},dateNowHandle:function(){var e=_xeUtils.default.getWhatDay(Date.now(),0,"first");this.currentDate=e,this.dateMonthHandle(e,0)},dateToggleTypeEvent:function(){var e="month"===(e=this.datePanelType)||"quarter"===e?"year":"month";this.datePanelType=e},datePrevEvent:function(e){var t=this.isDisabledPrevDateBtn,i=this.type,a=this.datePanelType;t||(this.selectMonth="year"===i?_xeUtils.default.getWhatYear(this.selectMonth,-yearSize,"first"):"month"===i||"quarter"===i?"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,-yearSize,"first"):_xeUtils.default.getWhatYear(this.selectMonth,-1,"first"):"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,-yearSize,"first"):"month"===a?_xeUtils.default.getWhatYear(this.selectMonth,-1,"first"):_xeUtils.default.getWhatMonth(this.selectMonth,-1,"first"),this.$emit("date-prev",{type:i,$event:e}))},dateTodayMonthEvent:function(e){this.dateNowHandle(),this.multiple||(this.dateChange(this.currentDate),this.hidePanel()),this.$emit("date-today",{type:this.type,$event:e})},dateNextEvent:function(e){var t=this.isDisabledNextDateBtn,i=this.type,a=this.datePanelType;t||(this.selectMonth="year"===i?_xeUtils.default.getWhatYear(this.selectMonth,yearSize,"first"):"month"===i||"quarter"===i?"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,yearSize,"first"):_xeUtils.default.getWhatYear(this.selectMonth,1,"first"):"year"===a?_xeUtils.default.getWhatYear(this.selectMonth,yearSize,"first"):"month"===a?_xeUtils.default.getWhatYear(this.selectMonth,1,"first"):_xeUtils.default.getWhatMonth(this.selectMonth,1,"first"),this.$emit("date-next",{type:i,$event:e}))},dateSelectEvent:function(e){isDateDisabled(this,e)||this.dateSelectItem(e.date)},dateSelectItem:function(e){var t=this.type,i=this.datePanelType,a=this.multiple,n="week"===t;"month"===t?"year"===i?(this.datePanelType="month",this.dateCheckMonth(e)):(this.dateChange(e),a||this.hidePanel()):"year"===t?(this.dateChange(e),a||this.hidePanel()):"quarter"===t?"year"===i?(this.datePanelType="quarter",this.dateCheckMonth(e)):(this.dateChange(e),a||this.hidePanel()):"month"===i?(this.datePanelType="week"===t?t:"day",this.dateCheckMonth(e)):"year"===i?(this.datePanelType="month",this.dateCheckMonth(e)):(this.dateChange(e),"datetime"===t||a||this.hidePanel()),n&&this.changeValue()},dateMouseenterEvent:function(e){var t;isDateDisabled(this,e)||("month"===(t=this.datePanelType)?this.dateMoveMonth(e.date):"quarter"===t?this.dateMoveQuarter(e.date):"year"===t?this.dateMoveYear(e.date):this.dateMoveDay(e.date))},dateHourEvent:function(e,t){this.datetimePanelValue.setHours(t.value),this.dateTimeChangeEvent(e)},dateConfirmEvent:function(){var t,i=this.datetimePanelValue,e=this.isDateTimeType,a=this.dateValueFormat,n=this.dateMultipleValue;this.isDateTimeType&&(this.multiple?e?(e=this.dateListValue,t=[],e.forEach(function(e){e&&(e.setHours(i.getHours()),e.setMinutes(i.getMinutes()),e.setSeconds(i.getSeconds()),t.push(e))}),this.emitModel(t.map(function(e){return _xeUtils.default.toDateString(e,a)}).join(","),{type:"update"})):this.emitModel(n.join(","),{type:"update"}):this.dateChange(this.dateValue||this.currentDate)),this.hidePanel()},dateMinuteEvent:function(e,t){this.datetimePanelValue.setMinutes(t.value),this.dateTimeChangeEvent(e)},dateSecondEvent:function(e,t){this.datetimePanelValue.setSeconds(t.value),this.dateTimeChangeEvent(e)},dateTimeChangeEvent:function(e){this.datetimePanelValue=new Date(this.datetimePanelValue.getTime()),this.updateTimePos(e.currentTarget)},updateTimePos:function(e){var t;e&&(t=e.offsetHeight,e.parentNode.scrollTop=e.offsetTop-4*t)},dateMoveDay:function(t){isDateDisabled(this,{date:t})||(this.dayList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyyMMdd")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateMoveMonth:function(t){isDateDisabled(this,{date:t})||(this.monthList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyyMM")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateMoveQuarter:function(t){isDateDisabled(this,{date:t})||(this.quarterList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyyq")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateMoveYear:function(t){isDateDisabled(this,{date:t})||(this.yearList.some(function(e){return _xeUtils.default.isDateSame(e.date,t,"yyyy")})||this.dateCheckMonth(t),this.dateParseValue(t))},dateParseValue:function(e){var t=this.type,i=this.dateLabelFormat,a=this.valueFormat,n=this.firstDayOfWeek,s=null,r="";e&&(s=this.parseDate(e,a)),_xeUtils.default.isValidDate(s)?(r=_xeUtils.default.toDateString(s,i,{firstDay:n}),i&&"week"===t&&_xeUtils.default.getWhatWeek(s,0,n,n).getFullYear()<s.getFullYear()&&-1<(e=i.indexOf("yyyy"))&&(a=Number(r.substring(e,e+4)))&&!isNaN(a)&&(r=r.replace("".concat(a),"".concat(a-1)))):s=null,this.datePanelValue=s,this.datePanelLabel=r},dateOffsetEvent:function(e){var t,i,a,n=this.isActivated,s=this.datePanelValue,r=this.datePanelType,l=this.firstDayOfWeek;n&&(e.preventDefault(),e=37===(n=e.keyCode),t=38===n,i=39===n,n=40===n,"year"===r?(a=_xeUtils.default.getWhatYear(s||Date.now(),0,"first"),e?a=_xeUtils.default.getWhatYear(a,-1):t?a=_xeUtils.default.getWhatYear(a,-4):i?a=_xeUtils.default.getWhatYear(a,1):n&&(a=_xeUtils.default.getWhatYear(a,4)),this.dateMoveYear(a)):"quarter"===r?(a=_xeUtils.default.getWhatQuarter(s||Date.now(),0,"first"),e?a=_xeUtils.default.getWhatQuarter(a,-1):t?a=_xeUtils.default.getWhatQuarter(a,-2):i?a=_xeUtils.default.getWhatQuarter(a,1):n&&(a=_xeUtils.default.getWhatQuarter(a,2)),this.dateMoveQuarter(a)):"month"===r?(a=_xeUtils.default.getWhatMonth(s||Date.now(),0,"first"),e?a=_xeUtils.default.getWhatMonth(a,-1):t?a=_xeUtils.default.getWhatMonth(a,-4):i?a=_xeUtils.default.getWhatMonth(a,1):n&&(a=_xeUtils.default.getWhatMonth(a,4)),this.dateMoveMonth(a)):(r=s||_xeUtils.default.getWhatDay(Date.now(),0,"first"),e?r=_xeUtils.default.getWhatDay(r,-1):t?r=_xeUtils.default.getWhatWeek(r,-1,l):i?r=_xeUtils.default.getWhatDay(r,1):n&&(r=_xeUtils.default.getWhatWeek(r,1,l)),this.dateMoveDay(r)))},datePgOffsetEvent:function(e){var t;this.isActivated&&(t=33===e.keyCode,e.preventDefault(),t?this.datePrevEvent(e):this.dateNextEvent(e))},dateChange:function(t){var e,i,a=this.value,n=this.datetimePanelValue,s=this.dateValueFormat,r=this.firstDayOfWeek,l=this.isDateTimeType,u=this.multiple,o=("week"===this.type?(e=_xeUtils.default.toNumber(this.selectDay),t=_xeUtils.default.getWhatWeek(t,0,e,r)):l&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds())),_xeUtils.default.toDateString(t,s,{firstDay:r}));this.dateCheckMonth(t),u?(e=this.dateMultipleValue,l?(r=this.dateListValue,i=[],-1===(u=_xeUtils.default.findIndexOf(r,function(e){return _xeUtils.default.isDateSame(t,e,"yyyyMMdd")}))?r.push(t):r.splice(u,1),r.forEach(function(e){e&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(n.getSeconds()),i.push(e))}),this.emitModel(i.map(function(e){return _xeUtils.default.toDateString(e,s)}).join(","),{type:"update"})):e.some(function(e){return _xeUtils.default.isEqual(e,o)})?this.emitModel(e.filter(function(e){return!_xeUtils.default.isEqual(e,o)}).join(","),{type:"update"}):this.emitModel(e.concat([o]).join(","),{type:"update"})):_xeUtils.default.isEqual(a,o)||this.emitModel(o,{type:"update"})},dateCheckMonth:function(e){e=_xeUtils.default.getWhatMonth(e,0,"first");_xeUtils.default.isEqual(e,this.selectMonth)||(this.selectMonth=e)},dateOpenPanel:function(){var e=this,t=this.type,i=this.dateValue;-1<["year","quarter","month","week"].indexOf(t)?this.datePanelType=t:this.datePanelType="day",this.currentDate=_xeUtils.default.getWhatDay(Date.now(),0,"first"),i?(this.dateMonthHandle(i,0),this.dateParseValue(i)):this.dateNowHandle(),this.isDateTimeType&&(this.datetimePanelValue=this.datePanelValue||_xeUtils.default.getWhatDay(Date.now(),0,"first"),this.$nextTick(function(){_xeUtils.default.arrayEach(e.$refs.timeBody.querySelectorAll("li.is--selected"),e.updateTimePos)}))},dateRevert:function(){this.inputValue=this.multiple?this.dateMultipleLabel:this.datePanelLabel},updateZindex:function(){this.panelIndex<_utils.default.getLastZIndex()&&(this.panelIndex=_utils.default.nextZIndex())},showPanel:function(){var e=this,t=this.disabled,i=this.visiblePanel,a=this.isDatePickerType;return t||i?this.$nextTick():(clearTimeout(this.hidePanelTimeout),this.isActivated=!0,this.animatVisible=!0,a&&this.dateOpenPanel(),setTimeout(function(){e.visiblePanel=!0},10),this.updateZindex(),this.updatePlacement())},hidePanel:function(){var t=this;return new Promise(function(e){t.visiblePanel=!1,t.hidePanelTimeout=setTimeout(function(){t.animatVisible=!1,e()},350)})},updatePlacement:function(){var f=this;return this.$nextTick().then(function(){var e,t,i,a,n,s,r,l,u=f.$refs,o=f.transfer,d=f.placement,h=f.panelIndex,c=u.input,u=u.panel;if(c&&u)return e=c.offsetHeight,t=c.offsetWidth,i=u.offsetHeight,u=u.offsetWidth,h={zIndex:h},a=(r=_dom.default.getAbsolutePos(c)).boundingTop,n=r.boundingLeft,s=r.visibleHeight,r=r.visibleWidth,l="bottom",console.log(_dom.default.getAbsolutePos(c)),o?(c=a+e,"top"===d?(l="top",c=a-i):d||(s<c+i+5&&(l="top",c=a-i),c<5&&(l="bottom",c=a+e)),r<(o=n)+u+5&&(o-=o+u+5-r),o<5&&(o=5),Object.assign(h,{left:"".concat(o,"px"),top:"".concat(c,"px"),minWidth:"".concat(t,"px")})):"top"===d?(l="top",h.bottom="".concat(e,"px")):d||s<a+e+i&&5<a-e-i&&(l="top",h.bottom="".concat(e,"px")),f.panelStyle=h,f.panelPlacement=l,f.$nextTick()})},handleGlobalMousedownEvent:function(e){var t=this.$refs,i=this.$el,a=this.disabled,n=this.visiblePanel,s=this.isActivated;!a&&s&&(this.isActivated=_dom.default.getEventTargetNode(e,i).flag||_dom.default.getEventTargetNode(e,t.panel).flag,this.isActivated||(this.isDatePickerType?n&&(this.hidePanel(),this.afterCheckValue()):this.afterCheckValue()))},handleGlobalKeydownEvent:function(e){var t,i,a,n,s,r,l,u,o,d,h=this.isDatePickerType,c=this.visiblePanel,f=this.clearable;this.disabled||(i=46===(t=e.keyCode),a=27===t,n=13===t,s=38===t,r=40===t,l=33===t,u=34===t,o=37===t||s||39===t||r,d=this.isActivated,(t=9===t)?(d&&this.afterCheckValue(),this.isActivated=d=!1):o?h&&d&&(c?this.dateOffsetEvent(e):(s||r)&&this.datePickerOpenEvent(e)):n?h&&(c?this.datePanelValue?this.dateSelectItem(this.datePanelValue):this.hidePanel():d&&this.datePickerOpenEvent(e)):(l||u)&&h&&d&&this.datePgOffsetEvent(e),t||a?c&&this.hidePanel():i&&f&&d&&this.clearValueEvent(e,null))},handleGlobalMousewheelEvent:function(e){var t=this.$refs,i=this.disabled,a=this.visiblePanel;i||a&&(_dom.default.getEventTargetNode(e,t.panel).flag?this.updatePlacement():(this.hidePanel(),this.afterCheckValue()))},handleGlobalBlurEvent:function(){var e=this.isActivated;this.visiblePanel?(this.hidePanel(),this.afterCheckValue()):e&&this.afterCheckValue()}}};
|
package/lib/locale/lang/en-US.js
CHANGED
|
@@ -8,12 +8,15 @@ var _default = exports.default = {
|
|
|
8
8
|
vxe: {
|
|
9
9
|
base: {
|
|
10
10
|
pleaseInput: 'Please input',
|
|
11
|
-
pleaseSelect: 'Select'
|
|
11
|
+
pleaseSelect: 'Select',
|
|
12
|
+
comma: ',',
|
|
13
|
+
fullStop: '.'
|
|
12
14
|
},
|
|
13
15
|
loading: {
|
|
14
16
|
text: 'Loading...'
|
|
15
17
|
},
|
|
16
18
|
error: {
|
|
19
|
+
downErr: 'Download failed.',
|
|
17
20
|
groupFixed: 'If you use group headers, the freeze columns must be set by group.',
|
|
18
21
|
groupMouseRange: 'Grouping headers and "{0}" cannot be used at the same time, which may cause errors.',
|
|
19
22
|
groupTag: 'Grouping column header should use "{0}" instead of "{1}", which may cause errors.',
|
|
@@ -23,6 +26,7 @@ var _default = exports.default = {
|
|
|
23
26
|
useErr: 'Error installing "{0}" module, possibly in the wrong order, dependent modules need to be installed before Table.',
|
|
24
27
|
barUnableLink: 'Toolbar cannot associate table.',
|
|
25
28
|
expandContent: 'Expand row slot should be "content", please check if it is correct.',
|
|
29
|
+
reqComp: 'Require "{0}" component, check whether the install is correct. https://vxeui.com/#/start/useGlobal',
|
|
26
30
|
reqModule: 'require "{0}" module.',
|
|
27
31
|
reqProp: 'Missing the necessary "{0}" parameter, which can cause error.',
|
|
28
32
|
emptyProp: 'The property "{0}" is not allowed to be empty.',
|
|
@@ -37,7 +41,8 @@ var _default = exports.default = {
|
|
|
37
41
|
noTree: 'The tree structure does not support "{0}".',
|
|
38
42
|
notProp: 'Unsupported parameters "{0}"',
|
|
39
43
|
checkProp: 'The checkbox may stall when the amount of data is too large, it is recommended to set the parameter "{0}" to increase the rendering speed ',
|
|
40
|
-
coverProp: 'The parameter "{1}" to "{0}" is repeatedly defined. This may cause an error',
|
|
44
|
+
coverProp: 'The parameter "{1}" to "{0}" is repeatedly defined. This may cause an error.',
|
|
45
|
+
uniField: 'The field "{0}" is repeatedly defined, which may cause an error.',
|
|
41
46
|
delFunc: 'The function "{0}" is deprecated, please use "{1}".',
|
|
42
47
|
delProp: 'The property "{0}" is deprecated, please use "{1}".',
|
|
43
48
|
delEvent: 'The event "{0}" is deprecated, please use "{1}"',
|
|
@@ -51,7 +56,8 @@ var _default = exports.default = {
|
|
|
51
56
|
table: {
|
|
52
57
|
emptyText: 'No Data',
|
|
53
58
|
allTitle: 'Select all / cancel',
|
|
54
|
-
seqTitle: 'S
|
|
59
|
+
seqTitle: 'N/S',
|
|
60
|
+
actionTitle: 'Action',
|
|
55
61
|
confirmFilter: 'Confirm',
|
|
56
62
|
resetFilter: 'Reset',
|
|
57
63
|
allFilter: 'All',
|
|
@@ -66,8 +72,9 @@ var _default = exports.default = {
|
|
|
66
72
|
customTitle: 'Column settings',
|
|
67
73
|
customAll: 'All',
|
|
68
74
|
customConfirm: 'Confirm',
|
|
75
|
+
customClose: 'Close',
|
|
69
76
|
customCancel: 'Cancel',
|
|
70
|
-
customRestore: 'Restore
|
|
77
|
+
customRestore: 'Restore',
|
|
71
78
|
maxFixedCol: 'The maximum number of Freeze columns cannot exceed {0}'
|
|
72
79
|
},
|
|
73
80
|
grid: {
|
|
@@ -125,7 +132,7 @@ var _default = exports.default = {
|
|
|
125
132
|
sortHelpTip: 'Click and drag the icon to adjust the order of the columns.',
|
|
126
133
|
colTitle: 'Title',
|
|
127
134
|
colResizable: 'Column width (px)',
|
|
128
|
-
colVisible: '
|
|
135
|
+
colVisible: 'Display',
|
|
129
136
|
colFixed: 'Freeze columns',
|
|
130
137
|
colFixedMax: 'Freeze columns (Max. {0})',
|
|
131
138
|
fixedLeft: 'Left',
|
|
@@ -194,8 +201,14 @@ var _default = exports.default = {
|
|
|
194
201
|
expCancel: 'Cancel'
|
|
195
202
|
},
|
|
196
203
|
modal: {
|
|
197
|
-
|
|
204
|
+
errTitle: 'Error',
|
|
205
|
+
zoomMin: 'Minimize',
|
|
206
|
+
zoomIn: 'Maximize',
|
|
198
207
|
zoomOut: 'Reduction',
|
|
208
|
+
close: 'Close',
|
|
209
|
+
miniMaxSize: 'The number of minimized Windows cannot exceed {0}.'
|
|
210
|
+
},
|
|
211
|
+
drawer: {
|
|
199
212
|
close: 'Close'
|
|
200
213
|
},
|
|
201
214
|
form: {
|
|
@@ -275,11 +288,189 @@ var _default = exports.default = {
|
|
|
275
288
|
}
|
|
276
289
|
}
|
|
277
290
|
},
|
|
291
|
+
imagePreview: {
|
|
292
|
+
popupTitle: 'Preview',
|
|
293
|
+
operBtn: {
|
|
294
|
+
zoomOut: 'Reduce',
|
|
295
|
+
zoomIn: 'Enlarge',
|
|
296
|
+
pctFull: 'Proportional scaling',
|
|
297
|
+
pct11: 'Show original size',
|
|
298
|
+
rotateLeft: 'Rotate left',
|
|
299
|
+
rotateRight: 'Rotate right',
|
|
300
|
+
print: 'Click to print',
|
|
301
|
+
download: 'Click to download'
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
upload: {
|
|
305
|
+
fileBtnText: 'Click or drag',
|
|
306
|
+
imgBtnText: 'Click or drag',
|
|
307
|
+
dragPlaceholder: 'Please drag and drop the file into this area to upload it.',
|
|
308
|
+
imgSizeHint: 'Single {0}',
|
|
309
|
+
imgCountHint: 'Up to {0}',
|
|
310
|
+
fileTypeHint: 'Support {0} file types',
|
|
311
|
+
fileSizeHint: 'Single file size does not exceed {0}',
|
|
312
|
+
fileCountHint: 'Up to {0} file can be uploaded',
|
|
313
|
+
overCountErr: 'You can only choose {0} file!',
|
|
314
|
+
overCountExtraErr: 'It has exceeded the maximum number {0}, and more than {0} file will be ignored!超出最大数量 1 个,超出的 1 个文件将被忽略!',
|
|
315
|
+
overSizeErr: 'The size of the file is not more than {0}}!',
|
|
316
|
+
reUpload: 'Re upload',
|
|
317
|
+
uploadProgress: 'Uploading {0}%',
|
|
318
|
+
uploadErr: 'Fail to upload',
|
|
319
|
+
uploadSuccess: 'Successfully upload',
|
|
320
|
+
moreBtnText: 'More ({0})',
|
|
321
|
+
viewItemTitle: 'click to view'
|
|
322
|
+
},
|
|
278
323
|
formDesign: {
|
|
324
|
+
formName: 'Form name',
|
|
325
|
+
defFormTitle: 'Unnamed form',
|
|
326
|
+
widgetPropTab: 'Field property',
|
|
327
|
+
widgetFormTab: 'Form property',
|
|
328
|
+
error: {
|
|
329
|
+
wdFormUni: 'Only one control of this type is allowed to be added to the form.',
|
|
330
|
+
wdSubUni: 'Only one control of this type is allowed to be added to a sub table.'
|
|
331
|
+
},
|
|
332
|
+
styleSetting: {
|
|
333
|
+
btn: 'Style setting',
|
|
334
|
+
title: 'Form style setting',
|
|
335
|
+
layoutTitle: 'Field layout',
|
|
336
|
+
verticalLayout: 'Vertical layout',
|
|
337
|
+
horizontalLayout: 'Horizontal layout',
|
|
338
|
+
styleTitle: 'Title style',
|
|
339
|
+
boldTitle: 'Bold title',
|
|
340
|
+
fontBold: 'Bold',
|
|
341
|
+
fontNormal: 'Normal',
|
|
342
|
+
colonTitle: 'Display colon',
|
|
343
|
+
colonVisible: 'Visible',
|
|
344
|
+
colonHidden: 'Hidden',
|
|
345
|
+
alignTitle: 'Title align',
|
|
346
|
+
widthTitle: 'Title width',
|
|
347
|
+
alignLeft: 'Left',
|
|
348
|
+
alignRight: 'Right',
|
|
349
|
+
unitPx: 'Px',
|
|
350
|
+
unitPct: 'Pct'
|
|
351
|
+
},
|
|
279
352
|
widget: {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
353
|
+
group: {
|
|
354
|
+
base: 'Base control',
|
|
355
|
+
layout: 'Layout control',
|
|
356
|
+
system: 'System control',
|
|
357
|
+
module: 'Module control',
|
|
358
|
+
chart: 'Chart control',
|
|
359
|
+
advanced: 'Advanced control'
|
|
360
|
+
},
|
|
361
|
+
copyTitle: 'Copy_{0}',
|
|
362
|
+
component: {
|
|
363
|
+
input: 'Input',
|
|
364
|
+
textarea: 'Textarea',
|
|
365
|
+
select: 'Select',
|
|
366
|
+
row: 'Row/column',
|
|
367
|
+
title: 'Title',
|
|
368
|
+
text: 'Text',
|
|
369
|
+
subtable: 'Subtable',
|
|
370
|
+
VxeSwitch: 'Yes/no',
|
|
371
|
+
VxeInput: 'Input',
|
|
372
|
+
VxeNumberInput: 'Number',
|
|
373
|
+
VxeDatePicker: 'Date',
|
|
374
|
+
VxeTextarea: 'Textarea',
|
|
375
|
+
VxeSelect: 'Select',
|
|
376
|
+
VxeTreeSelect: 'Tree select',
|
|
377
|
+
VxeRadioGroup: 'Radio',
|
|
378
|
+
VxeCheckboxGroup: 'Checkbox',
|
|
379
|
+
VxeUploadFile: 'File',
|
|
380
|
+
VxeUploadImage: 'Image'
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
widgetProp: {
|
|
384
|
+
name: 'Field name',
|
|
385
|
+
placeholder: 'Field placeholder',
|
|
386
|
+
required: 'Required',
|
|
387
|
+
multiple: 'Allow to select multiple',
|
|
388
|
+
displaySetting: {
|
|
389
|
+
name: 'Display setting',
|
|
390
|
+
pc: 'PC',
|
|
391
|
+
mobile: 'Mobile',
|
|
392
|
+
visible: 'Visible',
|
|
393
|
+
hidden: 'Hidden'
|
|
394
|
+
},
|
|
395
|
+
dataSource: {
|
|
396
|
+
name: 'Data source',
|
|
397
|
+
defValue: 'Option {0}',
|
|
398
|
+
addOption: 'Add option',
|
|
399
|
+
batchEditOption: 'Batch edit',
|
|
400
|
+
batchEditTip: 'Each row corresponds to an option, supporting direct copying and pasting from tables, Excel, and WPS.',
|
|
401
|
+
batchEditSubTip: 'Each row corresponds to an option. If grouped, the sub items can start with spaces or tab keys, and can be directly copied and pasted from tables, Excel, or WPS.',
|
|
402
|
+
buildOption: 'Build option'
|
|
403
|
+
},
|
|
404
|
+
rowProp: {
|
|
405
|
+
colSize: 'Number of columns',
|
|
406
|
+
col2: 'Two columns',
|
|
407
|
+
col3: 'Three columns',
|
|
408
|
+
col4: 'Four columns',
|
|
409
|
+
col6: 'Six columns',
|
|
410
|
+
layout: 'Layout'
|
|
411
|
+
},
|
|
412
|
+
textProp: {
|
|
413
|
+
name: 'Content',
|
|
414
|
+
alignTitle: 'Align',
|
|
415
|
+
alignLeft: 'Left',
|
|
416
|
+
alignCenter: 'Center',
|
|
417
|
+
alignRight: 'Right',
|
|
418
|
+
colorTitle: 'Color',
|
|
419
|
+
sizeTitle: 'Font size',
|
|
420
|
+
boldTitle: 'Font bold',
|
|
421
|
+
fontNormal: 'Normal',
|
|
422
|
+
fontBold: 'Bold'
|
|
423
|
+
},
|
|
424
|
+
subtableProp: {
|
|
425
|
+
seqTitle: 'S/N',
|
|
426
|
+
showSeq: 'Display serial number',
|
|
427
|
+
showCheckbox: 'Allow multiple selections',
|
|
428
|
+
errSubDrag: 'The sub table does not support this control. Please use another control.',
|
|
429
|
+
colPlace: 'Drag the control in.'
|
|
430
|
+
},
|
|
431
|
+
uploadProp: {
|
|
432
|
+
limitFileCount: 'File quantity limitation',
|
|
433
|
+
limitFileSize: 'File size limitation',
|
|
434
|
+
multiFile: 'Allows multiple files',
|
|
435
|
+
limitImgCount: 'Image quantity limitation',
|
|
436
|
+
limitImgSize: 'Image size limitation',
|
|
437
|
+
multiImg: 'Allows multiple images'
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
listDesign: {
|
|
442
|
+
fieldSettingTab: 'Field',
|
|
443
|
+
listSettingTab: 'Parameter',
|
|
444
|
+
searchTitle: 'Search',
|
|
445
|
+
listTitle: 'List',
|
|
446
|
+
searchField: 'Search field',
|
|
447
|
+
listField: 'List field',
|
|
448
|
+
activeBtn: {
|
|
449
|
+
ActionButtonUpdate: 'Edit',
|
|
450
|
+
ActionButtonDelete: 'Delete'
|
|
451
|
+
},
|
|
452
|
+
search: {
|
|
453
|
+
addBtn: 'Edit',
|
|
454
|
+
emptyText: 'No filter condition is configured.',
|
|
455
|
+
editPopupTitle: 'Edit search fields'
|
|
456
|
+
},
|
|
457
|
+
searchPopup: {
|
|
458
|
+
colTitle: 'Title',
|
|
459
|
+
saveBtn: 'Save'
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
text: {
|
|
463
|
+
copySuccess: 'Successfully copied to clipboard.',
|
|
464
|
+
copyError: 'The current environment does not support this operation.'
|
|
465
|
+
},
|
|
466
|
+
countdown: {
|
|
467
|
+
formats: {
|
|
468
|
+
yyyy: 'Year',
|
|
469
|
+
MM: 'Moon',
|
|
470
|
+
dd: 'Day',
|
|
471
|
+
HH: 'Hour',
|
|
472
|
+
mm: 'Minute',
|
|
473
|
+
ss: 'Second'
|
|
283
474
|
}
|
|
284
475
|
},
|
|
285
476
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.en-US",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangEnUS=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{base:{pleaseInput:"Please input",pleaseSelect:"Select"},loading:{text:"Loading..."},error:{groupFixed:"If you use group headers, the freeze columns must be set by group.",groupMouseRange:'Grouping headers and "{0}" cannot be used at the same time, which may cause errors.',groupTag:'Grouping column header should use "{0}" instead of "{1}", which may cause errors.',scrollErrProp:'The parameter "{0}" is not supported when virtual scrolling is enabled.',errConflicts:'Argument "{0}" conflicts with "{1}"',unableInsert:"Unable to insert to the specified location.",useErr:'Error installing "{0}" module, possibly in the wrong order, dependent modules need to be installed before Table.',barUnableLink:"Toolbar cannot associate table.",expandContent:'Expand row slot should be "content", please check if it is correct.',reqModule:'require "{0}" module.',reqProp:'Missing the necessary "{0}" parameter, which can cause error.',emptyProp:'The property "{0}" is not allowed to be empty.',errProp:'Unsupported parameter "{0}", possibly "{1}".',colRepet:'column.{0}="{0}" is duplicated, which may make some features unusable',notFunc:'method "{0}" not exist.',errFunc:'The argument "{0}" is not a method',notValidators:'Global validators "{0}" no existe.',notFormats:'Global formats "{0}" no existe.',notCommands:'Global commands "{0}" no existe.',notSlot:'slot "{0}" does not exist',noTree:'The tree structure does not support "{0}".',notProp:'Unsupported parameters "{0}"',checkProp:'The checkbox may stall when the amount of data is too large, it is recommended to set the parameter "{0}" to increase the rendering speed ',coverProp:'The parameter "{1}" to "{0}" is repeatedly defined. This may cause an error',delFunc:'The function "{0}" is deprecated, please use "{1}".',delProp:'The property "{0}" is deprecated, please use "{1}".',delEvent:'The event "{0}" is deprecated, please use "{1}"',removeProp:'The property "{0}" is deprecated and is not recommended, which may cause error.',errFormat:'The global formatted content should be defined with "VXETable.formats". Mounting "formatter={0}" is not recommended.',notType:'Unsupported file types "{0}"',notExp:"The browser does not support import / export.",impFields:"Import failed, please check that the field name and data format are correct.",treeNotImp:"Tree table does not support import."},table:{emptyText:"No Data",allTitle:"Select all / cancel",seqTitle:"S/N",confirmFilter:"Confirm",resetFilter:"Reset",allFilter:"All",sortAsc:"Ascending: lowest to highest",sortDesc:"Descending: highest to lowest",filter:"Enable filtering on selected columns",impSuccess:"Successfully imported {0} records",expLoading:"Exporting",expSuccess:"Export success",expFilename:"Export_{0}",expOriginFilename:"Export_original_{0}",customTitle:"Column settings",customAll:"All",customConfirm:"Confirm",customCancel:"Cancel",customRestore:"Restore default",maxFixedCol:"The maximum number of Freeze columns cannot exceed {0}"},grid:{selectOneRecord:"Please choose at least one piece of record!",deleteSelectRecord:"Are you sure you want to delete the selected record?",removeSelectRecord:"Are you sure you want to remove the selected record?",dataUnchanged:"Data unchanged! ",delSuccess:"Successfully deleted the selected record!",saveSuccess:"Saved successfully!",operError:"Error occurred, operation failed!"},select:{search:"Search",loadingText:"Loading",emptyText:"No Data"},pager:{goto:"Go to",gotoTitle:"Number",pagesize:"{0}/page",total:"Total {0} record",pageClassifier:"",homePage:"Home",homePageTitle:"Home page",prevPage:"Previous page",prevPageTitle:"Previous page",nextPage:"next page",nextPageTitle:"next page",prevJump:"Jump previous page",prevJumpTitle:"Jump previous page",nextJump:"Jump next page",nextJumpTitle:"Jump next page",endPage:"End page",endPageTitle:"End"},alert:{title:"System messages"},button:{confirm:"Confirm",cancel:"Cancel"},filter:{search:"搜索"},custom:{cstmTitle:"Column Settings",cstmRestore:"Restore default",cstmCancel:"Cancelar",cstmConfirm:"Confirm",cstmConfirmRestore:"Please confirm whether to restore the default column configuration?",cstmDragTarget:"Moving target: {0}",setting:{colSort:"Sort",sortHelpTip:"Click and drag the icon to adjust the order of the columns.",colTitle:"Title",colResizable:"Column width (px)",colVisible:"Visible",colFixed:"Freeze columns",colFixedMax:"Freeze columns (Max. {0})",fixedLeft:"Left",fixedUnset:"Unset",fixedRight:"Right"}},import:{modes:{covering:"Overwrite mode (directly overwrite table data)",insert:"Bottom append (appends new data to the bottom of the table)",insertTop:"Top append (appends new data to the top of the table)",insertBottom:"Bottom append (appends new data to the bottom of the table)"},impTitle:"Import data",impFile:"Filename",impSelect:"Select file",impType:"File type",impOpts:"Settings",impMode:"Import mode",impConfirm:"Import",impCancel:"Cancel"},export:{types:{csv:"CSV (Comma separated) (*.csv)",html:"Web Page (*.html)",xml:"XML Data(*.xml)",txt:"Text (Tab delimited) (*.txt)",xls:"Excel 97-2003 Workbook(*.xls)",xlsx:"Excel Workbook (*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"Current data (data of current page)",selected:"Selected data (data selected on the current page)",all:"Full data (including all paging data)"},printTitle:"Print data",expTitle:"Export data",expName:"Filename",expNamePlaceholder:"Please enter filename",expSheetName:"Title",expSheetNamePlaceholder:"Please enter a title",expType:"Save the type",expMode:"Select data",expCurrentColumn:"All the field",expColumn:"Select field",expOpts:"Settings",expOptHeader:"Header",expHeaderTitle:"Do I need a header",expOptFooter:"Footer",expFooterTitle:"Do you need the footer table",expOptColgroup:"Group header",expColgroupTitle:"If it exists, headers with grouping structure are supported",expOptMerge:"Merge",expMergeTitle:"If it exists, cells with merged structures are supported",expOptAllExpand:"Expand nodes",expAllExpandTitle:"If it exists, all data with tree structure can be expanded",expOptUseStyle:"Styles",expUseStyleTitle:"If it exists, cells with styles are supported",expOptOriginal:"Source data",expOriginalTitle:"If it is source data, import into the table is supported",expPrint:"Print",expConfirm:"Export",expCancel:"Cancel"},modal:{zoomIn:"Maximization",zoomOut:"Reduction",close:"Close"},form:{folding:"Folding",unfolding:"Unfolding"},toolbar:{import:"Import",export:"Export",print:"Printing",refresh:"Refresh",zoomIn:"Full screen",zoomOut:"Reduction",custom:"Column settings",customAll:"All",customConfirm:"Confirm",customRestore:"Reset",fixedLeft:"Freeze on the left",fixedRight:"Freeze on the right",cancelFixed:"Unfreeze column"},input:{date:{m1:"January",m2:"February",m3:"March",m4:"April",m5:"May",m6:"June",m7:"July",m8:"August",m9:"September",m10:"October",m11:"November",m12:"December",quarterLabel:"{0}",monthLabel:"{0}",dayLabel:"{1} {0}",labelFormat:{date:"dd/MM/yyyy",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"[Week] WW, yyyy",month:"MM/yyyy",quarter:"[Quarter] q, yyyy",year:"yyyy"},weeks:{w:"Week",w0:"Sun",w1:"Mon",w2:"Tue",w3:"Wed",w4:"Thu",w5:"Fri",w6:"Sat"},months:{m0:"Jan",m1:"Feb",m2:"Mar",m3:"Apr",m4:"May",m5:"Jun",m6:"Jul",m7:"Aug",m8:"Sep",m9:"Oct",m10:"Nov",m11:"Dec"},quarters:{q1:"First quarter",q2:"Second quarter",q3:"Third quarter",q4:"Fourth quarter"}}},formDesign:{widget:{input:"Input",textarea:"Textarea",select:"Select"}},plugins:{extendCellArea:{area:{mergeErr:"The operation cannot be performed on merged cells",multiErr:"The operation cannot be performed on multiple selection areas",extendErr:"If the extended area contains merged cells, all merged cells need to be the same size",pasteMultiErr:"Cannot paste, copied area and pasted area of the same size are required to perform this operation",cpInvalidErr:"This operation cannot be performed because there are prohibited columns in the area you selected ({0})"},fnr:{title:"Find and replace",findLabel:"Find",replaceLabel:"Replace",findTitle:"What to find:",replaceTitle:"Replace with:",tabs:{find:"Find",replace:"Replace"},filter:{re:"Regular Expression",whole:"Whole word",sensitive:"Case sensitive"},btns:{findNext:"Find next",findAll:"Find all",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},header:{seq:"#",cell:"Cell",value:"Value"},empty:"(Empty)",reError:"Invalid regular expression",recordCount:"Found {0} cells",notCell:"No matching cells were found",replaceSuccess:"Successfully replaced {0} cells"}},filterComplexInput:{menus:{fixedColumn:"Freeze column",fixedGroup:"Freeze group",cancelFixed:"Clear freeze",fixedLeft:"Freeze the left",fixedRight:"Freeze the right"},cases:{equal:"Equal",gt:"Greater than",lt:"Less than",begin:"Beginning is",endin:"End is",include:"Include",isSensitive:"Case sensitive"}},filterCombination:{menus:{clearSort:"Clear sort",sortAsc:"Ascending order",sortDesc:"Descending order",fixedColumn:"Freeze column",fixedGroup:"Freeze group",cancelFixed:"Clear freeze",fixedLeft:"Freeze the left",fixedRight:"Freeze the right",clearFilter:"Clear filter",textOption:"Text filter",numberOption:"Number filter"},popup:{title:"Custom filtering",currColumnTitle:"Current column:",and:"And",or:"Or",describeHtml:"Use ? To represent a single character <br/> use * to represent any number of characters"},cases:{equal:"Equal",unequal:"Not equal",gt:"Greater than",ge:"Greater than or equal",lt:"Less than",le:"Less than or equal",begin:"Beginning is",notbegin:"Beginning is not",endin:"End is",notendin:"End is not",include:"Include",exclude:"Exclusive",between:"Betweenness",custom:"Custom filter",insensitive:"Case insensitive",isSensitive:"Case sensitive"},empty:"(Empty)",notData:"No data"}},renderer:{search:"Search",cases:{equal:"Equal",unequal:"Not equal",gt:"Greater than",ge:"Greater than or equal",lt:"Less than",le:"Less than or equal",begin:"Beginning is",notbegin:"Beginning is not",endin:"End is",notendin:"End is not",include:"Include",exclude:"Exclusive",between:"Betweenness",custom:"Custom filter",insensitive:"Case insensitive",isSensitive:"Case sensitive"},combination:{menus:{clearSort:"Clear sort",sortAsc:"Ascending order",sortDesc:"Descending order",fixedColumn:"Fixed column",fixedGroup:"Fixed group",cancelFixed:"Clear fixed",fixedLeft:"Fixed the left",fixedRight:"Fixed the right",clearFilter:"Clear filter",textOption:"Text filter",numberOption:"Number filter"},popup:{title:"Custom filtering",currColumnTitle:"Current column:",and:"And",or:"Or",describeHtml:"Use ? To represent a single character <br/> use * to represent any number of characters"},empty:"(Empty)",notData:"No data"}},pro:{area:{mergeErr:"The operation cannot be performed on merged cells",multiErr:"The operation cannot be performed on multiple selection areas",extendErr:"If the extended area contains merged cells, all merged cells need to be the same size",pasteMultiErr:"Cannot paste, copied area and pasted area of the same size are required to perform this operation"},fnr:{title:"Find and replace",findLabel:"Find",replaceLabel:"Replace",findTitle:"What to find:",replaceTitle:"Replace with:",tabs:{find:"Find",replace:"Replace"},filter:{re:"Regular Expression",whole:"Whole word",sensitive:"Case sensitive"},btns:{findNext:"Find next",findAll:"Find all",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},header:{seq:"#",cell:"Cell",value:"Value"},empty:"(Empty)",reError:"Invalid regular expression",recordCount:"Found {0} cells",notCell:"No matching cells were found",replaceSuccess:"Successfully replaced {0} cells"}}}}});
|
|
1
|
+
!function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.en-US",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangEnUS=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{base:{pleaseInput:"Please input",pleaseSelect:"Select",comma:",",fullStop:"."},loading:{text:"Loading..."},error:{downErr:"Download failed.",groupFixed:"If you use group headers, the freeze columns must be set by group.",groupMouseRange:'Grouping headers and "{0}" cannot be used at the same time, which may cause errors.',groupTag:'Grouping column header should use "{0}" instead of "{1}", which may cause errors.',scrollErrProp:'The parameter "{0}" is not supported when virtual scrolling is enabled.',errConflicts:'Argument "{0}" conflicts with "{1}"',unableInsert:"Unable to insert to the specified location.",useErr:'Error installing "{0}" module, possibly in the wrong order, dependent modules need to be installed before Table.',barUnableLink:"Toolbar cannot associate table.",expandContent:'Expand row slot should be "content", please check if it is correct.',reqComp:'Require "{0}" component, check whether the install is correct. https://vxeui.com/#/start/useGlobal',reqModule:'require "{0}" module.',reqProp:'Missing the necessary "{0}" parameter, which can cause error.',emptyProp:'The property "{0}" is not allowed to be empty.',errProp:'Unsupported parameter "{0}", possibly "{1}".',colRepet:'column.{0}="{0}" is duplicated, which may make some features unusable',notFunc:'method "{0}" not exist.',errFunc:'The argument "{0}" is not a method',notValidators:'Global validators "{0}" no existe.',notFormats:'Global formats "{0}" no existe.',notCommands:'Global commands "{0}" no existe.',notSlot:'slot "{0}" does not exist',noTree:'The tree structure does not support "{0}".',notProp:'Unsupported parameters "{0}"',checkProp:'The checkbox may stall when the amount of data is too large, it is recommended to set the parameter "{0}" to increase the rendering speed ',coverProp:'The parameter "{1}" to "{0}" is repeatedly defined. This may cause an error.',uniField:'The field "{0}" is repeatedly defined, which may cause an error.',delFunc:'The function "{0}" is deprecated, please use "{1}".',delProp:'The property "{0}" is deprecated, please use "{1}".',delEvent:'The event "{0}" is deprecated, please use "{1}"',removeProp:'The property "{0}" is deprecated and is not recommended, which may cause error.',errFormat:'The global formatted content should be defined with "VXETable.formats". Mounting "formatter={0}" is not recommended.',notType:'Unsupported file types "{0}"',notExp:"The browser does not support import / export.",impFields:"Import failed, please check that the field name and data format are correct.",treeNotImp:"Tree table does not support import."},table:{emptyText:"No Data",allTitle:"Select all / cancel",seqTitle:"N/S",actionTitle:"Action",confirmFilter:"Confirm",resetFilter:"Reset",allFilter:"All",sortAsc:"Ascending: lowest to highest",sortDesc:"Descending: highest to lowest",filter:"Enable filtering on selected columns",impSuccess:"Successfully imported {0} records",expLoading:"Exporting",expSuccess:"Export success",expFilename:"Export_{0}",expOriginFilename:"Export_original_{0}",customTitle:"Column settings",customAll:"All",customConfirm:"Confirm",customClose:"Close",customCancel:"Cancel",customRestore:"Restore",maxFixedCol:"The maximum number of Freeze columns cannot exceed {0}"},grid:{selectOneRecord:"Please choose at least one piece of record!",deleteSelectRecord:"Are you sure you want to delete the selected record?",removeSelectRecord:"Are you sure you want to remove the selected record?",dataUnchanged:"Data unchanged! ",delSuccess:"Successfully deleted the selected record!",saveSuccess:"Saved successfully!",operError:"Error occurred, operation failed!"},select:{search:"Search",loadingText:"Loading",emptyText:"No Data"},pager:{goto:"Go to",gotoTitle:"Number",pagesize:"{0}/page",total:"Total {0} record",pageClassifier:"",homePage:"Home",homePageTitle:"Home page",prevPage:"Previous page",prevPageTitle:"Previous page",nextPage:"next page",nextPageTitle:"next page",prevJump:"Jump previous page",prevJumpTitle:"Jump previous page",nextJump:"Jump next page",nextJumpTitle:"Jump next page",endPage:"End page",endPageTitle:"End"},alert:{title:"System messages"},button:{confirm:"Confirm",cancel:"Cancel"},filter:{search:"搜索"},custom:{cstmTitle:"Column Settings",cstmRestore:"Restore default",cstmCancel:"Cancelar",cstmConfirm:"Confirm",cstmConfirmRestore:"Please confirm whether to restore the default column configuration?",cstmDragTarget:"Moving target: {0}",setting:{colSort:"Sort",sortHelpTip:"Click and drag the icon to adjust the order of the columns.",colTitle:"Title",colResizable:"Column width (px)",colVisible:"Display",colFixed:"Freeze columns",colFixedMax:"Freeze columns (Max. {0})",fixedLeft:"Left",fixedUnset:"Unset",fixedRight:"Right"}},import:{modes:{covering:"Overwrite mode (directly overwrite table data)",insert:"Bottom append (appends new data to the bottom of the table)",insertTop:"Top append (appends new data to the top of the table)",insertBottom:"Bottom append (appends new data to the bottom of the table)"},impTitle:"Import data",impFile:"Filename",impSelect:"Select file",impType:"File type",impOpts:"Settings",impMode:"Import mode",impConfirm:"Import",impCancel:"Cancel"},export:{types:{csv:"CSV (Comma separated) (*.csv)",html:"Web Page (*.html)",xml:"XML Data(*.xml)",txt:"Text (Tab delimited) (*.txt)",xls:"Excel 97-2003 Workbook(*.xls)",xlsx:"Excel Workbook (*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"Current data (data of current page)",selected:"Selected data (data selected on the current page)",all:"Full data (including all paging data)"},printTitle:"Print data",expTitle:"Export data",expName:"Filename",expNamePlaceholder:"Please enter filename",expSheetName:"Title",expSheetNamePlaceholder:"Please enter a title",expType:"Save the type",expMode:"Select data",expCurrentColumn:"All the field",expColumn:"Select field",expOpts:"Settings",expOptHeader:"Header",expHeaderTitle:"Do I need a header",expOptFooter:"Footer",expFooterTitle:"Do you need the footer table",expOptColgroup:"Group header",expColgroupTitle:"If it exists, headers with grouping structure are supported",expOptMerge:"Merge",expMergeTitle:"If it exists, cells with merged structures are supported",expOptAllExpand:"Expand nodes",expAllExpandTitle:"If it exists, all data with tree structure can be expanded",expOptUseStyle:"Styles",expUseStyleTitle:"If it exists, cells with styles are supported",expOptOriginal:"Source data",expOriginalTitle:"If it is source data, import into the table is supported",expPrint:"Print",expConfirm:"Export",expCancel:"Cancel"},modal:{errTitle:"Error",zoomMin:"Minimize",zoomIn:"Maximize",zoomOut:"Reduction",close:"Close",miniMaxSize:"The number of minimized Windows cannot exceed {0}."},drawer:{close:"Close"},form:{folding:"Folding",unfolding:"Unfolding"},toolbar:{import:"Import",export:"Export",print:"Printing",refresh:"Refresh",zoomIn:"Full screen",zoomOut:"Reduction",custom:"Column settings",customAll:"All",customConfirm:"Confirm",customRestore:"Reset",fixedLeft:"Freeze on the left",fixedRight:"Freeze on the right",cancelFixed:"Unfreeze column"},input:{date:{m1:"January",m2:"February",m3:"March",m4:"April",m5:"May",m6:"June",m7:"July",m8:"August",m9:"September",m10:"October",m11:"November",m12:"December",quarterLabel:"{0}",monthLabel:"{0}",dayLabel:"{1} {0}",labelFormat:{date:"dd/MM/yyyy",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"[Week] WW, yyyy",month:"MM/yyyy",quarter:"[Quarter] q, yyyy",year:"yyyy"},weeks:{w:"Week",w0:"Sun",w1:"Mon",w2:"Tue",w3:"Wed",w4:"Thu",w5:"Fri",w6:"Sat"},months:{m0:"Jan",m1:"Feb",m2:"Mar",m3:"Apr",m4:"May",m5:"Jun",m6:"Jul",m7:"Aug",m8:"Sep",m9:"Oct",m10:"Nov",m11:"Dec"},quarters:{q1:"First quarter",q2:"Second quarter",q3:"Third quarter",q4:"Fourth quarter"}}},imagePreview:{popupTitle:"Preview",operBtn:{zoomOut:"Reduce",zoomIn:"Enlarge",pctFull:"Proportional scaling",pct11:"Show original size",rotateLeft:"Rotate left",rotateRight:"Rotate right",print:"Click to print",download:"Click to download"}},upload:{fileBtnText:"Click or drag",imgBtnText:"Click or drag",dragPlaceholder:"Please drag and drop the file into this area to upload it.",imgSizeHint:"Single {0}",imgCountHint:"Up to {0}",fileTypeHint:"Support {0} file types",fileSizeHint:"Single file size does not exceed {0}",fileCountHint:"Up to {0} file can be uploaded",overCountErr:"You can only choose {0} file!",overCountExtraErr:"It has exceeded the maximum number {0}, and more than {0} file will be ignored!超出最大数量 1 个,超出的 1 个文件将被忽略!",overSizeErr:"The size of the file is not more than {0}}!",reUpload:"Re upload",uploadProgress:"Uploading {0}%",uploadErr:"Fail to upload",uploadSuccess:"Successfully upload",moreBtnText:"More ({0})",viewItemTitle:"click to view"},formDesign:{formName:"Form name",defFormTitle:"Unnamed form",widgetPropTab:"Field property",widgetFormTab:"Form property",error:{wdFormUni:"Only one control of this type is allowed to be added to the form.",wdSubUni:"Only one control of this type is allowed to be added to a sub table."},styleSetting:{btn:"Style setting",title:"Form style setting",layoutTitle:"Field layout",verticalLayout:"Vertical layout",horizontalLayout:"Horizontal layout",styleTitle:"Title style",boldTitle:"Bold title",fontBold:"Bold",fontNormal:"Normal",colonTitle:"Display colon",colonVisible:"Visible",colonHidden:"Hidden",alignTitle:"Title align",widthTitle:"Title width",alignLeft:"Left",alignRight:"Right",unitPx:"Px",unitPct:"Pct"},widget:{group:{base:"Base control",layout:"Layout control",system:"System control",module:"Module control",chart:"Chart control",advanced:"Advanced control"},copyTitle:"Copy_{0}",component:{input:"Input",textarea:"Textarea",select:"Select",row:"Row/column",title:"Title",text:"Text",subtable:"Subtable",VxeSwitch:"Yes/no",VxeInput:"Input",VxeNumberInput:"Number",VxeDatePicker:"Date",VxeTextarea:"Textarea",VxeSelect:"Select",VxeTreeSelect:"Tree select",VxeRadioGroup:"Radio",VxeCheckboxGroup:"Checkbox",VxeUploadFile:"File",VxeUploadImage:"Image"}},widgetProp:{name:"Field name",placeholder:"Field placeholder",required:"Required",multiple:"Allow to select multiple",displaySetting:{name:"Display setting",pc:"PC",mobile:"Mobile",visible:"Visible",hidden:"Hidden"},dataSource:{name:"Data source",defValue:"Option {0}",addOption:"Add option",batchEditOption:"Batch edit",batchEditTip:"Each row corresponds to an option, supporting direct copying and pasting from tables, Excel, and WPS.",batchEditSubTip:"Each row corresponds to an option. If grouped, the sub items can start with spaces or tab keys, and can be directly copied and pasted from tables, Excel, or WPS.",buildOption:"Build option"},rowProp:{colSize:"Number of columns",col2:"Two columns",col3:"Three columns",col4:"Four columns",col6:"Six columns",layout:"Layout"},textProp:{name:"Content",alignTitle:"Align",alignLeft:"Left",alignCenter:"Center",alignRight:"Right",colorTitle:"Color",sizeTitle:"Font size",boldTitle:"Font bold",fontNormal:"Normal",fontBold:"Bold"},subtableProp:{seqTitle:"S/N",showSeq:"Display serial number",showCheckbox:"Allow multiple selections",errSubDrag:"The sub table does not support this control. Please use another control.",colPlace:"Drag the control in."},uploadProp:{limitFileCount:"File quantity limitation",limitFileSize:"File size limitation",multiFile:"Allows multiple files",limitImgCount:"Image quantity limitation",limitImgSize:"Image size limitation",multiImg:"Allows multiple images"}}},listDesign:{fieldSettingTab:"Field",listSettingTab:"Parameter",searchTitle:"Search",listTitle:"List",searchField:"Search field",listField:"List field",activeBtn:{ActionButtonUpdate:"Edit",ActionButtonDelete:"Delete"},search:{addBtn:"Edit",emptyText:"No filter condition is configured.",editPopupTitle:"Edit search fields"},searchPopup:{colTitle:"Title",saveBtn:"Save"}},text:{copySuccess:"Successfully copied to clipboard.",copyError:"The current environment does not support this operation."},countdown:{formats:{yyyy:"Year",MM:"Moon",dd:"Day",HH:"Hour",mm:"Minute",ss:"Second"}},plugins:{extendCellArea:{area:{mergeErr:"The operation cannot be performed on merged cells",multiErr:"The operation cannot be performed on multiple selection areas",extendErr:"If the extended area contains merged cells, all merged cells need to be the same size",pasteMultiErr:"Cannot paste, copied area and pasted area of the same size are required to perform this operation",cpInvalidErr:"This operation cannot be performed because there are prohibited columns in the area you selected ({0})"},fnr:{title:"Find and replace",findLabel:"Find",replaceLabel:"Replace",findTitle:"What to find:",replaceTitle:"Replace with:",tabs:{find:"Find",replace:"Replace"},filter:{re:"Regular Expression",whole:"Whole word",sensitive:"Case sensitive"},btns:{findNext:"Find next",findAll:"Find all",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},header:{seq:"#",cell:"Cell",value:"Value"},empty:"(Empty)",reError:"Invalid regular expression",recordCount:"Found {0} cells",notCell:"No matching cells were found",replaceSuccess:"Successfully replaced {0} cells"}},filterComplexInput:{menus:{fixedColumn:"Freeze column",fixedGroup:"Freeze group",cancelFixed:"Clear freeze",fixedLeft:"Freeze the left",fixedRight:"Freeze the right"},cases:{equal:"Equal",gt:"Greater than",lt:"Less than",begin:"Beginning is",endin:"End is",include:"Include",isSensitive:"Case sensitive"}},filterCombination:{menus:{clearSort:"Clear sort",sortAsc:"Ascending order",sortDesc:"Descending order",fixedColumn:"Freeze column",fixedGroup:"Freeze group",cancelFixed:"Clear freeze",fixedLeft:"Freeze the left",fixedRight:"Freeze the right",clearFilter:"Clear filter",textOption:"Text filter",numberOption:"Number filter"},popup:{title:"Custom filtering",currColumnTitle:"Current column:",and:"And",or:"Or",describeHtml:"Use ? To represent a single character <br/> use * to represent any number of characters"},cases:{equal:"Equal",unequal:"Not equal",gt:"Greater than",ge:"Greater than or equal",lt:"Less than",le:"Less than or equal",begin:"Beginning is",notbegin:"Beginning is not",endin:"End is",notendin:"End is not",include:"Include",exclude:"Exclusive",between:"Betweenness",custom:"Custom filter",insensitive:"Case insensitive",isSensitive:"Case sensitive"},empty:"(Empty)",notData:"No data"}},renderer:{search:"Search",cases:{equal:"Equal",unequal:"Not equal",gt:"Greater than",ge:"Greater than or equal",lt:"Less than",le:"Less than or equal",begin:"Beginning is",notbegin:"Beginning is not",endin:"End is",notendin:"End is not",include:"Include",exclude:"Exclusive",between:"Betweenness",custom:"Custom filter",insensitive:"Case insensitive",isSensitive:"Case sensitive"},combination:{menus:{clearSort:"Clear sort",sortAsc:"Ascending order",sortDesc:"Descending order",fixedColumn:"Fixed column",fixedGroup:"Fixed group",cancelFixed:"Clear fixed",fixedLeft:"Fixed the left",fixedRight:"Fixed the right",clearFilter:"Clear filter",textOption:"Text filter",numberOption:"Number filter"},popup:{title:"Custom filtering",currColumnTitle:"Current column:",and:"And",or:"Or",describeHtml:"Use ? To represent a single character <br/> use * to represent any number of characters"},empty:"(Empty)",notData:"No data"}},pro:{area:{mergeErr:"The operation cannot be performed on merged cells",multiErr:"The operation cannot be performed on multiple selection areas",extendErr:"If the extended area contains merged cells, all merged cells need to be the same size",pasteMultiErr:"Cannot paste, copied area and pasted area of the same size are required to perform this operation"},fnr:{title:"Find and replace",findLabel:"Find",replaceLabel:"Replace",findTitle:"What to find:",replaceTitle:"Replace with:",tabs:{find:"Find",replace:"Replace"},filter:{re:"Regular Expression",whole:"Whole word",sensitive:"Case sensitive"},btns:{findNext:"Find next",findAll:"Find all",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},header:{seq:"#",cell:"Cell",value:"Value"},empty:"(Empty)",reError:"Invalid regular expression",recordCount:"Found {0} cells",notCell:"No matching cells were found",replaceSuccess:"Successfully replaced {0} cells"}}}}});
|