cy-element-ui 1.1.12 → 1.1.13

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.
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 144);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 145);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 144:
90
+ /***/ 145:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
package/lib/row.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 142);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 143);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 142:
90
+ /***/ 143:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
package/lib/scrollbar.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 136);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 137);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 136:
90
+ /***/ 137:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -0,0 +1,367 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
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 = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 133);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 133:
196
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
+
198
+ "use strict";
199
+ // ESM COMPAT FLAG
200
+ __webpack_require__.r(__webpack_exports__);
201
+
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selectDisplayInput/src/main.vue?vue&type=template&id=fa95f9c6
203
+ var render = function () {
204
+ var _vm = this
205
+ var _h = _vm.$createElement
206
+ var _c = _vm._self._c || _h
207
+ return _c(
208
+ "div",
209
+ { staticClass: "cy-select-display-input" },
210
+ [
211
+ _c(
212
+ "div",
213
+ {
214
+ staticClass: "select_display_input_box",
215
+ class: { text_active: _vm.cursor, cursor: _vm.cursor && _vm.value },
216
+ on: { click: _vm.handleInfo },
217
+ },
218
+ [
219
+ _c("div", { staticClass: "text" }, [
220
+ _c("span", [_vm._v(_vm._s(_vm.value))]),
221
+ ]),
222
+ !_vm.value
223
+ ? _c("span", { staticClass: "placeholder" }, [
224
+ _vm._v(_vm._s(_vm.placeholder)),
225
+ ])
226
+ : _vm._e(),
227
+ _vm.showDelete
228
+ ? _c("i", {
229
+ staticClass: "el-icon-circle-close delete",
230
+ on: {
231
+ click: function ($event) {
232
+ $event.stopPropagation()
233
+ return _vm.handleDelete($event)
234
+ },
235
+ },
236
+ })
237
+ : _vm._e(),
238
+ ]
239
+ ),
240
+ _vm.showBtn
241
+ ? _c(
242
+ "el-button",
243
+ { attrs: { type: "primary" }, on: { click: _vm.handleClick } },
244
+ [_vm._v(_vm._s(_vm.btnText))]
245
+ )
246
+ : _vm._e(),
247
+ ],
248
+ 1
249
+ )
250
+ }
251
+ var staticRenderFns = []
252
+ render._withStripped = true
253
+
254
+
255
+ // CONCATENATED MODULE: ./packages/selectDisplayInput/src/main.vue?vue&type=template&id=fa95f9c6
256
+
257
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selectDisplayInput/src/main.vue?vue&type=script&lang=js
258
+ //
259
+ //
260
+ //
261
+ //
262
+ //
263
+ //
264
+ //
265
+ //
266
+ //
267
+ //
268
+ //
269
+
270
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
271
+ name: 'CySelectDisplayInput',
272
+ props: {
273
+ // 文本框 需要显示的内容
274
+ value: {
275
+ type: [Number, String],
276
+ default: ''
277
+ },
278
+
279
+ // 文本框 的提示文本
280
+ placeholder: {
281
+ type: String,
282
+ default: ''
283
+ },
284
+
285
+ // 选择按钮 的文字
286
+ btnText: {
287
+ type: String,
288
+ default: '选择'
289
+ },
290
+
291
+ // 选择按钮 的显示条件
292
+ showBtn: {
293
+ type: Boolean,
294
+ default: true
295
+ },
296
+
297
+ // 是否显示 删除按钮
298
+ showDelete: {
299
+ type: Boolean,
300
+ default: false
301
+ }
302
+ },
303
+ data: function data() {
304
+ return {};
305
+ },
306
+
307
+ computed: {
308
+ // 文本框 是否需要点击,如果为true,输入框中的字体会变蓝并将鼠标变为小手
309
+ cursor: function cursor() {
310
+ // 判断父组件是否坚挺了info事件
311
+ return this.$listeners.info;
312
+ }
313
+ },
314
+ created: function created() {},
315
+
316
+ methods: {
317
+ handleInfo: function handleInfo() {
318
+ if (this.value) {
319
+ this.$emit('info');
320
+ }
321
+ },
322
+ handleClick: function handleClick() {
323
+ this.$emit('click');
324
+ },
325
+ handleDelete: function handleDelete() {
326
+ this.$emit('delete');
327
+ }
328
+ }
329
+ });
330
+ // CONCATENATED MODULE: ./packages/selectDisplayInput/src/main.vue?vue&type=script&lang=js
331
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
332
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
333
+ var componentNormalizer = __webpack_require__(0);
334
+
335
+ // CONCATENATED MODULE: ./packages/selectDisplayInput/src/main.vue
336
+
337
+
338
+
339
+
340
+
341
+ /* normalize component */
342
+
343
+ var component = Object(componentNormalizer["a" /* default */])(
344
+ src_mainvue_type_script_lang_js,
345
+ render,
346
+ staticRenderFns,
347
+ false,
348
+ null,
349
+ null,
350
+ null
351
+
352
+ )
353
+
354
+ /* harmony default export */ var main = (component.exports);
355
+ // CONCATENATED MODULE: ./packages/selectDisplayInput/index.js
356
+
357
+
358
+ /* istanbul ignore next */
359
+ main.install = function (Vue) {
360
+ Vue.component(main.name, main);
361
+ };
362
+
363
+ /* harmony default export */ var selectDisplayInput = __webpack_exports__["default"] = (main);
364
+
365
+ /***/ })
366
+
367
+ /******/ });
package/lib/submenu.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 134);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 135);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 134:
195
+ /***/ 135:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -82,12 +82,19 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 139);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 140);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 139:
90
+ /***/ 14:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("element-ui/lib/checkbox");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 140:
91
98
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
99
 
93
100
  "use strict";
@@ -619,13 +626,6 @@ table_column.install = function (Vue) {
619
626
 
620
627
  /***/ }),
621
628
 
622
- /***/ 14:
623
- /***/ (function(module, exports) {
624
-
625
- module.exports = require("element-ui/lib/checkbox");
626
-
627
- /***/ }),
628
-
629
629
  /***/ 3:
630
630
  /***/ (function(module, exports) {
631
631
 
package/lib/tag.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 135);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 136);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 135:
195
+ /***/ 136:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -1 +1 @@
1
- .cy-tree-select .el-popover__reference-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.cy-tree-select-select{width:100%;height:40px;line-height:38px;border:1px solid #DCDFE6;border-radius:4px;padding:0 25px 0 15px;cursor:pointer;overflow:hidden;position:relative;-webkit-transition:all .3s;transition:all .3s;-webkit-box-sizing:border-box;box-sizing:border-box}.cy-tree-select-select .cy-tree-select-select-v{width:100%;color:#606266;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cy-tree-select-select .cy-tree-select-select-v-placeholder{color:#c0c4cc}.cy-tree-select-select .cy-tree-select-select-v-icon{color:#C0C4CC;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:10px}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow{-webkit-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition:all .3s;transition:all .3s}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow-show{-webkit-transform:rotateZ(-180deg);transform:rotateZ(-180deg)}.cy-tree-select-select.small{height:32px;line-height:30px;padding:0 25px 0 10px}.cy-tree-select-select.small .cy-tree-select-select-v{font-size:13px}.cy-tree-select-select.mini{height:28px;line-height:26px;padding:0 25px 0 10px}.cy-tree-select-select.mini .cy-tree-select-select-v{font-size:12px}.cy-tree-select-select:hover{border-color:#C0C4CC}.cy-tree-select-select:focus{outline:0;border-color:#409EFF}.cy-tree-select-select-con-s{padding-bottom:8px}.cy-tree-select-select-con-t{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #DCDFE6}.cy-tree-select-select-con-c{max-height:300px;overflow:auto}.el-form-item--medium .el-form-item__content .cy-tree-select{width:100%;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--medium .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--small .el-form-item__content .cy-tree-select{width:100%;height:32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--small .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--mini .el-form-item__content .cy-tree-select{width:100%;height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--mini .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.cy-tab-dialog{line-height:0}.cy-tab-dialog-modal{position:absolute;top:0;bottom:0;left:0;right:0;opacity:.5;background:#000}.cy-tab-dialog .el-dialog__wrapper{position:absolute!important;line-height:18px}.cy-tab-dialog .el-dialog__wrapper .el-dialog{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__header{-ms-flex-negative:0;flex-shrink:0}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__body{height:100%}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper{position:fixed!important}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper .el-dialog{left:0!important;top:0}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}.cy-sub-title{width:100%;font-size:17px;border-left:5px solid #1890ff;text-indent:10px;margin-bottom:15px;font-weight:700;color:#303133;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cy-sub-title .left{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cy-sub-title .right{-ms-flex-negative:0;flex-shrink:0;margin-left:20px}
1
+ .cy-tree-select .el-popover__reference-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.cy-tree-select-select{width:100%;height:40px;line-height:38px;border:1px solid #DCDFE6;border-radius:4px;padding:0 25px 0 15px;cursor:pointer;overflow:hidden;position:relative;-webkit-transition:all .3s;transition:all .3s;-webkit-box-sizing:border-box;box-sizing:border-box}.cy-tree-select-select .cy-tree-select-select-v{width:100%;color:#606266;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cy-tree-select-select .cy-tree-select-select-v-placeholder{color:#c0c4cc}.cy-tree-select-select .cy-tree-select-select-v-icon{color:#C0C4CC;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:10px}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow{-webkit-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition:all .3s;transition:all .3s}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow-show{-webkit-transform:rotateZ(-180deg);transform:rotateZ(-180deg)}.cy-tree-select-select.small{height:32px;line-height:30px;padding:0 25px 0 10px}.cy-tree-select-select.small .cy-tree-select-select-v{font-size:13px}.cy-tree-select-select.mini{height:28px;line-height:26px;padding:0 25px 0 10px}.cy-tree-select-select.mini .cy-tree-select-select-v{font-size:12px}.cy-tree-select-select:hover{border-color:#C0C4CC}.cy-tree-select-select:focus{outline:0;border-color:#409EFF}.cy-tree-select-select-con-s{padding-bottom:8px}.cy-tree-select-select-con-t{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #DCDFE6}.cy-tree-select-select-con-c{max-height:300px;overflow:auto}.el-form-item--medium .el-form-item__content .cy-tree-select{width:100%;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--medium .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--small .el-form-item__content .cy-tree-select{width:100%;height:32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--small .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--mini .el-form-item__content .cy-tree-select{width:100%;height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--mini .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.cy-tab-dialog{line-height:0}.cy-tab-dialog-modal{position:absolute;top:0;bottom:0;left:0;right:0;opacity:.5;background:#000}.cy-tab-dialog .el-dialog__wrapper{position:absolute!important;line-height:18px}.cy-tab-dialog .el-dialog__wrapper .el-dialog{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cy-select-display-input,.cy-sub-title{display:-webkit-box;display:-ms-flexbox}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__header{-ms-flex-negative:0;flex-shrink:0}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__body{height:100%}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper{position:fixed!important}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper .el-dialog{left:0!important;top:0}.cy-sub-title{width:100%;font-size:17px;border-left:5px solid #1890ff;text-indent:10px;margin-bottom:15px;font-weight:700;color:#303133;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cy-sub-title .left{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cy-sub-title .right{-ms-flex-negative:0;flex-shrink:0;margin-left:20px}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}.cy-select-display-input{display:flex;position:relative}.cy-select-display-input>.el-button{-ms-flex-negative:0;flex-shrink:0;margin-left:10px;height:36px;padding:9px 15px}.select_display_input_box{width:100%;height:36px;color:#888;background-color:#F5F7FA;border:1px solid #DCDFE6;border-radius:4px;padding:0 15px;position:relative;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.select_display_input_box.text_active{color:#1890ff}.select_display_input_box.cursor{cursor:pointer}.select_display_input_box .text{width:100%;line-height:34px;overflow:auto}.select_display_input_box .text::-webkit-scrollbar{display:none}.select_display_input_box .text span{white-space:nowrap}.select_display_input_box.cursor .text:hover{cursor:pointer}.select_display_input_box .placeholder{color:rgba(192,196,204,.5);text-shadow:0 0 1px #c0c4cc;position:absolute;top:50%;left:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.select_display_input_box .delete{color:#ff4949;position:absolute;top:50%;right:5px;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;z-index:10}.select_display_input_box .delete:hover{color:rgba(255,73,73,.5)}
@@ -0,0 +1 @@
1
+ *,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}.cy-select-display-input{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.cy-select-display-input>.el-button{-ms-flex-negative:0;flex-shrink:0;margin-left:10px;height:36px;padding:9px 15px}.select_display_input_box{width:100%;height:36px;color:#888;background-color:#F5F7FA;border:1px solid #DCDFE6;border-radius:4px;padding:0 15px;position:relative;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.select_display_input_box.text_active{color:#1890ff}.select_display_input_box.cursor{cursor:pointer}.select_display_input_box .text{width:100%;line-height:34px;overflow:auto}.select_display_input_box .text::-webkit-scrollbar{display:none}.select_display_input_box .text span{white-space:nowrap}.select_display_input_box.cursor .text:hover{cursor:pointer}.select_display_input_box .placeholder{color:rgba(192,196,204,.5);text-shadow:0 0 1px #c0c4cc;position:absolute;top:50%;left:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.select_display_input_box .delete{color:#ff4949;position:absolute;top:50%;right:5px;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;z-index:10}.select_display_input_box .delete:hover{color:rgba(255,73,73,.5)}
package/lib/timeline.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 137);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 138);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 137:
195
+ /***/ 138:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tooltip.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 141);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 142);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 141:
90
+ /***/ 142:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cy-element-ui",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "A Component Library for Vue.js.",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -0,0 +1,8 @@
1
+ import SelectDisplayInput from './src/main';
2
+
3
+ /* istanbul ignore next */
4
+ SelectDisplayInput.install = function(Vue) {
5
+ Vue.component(SelectDisplayInput.name, SelectDisplayInput);
6
+ };
7
+
8
+ export default SelectDisplayInput;
@@ -0,0 +1,75 @@
1
+ <template>
2
+ <div class="cy-select-display-input">
3
+ <div class="select_display_input_box" :class="{ text_active: cursor, cursor: cursor && value }" @click="handleInfo">
4
+ <div class="text"><span>{{ value }}</span></div>
5
+ <span v-if="!value" class="placeholder">{{ placeholder }}</span>
6
+ <i v-if="showDelete" class="el-icon-circle-close delete" @click.stop="handleDelete"></i>
7
+ </div>
8
+ <el-button v-if="showBtn" type="primary" @click="handleClick">{{ btnText }}</el-button>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ name: 'CySelectDisplayInput',
15
+ props: {
16
+ // 文本框 需要显示的内容
17
+ value: {
18
+ type: [Number, String],
19
+ default: ''
20
+ },
21
+
22
+ // 文本框 的提示文本
23
+ placeholder: {
24
+ type: String,
25
+ default: ''
26
+ },
27
+
28
+ // 选择按钮 的文字
29
+ btnText: {
30
+ type: String,
31
+ default: '选择'
32
+ },
33
+
34
+ // 选择按钮 的显示条件
35
+ showBtn: {
36
+ type: Boolean,
37
+ default: true
38
+ },
39
+
40
+ // 是否显示 删除按钮
41
+ showDelete: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ },
46
+ data() {
47
+ return {};
48
+ },
49
+ computed: {
50
+ // 文本框 是否需要点击,如果为true,输入框中的字体会变蓝并将鼠标变为小手
51
+ cursor() {
52
+ // 判断父组件是否坚挺了info事件
53
+ return this.$listeners.info;
54
+ }
55
+ },
56
+ created() {
57
+
58
+ },
59
+ methods: {
60
+ handleInfo() {
61
+ if (this.value) {
62
+ this.$emit('info');
63
+ }
64
+ },
65
+
66
+ handleClick() {
67
+ this.$emit('click');
68
+ },
69
+
70
+ handleDelete() {
71
+ this.$emit('delete');
72
+ }
73
+ }
74
+ };
75
+ </script>
@@ -2,3 +2,4 @@
2
2
  @import "./treeSelect.scss";
3
3
  @import "./tabDialog.scss";
4
4
  @import "./subTitle.scss";
5
+ @import "./selectDisplayInput.scss";