vue-element-ui-x 1.0.3 → 1.0.31-beta
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/README.md +20 -9
- package/components.json +13 -0
- package/lib/components/Attachments/index.js +987 -995
- package/lib/components/Bubble/index.js +10656 -10705
- package/lib/components/BubbleList/index.js +10951 -11038
- package/lib/components/Conversations/index.js +14026 -14063
- package/lib/components/FilesCard/index.js +606 -614
- package/lib/components/Prompts/index.js +457 -470
- package/lib/components/Sender/index.js +1701 -1678
- package/lib/components/Thinking/index.js +695 -703
- package/lib/components/ThoughtChain/index.js +25117 -25173
- package/lib/components/Typewriter/index.js +10247 -10302
- package/lib/components/Welcome/index.js +357 -370
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +32068 -32093
- package/lib/index.umd.js +1 -1
- package/lib/mixins/index.js +61 -116
- package/package.json +24 -6
- package/src/components/Attachments/index.js +8 -8
- package/src/components/Bubble/index.js +6 -6
- package/src/components/BubbleList/index.js +8 -8
- package/src/components/BubbleList/src/loading.vue +75 -75
- package/src/components/Conversations/index.js +8 -8
- package/src/components/FilesCard/index.js +8 -8
- package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
- package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
- package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/index.js +46 -46
- package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
- package/src/components/FilesCard/src/main.vue +14 -12
- package/src/components/FilesCard/src/options.js +18 -18
- package/src/components/Prompts/index.js +8 -8
- package/src/components/Sender/index.js +8 -8
- package/src/components/Sender/src/components/ClearButton.vue +28 -28
- package/src/components/Sender/src/components/Loading.vue +53 -53
- package/src/components/Sender/src/components/SendButton.vue +26 -26
- package/src/components/Sender/src/components/SpeechButton.vue +24 -24
- package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
- package/src/components/Sender/src/main.vue +47 -13
- package/src/components/Thinking/index.js +8 -8
- package/src/components/ThoughtChain/index.js +8 -8
- package/src/components/Typewriter/index.js +8 -8
- package/src/components/Welcome/index.js +8 -8
- package/src/index.js +7 -9
- package/src/styles/Sender.scss +1 -1
- package/lib/locale/lang/ar-SA.js +0 -18
- package/lib/locale/lang/ar-SA.umd.js +0 -26
- package/lib/locale/lang/de-DE.js +0 -18
- package/lib/locale/lang/de-DE.umd.js +0 -26
- package/lib/locale/lang/es-ES.js +0 -18
- package/lib/locale/lang/es-ES.umd.js +0 -26
- package/lib/locale/lang/fr-FR.js +0 -18
- package/lib/locale/lang/fr-FR.umd.js +0 -26
- package/lib/locale/lang/it-IT.js +0 -18
- package/lib/locale/lang/it-IT.umd.js +0 -26
- package/lib/locale/lang/ja-JP.js +0 -18
- package/lib/locale/lang/ja-JP.umd.js +0 -26
- package/lib/locale/lang/ko-KR.js +0 -18
- package/lib/locale/lang/ko-KR.umd.js +0 -26
- package/src/styles/button.scss +0 -302
- package/src/styles/var.scss +0 -1051
- /package/lib/locale/lang/{pt-BR.js → pt-br.js} +0 -0
- /package/lib/locale/lang/{pt-BR.umd.js → pt-br.umd.js} +0 -0
|
@@ -1,97 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/******/ function __webpack_require__(moduleId) {
|
|
8
|
-
/******/
|
|
9
|
-
/******/ // Check if module is in cache
|
|
10
|
-
/******/ if(installedModules[moduleId]) {
|
|
11
|
-
/******/ return installedModules[moduleId].exports;
|
|
12
|
-
/******/ }
|
|
13
|
-
/******/ // Create a new module (and put it into the cache)
|
|
14
|
-
/******/ var module = installedModules[moduleId] = {
|
|
15
|
-
/******/ i: moduleId,
|
|
16
|
-
/******/ l: false,
|
|
17
|
-
/******/ exports: {}
|
|
18
|
-
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/ // Execute the module function
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 104);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 4466:
|
|
6
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
89
7
|
|
|
90
|
-
|
|
91
|
-
|
|
8
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10
|
+
/* harmony export */ });
|
|
11
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6314);
|
|
12
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
13
|
+
// Imports
|
|
14
|
+
|
|
15
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
16
|
+
// Module
|
|
17
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-ee2290d4]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-prompts[data-v-ee2290d4]{max-width:100%}.el-x-prompts[data-v-ee2290d4],.el-x-prompts *[data-v-ee2290d4]{box-sizing:border-box}.el-x-prompts.el-x-prompts-rtl[data-v-ee2290d4]{direction:rtl}.el-x-prompts .el-x-prompts-title[data-v-ee2290d4]{font-weight:normal;font-size:16px;color:#909399;margin-top:0;margin-bottom:.5em}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;list-style:none;padding-left:0;margin:0;align-items:stretch}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]::-webkit-scrollbar{display:none}.el-x-prompts .el-x-prompts-list-wrap[data-v-ee2290d4]{flex-wrap:wrap}.el-x-prompts .el-x-prompts-list-vertical[data-v-ee2290d4]{flex-direction:column;align-items:flex-start}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{flex-wrap:wrap;gap:8px}.el-x-prompts .el-x-prompts-list-wrap[data-v-ee2290d4]{justify-content:space-between}}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{flex:none;display:flex;gap:4px;height:auto;padding:12px 18px;align-items:flex-start;justify-content:flex-start;background:#fff;border-radius:8px;transition:border all .3s cubic-bezier(0.645, 0.045, 0.355, 1),background all .3s cubic-bezier(0.645, 0.045, 0.355, 1);border:1px solid #ebeef5}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:calc(50% - 4px);min-width:150px;padding:8px 12px}.el-x-prompts-list-wrap .el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:calc(50% - 4px);margin-bottom:8px}.el-x-prompts-list-vertical .el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:100%}}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]:not(.el-x-prompts-item-has-nest):hover{cursor:pointer;background:#f5f7fa}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]:not(.el-x-prompts-item-has-nest):active{background:#ecf5ff}.el-x-prompts .el-x-prompts-item .el-x-prompts-content[data-v-ee2290d4]{flex:auto;min-width:0;display:flex;gap:4px;flex-direction:column;align-items:flex-start}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item .el-x-prompts-content[data-v-ee2290d4]{width:100%;gap:2px}}.el-x-prompts .el-x-prompts-item .el-x-prompts-icon[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-desc[data-v-ee2290d4]{margin:0;padding:0;font-size:14px;line-height:24px;text-align:start;white-space:normal}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item .el-x-prompts-icon[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-desc[data-v-ee2290d4]{font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4]{color:#303133;font-weight:500}.el-x-prompts .el-x-prompts-item .el-x-prompts-label+.el-x-prompts-desc[data-v-ee2290d4]{color:#909399}.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled[data-v-ee2290d4]{pointer-events:none;background:#f5f7fa}.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled .el-x-prompts-desc[data-v-ee2290d4]{color:#909399}.el-x-prompts .el-x-prompts-item-has-nest>.el-x-prompts-content>.el-x-prompts-label[data-v-ee2290d4]{font-size:18px;line-height:24px}.el-x-prompts.el-x-prompts-nested[data-v-ee2290d4]{margin-top:5px;align-self:stretch}.el-x-prompts.el-x-prompts-nested .el-x-prompts-list[data-v-ee2290d4]{align-items:stretch}.el-x-prompts.el-x-prompts-nested .el-x-prompts-item[data-v-ee2290d4]{border:0;background:#f5f7fa}", ""]);
|
|
18
|
+
// Exports
|
|
19
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/***/ }),
|
|
23
|
+
|
|
24
|
+
/***/ 4486:
|
|
25
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
92
26
|
|
|
93
|
-
|
|
94
|
-
/* harmony export
|
|
27
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28
|
+
/* harmony export */ A: () => (/* binding */ normalizeComponent)
|
|
29
|
+
/* harmony export */ });
|
|
95
30
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
96
31
|
|
|
97
32
|
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
@@ -192,377 +127,32 @@ function normalizeComponent(
|
|
|
192
127
|
|
|
193
128
|
/***/ }),
|
|
194
129
|
|
|
195
|
-
/***/
|
|
196
|
-
/***/ (
|
|
197
|
-
|
|
198
|
-
"use strict";
|
|
199
|
-
// ESM COMPAT FLAG
|
|
200
|
-
__webpack_require__.r(__webpack_exports__);
|
|
130
|
+
/***/ 5072:
|
|
131
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
201
132
|
|
|
202
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Prompts/src/main.vue?vue&type=template&id=ee2290d4&scoped=true
|
|
203
|
-
var render = function render() {
|
|
204
|
-
var _vm = this,
|
|
205
|
-
_c = _vm._self._c;
|
|
206
|
-
return _c("div", {
|
|
207
|
-
class: ["el-x-prompts", {
|
|
208
|
-
"el-x-prompts-rtl": _vm.direction === "rtl"
|
|
209
|
-
}, _vm.rootClassName],
|
|
210
|
-
style: _vm.customStyle
|
|
211
|
-
}, [_vm.title ? _c("h5", {
|
|
212
|
-
staticClass: "el-x-prompts-title",
|
|
213
|
-
class: [_vm.classNames.title],
|
|
214
|
-
style: _vm.titleStyle
|
|
215
|
-
}, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")]) : _vm._e(), _vm._v(" "), _c("div", {
|
|
216
|
-
class: ["el-x-prompts-list", {
|
|
217
|
-
"el-x-prompts-list-wrap": _vm.wrap,
|
|
218
|
-
"el-x-prompts-list-vertical": _vm.vertical
|
|
219
|
-
}, _vm.classNames.list],
|
|
220
|
-
style: _vm.listStyle
|
|
221
|
-
}, _vm._l(_vm.items, function (info, index) {
|
|
222
|
-
return _c("div", {
|
|
223
|
-
key: info.key || `key_${index}`,
|
|
224
|
-
class: ["el-x-prompts-item", {
|
|
225
|
-
"el-x-prompts-item-disabled": info.disabled,
|
|
226
|
-
"el-x-prompts-item-has-nest": _vm.hasChildren(info)
|
|
227
|
-
}, _vm.classNames.item],
|
|
228
|
-
style: _vm.itemStyle,
|
|
229
|
-
on: {
|
|
230
|
-
click: function ($event) {
|
|
231
|
-
return _vm.handleItemClick(info);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}, [info.icon ? _c("div", {
|
|
235
|
-
staticClass: "el-x-prompts-icon"
|
|
236
|
-
}, [_vm._t("icon", function () {
|
|
237
|
-
return [_c("i", {
|
|
238
|
-
class: info.icon
|
|
239
|
-
})];
|
|
240
|
-
}, {
|
|
241
|
-
item: info
|
|
242
|
-
})], 2) : _vm._e(), _vm._v(" "), _c("div", {
|
|
243
|
-
class: ["el-x-prompts-content", _vm.classNames.itemContent],
|
|
244
|
-
style: _vm.itemContentStyle
|
|
245
|
-
}, [info.label ? _c("h6", {
|
|
246
|
-
staticClass: "el-x-prompts-label"
|
|
247
|
-
}, [_vm._t("label", function () {
|
|
248
|
-
return [_vm._v(_vm._s(info.label))];
|
|
249
|
-
}, {
|
|
250
|
-
item: info
|
|
251
|
-
})], 2) : _vm._e(), _vm._v(" "), info.description ? _c("p", {
|
|
252
|
-
staticClass: "el-x-prompts-desc"
|
|
253
|
-
}, [_vm._t("description", function () {
|
|
254
|
-
return [_vm._v(_vm._s(info.description))];
|
|
255
|
-
}, {
|
|
256
|
-
item: info
|
|
257
|
-
})], 2) : _vm._e(), _vm._v(" "), _vm.hasChildren(info) ? _c(_vm.$options.name, {
|
|
258
|
-
tag: "component",
|
|
259
|
-
staticClass: "el-x-prompts-nested",
|
|
260
|
-
attrs: {
|
|
261
|
-
items: info.children,
|
|
262
|
-
vertical: true,
|
|
263
|
-
"class-names": {
|
|
264
|
-
list: _vm.classNames.subList,
|
|
265
|
-
item: _vm.classNames.subItem
|
|
266
|
-
},
|
|
267
|
-
styles: {
|
|
268
|
-
list: _vm.styles.subList,
|
|
269
|
-
item: _vm.styles.subItem
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
on: {
|
|
273
|
-
"on-item-click": function ($event) {
|
|
274
|
-
return _vm.$emit("on-item-click", $event);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}) : _vm._e()], 1)]);
|
|
278
|
-
}), 0)]);
|
|
279
|
-
};
|
|
280
|
-
var staticRenderFns = [];
|
|
281
|
-
render._withStripped = true;
|
|
282
133
|
|
|
283
|
-
// CONCATENATED MODULE: ./src/components/Prompts/src/main.vue?vue&type=template&id=ee2290d4&scoped=true
|
|
284
134
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
},
|
|
296
|
-
/**
|
|
297
|
-
* 显示在提示列表顶部的标题
|
|
298
|
-
*/
|
|
299
|
-
title: {
|
|
300
|
-
type: String,
|
|
301
|
-
default: ''
|
|
302
|
-
},
|
|
303
|
-
/**
|
|
304
|
-
* Item 提示项被点击时的回调函数
|
|
305
|
-
*/
|
|
306
|
-
onItemClick: {
|
|
307
|
-
type: Function,
|
|
308
|
-
default: null
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
* 提示列表是否垂直排列
|
|
312
|
-
*/
|
|
313
|
-
vertical: {
|
|
314
|
-
type: Boolean,
|
|
315
|
-
default: false
|
|
316
|
-
},
|
|
317
|
-
/**
|
|
318
|
-
* 提示列表是否换行
|
|
319
|
-
*/
|
|
320
|
-
wrap: {
|
|
321
|
-
type: Boolean,
|
|
322
|
-
default: false
|
|
323
|
-
},
|
|
324
|
-
/**
|
|
325
|
-
* 自定义样式,用于各个提示项的不同部分
|
|
326
|
-
*/
|
|
327
|
-
styles: {
|
|
328
|
-
type: Object,
|
|
329
|
-
default: () => ({})
|
|
330
|
-
},
|
|
331
|
-
/**
|
|
332
|
-
* 自定义样式类名,用于各个提示项的不同部分
|
|
333
|
-
*/
|
|
334
|
-
classNames: {
|
|
335
|
-
type: Object,
|
|
336
|
-
default: () => ({})
|
|
337
|
-
},
|
|
338
|
-
/**
|
|
339
|
-
* 根节点的样式类名
|
|
340
|
-
*/
|
|
341
|
-
rootClassName: {
|
|
342
|
-
type: String,
|
|
343
|
-
default: ''
|
|
344
|
-
},
|
|
345
|
-
/**
|
|
346
|
-
* 自定义样式
|
|
347
|
-
*/
|
|
348
|
-
customStyle: {
|
|
349
|
-
type: Object,
|
|
350
|
-
default: () => ({})
|
|
351
|
-
},
|
|
352
|
-
/**
|
|
353
|
-
* 方向
|
|
354
|
-
*/
|
|
355
|
-
direction: {
|
|
356
|
-
type: String,
|
|
357
|
-
default: 'ltr'
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
computed: {
|
|
361
|
-
titleStyle() {
|
|
362
|
-
return {
|
|
363
|
-
...this.styles.title
|
|
364
|
-
};
|
|
365
|
-
},
|
|
366
|
-
listStyle() {
|
|
367
|
-
return {
|
|
368
|
-
...this.styles.list
|
|
369
|
-
};
|
|
370
|
-
},
|
|
371
|
-
itemStyle() {
|
|
372
|
-
return {
|
|
373
|
-
...this.styles.item
|
|
374
|
-
};
|
|
375
|
-
},
|
|
376
|
-
itemContentStyle() {
|
|
377
|
-
return {
|
|
378
|
-
...this.styles.itemContent
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
methods: {
|
|
383
|
-
hasChildren(item) {
|
|
384
|
-
return item.children && item.children.length > 0;
|
|
385
|
-
},
|
|
386
|
-
handleItemClick(info) {
|
|
387
|
-
if (info.disabled) {
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
// 如果有子项,不触发点击事件
|
|
391
|
-
if (this.hasChildren(info)) {
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
this.$emit('on-item-click', {
|
|
395
|
-
data: info
|
|
396
|
-
});
|
|
397
|
-
// 向后兼容性
|
|
398
|
-
if (this.onItemClick) {
|
|
399
|
-
this.onItemClick({
|
|
400
|
-
data: info
|
|
401
|
-
});
|
|
402
|
-
}
|
|
135
|
+
var isOldIE = function isOldIE() {
|
|
136
|
+
var memo;
|
|
137
|
+
return function memorize() {
|
|
138
|
+
if (typeof memo === 'undefined') {
|
|
139
|
+
// Test for IE <= 9 as proposed by Browserhacks
|
|
140
|
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
141
|
+
// Tests for existence of standard globals is to allow style-loader
|
|
142
|
+
// to operate correctly into non-standard environments
|
|
143
|
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
144
|
+
memo = Boolean(window && document && document.all && !window.atob);
|
|
403
145
|
}
|
|
404
|
-
}
|
|
405
|
-
});
|
|
406
|
-
// CONCATENATED MODULE: ./src/components/Prompts/src/main.vue?vue&type=script&lang=js
|
|
407
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
408
|
-
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
409
|
-
var injectStylesIntoStyleTag = __webpack_require__(3);
|
|
410
|
-
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
411
|
-
|
|
412
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Prompts/src/main.vue?vue&type=style&index=0&id=ee2290d4&prod&lang=scss&scoped=true
|
|
413
|
-
var mainvue_type_style_index_0_id_ee2290d4_prod_lang_scss_scoped_true = __webpack_require__(91);
|
|
414
|
-
|
|
415
|
-
// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Prompts/src/main.vue?vue&type=style&index=0&id=ee2290d4&prod&lang=scss&scoped=true
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
var options = {};
|
|
420
|
-
|
|
421
|
-
options.insert = "head";
|
|
422
|
-
options.singleton = false;
|
|
423
|
-
|
|
424
|
-
var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_ee2290d4_prod_lang_scss_scoped_true["a" /* default */], options);
|
|
425
146
|
|
|
147
|
+
return memo;
|
|
148
|
+
};
|
|
149
|
+
}();
|
|
426
150
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
//
|
|
432
|
-
var componentNormalizer = __webpack_require__(0);
|
|
433
|
-
|
|
434
|
-
// CONCATENATED MODULE: ./src/components/Prompts/src/main.vue
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
/* normalize component */
|
|
442
|
-
|
|
443
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
444
|
-
src_mainvue_type_script_lang_js,
|
|
445
|
-
render,
|
|
446
|
-
staticRenderFns,
|
|
447
|
-
false,
|
|
448
|
-
null,
|
|
449
|
-
"ee2290d4",
|
|
450
|
-
null
|
|
451
|
-
|
|
452
|
-
)
|
|
453
|
-
|
|
454
|
-
/* harmony default export */ var main = (component.exports);
|
|
455
|
-
// CONCATENATED MODULE: ./src/components/Prompts/index.js
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
/* istanbul ignore next */
|
|
459
|
-
main.install = function (Vue) {
|
|
460
|
-
Vue.component(main.name, main);
|
|
461
|
-
};
|
|
462
|
-
/* harmony default export */ var Prompts = __webpack_exports__["default"] = (main);
|
|
463
|
-
|
|
464
|
-
/***/ }),
|
|
465
|
-
|
|
466
|
-
/***/ 2:
|
|
467
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
468
|
-
|
|
469
|
-
"use strict";
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
/*
|
|
473
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
474
|
-
Author Tobias Koppers @sokra
|
|
475
|
-
*/
|
|
476
|
-
// css base code, injected by the css-loader
|
|
477
|
-
// eslint-disable-next-line func-names
|
|
478
|
-
module.exports = function (cssWithMappingToString) {
|
|
479
|
-
var list = []; // return the list of modules as css string
|
|
480
|
-
|
|
481
|
-
list.toString = function toString() {
|
|
482
|
-
return this.map(function (item) {
|
|
483
|
-
var content = cssWithMappingToString(item);
|
|
484
|
-
|
|
485
|
-
if (item[2]) {
|
|
486
|
-
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
return content;
|
|
490
|
-
}).join("");
|
|
491
|
-
}; // import a list of modules into the list
|
|
492
|
-
// eslint-disable-next-line func-names
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
list.i = function (modules, mediaQuery, dedupe) {
|
|
496
|
-
if (typeof modules === "string") {
|
|
497
|
-
// eslint-disable-next-line no-param-reassign
|
|
498
|
-
modules = [[null, modules, ""]];
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
var alreadyImportedModules = {};
|
|
502
|
-
|
|
503
|
-
if (dedupe) {
|
|
504
|
-
for (var i = 0; i < this.length; i++) {
|
|
505
|
-
// eslint-disable-next-line prefer-destructuring
|
|
506
|
-
var id = this[i][0];
|
|
507
|
-
|
|
508
|
-
if (id != null) {
|
|
509
|
-
alreadyImportedModules[id] = true;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
for (var _i = 0; _i < modules.length; _i++) {
|
|
515
|
-
var item = [].concat(modules[_i]);
|
|
516
|
-
|
|
517
|
-
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
518
|
-
// eslint-disable-next-line no-continue
|
|
519
|
-
continue;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
if (mediaQuery) {
|
|
523
|
-
if (!item[2]) {
|
|
524
|
-
item[2] = mediaQuery;
|
|
525
|
-
} else {
|
|
526
|
-
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
list.push(item);
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
return list;
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
/***/ }),
|
|
538
|
-
|
|
539
|
-
/***/ 3:
|
|
540
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
541
|
-
|
|
542
|
-
"use strict";
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
var isOldIE = function isOldIE() {
|
|
546
|
-
var memo;
|
|
547
|
-
return function memorize() {
|
|
548
|
-
if (typeof memo === 'undefined') {
|
|
549
|
-
// Test for IE <= 9 as proposed by Browserhacks
|
|
550
|
-
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
551
|
-
// Tests for existence of standard globals is to allow style-loader
|
|
552
|
-
// to operate correctly into non-standard environments
|
|
553
|
-
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
554
|
-
memo = Boolean(window && document && document.all && !window.atob);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
return memo;
|
|
558
|
-
};
|
|
559
|
-
}();
|
|
560
|
-
|
|
561
|
-
var getTarget = function getTarget() {
|
|
562
|
-
var memo = {};
|
|
563
|
-
return function memorize(target) {
|
|
564
|
-
if (typeof memo[target] === 'undefined') {
|
|
565
|
-
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
151
|
+
var getTarget = function getTarget() {
|
|
152
|
+
var memo = {};
|
|
153
|
+
return function memorize(target) {
|
|
154
|
+
if (typeof memo[target] === 'undefined') {
|
|
155
|
+
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
566
156
|
|
|
567
157
|
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
568
158
|
try {
|
|
@@ -636,7 +226,7 @@ function insertStyleElement(options) {
|
|
|
636
226
|
var attributes = options.attributes || {};
|
|
637
227
|
|
|
638
228
|
if (typeof attributes.nonce === 'undefined') {
|
|
639
|
-
var nonce = true ? __webpack_require__.nc :
|
|
229
|
+
var nonce = true ? __webpack_require__.nc : 0;
|
|
640
230
|
|
|
641
231
|
if (nonce) {
|
|
642
232
|
attributes.nonce = nonce;
|
|
@@ -812,21 +402,418 @@ module.exports = function (list, options) {
|
|
|
812
402
|
|
|
813
403
|
/***/ }),
|
|
814
404
|
|
|
815
|
-
/***/
|
|
816
|
-
/***/ (
|
|
405
|
+
/***/ 6314:
|
|
406
|
+
/***/ ((module) => {
|
|
817
407
|
|
|
818
|
-
"use strict";
|
|
819
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
820
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
821
|
-
// Imports
|
|
822
408
|
|
|
823
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
824
|
-
// Module
|
|
825
|
-
___CSS_LOADER_EXPORT___.push([module.i, "[data-v-ee2290d4]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-prompts[data-v-ee2290d4]{max-width:100%}.el-x-prompts[data-v-ee2290d4],.el-x-prompts *[data-v-ee2290d4]{box-sizing:border-box}.el-x-prompts.el-x-prompts-rtl[data-v-ee2290d4]{direction:rtl}.el-x-prompts .el-x-prompts-title[data-v-ee2290d4]{font-weight:normal;font-size:16px;color:#909399;margin-top:0;margin-bottom:.5em}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;list-style:none;padding-left:0;margin:0;align-items:stretch}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]::-webkit-scrollbar{display:none}.el-x-prompts .el-x-prompts-list-wrap[data-v-ee2290d4]{flex-wrap:wrap}.el-x-prompts .el-x-prompts-list-vertical[data-v-ee2290d4]{flex-direction:column;align-items:flex-start}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{flex-wrap:wrap;gap:8px}.el-x-prompts .el-x-prompts-list-wrap[data-v-ee2290d4]{justify-content:space-between}}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{flex:none;display:flex;gap:4px;height:auto;padding:12px 18px;align-items:flex-start;justify-content:flex-start;background:#fff;border-radius:8px;transition:border all .3s cubic-bezier(0.645, 0.045, 0.355, 1),background all .3s cubic-bezier(0.645, 0.045, 0.355, 1);border:1px solid #ebeef5}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:calc(50% - 4px);min-width:150px;padding:8px 12px}.el-x-prompts-list-wrap .el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:calc(50% - 4px);margin-bottom:8px}.el-x-prompts-list-vertical .el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:100%}}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]:not(.el-x-prompts-item-has-nest):hover{cursor:pointer;background:#f5f7fa}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]:not(.el-x-prompts-item-has-nest):active{background:#ecf5ff}.el-x-prompts .el-x-prompts-item .el-x-prompts-content[data-v-ee2290d4]{flex:auto;min-width:0;display:flex;gap:4px;flex-direction:column;align-items:flex-start}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item .el-x-prompts-content[data-v-ee2290d4]{width:100%;gap:2px}}.el-x-prompts .el-x-prompts-item .el-x-prompts-icon[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-desc[data-v-ee2290d4]{margin:0;padding:0;font-size:14px;line-height:24px;text-align:start;white-space:normal}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item .el-x-prompts-icon[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-desc[data-v-ee2290d4]{font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4]{color:#303133;font-weight:500}.el-x-prompts .el-x-prompts-item .el-x-prompts-label+.el-x-prompts-desc[data-v-ee2290d4]{color:#909399}.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled[data-v-ee2290d4]{pointer-events:none;background:#f5f7fa}.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled .el-x-prompts-desc[data-v-ee2290d4]{color:#909399}.el-x-prompts .el-x-prompts-item-has-nest>.el-x-prompts-content>.el-x-prompts-label[data-v-ee2290d4]{font-size:18px;line-height:24px}.el-x-prompts.el-x-prompts-nested[data-v-ee2290d4]{margin-top:5px;align-self:stretch}.el-x-prompts.el-x-prompts-nested .el-x-prompts-list[data-v-ee2290d4]{align-items:stretch}.el-x-prompts.el-x-prompts-nested .el-x-prompts-item[data-v-ee2290d4]{border:0;background:#f5f7fa}", ""]);
|
|
826
|
-
// Exports
|
|
827
|
-
/* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
|
|
828
409
|
|
|
410
|
+
/*
|
|
411
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
412
|
+
Author Tobias Koppers @sokra
|
|
413
|
+
*/
|
|
414
|
+
// css base code, injected by the css-loader
|
|
415
|
+
// eslint-disable-next-line func-names
|
|
416
|
+
module.exports = function (cssWithMappingToString) {
|
|
417
|
+
var list = []; // return the list of modules as css string
|
|
418
|
+
|
|
419
|
+
list.toString = function toString() {
|
|
420
|
+
return this.map(function (item) {
|
|
421
|
+
var content = cssWithMappingToString(item);
|
|
422
|
+
|
|
423
|
+
if (item[2]) {
|
|
424
|
+
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return content;
|
|
428
|
+
}).join("");
|
|
429
|
+
}; // import a list of modules into the list
|
|
430
|
+
// eslint-disable-next-line func-names
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
list.i = function (modules, mediaQuery, dedupe) {
|
|
434
|
+
if (typeof modules === "string") {
|
|
435
|
+
// eslint-disable-next-line no-param-reassign
|
|
436
|
+
modules = [[null, modules, ""]];
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
var alreadyImportedModules = {};
|
|
440
|
+
|
|
441
|
+
if (dedupe) {
|
|
442
|
+
for (var i = 0; i < this.length; i++) {
|
|
443
|
+
// eslint-disable-next-line prefer-destructuring
|
|
444
|
+
var id = this[i][0];
|
|
445
|
+
|
|
446
|
+
if (id != null) {
|
|
447
|
+
alreadyImportedModules[id] = true;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
for (var _i = 0; _i < modules.length; _i++) {
|
|
453
|
+
var item = [].concat(modules[_i]);
|
|
454
|
+
|
|
455
|
+
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
456
|
+
// eslint-disable-next-line no-continue
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (mediaQuery) {
|
|
461
|
+
if (!item[2]) {
|
|
462
|
+
item[2] = mediaQuery;
|
|
463
|
+
} else {
|
|
464
|
+
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
list.push(item);
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
return list;
|
|
473
|
+
};
|
|
829
474
|
|
|
830
475
|
/***/ })
|
|
831
476
|
|
|
832
|
-
/******/
|
|
477
|
+
/******/ });
|
|
478
|
+
/************************************************************************/
|
|
479
|
+
/******/ // The module cache
|
|
480
|
+
/******/ var __webpack_module_cache__ = {};
|
|
481
|
+
/******/
|
|
482
|
+
/******/ // The require function
|
|
483
|
+
/******/ function __webpack_require__(moduleId) {
|
|
484
|
+
/******/ // Check if module is in cache
|
|
485
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
486
|
+
/******/ if (cachedModule !== undefined) {
|
|
487
|
+
/******/ return cachedModule.exports;
|
|
488
|
+
/******/ }
|
|
489
|
+
/******/ // Create a new module (and put it into the cache)
|
|
490
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
491
|
+
/******/ id: moduleId,
|
|
492
|
+
/******/ // no module.loaded needed
|
|
493
|
+
/******/ exports: {}
|
|
494
|
+
/******/ };
|
|
495
|
+
/******/
|
|
496
|
+
/******/ // Execute the module function
|
|
497
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
498
|
+
/******/
|
|
499
|
+
/******/ // Return the exports of the module
|
|
500
|
+
/******/ return module.exports;
|
|
501
|
+
/******/ }
|
|
502
|
+
/******/
|
|
503
|
+
/************************************************************************/
|
|
504
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
505
|
+
/******/ (() => {
|
|
506
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
507
|
+
/******/ __webpack_require__.n = (module) => {
|
|
508
|
+
/******/ var getter = module && module.__esModule ?
|
|
509
|
+
/******/ () => (module['default']) :
|
|
510
|
+
/******/ () => (module);
|
|
511
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
512
|
+
/******/ return getter;
|
|
513
|
+
/******/ };
|
|
514
|
+
/******/ })();
|
|
515
|
+
/******/
|
|
516
|
+
/******/ /* webpack/runtime/define property getters */
|
|
517
|
+
/******/ (() => {
|
|
518
|
+
/******/ // define getter functions for harmony exports
|
|
519
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
520
|
+
/******/ for(var key in definition) {
|
|
521
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
522
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
523
|
+
/******/ }
|
|
524
|
+
/******/ }
|
|
525
|
+
/******/ };
|
|
526
|
+
/******/ })();
|
|
527
|
+
/******/
|
|
528
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
529
|
+
/******/ (() => {
|
|
530
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
531
|
+
/******/ })();
|
|
532
|
+
/******/
|
|
533
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
534
|
+
/******/ (() => {
|
|
535
|
+
/******/ // define __esModule on exports
|
|
536
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
537
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
538
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
539
|
+
/******/ }
|
|
540
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
541
|
+
/******/ };
|
|
542
|
+
/******/ })();
|
|
543
|
+
/******/
|
|
544
|
+
/******/ /* webpack/runtime/nonce */
|
|
545
|
+
/******/ (() => {
|
|
546
|
+
/******/ __webpack_require__.nc = undefined;
|
|
547
|
+
/******/ })();
|
|
548
|
+
/******/
|
|
549
|
+
/************************************************************************/
|
|
550
|
+
var __webpack_exports__ = {};
|
|
551
|
+
// ESM COMPAT FLAG
|
|
552
|
+
__webpack_require__.r(__webpack_exports__);
|
|
553
|
+
|
|
554
|
+
// EXPORTS
|
|
555
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
556
|
+
"default": () => (/* binding */ Prompts)
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Prompts/src/main.vue?vue&type=template&id=ee2290d4&scoped=true
|
|
560
|
+
var render = function render() {
|
|
561
|
+
var _vm = this,
|
|
562
|
+
_c = _vm._self._c;
|
|
563
|
+
return _c("div", {
|
|
564
|
+
class: ["el-x-prompts", {
|
|
565
|
+
"el-x-prompts-rtl": _vm.direction === "rtl"
|
|
566
|
+
}, _vm.rootClassName],
|
|
567
|
+
style: _vm.customStyle
|
|
568
|
+
}, [_vm.title ? _c("h5", {
|
|
569
|
+
staticClass: "el-x-prompts-title",
|
|
570
|
+
class: [_vm.classNames.title],
|
|
571
|
+
style: _vm.titleStyle
|
|
572
|
+
}, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")]) : _vm._e(), _vm._v(" "), _c("div", {
|
|
573
|
+
class: ["el-x-prompts-list", {
|
|
574
|
+
"el-x-prompts-list-wrap": _vm.wrap,
|
|
575
|
+
"el-x-prompts-list-vertical": _vm.vertical
|
|
576
|
+
}, _vm.classNames.list],
|
|
577
|
+
style: _vm.listStyle
|
|
578
|
+
}, _vm._l(_vm.items, function (info, index) {
|
|
579
|
+
return _c("div", {
|
|
580
|
+
key: info.key || `key_${index}`,
|
|
581
|
+
class: ["el-x-prompts-item", {
|
|
582
|
+
"el-x-prompts-item-disabled": info.disabled,
|
|
583
|
+
"el-x-prompts-item-has-nest": _vm.hasChildren(info)
|
|
584
|
+
}, _vm.classNames.item],
|
|
585
|
+
style: _vm.itemStyle,
|
|
586
|
+
on: {
|
|
587
|
+
click: function ($event) {
|
|
588
|
+
return _vm.handleItemClick(info);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}, [info.icon ? _c("div", {
|
|
592
|
+
staticClass: "el-x-prompts-icon"
|
|
593
|
+
}, [_vm._t("icon", function () {
|
|
594
|
+
return [_c("i", {
|
|
595
|
+
class: info.icon
|
|
596
|
+
})];
|
|
597
|
+
}, {
|
|
598
|
+
item: info
|
|
599
|
+
})], 2) : _vm._e(), _vm._v(" "), _c("div", {
|
|
600
|
+
class: ["el-x-prompts-content", _vm.classNames.itemContent],
|
|
601
|
+
style: _vm.itemContentStyle
|
|
602
|
+
}, [info.label ? _c("h6", {
|
|
603
|
+
staticClass: "el-x-prompts-label"
|
|
604
|
+
}, [_vm._t("label", function () {
|
|
605
|
+
return [_vm._v(_vm._s(info.label))];
|
|
606
|
+
}, {
|
|
607
|
+
item: info
|
|
608
|
+
})], 2) : _vm._e(), _vm._v(" "), info.description ? _c("p", {
|
|
609
|
+
staticClass: "el-x-prompts-desc"
|
|
610
|
+
}, [_vm._t("description", function () {
|
|
611
|
+
return [_vm._v(_vm._s(info.description))];
|
|
612
|
+
}, {
|
|
613
|
+
item: info
|
|
614
|
+
})], 2) : _vm._e(), _vm._v(" "), _vm.hasChildren(info) ? _c(_vm.$options.name, {
|
|
615
|
+
tag: "component",
|
|
616
|
+
staticClass: "el-x-prompts-nested",
|
|
617
|
+
attrs: {
|
|
618
|
+
items: info.children,
|
|
619
|
+
vertical: true,
|
|
620
|
+
"class-names": {
|
|
621
|
+
list: _vm.classNames.subList,
|
|
622
|
+
item: _vm.classNames.subItem
|
|
623
|
+
},
|
|
624
|
+
styles: {
|
|
625
|
+
list: _vm.styles.subList,
|
|
626
|
+
item: _vm.styles.subItem
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
on: {
|
|
630
|
+
"on-item-click": function ($event) {
|
|
631
|
+
return _vm.$emit("on-item-click", $event);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}) : _vm._e()], 1)]);
|
|
635
|
+
}), 0)]);
|
|
636
|
+
};
|
|
637
|
+
var staticRenderFns = [];
|
|
638
|
+
render._withStripped = true;
|
|
639
|
+
|
|
640
|
+
;// ./src/components/Prompts/src/main.vue?vue&type=template&id=ee2290d4&scoped=true
|
|
641
|
+
|
|
642
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Prompts/src/main.vue?vue&type=script&lang=js
|
|
643
|
+
/* harmony default export */ const mainvue_type_script_lang_js = ({
|
|
644
|
+
name: 'ElXPrompts',
|
|
645
|
+
props: {
|
|
646
|
+
/**
|
|
647
|
+
* 包含多个提示项的列表
|
|
648
|
+
*/
|
|
649
|
+
items: {
|
|
650
|
+
type: Array,
|
|
651
|
+
default: () => []
|
|
652
|
+
},
|
|
653
|
+
/**
|
|
654
|
+
* 显示在提示列表顶部的标题
|
|
655
|
+
*/
|
|
656
|
+
title: {
|
|
657
|
+
type: String,
|
|
658
|
+
default: ''
|
|
659
|
+
},
|
|
660
|
+
/**
|
|
661
|
+
* Item 提示项被点击时的回调函数
|
|
662
|
+
*/
|
|
663
|
+
onItemClick: {
|
|
664
|
+
type: Function,
|
|
665
|
+
default: null
|
|
666
|
+
},
|
|
667
|
+
/**
|
|
668
|
+
* 提示列表是否垂直排列
|
|
669
|
+
*/
|
|
670
|
+
vertical: {
|
|
671
|
+
type: Boolean,
|
|
672
|
+
default: false
|
|
673
|
+
},
|
|
674
|
+
/**
|
|
675
|
+
* 提示列表是否换行
|
|
676
|
+
*/
|
|
677
|
+
wrap: {
|
|
678
|
+
type: Boolean,
|
|
679
|
+
default: false
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
* 自定义样式,用于各个提示项的不同部分
|
|
683
|
+
*/
|
|
684
|
+
styles: {
|
|
685
|
+
type: Object,
|
|
686
|
+
default: () => ({})
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
* 自定义样式类名,用于各个提示项的不同部分
|
|
690
|
+
*/
|
|
691
|
+
classNames: {
|
|
692
|
+
type: Object,
|
|
693
|
+
default: () => ({})
|
|
694
|
+
},
|
|
695
|
+
/**
|
|
696
|
+
* 根节点的样式类名
|
|
697
|
+
*/
|
|
698
|
+
rootClassName: {
|
|
699
|
+
type: String,
|
|
700
|
+
default: ''
|
|
701
|
+
},
|
|
702
|
+
/**
|
|
703
|
+
* 自定义样式
|
|
704
|
+
*/
|
|
705
|
+
customStyle: {
|
|
706
|
+
type: Object,
|
|
707
|
+
default: () => ({})
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
* 方向
|
|
711
|
+
*/
|
|
712
|
+
direction: {
|
|
713
|
+
type: String,
|
|
714
|
+
default: 'ltr'
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
computed: {
|
|
718
|
+
titleStyle() {
|
|
719
|
+
return {
|
|
720
|
+
...this.styles.title
|
|
721
|
+
};
|
|
722
|
+
},
|
|
723
|
+
listStyle() {
|
|
724
|
+
return {
|
|
725
|
+
...this.styles.list
|
|
726
|
+
};
|
|
727
|
+
},
|
|
728
|
+
itemStyle() {
|
|
729
|
+
return {
|
|
730
|
+
...this.styles.item
|
|
731
|
+
};
|
|
732
|
+
},
|
|
733
|
+
itemContentStyle() {
|
|
734
|
+
return {
|
|
735
|
+
...this.styles.itemContent
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
methods: {
|
|
740
|
+
hasChildren(item) {
|
|
741
|
+
return item.children && item.children.length > 0;
|
|
742
|
+
},
|
|
743
|
+
handleItemClick(info) {
|
|
744
|
+
if (info.disabled) {
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
747
|
+
// 如果有子项,不触发点击事件
|
|
748
|
+
if (this.hasChildren(info)) {
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
this.$emit('on-item-click', {
|
|
752
|
+
data: info
|
|
753
|
+
});
|
|
754
|
+
// 向后兼容性
|
|
755
|
+
if (this.onItemClick) {
|
|
756
|
+
this.onItemClick({
|
|
757
|
+
data: info
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
});
|
|
763
|
+
;// ./src/components/Prompts/src/main.vue?vue&type=script&lang=js
|
|
764
|
+
/* harmony default export */ const src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
765
|
+
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
766
|
+
var injectStylesIntoStyleTag = __webpack_require__(5072);
|
|
767
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
768
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Prompts/src/main.vue?vue&type=style&index=0&id=ee2290d4&prod&lang=scss&scoped=true
|
|
769
|
+
var mainvue_type_style_index_0_id_ee2290d4_prod_lang_scss_scoped_true = __webpack_require__(4466);
|
|
770
|
+
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Prompts/src/main.vue?vue&type=style&index=0&id=ee2290d4&prod&lang=scss&scoped=true
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
var options = {};
|
|
775
|
+
|
|
776
|
+
options.insert = "head";
|
|
777
|
+
options.singleton = false;
|
|
778
|
+
|
|
779
|
+
var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_ee2290d4_prod_lang_scss_scoped_true/* default */.A, options);
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
/* harmony default export */ const src_mainvue_type_style_index_0_id_ee2290d4_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_ee2290d4_prod_lang_scss_scoped_true/* default */.A.locals || {});
|
|
784
|
+
;// ./src/components/Prompts/src/main.vue?vue&type=style&index=0&id=ee2290d4&prod&lang=scss&scoped=true
|
|
785
|
+
|
|
786
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
787
|
+
var componentNormalizer = __webpack_require__(4486);
|
|
788
|
+
;// ./src/components/Prompts/src/main.vue
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
;
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
/* normalize component */
|
|
796
|
+
|
|
797
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
798
|
+
src_mainvue_type_script_lang_js,
|
|
799
|
+
render,
|
|
800
|
+
staticRenderFns,
|
|
801
|
+
false,
|
|
802
|
+
null,
|
|
803
|
+
"ee2290d4",
|
|
804
|
+
null
|
|
805
|
+
|
|
806
|
+
)
|
|
807
|
+
|
|
808
|
+
/* harmony default export */ const main = (component.exports);
|
|
809
|
+
;// ./src/components/Prompts/index.js
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
/* istanbul ignore next */
|
|
813
|
+
main.install = function (Vue) {
|
|
814
|
+
Vue.component(main.name, main);
|
|
815
|
+
};
|
|
816
|
+
/* harmony default export */ const Prompts = (main);
|
|
817
|
+
module.exports = __webpack_exports__;
|
|
818
|
+
/******/ })()
|
|
819
|
+
;
|