imatrix-ui 2.8.97-dw-tmp30 → 2.8.97-dw-tmp32
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/breadcrumb.js +1 -136
- package/lib/department-tree-inline.js +1 -136
- package/lib/department-tree.js +1 -136
- package/lib/department-user-tree-inline.js +1 -136
- package/lib/department-user-tree.js +1 -136
- package/lib/dynamic-source-select.js +1 -136
- package/lib/fs-preview.js +1 -136
- package/lib/fs-upload-list.js +1 -136
- package/lib/fs-upload.js +1 -136
- package/lib/hamburger.js +1 -136
- package/lib/index.js.gz +0 -0
- package/lib/multipart-upload.js +1 -136
- package/lib/organization-input.js +1 -136
- package/lib/plugins.js.gz +0 -0
- package/lib/remove-department.js +1 -136
- package/lib/remove-user.js +1 -136
- package/lib/remove-workgroup.js +1 -136
- package/lib/rich-editor.js +1 -136
- package/lib/scan-code-input.js +1 -136
- package/lib/secret-info.js +1 -136
- package/lib/super-grid.js +1 -136
- package/lib/super-nine-grid.js +1 -136
- package/lib/svg-icon.js +1 -136
- package/lib/valid-code.js +1 -136
- package/lib/workflow-button.js +1 -136
- package/lib/workflow-history-list.js +1 -136
- package/lib/workgroup-tree-inline.js +1 -136
- package/lib/workgroup-tree.js +1 -136
- package/lib/workgroup-user-tree-inline.js +1 -136
- package/lib/workgroup-user-tree.js +1 -136
- package/lib/year-range-picker.js +1 -136
- package/package.json +1 -1
- package/packages/department-tree/src/department-tree.vue +1 -1
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +1 -1
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +1 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +1 -1
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +1 -1
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +1 -1
- package/packages/index.js +1 -1
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -1
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +1 -1
- package/src/index.js +89 -0
- package/webpack.components.js +7 -1
package/lib/year-range-picker.js
CHANGED
|
@@ -1,136 +1 @@
|
|
|
1
|
-
(function
|
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory();
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define([], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["SuperUI"] = factory();
|
|
8
|
-
else
|
|
9
|
-
root["SuperUI"] = factory();
|
|
10
|
-
})(window, function() {
|
|
11
|
-
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
-
/******/ // The module cache
|
|
13
|
-
/******/ var installedModules = {};
|
|
14
|
-
/******/
|
|
15
|
-
/******/ // The require function
|
|
16
|
-
/******/ function __webpack_require__(moduleId) {
|
|
17
|
-
/******/
|
|
18
|
-
/******/ // Check if module is in cache
|
|
19
|
-
/******/ if(installedModules[moduleId]) {
|
|
20
|
-
/******/ return installedModules[moduleId].exports;
|
|
21
|
-
/******/ }
|
|
22
|
-
/******/ // Create a new module (and put it into the cache)
|
|
23
|
-
/******/ var module = installedModules[moduleId] = {
|
|
24
|
-
/******/ i: moduleId,
|
|
25
|
-
/******/ l: false,
|
|
26
|
-
/******/ exports: {}
|
|
27
|
-
/******/ };
|
|
28
|
-
/******/
|
|
29
|
-
/******/ // Execute the module function
|
|
30
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
-
/******/
|
|
32
|
-
/******/ // Flag the module as loaded
|
|
33
|
-
/******/ module.l = true;
|
|
34
|
-
/******/
|
|
35
|
-
/******/ // Return the exports of the module
|
|
36
|
-
/******/ return module.exports;
|
|
37
|
-
/******/ }
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
-
/******/ __webpack_require__.m = modules;
|
|
42
|
-
/******/
|
|
43
|
-
/******/ // expose the module cache
|
|
44
|
-
/******/ __webpack_require__.c = installedModules;
|
|
45
|
-
/******/
|
|
46
|
-
/******/ // define getter function for harmony exports
|
|
47
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
-
/******/ }
|
|
51
|
-
/******/ };
|
|
52
|
-
/******/
|
|
53
|
-
/******/ // define __esModule on exports
|
|
54
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
-
/******/ }
|
|
58
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
-
/******/ };
|
|
60
|
-
/******/
|
|
61
|
-
/******/ // create a fake namespace object
|
|
62
|
-
/******/ // mode & 1: value is a module id, require it
|
|
63
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
-
/******/ // mode & 4: return value when already ns object
|
|
65
|
-
/******/ // mode & 8|1: behave like require
|
|
66
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
-
/******/ if(mode & 8) return value;
|
|
69
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
-
/******/ var ns = Object.create(null);
|
|
71
|
-
/******/ __webpack_require__.r(ns);
|
|
72
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
-
/******/ return ns;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
-
/******/ __webpack_require__.n = function(module) {
|
|
79
|
-
/******/ var getter = module && module.__esModule ?
|
|
80
|
-
/******/ function getDefault() { return module['default']; } :
|
|
81
|
-
/******/ function getModuleExports() { return module; };
|
|
82
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
-
/******/ return getter;
|
|
84
|
-
/******/ };
|
|
85
|
-
/******/
|
|
86
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
-
/******/
|
|
89
|
-
/******/ // __webpack_public_path__
|
|
90
|
-
/******/ __webpack_require__.p = "";
|
|
91
|
-
/******/
|
|
92
|
-
/******/
|
|
93
|
-
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s = "./packages/year-range-picker/index.js");
|
|
95
|
-
/******/ })
|
|
96
|
-
/************************************************************************/
|
|
97
|
-
/******/ ({
|
|
98
|
-
|
|
99
|
-
/***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js":
|
|
100
|
-
/*!********************************************************************!*\
|
|
101
|
-
!*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***!
|
|
102
|
-
\********************************************************************/
|
|
103
|
-
/*! exports provided: default */
|
|
104
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
105
|
-
|
|
106
|
-
"use strict";
|
|
107
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return normalizeComponent; });\n/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nfunction normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n\n\n//# sourceURL=webpack://SuperUI/./node_modules/vue-loader/lib/runtime/componentNormalizer.js?");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ "./packages/year-range-picker/index.js":
|
|
112
|
-
/*!*********************************************!*\
|
|
113
|
-
!*** ./packages/year-range-picker/index.js ***!
|
|
114
|
-
\*********************************************/
|
|
115
|
-
/*! exports provided: default */
|
|
116
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
117
|
-
|
|
118
|
-
"use strict";
|
|
119
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _src_year_range_picker_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/year-range-picker.vue */ \"./packages/year-range-picker/src/year-range-picker.vue\");\n\r\n_src_year_range_picker_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].install = function(Vue) {\r\n Vue.component(_src_year_range_picker_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].name, _src_year_range_picker_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"])\r\n}\r\n\r\n/* harmony default export */ __webpack_exports__[\"default\"] = (_src_year_range_picker_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\r\n\n\n//# sourceURL=webpack://SuperUI/./packages/year-range-picker/index.js?");
|
|
120
|
-
|
|
121
|
-
/***/ }),
|
|
122
|
-
|
|
123
|
-
/***/ "./packages/year-range-picker/src/year-range-picker.vue":
|
|
124
|
-
/*!**************************************************************!*\
|
|
125
|
-
!*** ./packages/year-range-picker/src/year-range-picker.vue ***!
|
|
126
|
-
\**************************************************************/
|
|
127
|
-
/*! exports provided: default */
|
|
128
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
129
|
-
|
|
130
|
-
"use strict";
|
|
131
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\nvar render, staticRenderFns\nvar script = {}\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\ncomponent.options.__file = \"packages/year-range-picker/src/year-range-picker.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://SuperUI/./packages/year-range-picker/src/year-range-picker.vue?");
|
|
132
|
-
|
|
133
|
-
/***/ })
|
|
134
|
-
|
|
135
|
-
/******/ });
|
|
136
|
-
});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SuperUI=t():e.SuperUI=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=132)}({1:function(e,t,n){"use strict";function r(e,t,n,r,o,i,u,c){var f,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),u?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},a._ssrRegister=f):o&&(f=c?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),f)if(a.functional){a._injectStyles=f;var s=a.render;a.render=function(e,t){return f.call(t),s(e,t)}}else{var l=a.beforeCreate;a.beforeCreate=l?[].concat(l,f):[f]}return{exports:e,options:a}}n.d(t,"a",(function(){return r}))},132:function(e,t,n){"use strict";n.r(t);var r=n(1),o=Object(r.a)({},void 0,void 0,!1,null,null,null);o.options.__file="packages/year-range-picker/src/year-range-picker.vue";var i=o.exports;i.install=function(e){e.component(i.name,i)};t.default=i}})}));
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</div>
|
|
36
36
|
</template>
|
|
37
37
|
<script>
|
|
38
|
-
import InlineDepartmentTree from '../../department-tree-inline.vue'
|
|
38
|
+
import InlineDepartmentTree from '../../department-tree-inline/src/department-tree-inline.vue'
|
|
39
39
|
export default {
|
|
40
40
|
name: 'DepartmentTree',
|
|
41
41
|
components: {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</style>
|
|
71
71
|
|
|
72
72
|
<script>
|
|
73
|
-
import localStorage from '
|
|
73
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
74
74
|
import utils from '../../utils/utils'
|
|
75
75
|
import departmentTreeService from './department-tree-service'
|
|
76
76
|
import UserResult from './search-result.vue'
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</style>
|
|
51
51
|
|
|
52
52
|
<script>
|
|
53
|
-
import localStorage from '
|
|
53
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
54
54
|
import utils from '../../utils/utils'
|
|
55
55
|
import departmentTreeService from './department-tree-service'
|
|
56
56
|
import UserResult from './search-result.vue'
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
</style>
|
|
72
72
|
<script>
|
|
73
|
-
import localStorage from '
|
|
73
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
74
74
|
import UserResult from './search-result'
|
|
75
75
|
import utils from '../../utils/utils'
|
|
76
76
|
import departmentUserTreeMultiService from './department-user-tree-multi-service'
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
</style>
|
|
57
57
|
<script>
|
|
58
|
-
import localStorage from '
|
|
58
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
59
59
|
import UserResult from './search-result'
|
|
60
60
|
import utils from '../../utils/utils'
|
|
61
61
|
import departmentUserTreeSingleService from './department-user-tree-single-service'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
2
|
import { getI18n } from '../../../src/utils/util'
|
|
3
|
-
import localStorage from '
|
|
3
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
4
4
|
const departmentUserTreeMultiService = {
|
|
5
5
|
// 后台查询部门,并拼接树节点
|
|
6
6
|
filterAppendNodes(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
2
|
import { getI18n } from '../../../src/utils/util'
|
|
3
|
-
import localStorage from '
|
|
3
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
4
4
|
const departmentUserTreeSingleService = {
|
|
5
5
|
// 后台查询部门,并拼接树节点
|
|
6
6
|
filterAppendNodes(value) {
|
package/packages/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import WorkflowHistoryList from './workflow-history-list'
|
|
|
16
16
|
import PreventReclick from './directives/prevent-reclick'
|
|
17
17
|
// import exportPlugin from './export-data/index'
|
|
18
18
|
import ValidCode from './valid-code'
|
|
19
|
-
import customPlugin from '
|
|
19
|
+
import customPlugin from './plugins/index'
|
|
20
20
|
import RemoveUser from './remove-user'
|
|
21
21
|
import RemoveDepartment from './remove-department'
|
|
22
22
|
import RemoveWorkgroup from './remove-workgroup'
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
</style>
|
|
43
43
|
|
|
44
44
|
<script>
|
|
45
|
-
import localStorage from '
|
|
45
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
46
46
|
import utils from '../../utils/utils'
|
|
47
47
|
import workgroupTreeService from './workgroup-tree-service'
|
|
48
48
|
export default {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</style>
|
|
46
46
|
|
|
47
47
|
<script>
|
|
48
|
-
import localStorage from '
|
|
48
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
49
49
|
import utils from '../../utils/utils'
|
|
50
50
|
import workgroupTreeInlineService from './workgroup-tree-inline-service'
|
|
51
51
|
export default {
|
package/src/index.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// 依次导入组件库的各个组件
|
|
2
|
+
import Breadcrumb from '../packages/breadcrumb'
|
|
3
|
+
import DepartmentTree from '../packages/department-tree'
|
|
4
|
+
import Hamburger from '../packages/hamburger'
|
|
5
|
+
import SvgIcon from '../packages/svg-icon'
|
|
6
|
+
import SuperGrid from '../packages/super-grid'
|
|
7
|
+
import DepartmentUserTree from '../packages/department-user-tree'
|
|
8
|
+
import WorkgroupTree from '../packages/workgroup-tree'
|
|
9
|
+
import WorkgroupUserTree from '../packages/workgroup-user-tree'
|
|
10
|
+
import InlineDepartmentTree from '../packages/department-tree-inline'
|
|
11
|
+
import InlineDepartmentUserTree from '../packages/department-user-tree-inline'
|
|
12
|
+
import InlineWorkgroupTree from '../packages/workgroup-tree-inline'
|
|
13
|
+
import InlineWorkgroupUserTree from '../packages/workgroup-user-tree-inline'
|
|
14
|
+
import WorkflowButton from '../packages/workflow-button'
|
|
15
|
+
import WorkflowHistoryList from '../packages/workflow-history-list'
|
|
16
|
+
import PreventReclick from '../packages/directives/prevent-reclick'
|
|
17
|
+
// import exportPlugin from '../packages/export-data/index'
|
|
18
|
+
import ValidCode from '../packages/valid-code'
|
|
19
|
+
import customPlugin from '../packages/plugins/index'
|
|
20
|
+
import RemoveUser from '../packages/remove-user'
|
|
21
|
+
import RemoveDepartment from '../packages/remove-department'
|
|
22
|
+
import RemoveWorkgroup from '../packages/remove-workgroup'
|
|
23
|
+
import OrganizationInput from '../packages/organization-input'
|
|
24
|
+
import SuperNineGrid from '../packages/super-nine-grid'
|
|
25
|
+
import DynamicSourceSelect from '../packages/dynamic-source-select'
|
|
26
|
+
import FsUpload from '../packages/fs-upload'
|
|
27
|
+
import ScanCodeInput from '../packages/scan-code-input'
|
|
28
|
+
import FsPreview from '../packages/fs-preview'
|
|
29
|
+
import FsUploadList from '../packages/fs-upload-list'
|
|
30
|
+
import { openPage } from './utils/jump-page-utils'
|
|
31
|
+
import YearRangePicker from '../packages/year-range-picker'
|
|
32
|
+
import MultipartUpload from '../packages/multipart-upload'
|
|
33
|
+
import RichEditor from '../packages/rich-editor'
|
|
34
|
+
import SecretInfo from '../packages/secret-info'
|
|
35
|
+
|
|
36
|
+
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
37
|
+
const install = function(Vue) {
|
|
38
|
+
Vue.directive('prevent-reclick', PreventReclick)
|
|
39
|
+
Vue.use(customPlugin)
|
|
40
|
+
if (install.installed) return
|
|
41
|
+
// components.map(component => Vue.component(component.name, component))
|
|
42
|
+
// components.forEach(component => {
|
|
43
|
+
// Vue.component(component.name, component)
|
|
44
|
+
// })
|
|
45
|
+
// 将弹出页面方法注册到window对象上
|
|
46
|
+
window['$plateform_openPage'] = openPage
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// 判断是否是直接引入vue的js文件,即全局引用可自动安装所有组件
|
|
50
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
51
|
+
install(window.Vue)
|
|
52
|
+
}
|
|
53
|
+
// 按需引入
|
|
54
|
+
export {
|
|
55
|
+
Breadcrumb,
|
|
56
|
+
DepartmentTree,
|
|
57
|
+
Hamburger,
|
|
58
|
+
SvgIcon,
|
|
59
|
+
SuperGrid,
|
|
60
|
+
DepartmentUserTree,
|
|
61
|
+
WorkgroupTree,
|
|
62
|
+
WorkgroupUserTree,
|
|
63
|
+
InlineDepartmentTree,
|
|
64
|
+
InlineDepartmentUserTree,
|
|
65
|
+
InlineWorkgroupTree,
|
|
66
|
+
InlineWorkgroupUserTree,
|
|
67
|
+
WorkflowButton,
|
|
68
|
+
WorkflowHistoryList,
|
|
69
|
+
ValidCode,
|
|
70
|
+
RemoveUser,
|
|
71
|
+
RemoveDepartment,
|
|
72
|
+
RemoveWorkgroup,
|
|
73
|
+
OrganizationInput,
|
|
74
|
+
SuperNineGrid,
|
|
75
|
+
DynamicSourceSelect,
|
|
76
|
+
FsUpload,
|
|
77
|
+
ScanCodeInput,
|
|
78
|
+
FsPreview,
|
|
79
|
+
FsUploadList,
|
|
80
|
+
YearRangePicker,
|
|
81
|
+
MultipartUpload,
|
|
82
|
+
RichEditor,
|
|
83
|
+
SecretInfo
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export default {
|
|
87
|
+
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
88
|
+
install
|
|
89
|
+
}
|
package/webpack.components.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
|
2
3
|
// 引入vue-loader
|
|
3
4
|
const { VueLoaderPlugin } = require('vue-loader')
|
|
4
5
|
// 引入path,构造绝对路径
|
|
@@ -32,7 +33,7 @@ makeList('packages', list)
|
|
|
32
33
|
module.exports = {
|
|
33
34
|
// 自定义的字段
|
|
34
35
|
entry: list, // 打包的入口文件,每个组件都有自己的入口
|
|
35
|
-
mode: 'development', // 设置为开发模式
|
|
36
|
+
// mode: 'development', // 设置为开发模式
|
|
36
37
|
output: {
|
|
37
38
|
// 输出配置
|
|
38
39
|
filename: '[name].js', // name即组件名,最后会得到card.umd.js
|
|
@@ -41,6 +42,11 @@ module.exports = {
|
|
|
41
42
|
libraryTarget: 'umd'
|
|
42
43
|
},
|
|
43
44
|
plugins: [
|
|
45
|
+
new CompressionWebpackPlugin({
|
|
46
|
+
test: /\.(js|css)(\?.*)?$/i, // 需要压缩的文件正则
|
|
47
|
+
threshold: 10240, // 文件大小大于这个值时启用压缩
|
|
48
|
+
deleteOriginalAssets: true// 压缩后删除原文件
|
|
49
|
+
}),
|
|
44
50
|
// 配置loader,对文件进行预处理
|
|
45
51
|
// 安装vue-loader:npm i vue-loader -D
|
|
46
52
|
// 引入vue-loader
|