front-ui-admin 1.0.18 → 1.0.20
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/front-ui-admin.common.js +2315 -305
- package/front-ui-admin.common.js.map +1 -1
- package/front-ui-admin.css +1 -1
- package/front-ui-admin.umd.js +2315 -305
- package/front-ui-admin.umd.js.map +1 -1
- package/front-ui-admin.umd.min.js +3 -3
- package/front-ui-admin.umd.min.js.map +1 -1
- package/package.json +1 -1
package/front-ui-admin.common.js
CHANGED
|
@@ -2211,6 +2211,17 @@ module.exports = function (methodName, argument) {
|
|
|
2211
2211
|
};
|
|
2212
2212
|
|
|
2213
2213
|
|
|
2214
|
+
/***/ }),
|
|
2215
|
+
|
|
2216
|
+
/***/ "2c40":
|
|
2217
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2218
|
+
|
|
2219
|
+
"use strict";
|
|
2220
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_d188734e_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ea77");
|
|
2221
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_d188734e_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_d188734e_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
2222
|
+
/* unused harmony reexport * */
|
|
2223
|
+
|
|
2224
|
+
|
|
2214
2225
|
/***/ }),
|
|
2215
2226
|
|
|
2216
2227
|
/***/ "2c66":
|
|
@@ -3076,13 +3087,6 @@ module.exports = function (argument) {
|
|
|
3076
3087
|
};
|
|
3077
3088
|
|
|
3078
3089
|
|
|
3079
|
-
/***/ }),
|
|
3080
|
-
|
|
3081
|
-
/***/ "5c2d":
|
|
3082
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3083
|
-
|
|
3084
|
-
// extracted by mini-css-extract-plugin
|
|
3085
|
-
|
|
3086
3090
|
/***/ }),
|
|
3087
3091
|
|
|
3088
3092
|
/***/ "5c6c":
|
|
@@ -3100,17 +3104,6 @@ module.exports = function (bitmap, value) {
|
|
|
3100
3104
|
};
|
|
3101
3105
|
|
|
3102
3106
|
|
|
3103
|
-
/***/ }),
|
|
3104
|
-
|
|
3105
|
-
/***/ "5d96":
|
|
3106
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3107
|
-
|
|
3108
|
-
"use strict";
|
|
3109
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_49a4be89_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5c2d");
|
|
3110
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_49a4be89_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_49a4be89_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
3111
|
-
/* unused harmony reexport * */
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
3107
|
/***/ }),
|
|
3115
3108
|
|
|
3116
3109
|
/***/ "5e77":
|
|
@@ -6813,6 +6806,50 @@ module.exports = !fails(function () {
|
|
|
6813
6806
|
});
|
|
6814
6807
|
|
|
6815
6808
|
|
|
6809
|
+
/***/ }),
|
|
6810
|
+
|
|
6811
|
+
/***/ "e221":
|
|
6812
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6813
|
+
|
|
6814
|
+
"use strict";
|
|
6815
|
+
|
|
6816
|
+
|
|
6817
|
+
__webpack_require__("14d9");
|
|
6818
|
+
__webpack_require__("13d5");
|
|
6819
|
+
exports.__esModule = true;
|
|
6820
|
+
exports.default = scrollIntoView;
|
|
6821
|
+
var _vue = __webpack_require__("8bbf");
|
|
6822
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
6823
|
+
function _interopRequireDefault(obj) {
|
|
6824
|
+
return obj && obj.__esModule ? obj : {
|
|
6825
|
+
default: obj
|
|
6826
|
+
};
|
|
6827
|
+
}
|
|
6828
|
+
function scrollIntoView(container, selected) {
|
|
6829
|
+
if (_vue2.default.prototype.$isServer) return;
|
|
6830
|
+
if (!selected) {
|
|
6831
|
+
container.scrollTop = 0;
|
|
6832
|
+
return;
|
|
6833
|
+
}
|
|
6834
|
+
var offsetParents = [];
|
|
6835
|
+
var pointer = selected.offsetParent;
|
|
6836
|
+
while (pointer && container !== pointer && container.contains(pointer)) {
|
|
6837
|
+
offsetParents.push(pointer);
|
|
6838
|
+
pointer = pointer.offsetParent;
|
|
6839
|
+
}
|
|
6840
|
+
var top = selected.offsetTop + offsetParents.reduce(function (prev, curr) {
|
|
6841
|
+
return prev + curr.offsetTop;
|
|
6842
|
+
}, 0);
|
|
6843
|
+
var bottom = top + selected.offsetHeight;
|
|
6844
|
+
var viewRectTop = container.scrollTop;
|
|
6845
|
+
var viewRectBottom = viewRectTop + container.clientHeight;
|
|
6846
|
+
if (top < viewRectTop) {
|
|
6847
|
+
container.scrollTop = top;
|
|
6848
|
+
} else if (bottom > viewRectBottom) {
|
|
6849
|
+
container.scrollTop = bottom - container.clientHeight;
|
|
6850
|
+
}
|
|
6851
|
+
}
|
|
6852
|
+
|
|
6816
6853
|
/***/ }),
|
|
6817
6854
|
|
|
6818
6855
|
/***/ "e330":
|
|
@@ -7055,6 +7092,13 @@ $({ global: true, constructor: true, forced: FORCED }, {
|
|
|
7055
7092
|
});
|
|
7056
7093
|
|
|
7057
7094
|
|
|
7095
|
+
/***/ }),
|
|
7096
|
+
|
|
7097
|
+
/***/ "ea77":
|
|
7098
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7099
|
+
|
|
7100
|
+
// extracted by mini-css-extract-plugin
|
|
7101
|
+
|
|
7058
7102
|
/***/ }),
|
|
7059
7103
|
|
|
7060
7104
|
/***/ "ebb5":
|
|
@@ -7449,7 +7493,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7449
7493
|
|
|
7450
7494
|
// EXPORTS
|
|
7451
7495
|
__webpack_require__.d(__webpack_exports__, "PTable", function() { return /* reexport */ p_table; });
|
|
7452
|
-
__webpack_require__.d(__webpack_exports__, "PTableColumn", function() { return /* reexport */
|
|
7496
|
+
__webpack_require__.d(__webpack_exports__, "PTableColumn", function() { return /* reexport */ Table_column; });
|
|
7453
7497
|
__webpack_require__.d(__webpack_exports__, "PTestButton", function() { return /* reexport */ p_test_button; });
|
|
7454
7498
|
|
|
7455
7499
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -7468,7 +7512,7 @@ if (typeof window !== 'undefined') {
|
|
|
7468
7512
|
// Indicate to webpack that this file can be concatenated
|
|
7469
7513
|
/* harmony default export */ var setPublicPath = (null);
|
|
7470
7514
|
|
|
7471
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
7515
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/src/table.vue?vue&type=template&id=610e41b4
|
|
7472
7516
|
var render = function render() {
|
|
7473
7517
|
var _vm = this,
|
|
7474
7518
|
_c = _vm._self._c;
|
|
@@ -7723,7 +7767,7 @@ var render = function render() {
|
|
|
7723
7767
|
};
|
|
7724
7768
|
var staticRenderFns = [];
|
|
7725
7769
|
|
|
7726
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/src/table.vue?vue&type=template&id=
|
|
7770
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/src/table.vue?vue&type=template&id=610e41b4
|
|
7727
7771
|
|
|
7728
7772
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
7729
7773
|
var es_iterator_constructor = __webpack_require__("e9f5");
|
|
@@ -7731,8 +7775,8 @@ var es_iterator_constructor = __webpack_require__("e9f5");
|
|
|
7731
7775
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
7732
7776
|
var es_iterator_for_each = __webpack_require__("7d54");
|
|
7733
7777
|
|
|
7734
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
7735
|
-
var
|
|
7778
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/Chcekbox/src/checkbox.vue?vue&type=template&id=764fe356
|
|
7779
|
+
var checkboxvue_type_template_id_764fe356_render = function render() {
|
|
7736
7780
|
var _vm = this,
|
|
7737
7781
|
_c = _vm._self._c;
|
|
7738
7782
|
return _c('label', {
|
|
@@ -7851,9 +7895,9 @@ var checkboxvue_type_template_id_7d2afaba_render = function render() {
|
|
|
7851
7895
|
staticClass: "el-checkbox__label"
|
|
7852
7896
|
}, [_vm._t("default"), !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()], 2) : _vm._e()]);
|
|
7853
7897
|
};
|
|
7854
|
-
var
|
|
7898
|
+
var checkboxvue_type_template_id_764fe356_staticRenderFns = [];
|
|
7855
7899
|
|
|
7856
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
7900
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Chcekbox/src/checkbox.vue?vue&type=template&id=764fe356
|
|
7857
7901
|
|
|
7858
7902
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
7859
7903
|
var es_array_push = __webpack_require__("14d9");
|
|
@@ -7891,7 +7935,7 @@ function broadcast(componentName, eventName, params) {
|
|
|
7891
7935
|
}
|
|
7892
7936
|
}
|
|
7893
7937
|
});
|
|
7894
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/
|
|
7938
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/Chcekbox/src/checkbox.vue?vue&type=script&lang=js
|
|
7895
7939
|
|
|
7896
7940
|
|
|
7897
7941
|
/* harmony default export */ var checkboxvue_type_script_lang_js = ({
|
|
@@ -8026,7 +8070,7 @@ function broadcast(componentName, eventName, params) {
|
|
|
8026
8070
|
}
|
|
8027
8071
|
}
|
|
8028
8072
|
});
|
|
8029
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
8073
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Chcekbox/src/checkbox.vue?vue&type=script&lang=js
|
|
8030
8074
|
/* harmony default export */ var src_checkboxvue_type_script_lang_js = (checkboxvue_type_script_lang_js);
|
|
8031
8075
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
8032
8076
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -8126,7 +8170,7 @@ function normalizeComponent(
|
|
|
8126
8170
|
}
|
|
8127
8171
|
}
|
|
8128
8172
|
|
|
8129
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
8173
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Chcekbox/src/checkbox.vue
|
|
8130
8174
|
|
|
8131
8175
|
|
|
8132
8176
|
|
|
@@ -8136,8 +8180,8 @@ function normalizeComponent(
|
|
|
8136
8180
|
|
|
8137
8181
|
var component = normalizeComponent(
|
|
8138
8182
|
src_checkboxvue_type_script_lang_js,
|
|
8139
|
-
|
|
8140
|
-
|
|
8183
|
+
checkboxvue_type_template_id_764fe356_render,
|
|
8184
|
+
checkboxvue_type_template_id_764fe356_staticRenderFns,
|
|
8141
8185
|
false,
|
|
8142
8186
|
null,
|
|
8143
8187
|
null,
|
|
@@ -8146,14 +8190,14 @@ var component = normalizeComponent(
|
|
|
8146
8190
|
)
|
|
8147
8191
|
|
|
8148
8192
|
/* harmony default export */ var src_checkbox = (component.exports);
|
|
8149
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
8193
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Chcekbox/index.js
|
|
8150
8194
|
|
|
8151
8195
|
|
|
8152
8196
|
/* istanbul ignore next */
|
|
8153
8197
|
src_checkbox.install = function (Vue) {
|
|
8154
8198
|
Vue.component(src_checkbox.name, src_checkbox);
|
|
8155
8199
|
};
|
|
8156
|
-
/* harmony default export */ var
|
|
8200
|
+
/* harmony default export */ var Chcekbox = (src_checkbox);
|
|
8157
8201
|
// EXTERNAL MODULE: ./node_modules/throttle-debounce/index.js
|
|
8158
8202
|
var throttle_debounce = __webpack_require__("9619");
|
|
8159
8203
|
|
|
@@ -8399,7 +8443,7 @@ var es_typed_array_with = __webpack_require__("4ea1");
|
|
|
8399
8443
|
function isString(obj) {
|
|
8400
8444
|
return Object.prototype.toString.call(obj) === '[object String]';
|
|
8401
8445
|
}
|
|
8402
|
-
function
|
|
8446
|
+
function types_isObject(obj) {
|
|
8403
8447
|
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
8404
8448
|
}
|
|
8405
8449
|
function isHtmlElement(node) {
|
|
@@ -8420,7 +8464,7 @@ if ( true && typeof Int8Array !== 'object' && (external_vue_default.a.prototype.
|
|
|
8420
8464
|
};
|
|
8421
8465
|
}
|
|
8422
8466
|
|
|
8423
|
-
const
|
|
8467
|
+
const types_isUndefined = val => {
|
|
8424
8468
|
return val === void 0;
|
|
8425
8469
|
};
|
|
8426
8470
|
const isDefined = val => {
|
|
@@ -8562,8 +8606,8 @@ const capitalize = function (str) {
|
|
|
8562
8606
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
8563
8607
|
};
|
|
8564
8608
|
const looseEqual = function (a, b) {
|
|
8565
|
-
const isObjectA =
|
|
8566
|
-
const isObjectB =
|
|
8609
|
+
const isObjectA = types_isObject(a);
|
|
8610
|
+
const isObjectB = types_isObject(b);
|
|
8567
8611
|
if (isObjectA && isObjectB) {
|
|
8568
8612
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
8569
8613
|
} else if (!isObjectA && !isObjectB) {
|
|
@@ -8585,7 +8629,7 @@ const arrayEquals = function (arrayA, arrayB) {
|
|
|
8585
8629
|
}
|
|
8586
8630
|
return true;
|
|
8587
8631
|
};
|
|
8588
|
-
const
|
|
8632
|
+
const util_isEqual = function (value1, value2) {
|
|
8589
8633
|
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
8590
8634
|
return arrayEquals(value1, value2);
|
|
8591
8635
|
}
|
|
@@ -8737,7 +8781,7 @@ const i18n = function (fn) {
|
|
|
8737
8781
|
* Show migrating guide in browser console.
|
|
8738
8782
|
*
|
|
8739
8783
|
* Usage:
|
|
8740
|
-
* import Migrating from '@/package
|
|
8784
|
+
* import Migrating from '@/admin-package/p-table/mixins/migrating';
|
|
8741
8785
|
*
|
|
8742
8786
|
* mixins: [Migrating]
|
|
8743
8787
|
*
|
|
@@ -8850,7 +8894,7 @@ const orderBy = function (array, sortKey, reverse, sortMethod, sortBy) {
|
|
|
8850
8894
|
return array;
|
|
8851
8895
|
}
|
|
8852
8896
|
if (typeof reverse === 'string') {
|
|
8853
|
-
reverse = reverse === '
|
|
8897
|
+
reverse = reverse === '_descending' ? -1 : 1;
|
|
8854
8898
|
} else {
|
|
8855
8899
|
reverse = reverse && reverse < 0 ? -1 : 1;
|
|
8856
8900
|
}
|
|
@@ -11308,7 +11352,7 @@ main.install = function (Vue) {
|
|
|
11308
11352
|
name: 'PTableRow',
|
|
11309
11353
|
props: ['columns', 'row', 'index', 'isSelected', 'isExpanded', 'store', 'context', 'firstDefaultColumnIndex', 'treeRowData', 'treeIndent', 'columnsHidden', 'getSpan', 'getColspanRealWidth', 'getCellStyle', 'getCellClass', 'handleCellMouseLeave', 'handleCellMouseEnter', 'fixed'],
|
|
11310
11354
|
components: {
|
|
11311
|
-
PCheckbox:
|
|
11355
|
+
PCheckbox: Chcekbox
|
|
11312
11356
|
},
|
|
11313
11357
|
render() {
|
|
11314
11358
|
const h = arguments[0];
|
|
@@ -11399,7 +11443,7 @@ main.install = function (Vue) {
|
|
|
11399
11443
|
name: 'PTableBody',
|
|
11400
11444
|
mixins: [layout_observer],
|
|
11401
11445
|
components: {
|
|
11402
|
-
PCheckbox:
|
|
11446
|
+
PCheckbox: Chcekbox,
|
|
11403
11447
|
PTooltip: p_tooltip,
|
|
11404
11448
|
TableRow: table_row
|
|
11405
11449
|
},
|
|
@@ -11842,8 +11886,8 @@ main.install = function (Vue) {
|
|
|
11842
11886
|
}
|
|
11843
11887
|
}
|
|
11844
11888
|
});
|
|
11845
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
11846
|
-
var
|
|
11889
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/src/filter-panel.vue?vue&type=template&id=611abe6d
|
|
11890
|
+
var filter_panelvue_type_template_id_611abe6d_render = function render() {
|
|
11847
11891
|
var _vm = this,
|
|
11848
11892
|
_c = _vm._self._c;
|
|
11849
11893
|
return _c('transition', {
|
|
@@ -11944,9 +11988,9 @@ var filter_panelvue_type_template_id_985fe724_render = function render() {
|
|
|
11944
11988
|
}, [_vm._v(" " + _vm._s(filter.text) + " ")]);
|
|
11945
11989
|
})], 2)])]);
|
|
11946
11990
|
};
|
|
11947
|
-
var
|
|
11991
|
+
var filter_panelvue_type_template_id_611abe6d_staticRenderFns = [];
|
|
11948
11992
|
|
|
11949
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/src/filter-panel.vue?vue&type=template&id=
|
|
11993
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/src/filter-panel.vue?vue&type=template&id=611abe6d
|
|
11950
11994
|
|
|
11951
11995
|
// CONCATENATED MODULE: ./src/utils/clickoutside.js
|
|
11952
11996
|
|
|
@@ -12033,8 +12077,8 @@ var dropdowns = [];
|
|
|
12033
12077
|
}
|
|
12034
12078
|
}
|
|
12035
12079
|
});
|
|
12036
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
12037
|
-
var
|
|
12080
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/Chcekbox/src/checkbox-group.vue?vue&type=template&id=5d37b61c
|
|
12081
|
+
var checkbox_groupvue_type_template_id_5d37b61c_render = function render() {
|
|
12038
12082
|
var _vm = this,
|
|
12039
12083
|
_c = _vm._self._c;
|
|
12040
12084
|
return _c('div', {
|
|
@@ -12045,11 +12089,11 @@ var checkbox_groupvue_type_template_id_66a90d90_render = function render() {
|
|
|
12045
12089
|
}
|
|
12046
12090
|
}, [_vm._t("default")], 2);
|
|
12047
12091
|
};
|
|
12048
|
-
var
|
|
12092
|
+
var checkbox_groupvue_type_template_id_5d37b61c_staticRenderFns = [];
|
|
12049
12093
|
|
|
12050
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
12094
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Chcekbox/src/checkbox-group.vue?vue&type=template&id=5d37b61c
|
|
12051
12095
|
|
|
12052
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/
|
|
12096
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-table/Chcekbox/src/checkbox-group.vue?vue&type=script&lang=js
|
|
12053
12097
|
|
|
12054
12098
|
/* harmony default export */ var checkbox_groupvue_type_script_lang_js = ({
|
|
12055
12099
|
name: 'ElCheckboxGroup',
|
|
@@ -12083,9 +12127,9 @@ var checkbox_groupvue_type_template_id_66a90d90_staticRenderFns = [];
|
|
|
12083
12127
|
}
|
|
12084
12128
|
}
|
|
12085
12129
|
});
|
|
12086
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
12130
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Chcekbox/src/checkbox-group.vue?vue&type=script&lang=js
|
|
12087
12131
|
/* harmony default export */ var src_checkbox_groupvue_type_script_lang_js = (checkbox_groupvue_type_script_lang_js);
|
|
12088
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
12132
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Chcekbox/src/checkbox-group.vue
|
|
12089
12133
|
|
|
12090
12134
|
|
|
12091
12135
|
|
|
@@ -12095,8 +12139,8 @@ var checkbox_groupvue_type_template_id_66a90d90_staticRenderFns = [];
|
|
|
12095
12139
|
|
|
12096
12140
|
var checkbox_group_component = normalizeComponent(
|
|
12097
12141
|
src_checkbox_groupvue_type_script_lang_js,
|
|
12098
|
-
|
|
12099
|
-
|
|
12142
|
+
checkbox_groupvue_type_template_id_5d37b61c_render,
|
|
12143
|
+
checkbox_groupvue_type_template_id_5d37b61c_staticRenderFns,
|
|
12100
12144
|
false,
|
|
12101
12145
|
null,
|
|
12102
12146
|
null,
|
|
@@ -12105,14 +12149,14 @@ var checkbox_group_component = normalizeComponent(
|
|
|
12105
12149
|
)
|
|
12106
12150
|
|
|
12107
12151
|
/* harmony default export */ var checkbox_group = (checkbox_group_component.exports);
|
|
12108
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
12152
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Checkbox-group/index.js
|
|
12109
12153
|
|
|
12110
12154
|
|
|
12111
12155
|
/* istanbul ignore next */
|
|
12112
12156
|
checkbox_group.install = function (Vue) {
|
|
12113
12157
|
Vue.component(checkbox_group.name, checkbox_group);
|
|
12114
12158
|
};
|
|
12115
|
-
/* harmony default export */ var
|
|
12159
|
+
/* harmony default export */ var Checkbox_group = (checkbox_group);
|
|
12116
12160
|
// CONCATENATED MODULE: ./src/package-admin/p-scrollbar/src/util.js
|
|
12117
12161
|
const BAR_MAP = {
|
|
12118
12162
|
vertical: {
|
|
@@ -12378,8 +12422,8 @@ src_main.install = function (Vue) {
|
|
|
12378
12422
|
Clickoutside: clickoutside
|
|
12379
12423
|
},
|
|
12380
12424
|
components: {
|
|
12381
|
-
PCheckbox:
|
|
12382
|
-
PCheckboxGroup:
|
|
12425
|
+
PCheckbox: Chcekbox,
|
|
12426
|
+
PCheckboxGroup: Checkbox_group,
|
|
12383
12427
|
PScrollbar: p_scrollbar
|
|
12384
12428
|
},
|
|
12385
12429
|
props: {
|
|
@@ -12503,8 +12547,8 @@ src_main.install = function (Vue) {
|
|
|
12503
12547
|
|
|
12504
12548
|
var filter_panel_component = normalizeComponent(
|
|
12505
12549
|
src_filter_panelvue_type_script_lang_js,
|
|
12506
|
-
|
|
12507
|
-
|
|
12550
|
+
filter_panelvue_type_template_id_611abe6d_render,
|
|
12551
|
+
filter_panelvue_type_template_id_611abe6d_staticRenderFns,
|
|
12508
12552
|
false,
|
|
12509
12553
|
null,
|
|
12510
12554
|
null,
|
|
@@ -12636,14 +12680,14 @@ const convertToRows = originColumns => {
|
|
|
12636
12680
|
"click": $event => this.handleSortClick($event, column)
|
|
12637
12681
|
}
|
|
12638
12682
|
}, [h("i", {
|
|
12639
|
-
"class": "
|
|
12683
|
+
"class": "_sort-caret _ascending",
|
|
12640
12684
|
"on": {
|
|
12641
|
-
"click": $event => this.handleSortClick($event, column, '
|
|
12685
|
+
"click": $event => this.handleSortClick($event, column, '_ascending')
|
|
12642
12686
|
}
|
|
12643
12687
|
}), h("i", {
|
|
12644
|
-
"class": "
|
|
12688
|
+
"class": "_sort-caret _descending",
|
|
12645
12689
|
"on": {
|
|
12646
|
-
"click": $event => this.handleSortClick($event, column, '
|
|
12690
|
+
"click": $event => this.handleSortClick($event, column, '_descending')
|
|
12647
12691
|
}
|
|
12648
12692
|
})]) : '', column.filterable ? h("span", {
|
|
12649
12693
|
"class": "el-table__column-filter-trigger",
|
|
@@ -12673,7 +12717,7 @@ const convertToRows = originColumns => {
|
|
|
12673
12717
|
}
|
|
12674
12718
|
},
|
|
12675
12719
|
components: {
|
|
12676
|
-
PCheckbox:
|
|
12720
|
+
PCheckbox: Chcekbox
|
|
12677
12721
|
},
|
|
12678
12722
|
computed: {
|
|
12679
12723
|
table() {
|
|
@@ -13213,7 +13257,7 @@ let tableIdSeed = 1;
|
|
|
13213
13257
|
TableHeader: table_header,
|
|
13214
13258
|
TableFooter: table_footer,
|
|
13215
13259
|
TableBody: table_body,
|
|
13216
|
-
PCheckbox:
|
|
13260
|
+
PCheckbox: Chcekbox
|
|
13217
13261
|
},
|
|
13218
13262
|
methods: {
|
|
13219
13263
|
getMigratingConfig() {
|
|
@@ -13596,178 +13640,2190 @@ src_table.install = function (Vue) {
|
|
|
13596
13640
|
Vue.component(src_table.name, src_table);
|
|
13597
13641
|
};
|
|
13598
13642
|
/* harmony default export */ var p_table = (src_table);
|
|
13599
|
-
//
|
|
13600
|
-
var
|
|
13601
|
-
var
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
},
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
};
|
|
13633
|
-
|
|
13634
|
-
// 这些选项不应该被覆盖
|
|
13635
|
-
const cellForced = {
|
|
13636
|
-
selection: {
|
|
13637
|
-
renderHeader: function (h, {
|
|
13638
|
-
store
|
|
13639
|
-
}) {
|
|
13640
|
-
return h("p-checkbox", {
|
|
13641
|
-
"attrs": {
|
|
13642
|
-
"disabled": store.states.data && store.states.data.length === 0,
|
|
13643
|
-
"indeterminate": store.states.selection.length > 0 && !this.isAllSelected,
|
|
13644
|
-
"value": this.isAllSelected
|
|
13645
|
-
},
|
|
13646
|
-
"on": {
|
|
13647
|
-
"input": this.toggleAllSelection
|
|
13648
|
-
}
|
|
13649
|
-
});
|
|
13643
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/select.vue?vue&type=template&id=5cd02054
|
|
13644
|
+
var selectvue_type_template_id_5cd02054_render = function render() {
|
|
13645
|
+
var _vm = this,
|
|
13646
|
+
_c = _vm._self._c;
|
|
13647
|
+
return _c('div', {
|
|
13648
|
+
directives: [{
|
|
13649
|
+
name: "clickoutside",
|
|
13650
|
+
rawName: "v-clickoutside",
|
|
13651
|
+
value: _vm.handleClose,
|
|
13652
|
+
expression: "handleClose"
|
|
13653
|
+
}],
|
|
13654
|
+
staticClass: "el-select",
|
|
13655
|
+
class: [_vm.selectSize ? 'el-select--' + _vm.selectSize : ''],
|
|
13656
|
+
on: {
|
|
13657
|
+
"click": function ($event) {
|
|
13658
|
+
$event.stopPropagation();
|
|
13659
|
+
return _vm.toggleMenu.apply(null, arguments);
|
|
13660
|
+
}
|
|
13661
|
+
}
|
|
13662
|
+
}, [_vm.multiple ? _c('div', {
|
|
13663
|
+
ref: "tags",
|
|
13664
|
+
staticClass: "el-select__tags",
|
|
13665
|
+
style: {
|
|
13666
|
+
'max-width': _vm.inputWidth - 32 + 'px',
|
|
13667
|
+
width: '100%'
|
|
13668
|
+
}
|
|
13669
|
+
}, [_vm.collapseTags && _vm.selected.length ? _c('span', [_c('p-tag', {
|
|
13670
|
+
attrs: {
|
|
13671
|
+
"closable": !_vm.selectDisabled,
|
|
13672
|
+
"size": _vm.collapseTagSize,
|
|
13673
|
+
"hit": _vm.selected[0].hitState,
|
|
13674
|
+
"type": "info",
|
|
13675
|
+
"disable-transitions": ""
|
|
13650
13676
|
},
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13677
|
+
on: {
|
|
13678
|
+
"close": function ($event) {
|
|
13679
|
+
return _vm.deleteTag($event, _vm.selected[0]);
|
|
13680
|
+
}
|
|
13681
|
+
}
|
|
13682
|
+
}, [_c('span', {
|
|
13683
|
+
staticClass: "el-select__tags-text"
|
|
13684
|
+
}, [_vm._v(_vm._s(_vm.selected[0].currentLabel))])]), _vm.selected.length > 1 ? _c('p-tag', {
|
|
13685
|
+
attrs: {
|
|
13686
|
+
"closable": false,
|
|
13687
|
+
"size": _vm.collapseTagSize,
|
|
13688
|
+
"type": "info",
|
|
13689
|
+
"disable-transitions": ""
|
|
13690
|
+
}
|
|
13691
|
+
}, [_c('span', {
|
|
13692
|
+
staticClass: "el-select__tags-text"
|
|
13693
|
+
}, [_vm._v("+ " + _vm._s(_vm.selected.length - 1))])]) : _vm._e()], 1) : _vm._e(), !_vm.collapseTags ? _c('transition-group', {
|
|
13694
|
+
on: {
|
|
13695
|
+
"after-leave": _vm.resetInputHeight
|
|
13696
|
+
}
|
|
13697
|
+
}, _vm._l(_vm.selected, function (item) {
|
|
13698
|
+
return _c('p-tag', {
|
|
13699
|
+
key: _vm.getValueKey(item),
|
|
13700
|
+
attrs: {
|
|
13701
|
+
"closable": !_vm.selectDisabled,
|
|
13702
|
+
"size": _vm.collapseTagSize,
|
|
13703
|
+
"hit": item.hitState,
|
|
13704
|
+
"type": "info",
|
|
13705
|
+
"disable-transitions": ""
|
|
13706
|
+
},
|
|
13707
|
+
on: {
|
|
13708
|
+
"close": function ($event) {
|
|
13709
|
+
return _vm.deleteTag($event, item);
|
|
13670
13710
|
}
|
|
13671
|
-
}
|
|
13711
|
+
}
|
|
13712
|
+
}, [_c('span', {
|
|
13713
|
+
staticClass: "el-select__tags-text"
|
|
13714
|
+
}, [_vm._v(_vm._s(item.currentLabel))])]);
|
|
13715
|
+
}), 1) : _vm._e(), _vm.filterable ? _c('input', {
|
|
13716
|
+
directives: [{
|
|
13717
|
+
name: "model",
|
|
13718
|
+
rawName: "v-model",
|
|
13719
|
+
value: _vm.query,
|
|
13720
|
+
expression: "query"
|
|
13721
|
+
}],
|
|
13722
|
+
ref: "input",
|
|
13723
|
+
staticClass: "el-select__input",
|
|
13724
|
+
class: [_vm.selectSize ? `is-${_vm.selectSize}` : ''],
|
|
13725
|
+
style: {
|
|
13726
|
+
'flex-grow': '1',
|
|
13727
|
+
width: _vm.inputLength / (_vm.inputWidth - 32) + '%',
|
|
13728
|
+
'max-width': _vm.inputWidth - 42 + 'px'
|
|
13672
13729
|
},
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
renderHeader: function (h, {
|
|
13678
|
-
column
|
|
13679
|
-
}) {
|
|
13680
|
-
return column.label || '#';
|
|
13730
|
+
attrs: {
|
|
13731
|
+
"type": "text",
|
|
13732
|
+
"disabled": _vm.selectDisabled,
|
|
13733
|
+
"autocomplete": _vm.autoComplete || _vm.autocomplete
|
|
13681
13734
|
},
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
column
|
|
13685
|
-
}) {
|
|
13686
|
-
let i = $index + 1;
|
|
13687
|
-
const index = column.index;
|
|
13688
|
-
if (typeof index === 'number') {
|
|
13689
|
-
i = $index + index;
|
|
13690
|
-
} else if (typeof index === 'function') {
|
|
13691
|
-
i = index($index);
|
|
13692
|
-
}
|
|
13693
|
-
return h("div", [i]);
|
|
13735
|
+
domProps: {
|
|
13736
|
+
"value": _vm.query
|
|
13694
13737
|
},
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13738
|
+
on: {
|
|
13739
|
+
"focus": _vm.handleFocus,
|
|
13740
|
+
"blur": function ($event) {
|
|
13741
|
+
_vm.softFocus = false;
|
|
13742
|
+
},
|
|
13743
|
+
"keyup": _vm.managePlaceholder,
|
|
13744
|
+
"keydown": [_vm.resetInputState, function ($event) {
|
|
13745
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) return null;
|
|
13746
|
+
$event.preventDefault();
|
|
13747
|
+
return _vm.handleNavigate('next');
|
|
13748
|
+
}, function ($event) {
|
|
13749
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) return null;
|
|
13750
|
+
$event.preventDefault();
|
|
13751
|
+
return _vm.handleNavigate('prev');
|
|
13752
|
+
}, function ($event) {
|
|
13753
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
13754
|
+
$event.preventDefault();
|
|
13755
|
+
return _vm.selectOption.apply(null, arguments);
|
|
13756
|
+
}, function ($event) {
|
|
13757
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) return null;
|
|
13758
|
+
$event.stopPropagation();
|
|
13759
|
+
$event.preventDefault();
|
|
13760
|
+
_vm.visible = false;
|
|
13761
|
+
}, function ($event) {
|
|
13762
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "delete", [8, 46], $event.key, ["Backspace", "Delete", "Del"])) return null;
|
|
13763
|
+
return _vm.deletePrevTag.apply(null, arguments);
|
|
13764
|
+
}, function ($event) {
|
|
13765
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) return null;
|
|
13766
|
+
_vm.visible = false;
|
|
13767
|
+
}],
|
|
13768
|
+
"compositionstart": _vm.handleComposition,
|
|
13769
|
+
"compositionupdate": _vm.handleComposition,
|
|
13770
|
+
"compositionend": _vm.handleComposition,
|
|
13771
|
+
"input": [function ($event) {
|
|
13772
|
+
if ($event.target.composing) return;
|
|
13773
|
+
_vm.query = $event.target.value;
|
|
13774
|
+
}, _vm.debouncedQueryChange]
|
|
13775
|
+
}
|
|
13776
|
+
}) : _vm._e()], 1) : _vm._e(), _c('p-input', {
|
|
13777
|
+
ref: "reference",
|
|
13778
|
+
class: {
|
|
13779
|
+
'is-focus': _vm.visible
|
|
13702
13780
|
},
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
store.toggleRowExpansion(row);
|
|
13715
|
-
};
|
|
13716
|
-
return h("div", {
|
|
13717
|
-
"class": classes,
|
|
13718
|
-
"on": {
|
|
13719
|
-
"click": callback
|
|
13720
|
-
}
|
|
13721
|
-
}, [h("i", {
|
|
13722
|
-
"class": "el-icon el-icon-arrow-right"
|
|
13723
|
-
})]);
|
|
13781
|
+
attrs: {
|
|
13782
|
+
"type": "text",
|
|
13783
|
+
"placeholder": _vm.currentPlaceholder,
|
|
13784
|
+
"name": _vm.name,
|
|
13785
|
+
"id": _vm.id,
|
|
13786
|
+
"autocomplete": _vm.autoComplete || _vm.autocomplete,
|
|
13787
|
+
"size": _vm.selectSize,
|
|
13788
|
+
"disabled": _vm.selectDisabled,
|
|
13789
|
+
"readonly": _vm.readonly,
|
|
13790
|
+
"validate-event": false,
|
|
13791
|
+
"tabindex": _vm.multiple && _vm.filterable ? '-1' : null
|
|
13724
13792
|
},
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13754
|
-
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13793
|
+
on: {
|
|
13794
|
+
"focus": _vm.handleFocus,
|
|
13795
|
+
"blur": _vm.handleBlur,
|
|
13796
|
+
"input": _vm.debouncedOnInputChange,
|
|
13797
|
+
"compositionstart": _vm.handleComposition,
|
|
13798
|
+
"compositionupdate": _vm.handleComposition,
|
|
13799
|
+
"compositionend": _vm.handleComposition
|
|
13800
|
+
},
|
|
13801
|
+
nativeOn: {
|
|
13802
|
+
"keydown": [function ($event) {
|
|
13803
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) return null;
|
|
13804
|
+
$event.stopPropagation();
|
|
13805
|
+
$event.preventDefault();
|
|
13806
|
+
return _vm.handleNavigate('next');
|
|
13807
|
+
}, function ($event) {
|
|
13808
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) return null;
|
|
13809
|
+
$event.stopPropagation();
|
|
13810
|
+
$event.preventDefault();
|
|
13811
|
+
return _vm.handleNavigate('prev');
|
|
13812
|
+
}, function ($event) {
|
|
13813
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
13814
|
+
$event.preventDefault();
|
|
13815
|
+
return _vm.selectOption.apply(null, arguments);
|
|
13816
|
+
}, function ($event) {
|
|
13817
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) return null;
|
|
13818
|
+
$event.stopPropagation();
|
|
13819
|
+
$event.preventDefault();
|
|
13820
|
+
_vm.visible = false;
|
|
13821
|
+
}, function ($event) {
|
|
13822
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) return null;
|
|
13823
|
+
_vm.visible = false;
|
|
13824
|
+
}],
|
|
13825
|
+
"mouseenter": function ($event) {
|
|
13826
|
+
_vm.inputHovering = true;
|
|
13827
|
+
},
|
|
13828
|
+
"mouseleave": function ($event) {
|
|
13829
|
+
_vm.inputHovering = false;
|
|
13758
13830
|
}
|
|
13759
|
-
}
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
|
|
13831
|
+
},
|
|
13832
|
+
model: {
|
|
13833
|
+
value: _vm.selectedLabel,
|
|
13834
|
+
callback: function ($$v) {
|
|
13835
|
+
_vm.selectedLabel = $$v;
|
|
13836
|
+
},
|
|
13837
|
+
expression: "selectedLabel"
|
|
13766
13838
|
}
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13839
|
+
}, [_vm.$slots.prefix ? _c('template', {
|
|
13840
|
+
slot: "prefix"
|
|
13841
|
+
}, [_vm._t("prefix")], 2) : _vm._e(), _c('template', {
|
|
13842
|
+
slot: "suffix"
|
|
13843
|
+
}, [_c('i', {
|
|
13844
|
+
directives: [{
|
|
13845
|
+
name: "show",
|
|
13846
|
+
rawName: "v-show",
|
|
13847
|
+
value: !_vm.showClose,
|
|
13848
|
+
expression: "!showClose"
|
|
13849
|
+
}],
|
|
13850
|
+
class: ['el-select__caret', 'el-input__icon', 'el-icon-' + _vm.iconClass]
|
|
13851
|
+
}), _vm.showClose ? _c('i', {
|
|
13852
|
+
staticClass: "el-select__caret p-input__icon el-icon-circle-close",
|
|
13853
|
+
on: {
|
|
13854
|
+
"click": _vm.handleClearClick
|
|
13855
|
+
}
|
|
13856
|
+
}) : _vm._e()])], 2), _c('transition', {
|
|
13857
|
+
attrs: {
|
|
13858
|
+
"name": "el-zoom-in-top"
|
|
13859
|
+
},
|
|
13860
|
+
on: {
|
|
13861
|
+
"before-enter": _vm.handleMenuEnter,
|
|
13862
|
+
"after-leave": _vm.doDestroy
|
|
13863
|
+
}
|
|
13864
|
+
}, [_c('p-select-menu', {
|
|
13865
|
+
directives: [{
|
|
13866
|
+
name: "show",
|
|
13867
|
+
rawName: "v-show",
|
|
13868
|
+
value: _vm.visible && _vm.emptyText !== false,
|
|
13869
|
+
expression: "visible && emptyText !== false"
|
|
13870
|
+
}],
|
|
13871
|
+
ref: "popper",
|
|
13872
|
+
attrs: {
|
|
13873
|
+
"append-to-body": _vm.popperAppendToBody
|
|
13874
|
+
}
|
|
13875
|
+
}, [_c('p-scrollbar', {
|
|
13876
|
+
directives: [{
|
|
13877
|
+
name: "show",
|
|
13878
|
+
rawName: "v-show",
|
|
13879
|
+
value: _vm.options.length > 0 && !_vm.loading,
|
|
13880
|
+
expression: "options.length > 0 && !loading"
|
|
13881
|
+
}],
|
|
13882
|
+
ref: "scrollbar",
|
|
13883
|
+
class: {
|
|
13884
|
+
'is-empty': !_vm.allowCreate && _vm.query && _vm.filteredOptionsCount === 0
|
|
13885
|
+
},
|
|
13886
|
+
attrs: {
|
|
13887
|
+
"tag": "ul",
|
|
13888
|
+
"wrap-class": "el-select-dropdown__wrap",
|
|
13889
|
+
"view-class": "el-select-dropdown__list"
|
|
13890
|
+
}
|
|
13891
|
+
}, [_vm.showNewOption ? _c('p-option', {
|
|
13892
|
+
attrs: {
|
|
13893
|
+
"value": _vm.query,
|
|
13894
|
+
"created": ""
|
|
13895
|
+
}
|
|
13896
|
+
}) : _vm._e(), _vm._t("default")], 2), _vm.emptyText && (!_vm.allowCreate || _vm.loading || _vm.allowCreate && _vm.options.length === 0) ? [_vm.$slots.empty ? _vm._t("empty") : _c('p', {
|
|
13897
|
+
staticClass: "el-select-dropdown__empty"
|
|
13898
|
+
}, [_vm._v(" " + _vm._s(_vm.emptyText) + " ")])] : _vm._e()], 2)], 1)], 1);
|
|
13899
|
+
};
|
|
13900
|
+
var selectvue_type_template_id_5cd02054_staticRenderFns = [];
|
|
13901
|
+
|
|
13902
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/select.vue?vue&type=template&id=5cd02054
|
|
13903
|
+
|
|
13904
|
+
// CONCATENATED MODULE: ./src/mixins/focus.js
|
|
13905
|
+
/* harmony default export */ var mixins_focus = (function (ref) {
|
|
13906
|
+
return {
|
|
13907
|
+
methods: {
|
|
13908
|
+
focus() {
|
|
13909
|
+
this.$refs[ref].focus();
|
|
13910
|
+
}
|
|
13911
|
+
}
|
|
13912
|
+
};
|
|
13913
|
+
});
|
|
13914
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-input/src/input.vue?vue&type=template&id=ef28fff0
|
|
13915
|
+
var inputvue_type_template_id_ef28fff0_render = function render() {
|
|
13916
|
+
var _vm = this,
|
|
13917
|
+
_c = _vm._self._c;
|
|
13918
|
+
return _c('div', {
|
|
13919
|
+
class: [_vm.type === 'textarea' ? 'el-textarea' : 'el-input', _vm.inputSize ? 'el-input--' + _vm.inputSize : '', {
|
|
13920
|
+
'is-disabled': _vm.inputDisabled,
|
|
13921
|
+
'is-exceed': _vm.inputExceed,
|
|
13922
|
+
'el-input-group': _vm.$slots.prepend || _vm.$slots.append,
|
|
13923
|
+
'el-input-group--append': _vm.$slots.append,
|
|
13924
|
+
'el-input-group--prepend': _vm.$slots.prepend,
|
|
13925
|
+
'el-input--prefix': _vm.$slots.prefix || _vm.prefixIcon,
|
|
13926
|
+
'el-input--suffix': _vm.$slots.suffix || _vm.suffixIcon || _vm.clearable || _vm.showPassword
|
|
13927
|
+
}],
|
|
13928
|
+
on: {
|
|
13929
|
+
"mouseenter": function ($event) {
|
|
13930
|
+
_vm.hovering = true;
|
|
13931
|
+
},
|
|
13932
|
+
"mouseleave": function ($event) {
|
|
13933
|
+
_vm.hovering = false;
|
|
13934
|
+
}
|
|
13935
|
+
}
|
|
13936
|
+
}, [_vm.type !== 'textarea' ? [_vm.$slots.prepend ? _c('div', {
|
|
13937
|
+
staticClass: "el-input-group__prepend"
|
|
13938
|
+
}, [_vm._t("prepend")], 2) : _vm._e(), _vm.type !== 'textarea' ? _c('input', _vm._b({
|
|
13939
|
+
ref: "input",
|
|
13940
|
+
staticClass: "el-input__inner",
|
|
13941
|
+
attrs: {
|
|
13942
|
+
"tabindex": _vm.tabindex,
|
|
13943
|
+
"type": _vm.showPassword ? _vm.passwordVisible ? 'text' : 'password' : _vm.type,
|
|
13944
|
+
"disabled": _vm.inputDisabled,
|
|
13945
|
+
"readonly": _vm.readonly,
|
|
13946
|
+
"autocomplete": _vm.autoComplete || _vm.autocomplete,
|
|
13947
|
+
"aria-label": _vm.label
|
|
13948
|
+
},
|
|
13949
|
+
on: {
|
|
13950
|
+
"compositionstart": _vm.handleCompositionStart,
|
|
13951
|
+
"compositionupdate": _vm.handleCompositionUpdate,
|
|
13952
|
+
"compositionend": _vm.handleCompositionEnd,
|
|
13953
|
+
"input": _vm.handleInput,
|
|
13954
|
+
"focus": _vm.handleFocus,
|
|
13955
|
+
"blur": _vm.handleBlur,
|
|
13956
|
+
"change": _vm.handleChange
|
|
13957
|
+
}
|
|
13958
|
+
}, 'input', _vm.$attrs, false)) : _vm._e(), _vm.$slots.prefix || _vm.prefixIcon ? _c('span', {
|
|
13959
|
+
staticClass: "el-input__prefix"
|
|
13960
|
+
}, [_vm._t("prefix"), _vm.prefixIcon ? _c('i', {
|
|
13961
|
+
staticClass: "el-input__icon",
|
|
13962
|
+
class: _vm.prefixIcon
|
|
13963
|
+
}) : _vm._e()], 2) : _vm._e(), _vm.getSuffixVisible() ? _c('span', {
|
|
13964
|
+
staticClass: "el-input__suffix"
|
|
13965
|
+
}, [_c('span', {
|
|
13966
|
+
staticClass: "el-input__suffix-inner"
|
|
13967
|
+
}, [!_vm.showClear || !_vm.showPwdVisible || !_vm.isWordLimitVisible ? [_vm._t("suffix"), _vm.suffixIcon ? _c('i', {
|
|
13968
|
+
staticClass: "el-input__icon",
|
|
13969
|
+
class: _vm.suffixIcon
|
|
13970
|
+
}) : _vm._e()] : _vm._e(), _vm.showClear ? _c('i', {
|
|
13971
|
+
staticClass: "el-input__icon el-icon-circle-close el-input__clear",
|
|
13972
|
+
on: {
|
|
13973
|
+
"mousedown": function ($event) {
|
|
13974
|
+
$event.preventDefault();
|
|
13975
|
+
},
|
|
13976
|
+
"click": _vm.clear
|
|
13977
|
+
}
|
|
13978
|
+
}) : _vm._e(), _vm.showPwdVisible ? _c('i', {
|
|
13979
|
+
staticClass: "el-input__icon el-icon-view el-input__clear",
|
|
13980
|
+
on: {
|
|
13981
|
+
"click": _vm.handlePasswordVisible
|
|
13982
|
+
}
|
|
13983
|
+
}) : _vm._e(), _vm.isWordLimitVisible ? _c('span', {
|
|
13984
|
+
staticClass: "el-input__count"
|
|
13985
|
+
}, [_c('span', {
|
|
13986
|
+
staticClass: "el-input__count-inner"
|
|
13987
|
+
}, [_vm._v(" " + _vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit) + " ")])]) : _vm._e()], 2), _vm.validateState ? _c('i', {
|
|
13988
|
+
staticClass: "el-input__icon",
|
|
13989
|
+
class: ['el-input__validateIcon', _vm.validateIcon]
|
|
13990
|
+
}) : _vm._e()]) : _vm._e(), _vm.$slots.append ? _c('div', {
|
|
13991
|
+
staticClass: "el-input-group__append"
|
|
13992
|
+
}, [_vm._t("append")], 2) : _vm._e()] : _c('textarea', _vm._b({
|
|
13993
|
+
ref: "textarea",
|
|
13994
|
+
staticClass: "el-textarea__inner",
|
|
13995
|
+
style: _vm.textareaStyle,
|
|
13996
|
+
attrs: {
|
|
13997
|
+
"tabindex": _vm.tabindex,
|
|
13998
|
+
"disabled": _vm.inputDisabled,
|
|
13999
|
+
"readonly": _vm.readonly,
|
|
14000
|
+
"autocomplete": _vm.autoComplete || _vm.autocomplete,
|
|
14001
|
+
"aria-label": _vm.label
|
|
14002
|
+
},
|
|
14003
|
+
on: {
|
|
14004
|
+
"compositionstart": _vm.handleCompositionStart,
|
|
14005
|
+
"compositionupdate": _vm.handleCompositionUpdate,
|
|
14006
|
+
"compositionend": _vm.handleCompositionEnd,
|
|
14007
|
+
"input": _vm.handleInput,
|
|
14008
|
+
"focus": _vm.handleFocus,
|
|
14009
|
+
"blur": _vm.handleBlur,
|
|
14010
|
+
"change": _vm.handleChange
|
|
14011
|
+
}
|
|
14012
|
+
}, 'textarea', _vm.$attrs, false)), _vm.isWordLimitVisible && _vm.type === 'textarea' ? _c('span', {
|
|
14013
|
+
staticClass: "el-input__count"
|
|
14014
|
+
}, [_vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit))]) : _vm._e()], 2);
|
|
14015
|
+
};
|
|
14016
|
+
var inputvue_type_template_id_ef28fff0_staticRenderFns = [];
|
|
14017
|
+
|
|
14018
|
+
// CONCATENATED MODULE: ./src/package-admin/p-input/src/input.vue?vue&type=template&id=ef28fff0
|
|
14019
|
+
|
|
14020
|
+
// CONCATENATED MODULE: ./src/package-admin/p-input/src/calcTextareaHeight.js
|
|
14021
|
+
let hiddenTextarea;
|
|
14022
|
+
const HIDDEN_STYLE = `
|
|
14023
|
+
height:0 !important;
|
|
14024
|
+
visibility:hidden !important;
|
|
14025
|
+
overflow:hidden !important;
|
|
14026
|
+
position:absolute !important;
|
|
14027
|
+
z-index:-1000 !important;
|
|
14028
|
+
top:0 !important;
|
|
14029
|
+
right:0 !important
|
|
14030
|
+
`;
|
|
14031
|
+
const CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
|
|
14032
|
+
function calculateNodeStyling(targetElement) {
|
|
14033
|
+
const style = window.getComputedStyle(targetElement);
|
|
14034
|
+
const boxSizing = style.getPropertyValue('box-sizing');
|
|
14035
|
+
const paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
|
|
14036
|
+
const borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
|
|
14037
|
+
const contextStyle = CONTEXT_STYLE.map(name => `${name}:${style.getPropertyValue(name)}`).join(';');
|
|
14038
|
+
return {
|
|
14039
|
+
contextStyle,
|
|
14040
|
+
paddingSize,
|
|
14041
|
+
borderSize,
|
|
14042
|
+
boxSizing
|
|
14043
|
+
};
|
|
14044
|
+
}
|
|
14045
|
+
function calcTextareaHeight(targetElement, minRows = 1, maxRows = null) {
|
|
14046
|
+
if (!hiddenTextarea) {
|
|
14047
|
+
hiddenTextarea = document.createElement('textarea');
|
|
14048
|
+
document.body.appendChild(hiddenTextarea);
|
|
14049
|
+
}
|
|
14050
|
+
let {
|
|
14051
|
+
paddingSize,
|
|
14052
|
+
borderSize,
|
|
14053
|
+
boxSizing,
|
|
14054
|
+
contextStyle
|
|
14055
|
+
} = calculateNodeStyling(targetElement);
|
|
14056
|
+
hiddenTextarea.setAttribute('style', `${contextStyle};${HIDDEN_STYLE}`);
|
|
14057
|
+
hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
|
|
14058
|
+
let height = hiddenTextarea.scrollHeight;
|
|
14059
|
+
const result = {};
|
|
14060
|
+
if (boxSizing === 'border-box') {
|
|
14061
|
+
height = height + borderSize;
|
|
14062
|
+
} else if (boxSizing === 'content-box') {
|
|
14063
|
+
height = height - paddingSize;
|
|
14064
|
+
}
|
|
14065
|
+
hiddenTextarea.value = '';
|
|
14066
|
+
let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
14067
|
+
if (minRows !== null) {
|
|
14068
|
+
let minHeight = singleRowHeight * minRows;
|
|
14069
|
+
if (boxSizing === 'border-box') {
|
|
14070
|
+
minHeight = minHeight + paddingSize + borderSize;
|
|
14071
|
+
}
|
|
14072
|
+
height = Math.max(minHeight, height);
|
|
14073
|
+
result.minHeight = `${minHeight}px`;
|
|
14074
|
+
}
|
|
14075
|
+
if (maxRows !== null) {
|
|
14076
|
+
let maxHeight = singleRowHeight * maxRows;
|
|
14077
|
+
if (boxSizing === 'border-box') {
|
|
14078
|
+
maxHeight = maxHeight + paddingSize + borderSize;
|
|
14079
|
+
}
|
|
14080
|
+
height = Math.min(maxHeight, height);
|
|
14081
|
+
}
|
|
14082
|
+
result.height = `${height}px`;
|
|
14083
|
+
hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
|
|
14084
|
+
hiddenTextarea = null;
|
|
14085
|
+
return result;
|
|
14086
|
+
}
|
|
14087
|
+
;
|
|
14088
|
+
// CONCATENATED MODULE: ./src/utils/shared.js
|
|
14089
|
+
function isDef(val) {
|
|
14090
|
+
return val !== undefined && val !== null;
|
|
14091
|
+
}
|
|
14092
|
+
function isKorean(text) {
|
|
14093
|
+
const reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
|
|
14094
|
+
return reg.test(text);
|
|
14095
|
+
}
|
|
14096
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-input/src/input.vue?vue&type=script&lang=js
|
|
14097
|
+
|
|
14098
|
+
|
|
14099
|
+
|
|
14100
|
+
|
|
14101
|
+
|
|
14102
|
+
/* harmony default export */ var inputvue_type_script_lang_js = ({
|
|
14103
|
+
name: 'ElInput',
|
|
14104
|
+
componentName: 'ElInput',
|
|
14105
|
+
mixins: [emitter, migrating],
|
|
14106
|
+
inheritAttrs: false,
|
|
14107
|
+
inject: {
|
|
14108
|
+
elForm: {
|
|
14109
|
+
default: ''
|
|
14110
|
+
},
|
|
14111
|
+
elFormItem: {
|
|
14112
|
+
default: ''
|
|
14113
|
+
}
|
|
14114
|
+
},
|
|
14115
|
+
data() {
|
|
14116
|
+
return {
|
|
14117
|
+
textareaCalcStyle: {},
|
|
14118
|
+
hovering: false,
|
|
14119
|
+
focused: false,
|
|
14120
|
+
isComposing: false,
|
|
14121
|
+
passwordVisible: false
|
|
14122
|
+
};
|
|
14123
|
+
},
|
|
14124
|
+
props: {
|
|
14125
|
+
value: [String, Number],
|
|
14126
|
+
size: String,
|
|
14127
|
+
resize: String,
|
|
14128
|
+
form: String,
|
|
14129
|
+
disabled: Boolean,
|
|
14130
|
+
readonly: Boolean,
|
|
14131
|
+
type: {
|
|
14132
|
+
type: String,
|
|
14133
|
+
default: 'text'
|
|
14134
|
+
},
|
|
14135
|
+
autosize: {
|
|
14136
|
+
type: [Boolean, Object],
|
|
14137
|
+
default: false
|
|
14138
|
+
},
|
|
14139
|
+
autocomplete: {
|
|
14140
|
+
type: String,
|
|
14141
|
+
default: 'off'
|
|
14142
|
+
},
|
|
14143
|
+
/** @Deprecated in next major version */
|
|
14144
|
+
autoComplete: {
|
|
14145
|
+
type: String,
|
|
14146
|
+
validator(val) {
|
|
14147
|
+
false && false;
|
|
14148
|
+
return true;
|
|
14149
|
+
}
|
|
14150
|
+
},
|
|
14151
|
+
validateEvent: {
|
|
14152
|
+
type: Boolean,
|
|
14153
|
+
default: true
|
|
14154
|
+
},
|
|
14155
|
+
suffixIcon: String,
|
|
14156
|
+
prefixIcon: String,
|
|
14157
|
+
label: String,
|
|
14158
|
+
clearable: {
|
|
14159
|
+
type: Boolean,
|
|
14160
|
+
default: false
|
|
14161
|
+
},
|
|
14162
|
+
showPassword: {
|
|
14163
|
+
type: Boolean,
|
|
14164
|
+
default: false
|
|
14165
|
+
},
|
|
14166
|
+
showWordLimit: {
|
|
14167
|
+
type: Boolean,
|
|
14168
|
+
default: false
|
|
14169
|
+
},
|
|
14170
|
+
tabindex: String
|
|
14171
|
+
},
|
|
14172
|
+
computed: {
|
|
14173
|
+
_elFormItemSize() {
|
|
14174
|
+
return (this.elFormItem || {}).elFormItemSize;
|
|
14175
|
+
},
|
|
14176
|
+
validateState() {
|
|
14177
|
+
return this.elFormItem ? this.elFormItem.validateState : '';
|
|
14178
|
+
},
|
|
14179
|
+
needStatusIcon() {
|
|
14180
|
+
return this.elForm ? this.elForm.statusIcon : false;
|
|
14181
|
+
},
|
|
14182
|
+
validateIcon() {
|
|
14183
|
+
return {
|
|
14184
|
+
validating: 'el-icon-loading',
|
|
14185
|
+
success: 'el-icon-circle-check',
|
|
14186
|
+
error: 'el-icon-circle-close'
|
|
14187
|
+
}[this.validateState];
|
|
14188
|
+
},
|
|
14189
|
+
textareaStyle() {
|
|
14190
|
+
return merge({}, this.textareaCalcStyle, {
|
|
14191
|
+
resize: this.resize
|
|
14192
|
+
});
|
|
14193
|
+
},
|
|
14194
|
+
inputSize() {
|
|
14195
|
+
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
14196
|
+
},
|
|
14197
|
+
inputDisabled() {
|
|
14198
|
+
return this.disabled || (this.elForm || {}).disabled;
|
|
14199
|
+
},
|
|
14200
|
+
nativeInputValue() {
|
|
14201
|
+
return this.value === null || this.value === undefined ? '' : String(this.value);
|
|
14202
|
+
},
|
|
14203
|
+
showClear() {
|
|
14204
|
+
return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
|
|
14205
|
+
},
|
|
14206
|
+
showPwdVisible() {
|
|
14207
|
+
return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
|
|
14208
|
+
},
|
|
14209
|
+
isWordLimitVisible() {
|
|
14210
|
+
return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
|
|
14211
|
+
},
|
|
14212
|
+
upperLimit() {
|
|
14213
|
+
return this.$attrs.maxlength;
|
|
14214
|
+
},
|
|
14215
|
+
textLength() {
|
|
14216
|
+
if (typeof this.value === 'number') {
|
|
14217
|
+
return String(this.value).length;
|
|
14218
|
+
}
|
|
14219
|
+
return (this.value || '').length;
|
|
14220
|
+
},
|
|
14221
|
+
inputExceed() {
|
|
14222
|
+
// show exceed style if length of initial value greater then maxlength
|
|
14223
|
+
return this.isWordLimitVisible && this.textLength > this.upperLimit;
|
|
14224
|
+
}
|
|
14225
|
+
},
|
|
14226
|
+
watch: {
|
|
14227
|
+
value(val) {
|
|
14228
|
+
this.$nextTick(this.resizeTextarea);
|
|
14229
|
+
if (this.validateEvent) {
|
|
14230
|
+
this.dispatch('ElFormItem', 'el.form.change', [val]);
|
|
14231
|
+
}
|
|
14232
|
+
},
|
|
14233
|
+
// native input value is set explicitly
|
|
14234
|
+
// do not use v-model / :value in template
|
|
14235
|
+
// see: https://github.com/ElemeFE/element/issues/14521
|
|
14236
|
+
nativeInputValue() {
|
|
14237
|
+
this.setNativeInputValue();
|
|
14238
|
+
},
|
|
14239
|
+
// when change between <input> and <textarea>,
|
|
14240
|
+
// update DOM dependent value and styles
|
|
14241
|
+
// https://github.com/ElemeFE/element/issues/14857
|
|
14242
|
+
type() {
|
|
14243
|
+
this.$nextTick(() => {
|
|
14244
|
+
this.setNativeInputValue();
|
|
14245
|
+
this.resizeTextarea();
|
|
14246
|
+
this.updateIconOffset();
|
|
14247
|
+
});
|
|
14248
|
+
}
|
|
14249
|
+
},
|
|
14250
|
+
methods: {
|
|
14251
|
+
focus() {
|
|
14252
|
+
this.getInput().focus();
|
|
14253
|
+
},
|
|
14254
|
+
blur() {
|
|
14255
|
+
this.getInput().blur();
|
|
14256
|
+
},
|
|
14257
|
+
getMigratingConfig() {
|
|
14258
|
+
return {
|
|
14259
|
+
props: {
|
|
14260
|
+
'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
|
|
14261
|
+
'on-icon-click': 'on-icon-click is removed.'
|
|
14262
|
+
},
|
|
14263
|
+
events: {
|
|
14264
|
+
'click': 'click is removed.'
|
|
14265
|
+
}
|
|
14266
|
+
};
|
|
14267
|
+
},
|
|
14268
|
+
handleBlur(event) {
|
|
14269
|
+
this.focused = false;
|
|
14270
|
+
this.$emit('blur', event);
|
|
14271
|
+
if (this.validateEvent) {
|
|
14272
|
+
this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
|
|
14273
|
+
}
|
|
14274
|
+
},
|
|
14275
|
+
select() {
|
|
14276
|
+
this.getInput().select();
|
|
14277
|
+
},
|
|
14278
|
+
resizeTextarea() {
|
|
14279
|
+
if (this.$isServer) return;
|
|
14280
|
+
const {
|
|
14281
|
+
autosize,
|
|
14282
|
+
type
|
|
14283
|
+
} = this;
|
|
14284
|
+
if (type !== 'textarea') return;
|
|
14285
|
+
if (!autosize) {
|
|
14286
|
+
this.textareaCalcStyle = {
|
|
14287
|
+
minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
|
|
14288
|
+
};
|
|
14289
|
+
return;
|
|
14290
|
+
}
|
|
14291
|
+
const minRows = autosize.minRows;
|
|
14292
|
+
const maxRows = autosize.maxRows;
|
|
14293
|
+
this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
|
|
14294
|
+
},
|
|
14295
|
+
setNativeInputValue() {
|
|
14296
|
+
const input = this.getInput();
|
|
14297
|
+
if (!input) return;
|
|
14298
|
+
if (input.value === this.nativeInputValue) return;
|
|
14299
|
+
input.value = this.nativeInputValue;
|
|
14300
|
+
},
|
|
14301
|
+
handleFocus(event) {
|
|
14302
|
+
this.focused = true;
|
|
14303
|
+
this.$emit('focus', event);
|
|
14304
|
+
},
|
|
14305
|
+
handleCompositionStart(event) {
|
|
14306
|
+
this.$emit('compositionstart', event);
|
|
14307
|
+
this.isComposing = true;
|
|
14308
|
+
},
|
|
14309
|
+
handleCompositionUpdate(event) {
|
|
14310
|
+
this.$emit('compositionupdate', event);
|
|
14311
|
+
const text = event.target.value;
|
|
14312
|
+
const lastCharacter = text[text.length - 1] || '';
|
|
14313
|
+
this.isComposing = !isKorean(lastCharacter);
|
|
14314
|
+
},
|
|
14315
|
+
handleCompositionEnd(event) {
|
|
14316
|
+
this.$emit('compositionend', event);
|
|
14317
|
+
if (this.isComposing) {
|
|
14318
|
+
this.isComposing = false;
|
|
14319
|
+
this.handleInput(event);
|
|
14320
|
+
}
|
|
14321
|
+
},
|
|
14322
|
+
handleInput(event) {
|
|
14323
|
+
// should not emit input during composition
|
|
14324
|
+
// see: https://github.com/ElemeFE/element/issues/10516
|
|
14325
|
+
if (this.isComposing) return;
|
|
14326
|
+
|
|
14327
|
+
// hack for https://github.com/ElemeFE/element/issues/8548
|
|
14328
|
+
// should remove the following line when we don't support IE
|
|
14329
|
+
if (event.target.value === this.nativeInputValue) return;
|
|
14330
|
+
this.$emit('input', event.target.value);
|
|
14331
|
+
|
|
14332
|
+
// ensure native input value is controlled
|
|
14333
|
+
// see: https://github.com/ElemeFE/element/issues/12850
|
|
14334
|
+
this.$nextTick(this.setNativeInputValue);
|
|
14335
|
+
},
|
|
14336
|
+
handleChange(event) {
|
|
14337
|
+
this.$emit('change', event.target.value);
|
|
14338
|
+
},
|
|
14339
|
+
calcIconOffset(place) {
|
|
14340
|
+
let elList = [].slice.call(this.$el.querySelectorAll(`.el-input__${place}`) || []);
|
|
14341
|
+
if (!elList.length) return;
|
|
14342
|
+
let el = null;
|
|
14343
|
+
for (let i = 0; i < elList.length; i++) {
|
|
14344
|
+
if (elList[i].parentNode === this.$el) {
|
|
14345
|
+
el = elList[i];
|
|
14346
|
+
break;
|
|
14347
|
+
}
|
|
14348
|
+
}
|
|
14349
|
+
if (!el) return;
|
|
14350
|
+
const pendantMap = {
|
|
14351
|
+
suffix: 'append',
|
|
14352
|
+
prefix: 'prepend'
|
|
14353
|
+
};
|
|
14354
|
+
const pendant = pendantMap[place];
|
|
14355
|
+
if (this.$slots[pendant]) {
|
|
14356
|
+
el.style.transform = `translateX(${place === 'suffix' ? '-' : ''}${this.$el.querySelector(`.el-input-group__${pendant}`).offsetWidth}px)`;
|
|
14357
|
+
} else {
|
|
14358
|
+
el.removeAttribute('style');
|
|
14359
|
+
}
|
|
14360
|
+
},
|
|
14361
|
+
updateIconOffset() {
|
|
14362
|
+
this.calcIconOffset('prefix');
|
|
14363
|
+
this.calcIconOffset('suffix');
|
|
14364
|
+
},
|
|
14365
|
+
clear() {
|
|
14366
|
+
this.$emit('input', '');
|
|
14367
|
+
this.$emit('change', '');
|
|
14368
|
+
this.$emit('clear');
|
|
14369
|
+
},
|
|
14370
|
+
handlePasswordVisible() {
|
|
14371
|
+
this.passwordVisible = !this.passwordVisible;
|
|
14372
|
+
this.$nextTick(() => {
|
|
14373
|
+
this.focus();
|
|
14374
|
+
});
|
|
14375
|
+
},
|
|
14376
|
+
getInput() {
|
|
14377
|
+
return this.$refs.input || this.$refs.textarea;
|
|
14378
|
+
},
|
|
14379
|
+
getSuffixVisible() {
|
|
14380
|
+
return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
|
|
14381
|
+
}
|
|
14382
|
+
},
|
|
14383
|
+
created() {
|
|
14384
|
+
this.$on('inputSelect', this.select);
|
|
14385
|
+
},
|
|
14386
|
+
mounted() {
|
|
14387
|
+
this.setNativeInputValue();
|
|
14388
|
+
this.resizeTextarea();
|
|
14389
|
+
this.updateIconOffset();
|
|
14390
|
+
},
|
|
14391
|
+
updated() {
|
|
14392
|
+
this.$nextTick(this.updateIconOffset);
|
|
14393
|
+
}
|
|
14394
|
+
});
|
|
14395
|
+
// CONCATENATED MODULE: ./src/package-admin/p-input/src/input.vue?vue&type=script&lang=js
|
|
14396
|
+
/* harmony default export */ var src_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
|
|
14397
|
+
// CONCATENATED MODULE: ./src/package-admin/p-input/src/input.vue
|
|
14398
|
+
|
|
14399
|
+
|
|
14400
|
+
|
|
14401
|
+
|
|
14402
|
+
|
|
14403
|
+
/* normalize component */
|
|
14404
|
+
|
|
14405
|
+
var input_component = normalizeComponent(
|
|
14406
|
+
src_inputvue_type_script_lang_js,
|
|
14407
|
+
inputvue_type_template_id_ef28fff0_render,
|
|
14408
|
+
inputvue_type_template_id_ef28fff0_staticRenderFns,
|
|
14409
|
+
false,
|
|
14410
|
+
null,
|
|
14411
|
+
null,
|
|
14412
|
+
null
|
|
14413
|
+
|
|
14414
|
+
)
|
|
14415
|
+
|
|
14416
|
+
/* harmony default export */ var input = (input_component.exports);
|
|
14417
|
+
// CONCATENATED MODULE: ./src/package-admin/p-input/index.js
|
|
14418
|
+
|
|
14419
|
+
|
|
14420
|
+
/* istanbul ignore next */
|
|
14421
|
+
input.install = function (Vue) {
|
|
14422
|
+
Vue.component(input.name, input);
|
|
14423
|
+
};
|
|
14424
|
+
/* harmony default export */ var p_input = (input);
|
|
14425
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/select-dropdown.vue?vue&type=template&id=44b4e5ed
|
|
14426
|
+
var select_dropdownvue_type_template_id_44b4e5ed_render = function render() {
|
|
14427
|
+
var _vm = this,
|
|
14428
|
+
_c = _vm._self._c;
|
|
14429
|
+
return _c('div', {
|
|
14430
|
+
staticClass: "el-select-dropdown el-popper",
|
|
14431
|
+
class: [{
|
|
14432
|
+
'is-multiple': _vm.$parent.multiple
|
|
14433
|
+
}, _vm.popperClass],
|
|
14434
|
+
style: {
|
|
14435
|
+
minWidth: _vm.minWidth
|
|
14436
|
+
}
|
|
14437
|
+
}, [_vm._t("default")], 2);
|
|
14438
|
+
};
|
|
14439
|
+
var select_dropdownvue_type_template_id_44b4e5ed_staticRenderFns = [];
|
|
14440
|
+
|
|
14441
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/select-dropdown.vue?vue&type=template&id=44b4e5ed
|
|
14442
|
+
|
|
14443
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/select-dropdown.vue?vue&type=script&lang=js
|
|
14444
|
+
|
|
14445
|
+
/* harmony default export */ var select_dropdownvue_type_script_lang_js = ({
|
|
14446
|
+
name: 'PSelectDropdown',
|
|
14447
|
+
componentName: 'PSelectDropdown',
|
|
14448
|
+
mixins: [vue_popper],
|
|
14449
|
+
props: {
|
|
14450
|
+
placement: {
|
|
14451
|
+
default: 'bottom-start'
|
|
14452
|
+
},
|
|
14453
|
+
boundariesPadding: {
|
|
14454
|
+
default: 0
|
|
14455
|
+
},
|
|
14456
|
+
popperOptions: {
|
|
14457
|
+
default() {
|
|
14458
|
+
return {
|
|
14459
|
+
gpuAcceleration: false
|
|
14460
|
+
};
|
|
14461
|
+
}
|
|
14462
|
+
},
|
|
14463
|
+
visibleArrow: {
|
|
14464
|
+
default: true
|
|
14465
|
+
},
|
|
14466
|
+
appendToBody: {
|
|
14467
|
+
type: Boolean,
|
|
14468
|
+
default: true
|
|
14469
|
+
}
|
|
14470
|
+
},
|
|
14471
|
+
data() {
|
|
14472
|
+
return {
|
|
14473
|
+
minWidth: ''
|
|
14474
|
+
};
|
|
14475
|
+
},
|
|
14476
|
+
computed: {
|
|
14477
|
+
popperClass() {
|
|
14478
|
+
return this.$parent.popperClass;
|
|
14479
|
+
}
|
|
14480
|
+
},
|
|
14481
|
+
watch: {
|
|
14482
|
+
'$parent.inputWidth'() {
|
|
14483
|
+
this.minWidth = this.$parent.$el.getBoundingClientRect().width + 'px';
|
|
14484
|
+
}
|
|
14485
|
+
},
|
|
14486
|
+
mounted() {
|
|
14487
|
+
this.referenceElm = this.$parent.$refs.reference.$el;
|
|
14488
|
+
this.$parent.popperElm = this.popperElm = this.$el;
|
|
14489
|
+
this.$on('updatePopper', () => {
|
|
14490
|
+
if (this.$parent.visible) this.updatePopper();
|
|
14491
|
+
});
|
|
14492
|
+
this.$on('destroyPopper', this.destroyPopper);
|
|
14493
|
+
}
|
|
14494
|
+
});
|
|
14495
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/select-dropdown.vue?vue&type=script&lang=js
|
|
14496
|
+
/* harmony default export */ var src_select_dropdownvue_type_script_lang_js = (select_dropdownvue_type_script_lang_js);
|
|
14497
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/select-dropdown.vue
|
|
14498
|
+
|
|
14499
|
+
|
|
14500
|
+
|
|
14501
|
+
|
|
14502
|
+
|
|
14503
|
+
/* normalize component */
|
|
14504
|
+
|
|
14505
|
+
var select_dropdown_component = normalizeComponent(
|
|
14506
|
+
src_select_dropdownvue_type_script_lang_js,
|
|
14507
|
+
select_dropdownvue_type_template_id_44b4e5ed_render,
|
|
14508
|
+
select_dropdownvue_type_template_id_44b4e5ed_staticRenderFns,
|
|
14509
|
+
false,
|
|
14510
|
+
null,
|
|
14511
|
+
null,
|
|
14512
|
+
null
|
|
14513
|
+
|
|
14514
|
+
)
|
|
14515
|
+
|
|
14516
|
+
/* harmony default export */ var select_dropdown = (select_dropdown_component.exports);
|
|
14517
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/option.vue?vue&type=template&id=792df5bc
|
|
14518
|
+
var optionvue_type_template_id_792df5bc_render = function render() {
|
|
14519
|
+
var _vm = this,
|
|
14520
|
+
_c = _vm._self._c;
|
|
14521
|
+
return _c('li', {
|
|
14522
|
+
directives: [{
|
|
14523
|
+
name: "show",
|
|
14524
|
+
rawName: "v-show",
|
|
14525
|
+
value: _vm.visible,
|
|
14526
|
+
expression: "visible"
|
|
14527
|
+
}],
|
|
14528
|
+
staticClass: "el-select-dropdown__item",
|
|
14529
|
+
class: {
|
|
14530
|
+
'selected': _vm.itemSelected,
|
|
14531
|
+
'is-disabled': _vm.disabled || _vm.groupDisabled || _vm.limitReached,
|
|
14532
|
+
'hover': _vm.hover
|
|
14533
|
+
},
|
|
14534
|
+
on: {
|
|
14535
|
+
"mouseenter": _vm.hoverItem,
|
|
14536
|
+
"click": function ($event) {
|
|
14537
|
+
$event.stopPropagation();
|
|
14538
|
+
return _vm.selectOptionClick.apply(null, arguments);
|
|
14539
|
+
}
|
|
14540
|
+
}
|
|
14541
|
+
}, [_vm._t("default", function () {
|
|
14542
|
+
return [_c('span', [_vm._v(_vm._s(_vm.currentLabel))])];
|
|
14543
|
+
})], 2);
|
|
14544
|
+
};
|
|
14545
|
+
var optionvue_type_template_id_792df5bc_staticRenderFns = [];
|
|
14546
|
+
|
|
14547
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/option.vue?vue&type=template&id=792df5bc
|
|
14548
|
+
|
|
14549
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/option.vue?vue&type=script&lang=js
|
|
14550
|
+
|
|
14551
|
+
|
|
14552
|
+
|
|
14553
|
+
|
|
14554
|
+
|
|
14555
|
+
/* harmony default export */ var optionvue_type_script_lang_js = ({
|
|
14556
|
+
mixins: [emitter],
|
|
14557
|
+
name: 'POption',
|
|
14558
|
+
componentName: 'POption',
|
|
14559
|
+
inject: ['select'],
|
|
14560
|
+
props: {
|
|
14561
|
+
value: {
|
|
14562
|
+
required: true
|
|
14563
|
+
},
|
|
14564
|
+
label: [String, Number],
|
|
14565
|
+
created: Boolean,
|
|
14566
|
+
disabled: {
|
|
14567
|
+
type: Boolean,
|
|
14568
|
+
default: false
|
|
14569
|
+
}
|
|
14570
|
+
},
|
|
14571
|
+
data() {
|
|
14572
|
+
return {
|
|
14573
|
+
index: -1,
|
|
14574
|
+
groupDisabled: false,
|
|
14575
|
+
visible: true,
|
|
14576
|
+
hitState: false,
|
|
14577
|
+
hover: false
|
|
14578
|
+
};
|
|
14579
|
+
},
|
|
14580
|
+
computed: {
|
|
14581
|
+
isObject() {
|
|
14582
|
+
return Object.prototype.toString.call(this.value).toLowerCase() === '[object object]';
|
|
14583
|
+
},
|
|
14584
|
+
currentLabel() {
|
|
14585
|
+
return this.label || (this.isObject ? '' : this.value);
|
|
14586
|
+
},
|
|
14587
|
+
currentValue() {
|
|
14588
|
+
return this.value || this.label || '';
|
|
14589
|
+
},
|
|
14590
|
+
itemSelected() {
|
|
14591
|
+
if (!this.select.multiple) {
|
|
14592
|
+
return this.isEqual(this.value, this.select.value);
|
|
14593
|
+
} else {
|
|
14594
|
+
return this.contains(this.select.value, this.value);
|
|
14595
|
+
}
|
|
14596
|
+
},
|
|
14597
|
+
limitReached() {
|
|
14598
|
+
if (this.select.multiple) {
|
|
14599
|
+
return !this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0;
|
|
14600
|
+
} else {
|
|
14601
|
+
return false;
|
|
14602
|
+
}
|
|
14603
|
+
}
|
|
14604
|
+
},
|
|
14605
|
+
watch: {
|
|
14606
|
+
currentLabel() {
|
|
14607
|
+
if (!this.created && !this.select.remote) this.dispatch('ElSelect', 'setSelected');
|
|
14608
|
+
},
|
|
14609
|
+
value(val, oldVal) {
|
|
14610
|
+
const {
|
|
14611
|
+
remote,
|
|
14612
|
+
valueKey
|
|
14613
|
+
} = this.select;
|
|
14614
|
+
if (!this.created && !remote) {
|
|
14615
|
+
if (valueKey && typeof val === 'object' && typeof oldVal === 'object' && val[valueKey] === oldVal[valueKey]) {
|
|
14616
|
+
return;
|
|
14617
|
+
}
|
|
14618
|
+
this.dispatch('ElSelect', 'setSelected');
|
|
14619
|
+
}
|
|
14620
|
+
}
|
|
14621
|
+
},
|
|
14622
|
+
methods: {
|
|
14623
|
+
isEqual(a, b) {
|
|
14624
|
+
if (!this.isObject) {
|
|
14625
|
+
return a === b;
|
|
14626
|
+
} else {
|
|
14627
|
+
const valueKey = this.select.valueKey;
|
|
14628
|
+
return getValueByPath(a, valueKey) === getValueByPath(b, valueKey);
|
|
14629
|
+
}
|
|
14630
|
+
},
|
|
14631
|
+
contains(arr = [], target) {
|
|
14632
|
+
if (!this.isObject) {
|
|
14633
|
+
return arr && arr.indexOf(target) > -1;
|
|
14634
|
+
} else {
|
|
14635
|
+
const valueKey = this.select.valueKey;
|
|
14636
|
+
return arr && arr.some(item => {
|
|
14637
|
+
return getValueByPath(item, valueKey) === getValueByPath(target, valueKey);
|
|
14638
|
+
});
|
|
14639
|
+
}
|
|
14640
|
+
},
|
|
14641
|
+
handleGroupDisabled(val) {
|
|
14642
|
+
this.groupDisabled = val;
|
|
14643
|
+
},
|
|
14644
|
+
hoverItem() {
|
|
14645
|
+
if (!this.disabled && !this.groupDisabled) {
|
|
14646
|
+
this.select.hoverIndex = this.select.options.indexOf(this);
|
|
14647
|
+
}
|
|
14648
|
+
},
|
|
14649
|
+
selectOptionClick() {
|
|
14650
|
+
if (this.disabled !== true && this.groupDisabled !== true) {
|
|
14651
|
+
this.dispatch('PSelect', 'handleOptionClick', [this, true]);
|
|
14652
|
+
}
|
|
14653
|
+
},
|
|
14654
|
+
queryChange(query) {
|
|
14655
|
+
this.visible = new RegExp(escapeRegexpString(query), 'i').test(this.currentLabel) || this.created;
|
|
14656
|
+
if (!this.visible) {
|
|
14657
|
+
this.select.filteredOptionsCount--;
|
|
14658
|
+
}
|
|
14659
|
+
}
|
|
14660
|
+
},
|
|
14661
|
+
created() {
|
|
14662
|
+
this.select.options.push(this);
|
|
14663
|
+
this.select.cachedOptions.push(this);
|
|
14664
|
+
this.select.optionsCount++;
|
|
14665
|
+
this.select.filteredOptionsCount++;
|
|
14666
|
+
this.$on('queryChange', this.queryChange);
|
|
14667
|
+
this.$on('handleGroupDisabled', this.handleGroupDisabled);
|
|
14668
|
+
},
|
|
14669
|
+
beforeDestroy() {
|
|
14670
|
+
const {
|
|
14671
|
+
selected,
|
|
14672
|
+
multiple
|
|
14673
|
+
} = this.select;
|
|
14674
|
+
let selectedOptions = multiple ? selected : [selected];
|
|
14675
|
+
let index = this.select.cachedOptions.indexOf(this);
|
|
14676
|
+
let selectedIndex = selectedOptions.indexOf(this);
|
|
14677
|
+
|
|
14678
|
+
// if option is not selected, remove it from cache
|
|
14679
|
+
if (index > -1 && selectedIndex < 0) {
|
|
14680
|
+
this.select.cachedOptions.splice(index, 1);
|
|
14681
|
+
}
|
|
14682
|
+
this.select.onOptionDestroy(this.select.options.indexOf(this));
|
|
14683
|
+
}
|
|
14684
|
+
});
|
|
14685
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/option.vue?vue&type=script&lang=js
|
|
14686
|
+
/* harmony default export */ var src_optionvue_type_script_lang_js = (optionvue_type_script_lang_js);
|
|
14687
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/option.vue
|
|
14688
|
+
|
|
14689
|
+
|
|
14690
|
+
|
|
14691
|
+
|
|
14692
|
+
|
|
14693
|
+
/* normalize component */
|
|
14694
|
+
|
|
14695
|
+
var option_component = normalizeComponent(
|
|
14696
|
+
src_optionvue_type_script_lang_js,
|
|
14697
|
+
optionvue_type_template_id_792df5bc_render,
|
|
14698
|
+
optionvue_type_template_id_792df5bc_staticRenderFns,
|
|
14699
|
+
false,
|
|
14700
|
+
null,
|
|
14701
|
+
null,
|
|
14702
|
+
null
|
|
14703
|
+
|
|
14704
|
+
)
|
|
14705
|
+
|
|
14706
|
+
/* harmony default export */ var src_option = (option_component.exports);
|
|
14707
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-tag/src/tag.vue?vue&type=script&lang=js
|
|
14708
|
+
/* harmony default export */ var tagvue_type_script_lang_js = ({
|
|
14709
|
+
name: 'PTag',
|
|
14710
|
+
props: {
|
|
14711
|
+
text: String,
|
|
14712
|
+
closable: Boolean,
|
|
14713
|
+
type: String,
|
|
14714
|
+
hit: Boolean,
|
|
14715
|
+
disableTransitions: Boolean,
|
|
14716
|
+
color: String,
|
|
14717
|
+
size: String,
|
|
14718
|
+
effect: {
|
|
14719
|
+
type: String,
|
|
14720
|
+
default: 'light',
|
|
14721
|
+
validator(val) {
|
|
14722
|
+
return ['dark', 'light', 'plain'].indexOf(val) !== -1;
|
|
14723
|
+
}
|
|
14724
|
+
}
|
|
14725
|
+
},
|
|
14726
|
+
methods: {
|
|
14727
|
+
handleClose(event) {
|
|
14728
|
+
event.stopPropagation();
|
|
14729
|
+
this.$emit('close', event);
|
|
14730
|
+
},
|
|
14731
|
+
handleClick(event) {
|
|
14732
|
+
this.$emit('click', event);
|
|
14733
|
+
}
|
|
14734
|
+
},
|
|
14735
|
+
computed: {
|
|
14736
|
+
tagSize() {
|
|
14737
|
+
return this.size || (this.$ELEMENT || {}).size;
|
|
14738
|
+
}
|
|
14739
|
+
},
|
|
14740
|
+
render(h) {
|
|
14741
|
+
const {
|
|
14742
|
+
type,
|
|
14743
|
+
tagSize,
|
|
14744
|
+
hit,
|
|
14745
|
+
effect
|
|
14746
|
+
} = this;
|
|
14747
|
+
const classes = ['el-tag', type ? `el-tag--${type}` : '', tagSize ? `el-tag--${tagSize}` : '', effect ? `el-tag--${effect}` : '', hit && 'is-hit'];
|
|
14748
|
+
const tagEl = h("span", {
|
|
14749
|
+
"class": classes,
|
|
14750
|
+
"style": {
|
|
14751
|
+
backgroundColor: this.color
|
|
14752
|
+
},
|
|
14753
|
+
"on": {
|
|
14754
|
+
"click": this.handleClick
|
|
14755
|
+
}
|
|
14756
|
+
}, [this.$slots.default, this.closable && h("i", {
|
|
14757
|
+
"class": "el-tag__close el-icon-close",
|
|
14758
|
+
"on": {
|
|
14759
|
+
"click": this.handleClose
|
|
14760
|
+
}
|
|
14761
|
+
})]);
|
|
14762
|
+
return this.disableTransitions ? tagEl : h("transition", {
|
|
14763
|
+
"attrs": {
|
|
14764
|
+
"name": "el-zoom-in-center"
|
|
14765
|
+
}
|
|
14766
|
+
}, [tagEl]);
|
|
14767
|
+
}
|
|
14768
|
+
});
|
|
14769
|
+
// CONCATENATED MODULE: ./src/package-admin/p-tag/src/tag.vue?vue&type=script&lang=js
|
|
14770
|
+
/* harmony default export */ var src_tagvue_type_script_lang_js = (tagvue_type_script_lang_js);
|
|
14771
|
+
// CONCATENATED MODULE: ./src/package-admin/p-tag/src/tag.vue
|
|
14772
|
+
var tag_render, tag_staticRenderFns
|
|
14773
|
+
|
|
14774
|
+
|
|
14775
|
+
|
|
14776
|
+
|
|
14777
|
+
/* normalize component */
|
|
14778
|
+
|
|
14779
|
+
var tag_component = normalizeComponent(
|
|
14780
|
+
src_tagvue_type_script_lang_js,
|
|
14781
|
+
tag_render,
|
|
14782
|
+
tag_staticRenderFns,
|
|
14783
|
+
false,
|
|
14784
|
+
null,
|
|
14785
|
+
null,
|
|
14786
|
+
null
|
|
14787
|
+
|
|
14788
|
+
)
|
|
14789
|
+
|
|
14790
|
+
/* harmony default export */ var tag = (tag_component.exports);
|
|
14791
|
+
// CONCATENATED MODULE: ./src/package-admin/p-tag/index.js
|
|
14792
|
+
|
|
14793
|
+
|
|
14794
|
+
/* istanbul ignore next */
|
|
14795
|
+
tag.install = function (Vue) {
|
|
14796
|
+
Vue.component(tag.name, tag);
|
|
14797
|
+
};
|
|
14798
|
+
/* harmony default export */ var p_tag = (tag);
|
|
14799
|
+
// EXTERNAL MODULE: ./src/utils/scroll-into-view.js
|
|
14800
|
+
var scroll_into_view = __webpack_require__("e221");
|
|
14801
|
+
var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view);
|
|
14802
|
+
|
|
14803
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.every.js
|
|
14804
|
+
var es_iterator_every = __webpack_require__("d866");
|
|
14805
|
+
|
|
14806
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/navigation-mixin.js
|
|
14807
|
+
|
|
14808
|
+
|
|
14809
|
+
|
|
14810
|
+
|
|
14811
|
+
/* harmony default export */ var navigation_mixin = ({
|
|
14812
|
+
data() {
|
|
14813
|
+
return {
|
|
14814
|
+
hoverOption: -1
|
|
14815
|
+
};
|
|
14816
|
+
},
|
|
14817
|
+
computed: {
|
|
14818
|
+
optionsAllDisabled() {
|
|
14819
|
+
return this.options.filter(option => option.visible).every(option => option.disabled);
|
|
14820
|
+
}
|
|
14821
|
+
},
|
|
14822
|
+
watch: {
|
|
14823
|
+
hoverIndex(val) {
|
|
14824
|
+
if (typeof val === 'number' && val > -1) {
|
|
14825
|
+
this.hoverOption = this.options[val] || {};
|
|
14826
|
+
}
|
|
14827
|
+
this.options.forEach(option => {
|
|
14828
|
+
option.hover = this.hoverOption === option;
|
|
14829
|
+
});
|
|
14830
|
+
}
|
|
14831
|
+
},
|
|
14832
|
+
methods: {
|
|
14833
|
+
navigateOptions(direction) {
|
|
14834
|
+
if (!this.visible) {
|
|
14835
|
+
this.visible = true;
|
|
14836
|
+
return;
|
|
14837
|
+
}
|
|
14838
|
+
if (this.options.length === 0 || this.filteredOptionsCount === 0) return;
|
|
14839
|
+
if (!this.optionsAllDisabled) {
|
|
14840
|
+
if (direction === 'next') {
|
|
14841
|
+
this.hoverIndex++;
|
|
14842
|
+
if (this.hoverIndex === this.options.length) {
|
|
14843
|
+
this.hoverIndex = 0;
|
|
14844
|
+
}
|
|
14845
|
+
} else if (direction === 'prev') {
|
|
14846
|
+
this.hoverIndex--;
|
|
14847
|
+
if (this.hoverIndex < 0) {
|
|
14848
|
+
this.hoverIndex = this.options.length - 1;
|
|
14849
|
+
}
|
|
14850
|
+
}
|
|
14851
|
+
const option = this.options[this.hoverIndex];
|
|
14852
|
+
if (option.disabled === true || option.groupDisabled === true || !option.visible) {
|
|
14853
|
+
this.navigateOptions(direction);
|
|
14854
|
+
}
|
|
14855
|
+
this.$nextTick(() => this.scrollToOption(this.hoverOption));
|
|
14856
|
+
}
|
|
14857
|
+
}
|
|
14858
|
+
}
|
|
14859
|
+
});
|
|
14860
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/select.vue?vue&type=script&lang=js
|
|
14861
|
+
|
|
14862
|
+
|
|
14863
|
+
|
|
14864
|
+
|
|
14865
|
+
|
|
14866
|
+
|
|
14867
|
+
|
|
14868
|
+
|
|
14869
|
+
|
|
14870
|
+
|
|
14871
|
+
|
|
14872
|
+
|
|
14873
|
+
|
|
14874
|
+
|
|
14875
|
+
|
|
14876
|
+
|
|
14877
|
+
|
|
14878
|
+
|
|
14879
|
+
|
|
14880
|
+
|
|
14881
|
+
|
|
14882
|
+
/* harmony default export */ var selectvue_type_script_lang_js = ({
|
|
14883
|
+
mixins: [emitter, mixins_locale, mixins_focus('reference'), navigation_mixin],
|
|
14884
|
+
name: 'PSelect',
|
|
14885
|
+
componentName: 'PSelect',
|
|
14886
|
+
inject: {
|
|
14887
|
+
elForm: {
|
|
14888
|
+
default: ''
|
|
14889
|
+
},
|
|
14890
|
+
elFormItem: {
|
|
14891
|
+
default: ''
|
|
14892
|
+
}
|
|
14893
|
+
},
|
|
14894
|
+
provide() {
|
|
14895
|
+
return {
|
|
14896
|
+
'select': this
|
|
14897
|
+
};
|
|
14898
|
+
},
|
|
14899
|
+
computed: {
|
|
14900
|
+
_elFormItemSize() {
|
|
14901
|
+
return (this.elFormItem || {}).elFormItemSize;
|
|
14902
|
+
},
|
|
14903
|
+
readonly() {
|
|
14904
|
+
return !this.filterable || this.multiple || !isIE() && !isEdge() && !this.visible;
|
|
14905
|
+
},
|
|
14906
|
+
showClose() {
|
|
14907
|
+
let hasValue = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== undefined && this.value !== null && this.value !== '';
|
|
14908
|
+
let criteria = this.clearable && !this.selectDisabled && this.inputHovering && hasValue;
|
|
14909
|
+
return criteria;
|
|
14910
|
+
},
|
|
14911
|
+
iconClass() {
|
|
14912
|
+
return this.remote && this.filterable ? '' : this.visible ? 'arrow-up is-reverse' : 'arrow-up';
|
|
14913
|
+
},
|
|
14914
|
+
debounce() {
|
|
14915
|
+
return this.remote ? 300 : 0;
|
|
14916
|
+
},
|
|
14917
|
+
emptyText() {
|
|
14918
|
+
if (this.loading) {
|
|
14919
|
+
return this.loadingText || this.t('el.select.loading');
|
|
14920
|
+
} else {
|
|
14921
|
+
if (this.remote && this.query === '' && this.options.length === 0) return false;
|
|
14922
|
+
if (this.filterable && this.query && this.options.length > 0 && this.filteredOptionsCount === 0) {
|
|
14923
|
+
return this.noMatchText || this.t('el.select.noMatch');
|
|
14924
|
+
}
|
|
14925
|
+
if (this.options.length === 0) {
|
|
14926
|
+
return this.noDataText || this.t('el.select.noData');
|
|
14927
|
+
}
|
|
14928
|
+
}
|
|
14929
|
+
return null;
|
|
14930
|
+
},
|
|
14931
|
+
showNewOption() {
|
|
14932
|
+
let hasExistingOption = this.options.filter(option => !option.created).some(option => option.currentLabel === this.query);
|
|
14933
|
+
return this.filterable && this.allowCreate && this.query !== '' && !hasExistingOption;
|
|
14934
|
+
},
|
|
14935
|
+
selectSize() {
|
|
14936
|
+
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
14937
|
+
},
|
|
14938
|
+
selectDisabled() {
|
|
14939
|
+
return this.disabled || (this.elForm || {}).disabled;
|
|
14940
|
+
},
|
|
14941
|
+
collapseTagSize() {
|
|
14942
|
+
return ['small', 'mini'].indexOf(this.selectSize) > -1 ? 'mini' : 'small';
|
|
14943
|
+
},
|
|
14944
|
+
propPlaceholder() {
|
|
14945
|
+
return typeof this.placeholder !== 'undefined' ? this.placeholder : this.t('el.select.placeholder');
|
|
14946
|
+
}
|
|
14947
|
+
},
|
|
14948
|
+
components: {
|
|
14949
|
+
PInput: p_input,
|
|
14950
|
+
PSelectMenu: select_dropdown,
|
|
14951
|
+
POption: src_option,
|
|
14952
|
+
PTag: p_tag,
|
|
14953
|
+
PScrollbar: p_scrollbar
|
|
14954
|
+
},
|
|
14955
|
+
directives: {
|
|
14956
|
+
Clickoutside: clickoutside
|
|
14957
|
+
},
|
|
14958
|
+
props: {
|
|
14959
|
+
name: String,
|
|
14960
|
+
id: String,
|
|
14961
|
+
value: {
|
|
14962
|
+
required: true
|
|
14963
|
+
},
|
|
14964
|
+
autocomplete: {
|
|
14965
|
+
type: String,
|
|
14966
|
+
default: 'off'
|
|
14967
|
+
},
|
|
14968
|
+
/** @Deprecated in next major version */
|
|
14969
|
+
autoComplete: {
|
|
14970
|
+
type: String,
|
|
14971
|
+
validator(val) {
|
|
14972
|
+
false && false;
|
|
14973
|
+
return true;
|
|
14974
|
+
}
|
|
14975
|
+
},
|
|
14976
|
+
automaticDropdown: Boolean,
|
|
14977
|
+
size: String,
|
|
14978
|
+
disabled: Boolean,
|
|
14979
|
+
clearable: Boolean,
|
|
14980
|
+
filterable: Boolean,
|
|
14981
|
+
allowCreate: Boolean,
|
|
14982
|
+
loading: Boolean,
|
|
14983
|
+
popperClass: String,
|
|
14984
|
+
remote: Boolean,
|
|
14985
|
+
loadingText: String,
|
|
14986
|
+
noMatchText: String,
|
|
14987
|
+
noDataText: String,
|
|
14988
|
+
remoteMethod: Function,
|
|
14989
|
+
filterMethod: Function,
|
|
14990
|
+
multiple: Boolean,
|
|
14991
|
+
multipleLimit: {
|
|
14992
|
+
type: Number,
|
|
14993
|
+
default: 0
|
|
14994
|
+
},
|
|
14995
|
+
placeholder: {
|
|
14996
|
+
type: String,
|
|
14997
|
+
required: false
|
|
14998
|
+
},
|
|
14999
|
+
defaultFirstOption: Boolean,
|
|
15000
|
+
reserveKeyword: Boolean,
|
|
15001
|
+
valueKey: {
|
|
15002
|
+
type: String,
|
|
15003
|
+
default: 'value'
|
|
15004
|
+
},
|
|
15005
|
+
collapseTags: Boolean,
|
|
15006
|
+
popperAppendToBody: {
|
|
15007
|
+
type: Boolean,
|
|
15008
|
+
default: true
|
|
15009
|
+
}
|
|
15010
|
+
},
|
|
15011
|
+
data() {
|
|
15012
|
+
return {
|
|
15013
|
+
options: [],
|
|
15014
|
+
cachedOptions: [],
|
|
15015
|
+
createdLabel: null,
|
|
15016
|
+
createdSelected: false,
|
|
15017
|
+
selected: this.multiple ? [] : {},
|
|
15018
|
+
inputLength: 20,
|
|
15019
|
+
inputWidth: 0,
|
|
15020
|
+
initialInputHeight: 0,
|
|
15021
|
+
cachedPlaceHolder: '',
|
|
15022
|
+
optionsCount: 0,
|
|
15023
|
+
filteredOptionsCount: 0,
|
|
15024
|
+
visible: false,
|
|
15025
|
+
softFocus: false,
|
|
15026
|
+
selectedLabel: '',
|
|
15027
|
+
hoverIndex: -1,
|
|
15028
|
+
query: '',
|
|
15029
|
+
previousQuery: null,
|
|
15030
|
+
inputHovering: false,
|
|
15031
|
+
currentPlaceholder: '',
|
|
15032
|
+
menuVisibleOnFocus: false,
|
|
15033
|
+
isOnComposition: false,
|
|
15034
|
+
isSilentBlur: false
|
|
15035
|
+
};
|
|
15036
|
+
},
|
|
15037
|
+
watch: {
|
|
15038
|
+
selectDisabled() {
|
|
15039
|
+
this.$nextTick(() => {
|
|
15040
|
+
this.resetInputHeight();
|
|
15041
|
+
});
|
|
15042
|
+
},
|
|
15043
|
+
propPlaceholder(val) {
|
|
15044
|
+
this.cachedPlaceHolder = this.currentPlaceholder = val;
|
|
15045
|
+
},
|
|
15046
|
+
value(val, oldVal) {
|
|
15047
|
+
if (this.multiple) {
|
|
15048
|
+
this.resetInputHeight();
|
|
15049
|
+
if (val && val.length > 0 || this.$refs.input && this.query !== '') {
|
|
15050
|
+
this.currentPlaceholder = '';
|
|
15051
|
+
} else {
|
|
15052
|
+
this.currentPlaceholder = this.cachedPlaceHolder;
|
|
15053
|
+
}
|
|
15054
|
+
if (this.filterable && !this.reserveKeyword) {
|
|
15055
|
+
this.query = '';
|
|
15056
|
+
this.handleQueryChange(this.query);
|
|
15057
|
+
}
|
|
15058
|
+
}
|
|
15059
|
+
this.setSelected();
|
|
15060
|
+
if (this.filterable && !this.multiple) {
|
|
15061
|
+
this.inputLength = 20;
|
|
15062
|
+
}
|
|
15063
|
+
if (!valueEquals(val, oldVal)) {
|
|
15064
|
+
this.dispatch('PFormItem', 'el.form.change', val);
|
|
15065
|
+
}
|
|
15066
|
+
},
|
|
15067
|
+
visible(val) {
|
|
15068
|
+
if (!val) {
|
|
15069
|
+
this.broadcast('PSelectDropdown', 'destroyPopper');
|
|
15070
|
+
if (this.$refs.input) {
|
|
15071
|
+
this.$refs.input.blur();
|
|
15072
|
+
}
|
|
15073
|
+
this.query = '';
|
|
15074
|
+
this.previousQuery = null;
|
|
15075
|
+
this.selectedLabel = '';
|
|
15076
|
+
this.inputLength = 20;
|
|
15077
|
+
this.menuVisibleOnFocus = false;
|
|
15078
|
+
this.resetHoverIndex();
|
|
15079
|
+
this.$nextTick(() => {
|
|
15080
|
+
if (this.$refs.input && this.$refs.input.value === '' && this.selected.length === 0) {
|
|
15081
|
+
this.currentPlaceholder = this.cachedPlaceHolder;
|
|
15082
|
+
}
|
|
15083
|
+
});
|
|
15084
|
+
if (!this.multiple) {
|
|
15085
|
+
if (this.selected) {
|
|
15086
|
+
if (this.filterable && this.allowCreate && this.createdSelected && this.createdLabel) {
|
|
15087
|
+
this.selectedLabel = this.createdLabel;
|
|
15088
|
+
} else {
|
|
15089
|
+
this.selectedLabel = this.selected.currentLabel;
|
|
15090
|
+
}
|
|
15091
|
+
if (this.filterable) this.query = this.selectedLabel;
|
|
15092
|
+
}
|
|
15093
|
+
if (this.filterable) {
|
|
15094
|
+
this.currentPlaceholder = this.cachedPlaceHolder;
|
|
15095
|
+
}
|
|
15096
|
+
}
|
|
15097
|
+
} else {
|
|
15098
|
+
this.broadcast('PSelectDropdown', 'updatePopper');
|
|
15099
|
+
if (this.filterable) {
|
|
15100
|
+
this.query = this.remote ? '' : this.selectedLabel;
|
|
15101
|
+
this.handleQueryChange(this.query);
|
|
15102
|
+
if (this.multiple) {
|
|
15103
|
+
this.$refs.input.focus();
|
|
15104
|
+
} else {
|
|
15105
|
+
if (!this.remote) {
|
|
15106
|
+
this.broadcast('POption', 'queryChange', '');
|
|
15107
|
+
this.broadcast('POptionGroup', 'queryChange');
|
|
15108
|
+
}
|
|
15109
|
+
if (this.selectedLabel) {
|
|
15110
|
+
this.currentPlaceholder = this.selectedLabel;
|
|
15111
|
+
this.selectedLabel = '';
|
|
15112
|
+
}
|
|
15113
|
+
}
|
|
15114
|
+
}
|
|
15115
|
+
}
|
|
15116
|
+
this.$emit('visible-change', val);
|
|
15117
|
+
},
|
|
15118
|
+
options() {
|
|
15119
|
+
if (this.$isServer) return;
|
|
15120
|
+
this.$nextTick(() => {
|
|
15121
|
+
this.broadcast('PSelectDropdown', 'updatePopper');
|
|
15122
|
+
});
|
|
15123
|
+
if (this.multiple) {
|
|
15124
|
+
this.resetInputHeight();
|
|
15125
|
+
}
|
|
15126
|
+
let inputs = this.$el.querySelectorAll('input');
|
|
15127
|
+
if ([].indexOf.call(inputs, document.activeElement) === -1) {
|
|
15128
|
+
this.setSelected();
|
|
15129
|
+
}
|
|
15130
|
+
if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
|
|
15131
|
+
this.checkDefaultFirstOption();
|
|
15132
|
+
}
|
|
15133
|
+
}
|
|
15134
|
+
},
|
|
15135
|
+
methods: {
|
|
15136
|
+
handleNavigate(direction) {
|
|
15137
|
+
if (this.isOnComposition) return;
|
|
15138
|
+
this.navigateOptions(direction);
|
|
15139
|
+
},
|
|
15140
|
+
handleComposition(event) {
|
|
15141
|
+
const text = event.target.value;
|
|
15142
|
+
if (event.type === 'compositionend') {
|
|
15143
|
+
this.isOnComposition = false;
|
|
15144
|
+
this.$nextTick(_ => this.handleQueryChange(text));
|
|
15145
|
+
} else {
|
|
15146
|
+
const lastCharacter = text[text.length - 1] || '';
|
|
15147
|
+
this.isOnComposition = !isKorean(lastCharacter);
|
|
15148
|
+
}
|
|
15149
|
+
},
|
|
15150
|
+
handleQueryChange(val) {
|
|
15151
|
+
if (this.previousQuery === val || this.isOnComposition) return;
|
|
15152
|
+
if (this.previousQuery === null && (typeof this.filterMethod === 'function' || typeof this.remoteMethod === 'function')) {
|
|
15153
|
+
this.previousQuery = val;
|
|
15154
|
+
return;
|
|
15155
|
+
}
|
|
15156
|
+
this.previousQuery = val;
|
|
15157
|
+
this.$nextTick(() => {
|
|
15158
|
+
if (this.visible) this.broadcast('PSelectDropdown', 'updatePopper');
|
|
15159
|
+
});
|
|
15160
|
+
this.hoverIndex = -1;
|
|
15161
|
+
if (this.multiple && this.filterable) {
|
|
15162
|
+
this.$nextTick(() => {
|
|
15163
|
+
const length = this.$refs.input.value.length * 15 + 20;
|
|
15164
|
+
this.inputLength = this.collapseTags ? Math.min(50, length) : length;
|
|
15165
|
+
this.managePlaceholder();
|
|
15166
|
+
this.resetInputHeight();
|
|
15167
|
+
});
|
|
15168
|
+
}
|
|
15169
|
+
if (this.remote && typeof this.remoteMethod === 'function') {
|
|
15170
|
+
this.hoverIndex = -1;
|
|
15171
|
+
this.remoteMethod(val);
|
|
15172
|
+
} else if (typeof this.filterMethod === 'function') {
|
|
15173
|
+
this.filterMethod(val);
|
|
15174
|
+
this.broadcast('POptionGroup', 'queryChange');
|
|
15175
|
+
} else {
|
|
15176
|
+
this.filteredOptionsCount = this.optionsCount;
|
|
15177
|
+
this.broadcast('POption', 'queryChange', val);
|
|
15178
|
+
this.broadcast('POptionGroup', 'queryChange');
|
|
15179
|
+
}
|
|
15180
|
+
if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
|
|
15181
|
+
this.checkDefaultFirstOption();
|
|
15182
|
+
}
|
|
15183
|
+
},
|
|
15184
|
+
scrollToOption(option) {
|
|
15185
|
+
const target = Array.isArray(option) && option[0] ? option[0].$el : option.$el;
|
|
15186
|
+
if (this.$refs.popper && target) {
|
|
15187
|
+
const menu = this.$refs.popper.$el.querySelector('.el-select-dropdown__wrap');
|
|
15188
|
+
scroll_into_view_default()(menu, target);
|
|
15189
|
+
}
|
|
15190
|
+
this.$refs.scrollbar && this.$refs.scrollbar.handleScroll();
|
|
15191
|
+
},
|
|
15192
|
+
handleMenuEnter() {
|
|
15193
|
+
this.$nextTick(() => this.scrollToOption(this.selected));
|
|
15194
|
+
},
|
|
15195
|
+
emitChange(val) {
|
|
15196
|
+
if (!valueEquals(this.value, val)) {
|
|
15197
|
+
this.$emit('change', val);
|
|
15198
|
+
}
|
|
15199
|
+
},
|
|
15200
|
+
getOption(value) {
|
|
15201
|
+
let option;
|
|
15202
|
+
const isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
|
|
15203
|
+
const isNull = Object.prototype.toString.call(value).toLowerCase() === '[object null]';
|
|
15204
|
+
const isUndefined = Object.prototype.toString.call(value).toLowerCase() === '[object undefined]';
|
|
15205
|
+
for (let i = this.cachedOptions.length - 1; i >= 0; i--) {
|
|
15206
|
+
const cachedOption = this.cachedOptions[i];
|
|
15207
|
+
const isEqual = isObject ? getValueByPath(cachedOption.value, this.valueKey) === getValueByPath(value, this.valueKey) : cachedOption.value === value;
|
|
15208
|
+
if (isEqual) {
|
|
15209
|
+
option = cachedOption;
|
|
15210
|
+
break;
|
|
15211
|
+
}
|
|
15212
|
+
}
|
|
15213
|
+
if (option) return option;
|
|
15214
|
+
const label = !isObject && !isNull && !isUndefined ? String(value) : '';
|
|
15215
|
+
let newOption = {
|
|
15216
|
+
value: value,
|
|
15217
|
+
currentLabel: label
|
|
15218
|
+
};
|
|
15219
|
+
if (this.multiple) {
|
|
15220
|
+
newOption.hitState = false;
|
|
15221
|
+
}
|
|
15222
|
+
return newOption;
|
|
15223
|
+
},
|
|
15224
|
+
setSelected() {
|
|
15225
|
+
if (!this.multiple) {
|
|
15226
|
+
let option = this.getOption(this.value);
|
|
15227
|
+
if (option.created) {
|
|
15228
|
+
this.createdLabel = option.currentLabel;
|
|
15229
|
+
this.createdSelected = true;
|
|
15230
|
+
} else {
|
|
15231
|
+
this.createdSelected = false;
|
|
15232
|
+
}
|
|
15233
|
+
this.selectedLabel = option.currentLabel;
|
|
15234
|
+
this.selected = option;
|
|
15235
|
+
if (this.filterable) this.query = this.selectedLabel;
|
|
15236
|
+
return;
|
|
15237
|
+
}
|
|
15238
|
+
let result = [];
|
|
15239
|
+
if (Array.isArray(this.value)) {
|
|
15240
|
+
this.value.forEach(value => {
|
|
15241
|
+
result.push(this.getOption(value));
|
|
15242
|
+
});
|
|
15243
|
+
}
|
|
15244
|
+
this.selected = result;
|
|
15245
|
+
this.$nextTick(() => {
|
|
15246
|
+
this.resetInputHeight();
|
|
15247
|
+
});
|
|
15248
|
+
},
|
|
15249
|
+
handleFocus(event) {
|
|
15250
|
+
if (!this.softFocus) {
|
|
15251
|
+
if (this.automaticDropdown || this.filterable) {
|
|
15252
|
+
if (this.filterable && !this.visible) {
|
|
15253
|
+
this.menuVisibleOnFocus = true;
|
|
15254
|
+
}
|
|
15255
|
+
this.visible = true;
|
|
15256
|
+
}
|
|
15257
|
+
this.$emit('focus', event);
|
|
15258
|
+
} else {
|
|
15259
|
+
this.softFocus = false;
|
|
15260
|
+
}
|
|
15261
|
+
},
|
|
15262
|
+
blur() {
|
|
15263
|
+
this.visible = false;
|
|
15264
|
+
this.$refs.reference.blur();
|
|
15265
|
+
},
|
|
15266
|
+
handleBlur(event) {
|
|
15267
|
+
setTimeout(() => {
|
|
15268
|
+
if (this.isSilentBlur) {
|
|
15269
|
+
this.isSilentBlur = false;
|
|
15270
|
+
} else {
|
|
15271
|
+
this.$emit('blur', event);
|
|
15272
|
+
}
|
|
15273
|
+
}, 50);
|
|
15274
|
+
this.softFocus = false;
|
|
15275
|
+
},
|
|
15276
|
+
handleClearClick(event) {
|
|
15277
|
+
this.deleteSelected(event);
|
|
15278
|
+
},
|
|
15279
|
+
doDestroy() {
|
|
15280
|
+
this.$refs.popper && this.$refs.popper.doDestroy();
|
|
15281
|
+
},
|
|
15282
|
+
handleClose() {
|
|
15283
|
+
this.visible = false;
|
|
15284
|
+
},
|
|
15285
|
+
toggleLastOptionHitState(hit) {
|
|
15286
|
+
if (!Array.isArray(this.selected)) return;
|
|
15287
|
+
const option = this.selected[this.selected.length - 1];
|
|
15288
|
+
if (!option) return;
|
|
15289
|
+
if (hit === true || hit === false) {
|
|
15290
|
+
option.hitState = hit;
|
|
15291
|
+
return hit;
|
|
15292
|
+
}
|
|
15293
|
+
option.hitState = !option.hitState;
|
|
15294
|
+
return option.hitState;
|
|
15295
|
+
},
|
|
15296
|
+
deletePrevTag(e) {
|
|
15297
|
+
if (e.target.value.length <= 0 && !this.toggleLastOptionHitState()) {
|
|
15298
|
+
const value = this.value.slice();
|
|
15299
|
+
value.pop();
|
|
15300
|
+
this.$emit('input', value);
|
|
15301
|
+
this.emitChange(value);
|
|
15302
|
+
}
|
|
15303
|
+
},
|
|
15304
|
+
managePlaceholder() {
|
|
15305
|
+
if (this.currentPlaceholder !== '') {
|
|
15306
|
+
this.currentPlaceholder = this.$refs.input.value ? '' : this.cachedPlaceHolder;
|
|
15307
|
+
}
|
|
15308
|
+
},
|
|
15309
|
+
resetInputState(e) {
|
|
15310
|
+
if (e.keyCode !== 8) this.toggleLastOptionHitState(false);
|
|
15311
|
+
this.inputLength = this.$refs.input.value.length * 15 + 20;
|
|
15312
|
+
this.resetInputHeight();
|
|
15313
|
+
},
|
|
15314
|
+
resetInputHeight() {
|
|
15315
|
+
if (this.collapseTags && !this.filterable) return;
|
|
15316
|
+
this.$nextTick(() => {
|
|
15317
|
+
if (!this.$refs.reference) return;
|
|
15318
|
+
let inputChildNodes = this.$refs.reference.$el.childNodes;
|
|
15319
|
+
let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
|
|
15320
|
+
const tags = this.$refs.tags;
|
|
15321
|
+
const tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
|
|
15322
|
+
const sizeInMap = this.initialInputHeight || 40;
|
|
15323
|
+
input.style.height = this.selected.length === 0 ? sizeInMap + 'px' : Math.max(tags ? tagsHeight + (tagsHeight > sizeInMap ? 6 : 0) : 0, sizeInMap) + 'px';
|
|
15324
|
+
if (this.visible && this.emptyText !== false) {
|
|
15325
|
+
this.broadcast('PSelectDropdown', 'updatePopper');
|
|
15326
|
+
}
|
|
15327
|
+
});
|
|
15328
|
+
},
|
|
15329
|
+
resetHoverIndex() {
|
|
15330
|
+
setTimeout(() => {
|
|
15331
|
+
if (!this.multiple) {
|
|
15332
|
+
this.hoverIndex = this.options.indexOf(this.selected);
|
|
15333
|
+
} else {
|
|
15334
|
+
if (this.selected.length > 0) {
|
|
15335
|
+
this.hoverIndex = Math.min.apply(null, this.selected.map(item => this.options.indexOf(item)));
|
|
15336
|
+
} else {
|
|
15337
|
+
this.hoverIndex = -1;
|
|
15338
|
+
}
|
|
15339
|
+
}
|
|
15340
|
+
}, 300);
|
|
15341
|
+
},
|
|
15342
|
+
handleOptionSelect(option, byClick) {
|
|
15343
|
+
if (this.multiple) {
|
|
15344
|
+
const value = (this.value || []).slice();
|
|
15345
|
+
const optionIndex = this.getValueIndex(value, option.value);
|
|
15346
|
+
if (optionIndex > -1) {
|
|
15347
|
+
value.splice(optionIndex, 1);
|
|
15348
|
+
} else if (this.multipleLimit <= 0 || value.length < this.multipleLimit) {
|
|
15349
|
+
value.push(option.value);
|
|
15350
|
+
}
|
|
15351
|
+
this.$emit('input', value);
|
|
15352
|
+
this.emitChange(value);
|
|
15353
|
+
if (option.created) {
|
|
15354
|
+
this.query = '';
|
|
15355
|
+
this.handleQueryChange('');
|
|
15356
|
+
this.inputLength = 20;
|
|
15357
|
+
}
|
|
15358
|
+
if (this.filterable) this.$refs.input.focus();
|
|
15359
|
+
} else {
|
|
15360
|
+
this.$emit('input', option.value);
|
|
15361
|
+
this.emitChange(option.value);
|
|
15362
|
+
this.visible = false;
|
|
15363
|
+
}
|
|
15364
|
+
this.isSilentBlur = byClick;
|
|
15365
|
+
this.setSoftFocus();
|
|
15366
|
+
if (this.visible) return;
|
|
15367
|
+
this.$nextTick(() => {
|
|
15368
|
+
this.scrollToOption(option);
|
|
15369
|
+
});
|
|
15370
|
+
},
|
|
15371
|
+
setSoftFocus() {
|
|
15372
|
+
this.softFocus = true;
|
|
15373
|
+
const input = this.$refs.input || this.$refs.reference;
|
|
15374
|
+
if (input) {
|
|
15375
|
+
input.focus();
|
|
15376
|
+
}
|
|
15377
|
+
},
|
|
15378
|
+
getValueIndex(arr = [], value) {
|
|
15379
|
+
const isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
|
|
15380
|
+
if (!isObject) {
|
|
15381
|
+
return arr.indexOf(value);
|
|
15382
|
+
} else {
|
|
15383
|
+
const valueKey = this.valueKey;
|
|
15384
|
+
let index = -1;
|
|
15385
|
+
arr.some((item, i) => {
|
|
15386
|
+
if (getValueByPath(item, valueKey) === getValueByPath(value, valueKey)) {
|
|
15387
|
+
index = i;
|
|
15388
|
+
return true;
|
|
15389
|
+
}
|
|
15390
|
+
return false;
|
|
15391
|
+
});
|
|
15392
|
+
return index;
|
|
15393
|
+
}
|
|
15394
|
+
},
|
|
15395
|
+
toggleMenu() {
|
|
15396
|
+
if (!this.selectDisabled) {
|
|
15397
|
+
if (this.menuVisibleOnFocus) {
|
|
15398
|
+
this.menuVisibleOnFocus = false;
|
|
15399
|
+
} else {
|
|
15400
|
+
this.visible = !this.visible;
|
|
15401
|
+
}
|
|
15402
|
+
if (this.visible) {
|
|
15403
|
+
(this.$refs.input || this.$refs.reference).focus();
|
|
15404
|
+
}
|
|
15405
|
+
}
|
|
15406
|
+
},
|
|
15407
|
+
selectOption() {
|
|
15408
|
+
if (!this.visible) {
|
|
15409
|
+
this.toggleMenu();
|
|
15410
|
+
} else {
|
|
15411
|
+
if (this.options[this.hoverIndex]) {
|
|
15412
|
+
this.handleOptionSelect(this.options[this.hoverIndex]);
|
|
15413
|
+
}
|
|
15414
|
+
}
|
|
15415
|
+
},
|
|
15416
|
+
deleteSelected(event) {
|
|
15417
|
+
event.stopPropagation();
|
|
15418
|
+
const value = this.multiple ? [] : '';
|
|
15419
|
+
this.$emit('input', value);
|
|
15420
|
+
this.emitChange(value);
|
|
15421
|
+
this.visible = false;
|
|
15422
|
+
this.$emit('clear');
|
|
15423
|
+
},
|
|
15424
|
+
deleteTag(event, tag) {
|
|
15425
|
+
let index = this.selected.indexOf(tag);
|
|
15426
|
+
if (index > -1 && !this.selectDisabled) {
|
|
15427
|
+
const value = this.value.slice();
|
|
15428
|
+
value.splice(index, 1);
|
|
15429
|
+
this.$emit('input', value);
|
|
15430
|
+
this.emitChange(value);
|
|
15431
|
+
this.$emit('remove-tag', tag.value);
|
|
15432
|
+
}
|
|
15433
|
+
event.stopPropagation();
|
|
15434
|
+
},
|
|
15435
|
+
onInputChange() {
|
|
15436
|
+
if (this.filterable && this.query !== this.selectedLabel) {
|
|
15437
|
+
this.query = this.selectedLabel;
|
|
15438
|
+
this.handleQueryChange(this.query);
|
|
15439
|
+
}
|
|
15440
|
+
},
|
|
15441
|
+
onOptionDestroy(index) {
|
|
15442
|
+
if (index > -1) {
|
|
15443
|
+
this.optionsCount--;
|
|
15444
|
+
this.filteredOptionsCount--;
|
|
15445
|
+
this.options.splice(index, 1);
|
|
15446
|
+
}
|
|
15447
|
+
},
|
|
15448
|
+
resetInputWidth() {
|
|
15449
|
+
this.inputWidth = this.$refs.reference.$el.getBoundingClientRect().width;
|
|
15450
|
+
},
|
|
15451
|
+
handleResize() {
|
|
15452
|
+
this.resetInputWidth();
|
|
15453
|
+
if (this.multiple) this.resetInputHeight();
|
|
15454
|
+
},
|
|
15455
|
+
checkDefaultFirstOption() {
|
|
15456
|
+
this.hoverIndex = -1;
|
|
15457
|
+
// highlight the created option
|
|
15458
|
+
let hasCreated = false;
|
|
15459
|
+
for (let i = this.options.length - 1; i >= 0; i--) {
|
|
15460
|
+
if (this.options[i].created) {
|
|
15461
|
+
hasCreated = true;
|
|
15462
|
+
this.hoverIndex = i;
|
|
15463
|
+
break;
|
|
15464
|
+
}
|
|
15465
|
+
}
|
|
15466
|
+
if (hasCreated) return;
|
|
15467
|
+
for (let i = 0; i !== this.options.length; ++i) {
|
|
15468
|
+
const option = this.options[i];
|
|
15469
|
+
if (this.query) {
|
|
15470
|
+
// highlight first options that passes the filter
|
|
15471
|
+
if (!option.disabled && !option.groupDisabled && option.visible) {
|
|
15472
|
+
this.hoverIndex = i;
|
|
15473
|
+
break;
|
|
15474
|
+
}
|
|
15475
|
+
} else {
|
|
15476
|
+
// highlight currently selected option
|
|
15477
|
+
if (option.itemSelected) {
|
|
15478
|
+
this.hoverIndex = i;
|
|
15479
|
+
break;
|
|
15480
|
+
}
|
|
15481
|
+
}
|
|
15482
|
+
}
|
|
15483
|
+
},
|
|
15484
|
+
getValueKey(item) {
|
|
15485
|
+
if (Object.prototype.toString.call(item.value).toLowerCase() !== '[object object]') {
|
|
15486
|
+
return item.value;
|
|
15487
|
+
} else {
|
|
15488
|
+
return getValueByPath(item.value, this.valueKey);
|
|
15489
|
+
}
|
|
15490
|
+
}
|
|
15491
|
+
},
|
|
15492
|
+
created() {
|
|
15493
|
+
this.cachedPlaceHolder = this.currentPlaceholder = this.propPlaceholder;
|
|
15494
|
+
if (this.multiple && !Array.isArray(this.value)) {
|
|
15495
|
+
this.$emit('input', []);
|
|
15496
|
+
}
|
|
15497
|
+
if (!this.multiple && Array.isArray(this.value)) {
|
|
15498
|
+
this.$emit('input', '');
|
|
15499
|
+
}
|
|
15500
|
+
this.debouncedOnInputChange = debounce_default()(this.debounce, () => {
|
|
15501
|
+
this.onInputChange();
|
|
15502
|
+
});
|
|
15503
|
+
this.debouncedQueryChange = debounce_default()(this.debounce, e => {
|
|
15504
|
+
this.handleQueryChange(e.target.value);
|
|
15505
|
+
});
|
|
15506
|
+
this.$on('handleOptionClick', this.handleOptionSelect);
|
|
15507
|
+
this.$on('setSelected', this.setSelected);
|
|
15508
|
+
},
|
|
15509
|
+
mounted() {
|
|
15510
|
+
if (this.multiple && Array.isArray(this.value) && this.value.length > 0) {
|
|
15511
|
+
this.currentPlaceholder = '';
|
|
15512
|
+
}
|
|
15513
|
+
addResizeListener(this.$el, this.handleResize);
|
|
15514
|
+
const reference = this.$refs.reference;
|
|
15515
|
+
if (reference && reference.$el) {
|
|
15516
|
+
const sizeMap = {
|
|
15517
|
+
medium: 36,
|
|
15518
|
+
small: 32,
|
|
15519
|
+
mini: 28
|
|
15520
|
+
};
|
|
15521
|
+
const input = reference.$el.querySelector('input');
|
|
15522
|
+
this.initialInputHeight = input.getBoundingClientRect().height || sizeMap[this.selectSize];
|
|
15523
|
+
}
|
|
15524
|
+
if (this.remote && this.multiple) {
|
|
15525
|
+
this.resetInputHeight();
|
|
15526
|
+
}
|
|
15527
|
+
this.$nextTick(() => {
|
|
15528
|
+
if (reference && reference.$el) {
|
|
15529
|
+
this.inputWidth = reference.$el.getBoundingClientRect().width;
|
|
15530
|
+
}
|
|
15531
|
+
});
|
|
15532
|
+
this.setSelected();
|
|
15533
|
+
},
|
|
15534
|
+
beforeDestroy() {
|
|
15535
|
+
if (this.$el && this.handleResize) removeResizeListener(this.$el, this.handleResize);
|
|
15536
|
+
}
|
|
15537
|
+
});
|
|
15538
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/select.vue?vue&type=script&lang=js
|
|
15539
|
+
/* harmony default export */ var src_selectvue_type_script_lang_js = (selectvue_type_script_lang_js);
|
|
15540
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/select.vue
|
|
15541
|
+
|
|
15542
|
+
|
|
15543
|
+
|
|
15544
|
+
|
|
15545
|
+
|
|
15546
|
+
/* normalize component */
|
|
15547
|
+
|
|
15548
|
+
var select_component = normalizeComponent(
|
|
15549
|
+
src_selectvue_type_script_lang_js,
|
|
15550
|
+
selectvue_type_template_id_5cd02054_render,
|
|
15551
|
+
selectvue_type_template_id_5cd02054_staticRenderFns,
|
|
15552
|
+
false,
|
|
15553
|
+
null,
|
|
15554
|
+
null,
|
|
15555
|
+
null
|
|
15556
|
+
|
|
15557
|
+
)
|
|
15558
|
+
|
|
15559
|
+
/* harmony default export */ var src_select = (select_component.exports);
|
|
15560
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/option-group.vue?vue&type=template&id=8883e69e
|
|
15561
|
+
var option_groupvue_type_template_id_8883e69e_render = function render() {
|
|
15562
|
+
var _vm = this,
|
|
15563
|
+
_c = _vm._self._c;
|
|
15564
|
+
return _c('ul', {
|
|
15565
|
+
directives: [{
|
|
15566
|
+
name: "show",
|
|
15567
|
+
rawName: "v-show",
|
|
15568
|
+
value: _vm.visible,
|
|
15569
|
+
expression: "visible"
|
|
15570
|
+
}],
|
|
15571
|
+
staticClass: "el-select-group__wrap"
|
|
15572
|
+
}, [_c('li', {
|
|
15573
|
+
staticClass: "el-select-group__title"
|
|
15574
|
+
}, [_vm._v(_vm._s(_vm.label))]), _c('li', [_c('ul', {
|
|
15575
|
+
staticClass: "el-select-group"
|
|
15576
|
+
}, [_vm._t("default")], 2)])]);
|
|
15577
|
+
};
|
|
15578
|
+
var option_groupvue_type_template_id_8883e69e_staticRenderFns = [];
|
|
15579
|
+
|
|
15580
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/option-group.vue?vue&type=template&id=8883e69e
|
|
15581
|
+
|
|
15582
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-select/src/option-group.vue?vue&type=script&lang=js
|
|
15583
|
+
|
|
15584
|
+
|
|
15585
|
+
|
|
15586
|
+
/* harmony default export */ var option_groupvue_type_script_lang_js = ({
|
|
15587
|
+
mixins: [emitter],
|
|
15588
|
+
name: 'POptionGroup',
|
|
15589
|
+
componentName: 'POptionGroup',
|
|
15590
|
+
props: {
|
|
15591
|
+
label: String,
|
|
15592
|
+
disabled: {
|
|
15593
|
+
type: Boolean,
|
|
15594
|
+
default: false
|
|
15595
|
+
}
|
|
15596
|
+
},
|
|
15597
|
+
data() {
|
|
15598
|
+
return {
|
|
15599
|
+
visible: true
|
|
15600
|
+
};
|
|
15601
|
+
},
|
|
15602
|
+
watch: {
|
|
15603
|
+
disabled(val) {
|
|
15604
|
+
this.broadcast('POption', 'handleGroupDisabled', val);
|
|
15605
|
+
}
|
|
15606
|
+
},
|
|
15607
|
+
methods: {
|
|
15608
|
+
queryChange() {
|
|
15609
|
+
this.visible = this.$children && Array.isArray(this.$children) && this.$children.some(option => option.visible === true);
|
|
15610
|
+
}
|
|
15611
|
+
},
|
|
15612
|
+
created() {
|
|
15613
|
+
this.$on('queryChange', this.queryChange);
|
|
15614
|
+
},
|
|
15615
|
+
mounted() {
|
|
15616
|
+
if (this.disabled) {
|
|
15617
|
+
this.broadcast('POption', 'handleGroupDisabled', this.disabled);
|
|
15618
|
+
}
|
|
15619
|
+
}
|
|
15620
|
+
});
|
|
15621
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/option-group.vue?vue&type=script&lang=js
|
|
15622
|
+
/* harmony default export */ var src_option_groupvue_type_script_lang_js = (option_groupvue_type_script_lang_js);
|
|
15623
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/src/option-group.vue
|
|
15624
|
+
|
|
15625
|
+
|
|
15626
|
+
|
|
15627
|
+
|
|
15628
|
+
|
|
15629
|
+
/* normalize component */
|
|
15630
|
+
|
|
15631
|
+
var option_group_component = normalizeComponent(
|
|
15632
|
+
src_option_groupvue_type_script_lang_js,
|
|
15633
|
+
option_groupvue_type_template_id_8883e69e_render,
|
|
15634
|
+
option_groupvue_type_template_id_8883e69e_staticRenderFns,
|
|
15635
|
+
false,
|
|
15636
|
+
null,
|
|
15637
|
+
null,
|
|
15638
|
+
null
|
|
15639
|
+
|
|
15640
|
+
)
|
|
15641
|
+
|
|
15642
|
+
/* harmony default export */ var option_group = (option_group_component.exports);
|
|
15643
|
+
// CONCATENATED MODULE: ./src/package-admin/p-select/index.js
|
|
15644
|
+
|
|
15645
|
+
|
|
15646
|
+
|
|
15647
|
+
|
|
15648
|
+
const components = [src_select, src_option, option_group, select_dropdown];
|
|
15649
|
+
const install = function (Vue) {
|
|
15650
|
+
components.forEach(comp => {
|
|
15651
|
+
Vue.component(comp.name, comp);
|
|
15652
|
+
});
|
|
15653
|
+
};
|
|
15654
|
+
/* harmony default export */ var p_select = ({
|
|
15655
|
+
install
|
|
15656
|
+
});
|
|
15657
|
+
|
|
15658
|
+
// EXTERNAL MODULE: ./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js
|
|
15659
|
+
var helper = __webpack_require__("2638");
|
|
15660
|
+
var helper_default = /*#__PURE__*/__webpack_require__.n(helper);
|
|
15661
|
+
|
|
15662
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/src/config.js
|
|
15663
|
+
|
|
15664
|
+
|
|
15665
|
+
const cellStarts = {
|
|
15666
|
+
default: {
|
|
15667
|
+
order: ''
|
|
15668
|
+
},
|
|
15669
|
+
selection: {
|
|
15670
|
+
width: 48,
|
|
15671
|
+
minWidth: 48,
|
|
15672
|
+
realWidth: 48,
|
|
15673
|
+
order: '',
|
|
15674
|
+
className: 'el-table-column--selection'
|
|
15675
|
+
},
|
|
15676
|
+
expand: {
|
|
15677
|
+
width: 48,
|
|
15678
|
+
minWidth: 48,
|
|
15679
|
+
realWidth: 48,
|
|
15680
|
+
order: ''
|
|
15681
|
+
},
|
|
15682
|
+
index: {
|
|
15683
|
+
width: 48,
|
|
15684
|
+
minWidth: 48,
|
|
15685
|
+
realWidth: 48,
|
|
15686
|
+
order: ''
|
|
15687
|
+
}
|
|
15688
|
+
};
|
|
15689
|
+
|
|
15690
|
+
// 这些选项不应该被覆盖
|
|
15691
|
+
const cellForced = {
|
|
15692
|
+
selection: {
|
|
15693
|
+
renderHeader: function (h, {
|
|
15694
|
+
store
|
|
15695
|
+
}) {
|
|
15696
|
+
return h("p-checkbox", {
|
|
15697
|
+
"attrs": {
|
|
15698
|
+
"disabled": store.states.data && store.states.data.length === 0,
|
|
15699
|
+
"indeterminate": store.states.selection.length > 0 && !this.isAllSelected,
|
|
15700
|
+
"value": this.isAllSelected
|
|
15701
|
+
},
|
|
15702
|
+
"on": {
|
|
15703
|
+
"input": this.toggleAllSelection
|
|
15704
|
+
}
|
|
15705
|
+
});
|
|
15706
|
+
},
|
|
15707
|
+
renderCell: function (h, {
|
|
15708
|
+
row,
|
|
15709
|
+
column,
|
|
15710
|
+
isSelected,
|
|
15711
|
+
store,
|
|
15712
|
+
$index
|
|
15713
|
+
}) {
|
|
15714
|
+
return h("p-checkbox", {
|
|
15715
|
+
"nativeOn": {
|
|
15716
|
+
"click": event => event.stopPropagation()
|
|
15717
|
+
},
|
|
15718
|
+
"attrs": {
|
|
15719
|
+
"value": isSelected,
|
|
15720
|
+
"disabled": column.selectable ? !column.selectable.call(null, row, $index) : false
|
|
15721
|
+
},
|
|
15722
|
+
"on": {
|
|
15723
|
+
"input": () => {
|
|
15724
|
+
store.commit('rowSelectedChanged', row);
|
|
15725
|
+
}
|
|
15726
|
+
}
|
|
15727
|
+
});
|
|
15728
|
+
},
|
|
15729
|
+
sortable: false,
|
|
15730
|
+
resizable: false
|
|
15731
|
+
},
|
|
15732
|
+
index: {
|
|
15733
|
+
renderHeader: function (h, {
|
|
15734
|
+
column
|
|
15735
|
+
}) {
|
|
15736
|
+
return column.label || '#';
|
|
15737
|
+
},
|
|
15738
|
+
renderCell: function (h, {
|
|
15739
|
+
$index,
|
|
15740
|
+
column
|
|
15741
|
+
}) {
|
|
15742
|
+
let i = $index + 1;
|
|
15743
|
+
const index = column.index;
|
|
15744
|
+
if (typeof index === 'number') {
|
|
15745
|
+
i = $index + index;
|
|
15746
|
+
} else if (typeof index === 'function') {
|
|
15747
|
+
i = index($index);
|
|
15748
|
+
}
|
|
15749
|
+
return h("div", [i]);
|
|
15750
|
+
},
|
|
15751
|
+
sortable: false
|
|
15752
|
+
},
|
|
15753
|
+
expand: {
|
|
15754
|
+
renderHeader: function (h, {
|
|
15755
|
+
column
|
|
15756
|
+
}) {
|
|
15757
|
+
return column.label || '';
|
|
15758
|
+
},
|
|
15759
|
+
renderCell: function (h, {
|
|
15760
|
+
row,
|
|
15761
|
+
store,
|
|
15762
|
+
isExpanded
|
|
15763
|
+
}) {
|
|
15764
|
+
const classes = ['el-table__expand-icon'];
|
|
15765
|
+
if (isExpanded) {
|
|
15766
|
+
classes.push('el-table__expand-icon--expanded');
|
|
15767
|
+
}
|
|
15768
|
+
const callback = function (e) {
|
|
15769
|
+
e.stopPropagation();
|
|
15770
|
+
store.toggleRowExpansion(row);
|
|
15771
|
+
};
|
|
15772
|
+
return h("div", {
|
|
15773
|
+
"class": classes,
|
|
15774
|
+
"on": {
|
|
15775
|
+
"click": callback
|
|
15776
|
+
}
|
|
15777
|
+
}, [h("i", {
|
|
15778
|
+
"class": "el-icon el-icon-arrow-right"
|
|
15779
|
+
})]);
|
|
15780
|
+
},
|
|
15781
|
+
sortable: false,
|
|
15782
|
+
resizable: false,
|
|
15783
|
+
className: 'el-table__expand-column'
|
|
15784
|
+
}
|
|
15785
|
+
};
|
|
15786
|
+
function defaultRenderCell(h, {
|
|
15787
|
+
row,
|
|
15788
|
+
column,
|
|
15789
|
+
$index
|
|
15790
|
+
}) {
|
|
15791
|
+
const property = column.property;
|
|
15792
|
+
const value = property && getPropByPath(row, property).v;
|
|
15793
|
+
if (column && column.formatter) {
|
|
15794
|
+
return column.formatter(row, column, value, $index);
|
|
15795
|
+
}
|
|
15796
|
+
return value;
|
|
15797
|
+
}
|
|
15798
|
+
function treeCellPrefix(h, {
|
|
15799
|
+
row,
|
|
15800
|
+
treeNode,
|
|
15801
|
+
store
|
|
15802
|
+
}) {
|
|
15803
|
+
if (!treeNode) return null;
|
|
15804
|
+
const ele = [];
|
|
15805
|
+
const callback = function (e) {
|
|
15806
|
+
e.stopPropagation();
|
|
15807
|
+
store.loadOrToggle(row);
|
|
15808
|
+
};
|
|
15809
|
+
if (treeNode.indent) {
|
|
15810
|
+
ele.push(h("span", {
|
|
15811
|
+
"class": "el-table__indent",
|
|
15812
|
+
"style": {
|
|
15813
|
+
'padding-left': treeNode.indent + 'px'
|
|
15814
|
+
}
|
|
15815
|
+
}));
|
|
15816
|
+
}
|
|
15817
|
+
if (typeof treeNode.expanded === 'boolean' && !treeNode.noLazyChildren) {
|
|
15818
|
+
const expandClasses = ['el-table__expand-icon', treeNode.expanded ? 'el-table__expand-icon--expanded' : ''];
|
|
15819
|
+
let iconClasses = ['el-icon-arrow-right'];
|
|
15820
|
+
if (treeNode.loading) {
|
|
15821
|
+
iconClasses = ['el-icon-loading'];
|
|
15822
|
+
}
|
|
15823
|
+
ele.push(h("div", {
|
|
15824
|
+
"class": expandClasses,
|
|
15825
|
+
"on": {
|
|
15826
|
+
"click": callback
|
|
13771
15827
|
}
|
|
13772
15828
|
}, [h("i", {
|
|
13773
15829
|
"class": iconClasses
|
|
@@ -13836,10 +15892,10 @@ let columnIdSeed = 1;
|
|
|
13836
15892
|
sortOrders: {
|
|
13837
15893
|
type: Array,
|
|
13838
15894
|
default() {
|
|
13839
|
-
return ['
|
|
15895
|
+
return ['_ascending', '_descending', null];
|
|
13840
15896
|
},
|
|
13841
15897
|
validator(val) {
|
|
13842
|
-
return val.every(order => ['
|
|
15898
|
+
return val.every(order => ['_ascending', '_descending', null].indexOf(order) > -1);
|
|
13843
15899
|
}
|
|
13844
15900
|
}
|
|
13845
15901
|
},
|
|
@@ -14004,7 +16060,7 @@ let columnIdSeed = 1;
|
|
|
14004
16060
|
}
|
|
14005
16061
|
},
|
|
14006
16062
|
components: {
|
|
14007
|
-
PCheckbox:
|
|
16063
|
+
PCheckbox: Chcekbox
|
|
14008
16064
|
},
|
|
14009
16065
|
beforeCreate() {
|
|
14010
16066
|
this.row = {};
|
|
@@ -14070,88 +16126,41 @@ let columnIdSeed = 1;
|
|
|
14070
16126
|
return h('div', this.$slots.default);
|
|
14071
16127
|
}
|
|
14072
16128
|
});
|
|
14073
|
-
// CONCATENATED MODULE: ./src/package-admin/p-table/
|
|
16129
|
+
// CONCATENATED MODULE: ./src/package-admin/p-table/Table-column/index.js
|
|
14074
16130
|
|
|
14075
16131
|
|
|
14076
16132
|
/* istanbul ignore next */
|
|
14077
16133
|
table_column.install = function (Vue) {
|
|
14078
16134
|
Vue.component(table_column.name, table_column);
|
|
14079
16135
|
};
|
|
14080
|
-
/* harmony default export */ var
|
|
14081
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14082
|
-
var
|
|
16136
|
+
/* harmony default export */ var Table_column = (table_column);
|
|
16137
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7fe5194a-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-test-button/index.vue?vue&type=template&id=d188734e&scoped=true
|
|
16138
|
+
var p_test_buttonvue_type_template_id_d188734e_scoped_true_render = function render() {
|
|
14083
16139
|
var _vm = this,
|
|
14084
16140
|
_c = _vm._self._c;
|
|
14085
|
-
return
|
|
14086
|
-
directives: [{
|
|
14087
|
-
name: "model",
|
|
14088
|
-
rawName: "v-model",
|
|
14089
|
-
value: _vm.value,
|
|
14090
|
-
expression: "value"
|
|
14091
|
-
}],
|
|
14092
|
-
ref: "newInput",
|
|
14093
|
-
domProps: {
|
|
14094
|
-
"value": _vm.value
|
|
14095
|
-
},
|
|
14096
|
-
on: {
|
|
14097
|
-
"input": [function ($event) {
|
|
14098
|
-
if ($event.target.composing) return;
|
|
14099
|
-
_vm.value = $event.target.value;
|
|
14100
|
-
}, _vm.inputHandler]
|
|
14101
|
-
}
|
|
14102
|
-
})]);
|
|
16141
|
+
return _vm._m(0);
|
|
14103
16142
|
};
|
|
14104
|
-
var
|
|
16143
|
+
var p_test_buttonvue_type_template_id_d188734e_scoped_true_staticRenderFns = [function () {
|
|
16144
|
+
var _vm = this,
|
|
16145
|
+
_c = _vm._self._c;
|
|
16146
|
+
return _c('div', [_c('button', {
|
|
16147
|
+
staticClass: "p-button-test",
|
|
16148
|
+
staticStyle: {
|
|
16149
|
+
"color": "red"
|
|
16150
|
+
}
|
|
16151
|
+
}, [_vm._v("我是测试按钮")])]);
|
|
16152
|
+
}];
|
|
14105
16153
|
|
|
14106
|
-
// CONCATENATED MODULE: ./src/package-admin/p-test-button/index.vue?vue&type=template&id=
|
|
16154
|
+
// CONCATENATED MODULE: ./src/package-admin/p-test-button/index.vue?vue&type=template&id=d188734e&scoped=true
|
|
14107
16155
|
|
|
14108
16156
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package-admin/p-test-button/index.vue?vue&type=script&lang=js
|
|
14109
16157
|
/* harmony default export */ var p_test_buttonvue_type_script_lang_js = ({
|
|
14110
|
-
name: "p-test-button"
|
|
14111
|
-
//组件名
|
|
14112
|
-
data() {
|
|
14113
|
-
return {
|
|
14114
|
-
value: ""
|
|
14115
|
-
};
|
|
14116
|
-
},
|
|
14117
|
-
methods: {
|
|
14118
|
-
inputHandler(e) {
|
|
14119
|
-
let formatValue = this.value;
|
|
14120
|
-
const newValue = this.value.replace(/^\+1\s*/, "").replace(/\D/g, "");
|
|
14121
|
-
if (newValue > 0) {
|
|
14122
|
-
let formattedNumber = "";
|
|
14123
|
-
if (newValue.length <= 3) {
|
|
14124
|
-
formattedNumber = `(${newValue}`;
|
|
14125
|
-
} else if (newValue.length <= 6) {
|
|
14126
|
-
formattedNumber = `(${newValue.slice(0, 3)}) ${newValue.slice(3)}`;
|
|
14127
|
-
} else {
|
|
14128
|
-
formattedNumber = `(${newValue.slice(0, 3)}) ${newValue.slice(3, 6)}-${newValue.slice(6, 10)}`;
|
|
14129
|
-
}
|
|
14130
|
-
|
|
14131
|
-
// 如果当前值不包含前缀,添加前缀
|
|
14132
|
-
if (!newValue.startsWith("+1")) {
|
|
14133
|
-
formatValue = `+1 ${formattedNumber}`;
|
|
14134
|
-
} else {
|
|
14135
|
-
// 如果已经有前缀,只更新数字部分
|
|
14136
|
-
const prefix = "+1 ";
|
|
14137
|
-
formatValue = prefix + formattedNumber;
|
|
14138
|
-
}
|
|
14139
|
-
} else {
|
|
14140
|
-
formatValue = "";
|
|
14141
|
-
}
|
|
14142
|
-
this.$nextTick(() => {
|
|
14143
|
-
this.$refs.newInput.value = formatValue;
|
|
14144
|
-
if (this.$refs.newInput.selectionStart > 3) {
|
|
14145
|
-
this.$refs.newInput.setSelectionRange(6, 6);
|
|
14146
|
-
}
|
|
14147
|
-
});
|
|
14148
|
-
}
|
|
14149
|
-
}
|
|
16158
|
+
name: "p-test-button" //组件名
|
|
14150
16159
|
});
|
|
14151
16160
|
// CONCATENATED MODULE: ./src/package-admin/p-test-button/index.vue?vue&type=script&lang=js
|
|
14152
16161
|
/* harmony default export */ var package_admin_p_test_buttonvue_type_script_lang_js = (p_test_buttonvue_type_script_lang_js);
|
|
14153
|
-
// EXTERNAL MODULE: ./src/package-admin/p-test-button/index.vue?vue&type=style&index=0&id=
|
|
14154
|
-
var
|
|
16162
|
+
// EXTERNAL MODULE: ./src/package-admin/p-test-button/index.vue?vue&type=style&index=0&id=d188734e&prod&scoped=true&lang=css
|
|
16163
|
+
var p_test_buttonvue_type_style_index_0_id_d188734e_prod_scoped_true_lang_css = __webpack_require__("2c40");
|
|
14155
16164
|
|
|
14156
16165
|
// CONCATENATED MODULE: ./src/package-admin/p-test-button/index.vue
|
|
14157
16166
|
|
|
@@ -14164,11 +16173,11 @@ var p_test_buttonvue_type_style_index_0_id_49a4be89_prod_scoped_true_lang_css =
|
|
|
14164
16173
|
|
|
14165
16174
|
var p_test_button_component = normalizeComponent(
|
|
14166
16175
|
package_admin_p_test_buttonvue_type_script_lang_js,
|
|
14167
|
-
|
|
14168
|
-
|
|
16176
|
+
p_test_buttonvue_type_template_id_d188734e_scoped_true_render,
|
|
16177
|
+
p_test_buttonvue_type_template_id_d188734e_scoped_true_staticRenderFns,
|
|
14169
16178
|
false,
|
|
14170
16179
|
null,
|
|
14171
|
-
"
|
|
16180
|
+
"d188734e",
|
|
14172
16181
|
null
|
|
14173
16182
|
|
|
14174
16183
|
)
|
|
@@ -14180,12 +16189,13 @@ var p_test_button_component = normalizeComponent(
|
|
|
14180
16189
|
|
|
14181
16190
|
|
|
14182
16191
|
|
|
16192
|
+
|
|
14183
16193
|
// 所有组件
|
|
14184
|
-
const
|
|
16194
|
+
const package_admin_components = [p_table, src_select, src_option, option_group, select_dropdown, Table_column, p_test_button];
|
|
14185
16195
|
|
|
14186
16196
|
// install 方法
|
|
14187
|
-
const
|
|
14188
|
-
|
|
16197
|
+
const package_admin_install = function (Vue) {
|
|
16198
|
+
package_admin_components.forEach(com => {
|
|
14189
16199
|
Vue.component(com.name, com);
|
|
14190
16200
|
});
|
|
14191
16201
|
};
|
|
@@ -14194,7 +16204,7 @@ const install = function (Vue) {
|
|
|
14194
16204
|
|
|
14195
16205
|
|
|
14196
16206
|
// 支持全局引入
|
|
14197
|
-
/* harmony default export */ var package_admin = (
|
|
16207
|
+
/* harmony default export */ var package_admin = (package_admin_install);
|
|
14198
16208
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
14199
16209
|
|
|
14200
16210
|
|