eoss-ui 0.4.21 → 0.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button-group.js +34 -34
- package/lib/button.js +37 -37
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +34 -34
- package/lib/config/api.js +1 -1
- package/lib/data-table-form.js +34 -34
- package/lib/data-table.js +48 -40
- package/lib/date-picker.js +36 -36
- package/lib/dialog.js +42 -39
- package/lib/eoss-ui.common.js +2284 -422
- package/lib/flow-group.js +42 -36
- package/lib/flow-list.js +35 -35
- package/lib/flow.js +120 -112
- package/lib/form.js +1082 -167
- package/lib/handle-user.js +34 -34
- package/lib/handler.js +34 -34
- package/lib/icon.js +436 -0
- package/lib/index.js +1 -1
- package/lib/input-number.js +36 -36
- package/lib/input.js +36 -36
- package/lib/label.js +2 -2
- package/lib/login.js +34 -34
- package/lib/main.js +584 -129
- package/lib/mainComp.js +54 -53
- package/lib/menu.js +2 -2
- package/lib/nav.js +36 -36
- package/lib/notify.js +36 -36
- package/lib/page.js +36 -36
- package/lib/pagination.js +2 -2
- package/lib/player.js +38 -38
- package/lib/qr-code.js +43 -43
- package/lib/radio-group.js +36 -36
- package/lib/select-ganged.js +36 -36
- package/lib/select.js +48 -46
- package/lib/selector-panel.js +34 -34
- package/lib/selector.js +36 -36
- package/lib/sizer.js +36 -36
- package/lib/steps.js +36 -36
- package/lib/switch.js +36 -36
- package/lib/table-form.js +295 -48
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +43 -39
- package/lib/theme-chalk/es-icon.css +1 -0
- package/lib/tips.js +36 -36
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +36 -36
- package/lib/tree.js +36 -36
- package/lib/upload.js +37 -37
- package/lib/wujie.js +36 -36
- package/lib/wxlogin.js +36 -36
- package/package.json +1 -1
- package/packages/button/src/main.vue +7 -7
- package/packages/data-table/src/main.vue +9 -1
- package/packages/dialog/src/main.vue +3 -0
- package/packages/flow/src/component/taskUnionExamine.vue +3 -3
- package/packages/flow/src/main.vue +48 -17
- package/packages/flow/src/startTaskRead.vue +21 -24
- package/packages/flow-group/src/main.vue +5 -0
- package/packages/form/src/main.vue +209 -0
- package/packages/form/src/table.vue +150 -97
- package/packages/icon/index.js +5 -0
- package/packages/icon/src/main.vue +83 -0
- package/packages/main/src/async-component/index.vue +85 -0
- package/packages/main/src/main.vue +181 -12
- package/packages/mainComp/src/main.vue +1 -1
- package/packages/select/src/main.vue +7 -4
- package/packages/tabs/src/main.vue +1 -0
- package/packages/theme-chalk/lib/es-icon.css +1 -0
- package/packages/theme-chalk/src/es-icon.scss +99 -0
- package/src/config/api.js +1 -1
- package/src/index.js +4 -1
package/lib/icon.js
ADDED
|
@@ -0,0 +1,436 @@
|
|
|
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 = 44);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 2:
|
|
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
|
+
/***/ 44:
|
|
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/icon/src/main.vue?vue&type=template&id=7d868ea8&
|
|
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: "es-icon", class: { "es-icon-readonly": _vm.readonly } },
|
|
210
|
+
[
|
|
211
|
+
!_vm.readonly
|
|
212
|
+
? _c(
|
|
213
|
+
"el-input",
|
|
214
|
+
_vm._g(
|
|
215
|
+
_vm._b(
|
|
216
|
+
{
|
|
217
|
+
attrs: { placeholder: _vm.placeholder, readonly: "" },
|
|
218
|
+
model: {
|
|
219
|
+
value: _vm.model,
|
|
220
|
+
callback: function ($$v) {
|
|
221
|
+
_vm.model = $$v
|
|
222
|
+
},
|
|
223
|
+
expression: "model",
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
"el-input",
|
|
227
|
+
_vm.$attrs,
|
|
228
|
+
false
|
|
229
|
+
),
|
|
230
|
+
_vm.$listeners
|
|
231
|
+
),
|
|
232
|
+
[
|
|
233
|
+
_vm.model
|
|
234
|
+
? _c("i", {
|
|
235
|
+
staticClass: "es-iconfont",
|
|
236
|
+
class: _vm.model,
|
|
237
|
+
attrs: { slot: "prepend" },
|
|
238
|
+
slot: "prepend",
|
|
239
|
+
})
|
|
240
|
+
: _vm._e(),
|
|
241
|
+
_c(
|
|
242
|
+
"el-button",
|
|
243
|
+
{
|
|
244
|
+
attrs: { slot: "suffix", type: "primary", size: "small" },
|
|
245
|
+
on: { click: _vm.handleClick },
|
|
246
|
+
slot: "suffix",
|
|
247
|
+
},
|
|
248
|
+
[_vm._v("选择")]
|
|
249
|
+
),
|
|
250
|
+
],
|
|
251
|
+
1
|
|
252
|
+
)
|
|
253
|
+
: _c("i", {
|
|
254
|
+
staticClass: "es-iconfont",
|
|
255
|
+
class: _vm.model,
|
|
256
|
+
attrs: { slot: "prepend" },
|
|
257
|
+
slot: "prepend",
|
|
258
|
+
}),
|
|
259
|
+
_c(
|
|
260
|
+
"es-dialog",
|
|
261
|
+
{
|
|
262
|
+
attrs: { title: "选择图标", visible: _vm.visible },
|
|
263
|
+
on: {
|
|
264
|
+
"update:visible": function ($event) {
|
|
265
|
+
_vm.visible = $event
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
[
|
|
270
|
+
_c(
|
|
271
|
+
"el-scrollbar",
|
|
272
|
+
{ ref: "scrollbar", staticClass: "es-scrollbar" },
|
|
273
|
+
[
|
|
274
|
+
_c(
|
|
275
|
+
"ul",
|
|
276
|
+
{ staticClass: "es-icon-list" },
|
|
277
|
+
_vm._l(_vm.$icon, function (name) {
|
|
278
|
+
return _c(
|
|
279
|
+
"li",
|
|
280
|
+
{
|
|
281
|
+
key: name,
|
|
282
|
+
on: {
|
|
283
|
+
click: function ($event) {
|
|
284
|
+
$event.stopPropagation()
|
|
285
|
+
_vm.handleSelect(name)
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
[
|
|
290
|
+
_c("span", [
|
|
291
|
+
_c("i", { class: "es-icon-" + name }),
|
|
292
|
+
_c("span", { staticClass: "icon-name" }, [
|
|
293
|
+
_vm._v(_vm._s("es-icon-" + name)),
|
|
294
|
+
]),
|
|
295
|
+
]),
|
|
296
|
+
]
|
|
297
|
+
)
|
|
298
|
+
}),
|
|
299
|
+
0
|
|
300
|
+
),
|
|
301
|
+
]
|
|
302
|
+
),
|
|
303
|
+
],
|
|
304
|
+
1
|
|
305
|
+
),
|
|
306
|
+
],
|
|
307
|
+
1
|
|
308
|
+
)
|
|
309
|
+
}
|
|
310
|
+
var staticRenderFns = []
|
|
311
|
+
render._withStripped = true
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
// CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=template&id=7d868ea8&
|
|
315
|
+
|
|
316
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=script&lang=js&
|
|
317
|
+
//
|
|
318
|
+
//
|
|
319
|
+
//
|
|
320
|
+
//
|
|
321
|
+
//
|
|
322
|
+
//
|
|
323
|
+
//
|
|
324
|
+
//
|
|
325
|
+
//
|
|
326
|
+
//
|
|
327
|
+
//
|
|
328
|
+
//
|
|
329
|
+
//
|
|
330
|
+
//
|
|
331
|
+
//
|
|
332
|
+
//
|
|
333
|
+
//
|
|
334
|
+
//
|
|
335
|
+
//
|
|
336
|
+
//
|
|
337
|
+
//
|
|
338
|
+
//
|
|
339
|
+
//
|
|
340
|
+
//
|
|
341
|
+
//
|
|
342
|
+
//
|
|
343
|
+
//
|
|
344
|
+
//
|
|
345
|
+
//
|
|
346
|
+
//
|
|
347
|
+
//
|
|
348
|
+
//
|
|
349
|
+
//
|
|
350
|
+
//
|
|
351
|
+
|
|
352
|
+
//import util from 'eoss-ui/src/utils/util';
|
|
353
|
+
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
354
|
+
name: 'EsIcon',
|
|
355
|
+
inheritAttrs: false,
|
|
356
|
+
props: {
|
|
357
|
+
value: String,
|
|
358
|
+
placeholder: {
|
|
359
|
+
type: String,
|
|
360
|
+
default: '请选择图标'
|
|
361
|
+
},
|
|
362
|
+
readonly: Boolean
|
|
363
|
+
},
|
|
364
|
+
computed: {
|
|
365
|
+
model: {
|
|
366
|
+
get: function get() {
|
|
367
|
+
return this.value ? this.value : this.icon;
|
|
368
|
+
},
|
|
369
|
+
set: function set(val) {
|
|
370
|
+
return val;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
watch: {
|
|
375
|
+
model: function model(val) {
|
|
376
|
+
this.$emit('change', val);
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
data: function data() {
|
|
380
|
+
return {
|
|
381
|
+
icon: null,
|
|
382
|
+
visible: false
|
|
383
|
+
};
|
|
384
|
+
},
|
|
385
|
+
created: function created() {
|
|
386
|
+
//this.loadsub(this.param);
|
|
387
|
+
},
|
|
388
|
+
|
|
389
|
+
methods: {
|
|
390
|
+
handleClick: function handleClick() {
|
|
391
|
+
this.visible = true;
|
|
392
|
+
},
|
|
393
|
+
handleSelect: function handleSelect(name) {
|
|
394
|
+
this.$emit('input', 'es-icon-' + name);
|
|
395
|
+
this.icon = 'es-icon-' + name;
|
|
396
|
+
this.visible = false;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
// CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=script&lang=js&
|
|
401
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
402
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
403
|
+
var componentNormalizer = __webpack_require__(2);
|
|
404
|
+
|
|
405
|
+
// CONCATENATED MODULE: ./packages/icon/src/main.vue
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
/* normalize component */
|
|
412
|
+
|
|
413
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
414
|
+
src_mainvue_type_script_lang_js_,
|
|
415
|
+
render,
|
|
416
|
+
staticRenderFns,
|
|
417
|
+
false,
|
|
418
|
+
null,
|
|
419
|
+
null,
|
|
420
|
+
null
|
|
421
|
+
|
|
422
|
+
)
|
|
423
|
+
|
|
424
|
+
/* harmony default export */ var main = (component.exports);
|
|
425
|
+
// CONCATENATED MODULE: ./packages/icon/index.js
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
main.install = function (Vue) {
|
|
429
|
+
return Vue.component(main.name, main);
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
/* harmony default export */ var icon = __webpack_exports__["default"] = (main);
|
|
433
|
+
|
|
434
|
+
/***/ })
|
|
435
|
+
|
|
436
|
+
/******/ });
|