imatrix-ui 0.0.15 → 0.1.1-up
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/.vscode/extensions.json +3 -0
- package/README.md +7 -0
- package/components/dynamic-source-select/dynamic-source-select-service.js +106 -0
- package/components/dynamic-source-select/dynamic-source-select.vue +673 -0
- package/components/dynamic-source-select/events.js +77 -0
- package/components/fs-preview/fs-preview.vue +287 -0
- package/components/index.js +26 -0
- package/components/plugins/export-data-new.js +623 -0
- package/components/plugins/export-data.js +431 -0
- package/components/plugins/index.js +15 -0
- package/components/plugins/public-method.js +47 -0
- package/components/rich-editor/index-bak.vue +306 -0
- package/components/rich-editor/index.vue +236 -0
- package/components/rich-editor/langs/zh-Hans.js +438 -0
- package/components/rich-editor/viewer.vue +105 -0
- package/components/super-grid/apis.js +1065 -0
- package/components/super-grid/columns-config.vue +430 -0
- package/components/super-grid/custom-formatter.js +330 -0
- package/components/super-grid/dynamic-input.vue +1706 -0
- package/components/super-grid/eventBus.js +2 -0
- package/components/super-grid/events.js +56 -0
- package/components/super-grid/formValidatorUtil.js +300 -0
- package/components/super-grid/formatter.js +190 -0
- package/components/super-grid/group-column.vue +100 -0
- package/components/super-grid/header-context-menu.vue +82 -0
- package/components/super-grid/index-column.vue +69 -0
- package/components/super-grid/normal-column.vue +1148 -0
- package/components/super-grid/public-methods.js +30 -0
- package/components/super-grid/row-operation.vue +193 -0
- package/components/super-grid/search-button.vue +74 -0
- package/components/super-grid/search-condition-input.vue +73 -0
- package/components/super-grid/search-condition-list.vue +68 -0
- package/components/super-grid/search-form-advancedQuery.vue +820 -0
- package/components/super-grid/search-form-dialog.vue +77 -0
- package/components/super-grid/search-form-item.vue +470 -0
- package/components/super-grid/search-form-number.vue +111 -0
- package/components/super-grid/search-form-open.vue +178 -0
- package/components/super-grid/search-form-ordinarySearch.vue +218 -0
- package/components/super-grid/search-form.vue +756 -0
- package/components/super-grid/search-methods.js +484 -0
- package/components/super-grid/selection-column.vue +46 -0
- package/components/super-grid/store.js +3 -0
- package/components/super-grid/super-grid-service.js +682 -0
- package/components/super-grid/super-grid.vue +2893 -0
- package/components/super-grid/utils.js +851 -0
- package/components/super-grid/view-image-dialog.vue +173 -0
- package/components/utils/gogocodeTransfer.js +59 -0
- package/components/utils/utils.js +180 -0
- package/components/utils/value-set.js +98 -0
- package/components/z-test-utton/index.vue +82 -0
- package/package.json +29 -40
- package/public/index.html +13 -0
- package/public/vite.svg +1 -0
- package/src/api/sso-service.js +172 -19
- package/src/api/tab.js +36 -0
- package/src/api/user-service.js +11 -11
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/cloud.png +0 -0
- package/src/directives/permission/index.js +13 -13
- package/src/directives/permission/permission.js +20 -15
- package/src/i18n/i18n.js +16 -0
- package/src/i18n/langs/cn.js +254 -0
- package/src/i18n/langs/en.js +264 -0
- package/src/permission.js +157 -71
- package/src/plugins.js +18 -18
- package/src/router/index.js +96 -69
- package/src/store/getters.js +15 -10
- package/src/store/index.js +19 -19
- package/src/store/modules/app.js +54 -42
- package/src/store/modules/permission.js +137 -73
- package/src/store/modules/tab-content.js +36 -0
- package/src/store/modules/user.js +293 -80
- package/src/styles/display-layout.scss +34 -0
- package/src/styles/element-ui.scss +29 -29
- package/src/styles/index.scss +157 -78
- package/src/styles/mixin.scss +27 -27
- package/src/styles/theme/black/font-style.scss +70 -0
- package/src/styles/theme/black/index.scss +306 -0
- package/src/styles/theme/black/sidebar.scss +189 -0
- package/src/styles/theme/blue/font-style.scss +46 -0
- package/src/styles/theme/blue/index.scss +172 -0
- package/src/styles/{sidebar.scss → theme/blue/sidebar.scss} +171 -141
- package/src/styles/theme/blue2/font-style.scss +70 -0
- package/src/styles/theme/blue2/index.scss +188 -0
- package/src/styles/theme/blue2/sidebar.scss +201 -0
- package/src/styles/theme/dark-blue/button.scss +9 -0
- package/src/styles/theme/dark-blue/card.scss +62 -0
- package/src/styles/theme/dark-blue/checkbox.scss +10 -0
- package/src/styles/theme/dark-blue/dark-blue-var.scss +8 -0
- package/src/styles/theme/dark-blue/dialog.scss +21 -0
- package/src/styles/theme/dark-blue/element-variables.scss +7 -0
- package/src/styles/theme/dark-blue/font.scss +71 -0
- package/src/styles/theme/dark-blue/form.scss +51 -0
- package/src/styles/theme/dark-blue/index.scss +269 -0
- package/src/styles/theme/dark-blue/input.scss +15 -0
- package/src/styles/theme/dark-blue/message.scss +8 -0
- package/src/styles/theme/dark-blue/pagination.scss +14 -0
- package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
- package/src/styles/theme/dark-blue/sidebar.scss +266 -0
- package/src/styles/theme/dark-blue/tab.scss +83 -0
- package/src/styles/theme/dark-blue/table.scss +60 -0
- package/src/styles/theme/dark-blue/tree.scss +31 -0
- package/src/styles/theme/dark-blue/var.scss +1028 -0
- package/src/styles/theme/gray/card-style.scss +54 -0
- package/src/styles/theme/gray/font-style.scss +70 -0
- package/src/styles/theme/gray/index.scss +172 -0
- package/src/styles/theme/gray/input-style.scss +19 -0
- package/src/styles/theme/gray/scrollbar-style.scss +32 -0
- package/src/styles/theme/gray/sidebar.scss +231 -0
- package/src/styles/theme/gray/tab-style.scss +81 -0
- package/src/styles/transition.scss +47 -46
- package/src/utils/auth-api.js +159 -0
- package/src/utils/auth.js +61 -15
- package/src/utils/calculator/calculator-factory-wf.js +558 -0
- package/src/utils/calculator/calculator-factory.js +145 -0
- package/src/utils/calculator/calculator-util.js +166 -0
- package/src/utils/common-util.js +305 -0
- package/src/utils/eventBus.js +2 -0
- package/src/utils/iconUtils.js +28 -0
- package/src/utils/index.js +102 -86
- package/src/utils/jump-page-utils.js +814 -0
- package/src/utils/local-storage.js +33 -31
- package/src/utils/menu.js +19 -0
- package/src/utils/permission.js +31 -26
- package/src/utils/permissionAuth.js +90 -0
- package/src/utils/range-selector.js +188 -0
- package/src/utils/request.js +270 -116
- package/src/utils/restful-interface-utils.js +57 -0
- package/src/utils/util.js +698 -0
- package/src/utils/validate.js +34 -33
- package/src/utils/watermark.js +108 -0
- package/src/utils/workflow-util.js +93 -0
- package/src/views/404.vue +248 -228
- package/src/views/dsc-component/Sidebar/Item.vue +84 -0
- package/src/views/dsc-component/Sidebar/Link.vue +38 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +196 -0
- package/src/views/dsc-component/Sidebar/index.vue +220 -0
- package/src/views/dsc-component/tabs/tab-content.vue +199 -0
- package/src/views/error-page/401.vue +106 -91
- package/src/views/error-page/404.vue +248 -228
- package/src/views/layout/EmptyLayout.vue +3 -0
- package/src/views/layout/Layout.vue +81 -68
- package/src/views/layout/NewLayout.vue +18 -0
- package/src/views/layout/components/AppMain.vue +39 -29
- package/src/views/layout/components/Breadcrumb/index.vue +156 -0
- package/src/views/layout/components/Menubar/Item.vue +57 -0
- package/src/views/layout/components/Menubar/Link.vue +38 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +164 -0
- package/src/views/layout/components/Menubar/index.vue +210 -0
- package/src/views/layout/components/Sidebar/Item.vue +53 -29
- package/src/views/layout/components/Sidebar/Link.vue +38 -39
- package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -100
- package/src/views/layout/components/Sidebar/index.vue +141 -48
- package/src/views/layout/components/iframe-page.vue +38 -0
- package/src/views/layout/components/index.js +4 -3
- package/src/views/layout/components/tabs/tab-content.vue +207 -0
- package/src/views/layout/mixin/ResizeHandler.js +41 -41
- package/src/views/layout/tab-content-iframe-index.vue +38 -0
- package/src/views/layout/tab-content-index.vue +93 -0
- package/src/views/login/authredirect.vue +10 -10
- package/src/views/login/index.vue +296 -203
- package/src/views/login/update-password.vue +243 -0
- package/src/views/redirect/index.vue +14 -12
- package/src/views/wf-history/tache-subprocess-history.vue +45 -0
- package/vite.config.js +31 -0
- package/lib/super-ui.css +0 -1
- package/lib/super-ui.umd.min.js +0 -2
- package/src/styles/variables.scss +0 -4
- package/src/views/layout/components/Navbar.vue +0 -92
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="login-container">
|
|
3
|
+
<span v-if="overdueDay !== ''">
|
|
4
|
+
您的密码还有<strong>{{ overdueDay }}</strong
|
|
5
|
+
>将要过期,请修改密码
|
|
6
|
+
</span>
|
|
7
|
+
|
|
8
|
+
<el-form
|
|
9
|
+
ref="loginForm"
|
|
10
|
+
:model="loginForm"
|
|
11
|
+
:rules="loginRules"
|
|
12
|
+
class="login-form"
|
|
13
|
+
auto-complete="on"
|
|
14
|
+
label-position="left"
|
|
15
|
+
>
|
|
16
|
+
<el-form-item prop="username" label="用户名">
|
|
17
|
+
<el-input
|
|
18
|
+
v-model="loginForm.username"
|
|
19
|
+
name="username"
|
|
20
|
+
type="text"
|
|
21
|
+
auto-complete="on"
|
|
22
|
+
placeholder="用户名"
|
|
23
|
+
disabled
|
|
24
|
+
/>
|
|
25
|
+
</el-form-item>
|
|
26
|
+
<el-form-item prop="password" label="原密码">
|
|
27
|
+
<el-input
|
|
28
|
+
v-model="loginForm.password"
|
|
29
|
+
type="password"
|
|
30
|
+
name="password"
|
|
31
|
+
auto-complete="on"
|
|
32
|
+
placeholder="密码"
|
|
33
|
+
/>
|
|
34
|
+
</el-form-item>
|
|
35
|
+
<el-form-item prop="newPassword" label="新密码">
|
|
36
|
+
<el-input
|
|
37
|
+
v-model="loginForm.newPassword"
|
|
38
|
+
type="password"
|
|
39
|
+
name="newPassword"
|
|
40
|
+
auto-complete="on"
|
|
41
|
+
placeholder="新密码"
|
|
42
|
+
/>
|
|
43
|
+
</el-form-item>
|
|
44
|
+
<el-form-item prop="confirmNewPassword" label="确认新密码">
|
|
45
|
+
<el-input
|
|
46
|
+
v-model="loginForm.confirmNewPassword"
|
|
47
|
+
type="password"
|
|
48
|
+
name="confirmNewPassword"
|
|
49
|
+
auto-complete="on"
|
|
50
|
+
placeholder="请再次输入新密码"
|
|
51
|
+
/>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
<el-form-item>
|
|
54
|
+
<el-button
|
|
55
|
+
:loading="loading"
|
|
56
|
+
:style="width"
|
|
57
|
+
type="primary"
|
|
58
|
+
@click.prevent="handleLogin"
|
|
59
|
+
>
|
|
60
|
+
确定
|
|
61
|
+
</el-button>
|
|
62
|
+
<el-button
|
|
63
|
+
v-if="overdueDay !== ''"
|
|
64
|
+
:loading="loading"
|
|
65
|
+
:style="width"
|
|
66
|
+
type="primary"
|
|
67
|
+
@click.prevent="jump"
|
|
68
|
+
>
|
|
69
|
+
跳过
|
|
70
|
+
</el-button>
|
|
71
|
+
</el-form-item>
|
|
72
|
+
</el-form>
|
|
73
|
+
</div>
|
|
74
|
+
</template>
|
|
75
|
+
|
|
76
|
+
<script>
|
|
77
|
+
export default {
|
|
78
|
+
name: 'UpdatePassword',
|
|
79
|
+
data() {
|
|
80
|
+
const validatePwdEq = (rule, value, callback) => {
|
|
81
|
+
if (this.clickBtnType === 'jump') {
|
|
82
|
+
callback()
|
|
83
|
+
} else {
|
|
84
|
+
// console.log('validatePwdEq-value==', value)
|
|
85
|
+
if (this.loginForm.newPassword !== value) {
|
|
86
|
+
callback(new Error('两次输入的密码不一致'))
|
|
87
|
+
} else {
|
|
88
|
+
callback()
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
loginForm: {
|
|
94
|
+
username: '',
|
|
95
|
+
password: '',
|
|
96
|
+
newPassword: '',
|
|
97
|
+
confirmNewPassword: '',
|
|
98
|
+
},
|
|
99
|
+
loginRules: {
|
|
100
|
+
username: [
|
|
101
|
+
{ required: true, trigger: 'blur', message: '请输入用户名' },
|
|
102
|
+
],
|
|
103
|
+
password: [{ required: true, trigger: 'blur', message: '请输入密码' }],
|
|
104
|
+
newPassword: [
|
|
105
|
+
{ required: true, trigger: 'blur', message: '请输入新密码' },
|
|
106
|
+
],
|
|
107
|
+
confirmNewPassword: [
|
|
108
|
+
{ required: true, trigger: 'blur', validator: validatePwdEq },
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
loading: false,
|
|
112
|
+
pwdType: 'password',
|
|
113
|
+
errorMessage: undefined,
|
|
114
|
+
overdueDay: '',
|
|
115
|
+
width: 'width: 100%',
|
|
116
|
+
userId: null,
|
|
117
|
+
clickBtnType: 'ok',
|
|
118
|
+
redirect: undefined,
|
|
119
|
+
username: null,
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
created: function () {
|
|
123
|
+
this.redirect = this.$route.query && this.$route.query.redirect
|
|
124
|
+
// console.log('login--update-password', this.redirect)
|
|
125
|
+
this.errorMessage = this.$route.query && this.$route.query.errorMessage
|
|
126
|
+
this.username = this.$route.query && this.$route.query.username
|
|
127
|
+
this.loginForm.username = this.username
|
|
128
|
+
if (this.username.indexOf('::') > 0) {
|
|
129
|
+
// 表示有租户编码,需要截取用户登录名
|
|
130
|
+
this.loginForm.username = this.username.substring(
|
|
131
|
+
this.username.indexOf('::') + 2
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
if (this.errorMessage.indexOf('OVERDUE_DAY:') >= 0) {
|
|
135
|
+
// 表示密码将要过期,获得过期天数
|
|
136
|
+
this.overdueDay = this.errorMessage.substring(
|
|
137
|
+
this.errorMessage.indexOf(':') + 1
|
|
138
|
+
)
|
|
139
|
+
this.width = 'width: 50%'
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
methods: {
|
|
143
|
+
showPwd() {
|
|
144
|
+
if (this.pwdType === 'password') {
|
|
145
|
+
this.pwdType = ''
|
|
146
|
+
} else {
|
|
147
|
+
this.pwdType = 'password'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
handleLogin() {
|
|
151
|
+
// 表示点击了“确定”按钮
|
|
152
|
+
this.clickBtnType = 'ok'
|
|
153
|
+
this.login()
|
|
154
|
+
},
|
|
155
|
+
updatePassword() {
|
|
156
|
+
const map = {
|
|
157
|
+
newPassword: this.loginForm.newPassword,
|
|
158
|
+
levelPassword: this.loginForm.password,
|
|
159
|
+
loginName: this.loginForm.username,
|
|
160
|
+
}
|
|
161
|
+
this.$store
|
|
162
|
+
.dispatch('updatePassword', map)
|
|
163
|
+
.then((data) => {
|
|
164
|
+
if (data === 'success') {
|
|
165
|
+
if (this.redirect) {
|
|
166
|
+
this.$router.push({ path: this.redirect })
|
|
167
|
+
} else {
|
|
168
|
+
this.$router.push({ path: '/' })
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
.catch((e) => {
|
|
173
|
+
// console.log('error submit!!')
|
|
174
|
+
return false
|
|
175
|
+
})
|
|
176
|
+
},
|
|
177
|
+
jump() {
|
|
178
|
+
// 表示点击了“跳过”按钮
|
|
179
|
+
this.clickBtnType = 'jump'
|
|
180
|
+
this.login()
|
|
181
|
+
},
|
|
182
|
+
login() {
|
|
183
|
+
this.$refs.loginForm.validate((valid) => {
|
|
184
|
+
if (valid) {
|
|
185
|
+
const map = {
|
|
186
|
+
password: this.loginForm.password,
|
|
187
|
+
username: this.username,
|
|
188
|
+
}
|
|
189
|
+
this.$store
|
|
190
|
+
.dispatch('login', map)
|
|
191
|
+
.then(() => {
|
|
192
|
+
this.loading = false
|
|
193
|
+
if (this.clickBtnType === 'ok') {
|
|
194
|
+
// 如果点击了“确定”,修改密码
|
|
195
|
+
this.updatePassword()
|
|
196
|
+
} else {
|
|
197
|
+
// 如果点击了跳过,则直接进入主页
|
|
198
|
+
this.$router.push({ path: this.redirect || '/' })
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
.catch((error) => {
|
|
202
|
+
console.log('登录失败', error)
|
|
203
|
+
this.loading = false
|
|
204
|
+
this.$router.push({ path: '/login' })
|
|
205
|
+
})
|
|
206
|
+
} else {
|
|
207
|
+
console.log('error submit!!')
|
|
208
|
+
return false
|
|
209
|
+
}
|
|
210
|
+
})
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
}
|
|
214
|
+
</script>
|
|
215
|
+
|
|
216
|
+
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
217
|
+
$bg: #fff;
|
|
218
|
+
$dark_gray: #889aa4;
|
|
219
|
+
.login-container {
|
|
220
|
+
position: fixed;
|
|
221
|
+
height: 100%;
|
|
222
|
+
width: 100%;
|
|
223
|
+
background-color: $bg;
|
|
224
|
+
.login-form {
|
|
225
|
+
position: absolute;
|
|
226
|
+
left: 0;
|
|
227
|
+
right: 0;
|
|
228
|
+
width: 550px;
|
|
229
|
+
max-width: 100%;
|
|
230
|
+
padding: 35px 35px 15px 35px;
|
|
231
|
+
margin: 120px auto;
|
|
232
|
+
}
|
|
233
|
+
.show-pwd {
|
|
234
|
+
position: absolute;
|
|
235
|
+
right: 10px;
|
|
236
|
+
top: 7px;
|
|
237
|
+
font-size: 16px;
|
|
238
|
+
color: $dark_gray;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
user-select: none;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
</style>
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<script>
|
|
2
|
+
import * as Vue from 'vue'
|
|
3
|
+
export default {
|
|
4
|
+
beforeCreate() {
|
|
5
|
+
const { params, query } = this.$route
|
|
6
|
+
const { path } = params
|
|
7
|
+
this.$router.replace({ path: '/' + path, query })
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
return Vue.h() // avoid warning message
|
|
12
|
+
},
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="padding-bottom: 10px">
|
|
4
|
+
<el-radio-group v-model="type">
|
|
5
|
+
<el-radio-button label="graph">
|
|
6
|
+
{{ $t('imatrixUIPublicModel.graphView') }}
|
|
7
|
+
</el-radio-button>
|
|
8
|
+
<el-radio-button label="list">
|
|
9
|
+
{{ $t('imatrixUIPublicModel.listView') }}
|
|
10
|
+
</el-radio-button>
|
|
11
|
+
</el-radio-group>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div v-if="type === 'graph'" class="graphDiv">
|
|
15
|
+
<workflow-history :id="workflowId" />
|
|
16
|
+
</div>
|
|
17
|
+
<workflow-history-list v-if="type === 'list'" :workflow-id="workflowId" />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
export default {
|
|
23
|
+
name: 'TacheSubprocessHistory',
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
type: 'graph',
|
|
27
|
+
workflowId: null,
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
created() {
|
|
31
|
+
const workflowId = this.$route.query.workflowId
|
|
32
|
+
if (workflowId) {
|
|
33
|
+
this.workflowId = parseInt(workflowId)
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<style scoped>
|
|
40
|
+
.graphDiv {
|
|
41
|
+
overflow: auto;
|
|
42
|
+
height: 100%;
|
|
43
|
+
height: calc(100vh - 20px);
|
|
44
|
+
}
|
|
45
|
+
</style>
|
package/vite.config.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import vue from "@vitejs/plugin-vue";
|
|
3
|
+
import path from "path";
|
|
4
|
+
// https://vitejs.dev/config/
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [vue()],
|
|
7
|
+
build: {
|
|
8
|
+
outDir: "lib", //输出文件名称
|
|
9
|
+
lib: {
|
|
10
|
+
entry: path.resolve(__dirname, "./components/index.js"), //指定组件编译入口文件
|
|
11
|
+
name: "super-ui",
|
|
12
|
+
fileName: "super-ui",
|
|
13
|
+
}, //库编译模式配置
|
|
14
|
+
rollupOptions: {
|
|
15
|
+
// 确保外部化处理那些你不想打包进库的依赖
|
|
16
|
+
external: ["vue"],
|
|
17
|
+
output: {
|
|
18
|
+
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
19
|
+
globals: {
|
|
20
|
+
vue: "Vue",
|
|
21
|
+
},
|
|
22
|
+
// 定义生成css的名称
|
|
23
|
+
assetFileNames: (assetInfo) => {
|
|
24
|
+
if (assetInfo.name == 'style.css')
|
|
25
|
+
return 'super-ui.css';
|
|
26
|
+
return assetInfo.name;
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
}, // rollup打包配置
|
|
30
|
+
},
|
|
31
|
+
});
|
package/lib/super-ui.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.app-breadcrumb.el-breadcrumb[data-v-7da23860]{display:inline-block;font-size:14px;line-height:50px;margin-left:10px}.app-breadcrumb.el-breadcrumb .no-redirect[data-v-7da23860]{color:#97a8be;cursor:text}.hamburger[data-v-a1a5ac32]{display:inline-block;cursor:pointer;width:14px;height:14px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:.38s;transition:.38s;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.hamburger.is-active[data-v-a1a5ac32]{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.path[data-v-a1a5ac32]{fill:#fff}.svg-icon[data-v-32992e84]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}
|
package/lib/super-ui.umd.min.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["super-ui"]=e():t["super-ui"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"014b":function(t,e,n){"use strict";var r=n("e53d"),o=n("07e3"),i=n("8e60"),c=n("63b6"),u=n("9138"),a=n("ebfd").KEY,f=n("294c"),s=n("dbdb"),l=n("45f2"),p=n("62a0"),d=n("5168"),b=n("ccb9"),v=n("6718"),h=n("47ee"),y=n("9003"),m=n("e4ae"),g=n("f772"),x=n("36c3"),w=n("1bc3"),O=n("aebd"),_=n("a159"),S=n("0395"),j=n("bf0b"),E=n("d9f6"),P=n("c3a1"),N=j.f,C=E.f,k=S.f,T=r.Symbol,I=r.JSON,F=I&&I.stringify,M="prototype",$=d("_hidden"),A=d("toPrimitive"),R={}.propertyIsEnumerable,D=s("symbol-registry"),L=s("symbols"),B=s("op-symbols"),z=Object[M],W="function"==typeof T,V=r.QObject,G=!V||!V[M]||!V[M].findChild,U=i&&f(function(){return 7!=_(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=N(z,e);r&&delete z[e],C(t,e,n),r&&t!==z&&C(z,e,r)}:C,J=function(t){var e=L[t]=_(T[M]);return e._k=t,e},X=W&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,n){return t===z&&Y(B,e,n),m(t),e=w(e,!0),m(n),o(L,e)?(n.enumerable?(o(t,$)&&t[$][e]&&(t[$][e]=!1),n=_(n,{enumerable:O(0,!1)})):(o(t,$)||C(t,$,O(1,{})),t[$][e]=!0),U(t,e,n)):C(t,e,n)},K=function(t,e){m(t);var n,r=h(e=x(e)),o=0,i=r.length;while(i>o)Y(t,n=r[o++],e[n]);return t},q=function(t,e){return void 0===e?_(t):K(_(t),e)},H=function(t){var e=R.call(this,t=w(t,!0));return!(this===z&&o(L,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,$)&&this[$][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==z||!o(L,e)||o(B,e)){var n=N(t,e);return!n||!o(L,e)||o(t,$)&&t[$][e]||(n.enumerable=!0),n}},Z=function(t){var e,n=k(x(t)),r=[],i=0;while(n.length>i)o(L,e=n[i++])||e==$||e==a||r.push(e);return r},tt=function(t){var e,n=t===z,r=k(n?B:x(t)),i=[],c=0;while(r.length>c)!o(L,e=r[c++])||n&&!o(z,e)||i.push(L[e]);return i};W||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(B,n),o(this,$)&&o(this[$],t)&&(this[$][t]=!1),U(this,t,O(1,n))};return i&&G&&U(z,t,{configurable:!0,set:e}),J(t)},u(T[M],"toString",function(){return this._k}),j.f=Q,E.f=Y,n("6abf").f=S.f=Z,n("355d").f=H,n("9aa9").f=tt,i&&!n("b8e3")&&u(z,"propertyIsEnumerable",H,!0),b.f=function(t){return J(d(t))}),c(c.G+c.W+c.F*!W,{Symbol:T});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=P(d.store),ot=0;rt.length>ot;)v(rt[ot++]);c(c.S+c.F*!W,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=T(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),c(c.S+c.F*!W,"Object",{create:q,defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),I&&c(c.S+c.F*(!W||f(function(){var t=T();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){var e,n,r=[t],o=1;while(arguments.length>o)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!X(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,F.apply(I,r)}}),T[M][A]||n("35e8")(T[M],A,T[M].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},"0395":function(t,e,n){var r=n("36c3"),o=n("6abf").f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return c.slice()}};t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?u(t):o(r(t))}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"0fc9":function(t,e,n){var r=n("3a38"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),c=n("6a99"),u=n("69a8"),a=n("c69a"),f=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?f:function(t,e){if(t=i(t),e=c(e,!0),a)try{return f(t,e)}catch(n){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),u=c.length,a=0;while(u>a)r.f(t,n=c[a++],e[n]);return t}},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),o=n("e53d").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"268f":function(t,e,n){t.exports=n("fde4")},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),c=n("ca5a")("src"),u=n("fa5b"),a="toString",f=(""+u).split(a);n("8378").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var a="function"==typeof n;a&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(a&&(i(n,c)||o(n,c,t[e]?""+t[e]:f.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[c]||u.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),c=n("613b")("IE_PROTO"),u=function(){},a="prototype",f=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),f=t.F;while(r--)delete f[a][i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[a]=r(t),n=new u,u[a]=null,n[c]=t):n=f(),void 0===e?n:o(n,e)}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"32a6":function(t,e,n){var r=n("241e"),o=n("c3a1");n("ce7e")("keys",function(){return function(t){return o(r(t))}})},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),o=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),o=n("25eb");t.exports=function(t){return r(o(t))}},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"3b74":function(t,e,n){"use strict";var r=n("4499"),o=n.n(r);o.a},4499:function(t,e,n){},"454f":function(t,e,n){n("46a7");var r=n("584a").Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"46a7":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(t,e,n){var r=n("c3a1"),o=n("9aa9"),i=n("355d");t.exports=function(t){var e=r(t),n=o.f;if(n){var c,u=n(t),a=i.f,f=0;while(u.length>f)a.call(t,c=u[f++])&&e.push(c)}return e}},5168:function(t,e,n){var r=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,c="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};u.store=r},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),o=n("62a0");t.exports=function(t){return r[t]||(r[t]=o(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var r=n("36c3"),o=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,c){var u,a=r(e),f=o(a.length),s=i(c,f);if(t&&n!=n){while(f>s)if(u=a[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),c=n("2aba"),u=n("9b43"),a="prototype",f=function(t,e,n){var s,l,p,d,b=t&f.F,v=t&f.G,h=t&f.S,y=t&f.P,m=t&f.B,g=v?r:h?r[e]||(r[e]={}):(r[e]||{})[a],x=v?o:o[e]||(o[e]={}),w=x[a]||(x[a]={});for(s in v&&(n=e),n)l=!b&&g&&void 0!==g[s],p=(l?g:n)[s],d=m&&l?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,g&&c(g,s,p,t&f.U),x[s]!=p&&i(x,s,d),y&&w[s]!=p&&(w[s]=p)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},"5dbc":function(t,e,n){var r=n("d3f4"),o=n("8b97").set;t.exports=function(t,e,n){var i,c=e.constructor;return c!==n&&"function"==typeof c&&(i=c.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),o=n("584a"),i=n("d864"),c=n("35e8"),u=n("07e3"),a="prototype",f=function(t,e,n){var s,l,p,d=t&f.F,b=t&f.G,v=t&f.S,h=t&f.P,y=t&f.B,m=t&f.W,g=b?o:o[e]||(o[e]={}),x=g[a],w=b?r:v?r[e]:(r[e]||{})[a];for(s in b&&(n=e),n)l=!d&&w&&void 0!==w[s],l&&u(g,s)||(p=l?w[s]:n[s],g[s]=b&&"function"!=typeof w[s]?n[s]:y&&l?i(p,r):m&&w[s]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[a]=t[a],e}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((g.virtual||(g.virtual={}))[s]=p,t&f.R&&x&&!x[s]&&c(x,s,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},6718:function(t,e,n){var r=n("e53d"),o=n("584a"),i=n("b8e3"),c=n("ccb9"),u=n("d9f6").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:c.f(t)})}},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,n){var r=n("e6f3"),o=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7e90":function(t,e,n){var r=n("d9f6"),o=n("e4ae"),i=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),u=c.length,a=0;while(u>a)r.f(t,n=c[a++],e[n]);return t}},"7f7f":function(t,e,n){var r=n("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,c="name";c in o||n("9e1e")&&r(o,c,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),c=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8b97":function(t,e,n){var r=n("d3f4"),o=n("cb7c"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},9003:function(t,e,n){var r=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9093:function(t,e,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},9138:function(t,e,n){t.exports=n("35e8")},9880:function(t,e,n){},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),c=n("5559")("IE_PROTO"),u=function(){},a="prototype",f=function(){var t,e=n("1ec9")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),f=t.F;while(r--)delete f[a][i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[a]=r(t),n=new u,u[a]=null,n[c]=t):n=f(),void 0===e?n:o(n,e)}},a4bb:function(t,e,n){t.exports=n("8aae")},aa77:function(t,e,n){var r=n("5ca1"),o=n("be13"),i=n("79e5"),c=n("fdef"),u="["+c+"]",a="
",f=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),l=function(t,e,n){var o={},u=i(function(){return!!c[t]()||a[t]()!=a}),f=o[t]=u?e(p):c[t];n&&(o[n]=f),r(r.P+r.F*u,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(f,"")),2&e&&(t=t.replace(s,"")),t};t.exports=l},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b447:function(t,e,n){var r=n("3a38"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},bd11:function(t,e){t.exports=r;var n=/\((?!\?)/g;function r(t,e,o){o=o||{},e=e||[];var i,c=o.strict,u=!1!==o.end,a=o.sensitive?"":"i",f=0,s=e.length,l=0,p=0;if(t instanceof RegExp){while(i=n.exec(t.source))e.push({name:p++,optional:!1,offset:i.index});return t}if(Array.isArray(t))return t=t.map(function(t){return r(t,e,o).source}),new RegExp("(?:"+t.join("|")+")",a);t=("^"+t+(c?"":"/"===t[t.length-1]?"?":"/?")).replace(/\/\(/g,"/(?:").replace(/([\/\.])/g,"\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g,function(t,n,r,o,i,c,u,a){n=n||"",r=r||"",i=i||"([^\\/"+r+"]+?)",u=u||"",e.push({name:o,optional:!!u,offset:a+f});var s=(u?"":n)+"(?:"+r+(u?n:"")+i+(c?"((?:[\\/"+r+"].+?)?)":"")+")"+u;return f+=s.length-t.length,s}).replace(/\*/g,function(t,n){var r=e.length;while(r-- >s&&e[r].offset>n)e[r].offset+=3;return"(.*)"});while(i=n.exec(t)){var d=0,b=i.index;while("\\"===t.charAt(--b))d++;d%2!==1&&((s+l===e.length||e[s+l].offset>i.index)&&e.splice(s+l,0,{name:p++,optional:!1,offset:i.index}),l++)}return t+=u?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,a)}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},beb5:function(t,e,n){},bf0b:function(t,e,n){var r=n("355d"),o=n("aebd"),i=n("36c3"),c=n("1bc3"),u=n("07e3"),a=n("794b"),f=Object.getOwnPropertyDescriptor;e.f=n("8e60")?f:function(t,e){if(t=i(t),e=c(e,!0),a)try{return f(t,e)}catch(n){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},bf90:function(t,e,n){var r=n("36c3"),o=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,c){var u,a=r(e),f=o(a.length),s=i(c,f);if(t&&n!=n){while(f>s)if(u=a[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},c3a1:function(t,e,n){var r=n("e6f3"),o=n("1691");t.exports=Object.keys||function(t){return r(t,o)}},c5f6:function(t,e,n){"use strict";var r=n("7726"),o=n("69a8"),i=n("2d95"),c=n("5dbc"),u=n("6a99"),a=n("79e5"),f=n("9093").f,s=n("11e9").f,l=n("86cc").f,p=n("aa77").trim,d="Number",b=r[d],v=b,h=b.prototype,y=i(n("2aeb")(h))==d,m="trim"in String.prototype,g=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var c,a=e.slice(2),f=0,s=a.length;f<s;f++)if(c=a.charCodeAt(f),c<48||c>o)return NaN;return parseInt(a,r)}}return+e};if(!b(" 0o1")||!b("0b1")||b("+0x1")){b=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof b&&(y?a(function(){h.valueOf.call(n)}):i(n)!=d)?c(new v(g(e)),n,b):g(e)};for(var x,w=n("9e1e")?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;w.length>O;O++)o(v,x=w[O])&&!o(b,x)&&l(b,x,s(v,x));b.prototype=h,h.constructor=b,n("2aba")(r,d,b)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca11:function(t,e,n){"use strict";var r=n("beb5"),o=n.n(r);o.a},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,n){e.f=n("5168")},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),c=n("613b")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),a=0,f=[];for(n in u)n!=c&&r(u,n)&&f.push(n);while(e.length>a)r(u,n=e[a++])&&(~i(f,n)||f.push(n));return f}},ce7e:function(t,e,n){var r=n("63b6"),o=n("584a"),i=n("294c");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],c={};c[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",c)}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d959:function(t,e,n){"use strict";var r=n("9880"),o=n.n(r);o.a},d9f6:function(t,e,n){var r=n("e4ae"),o=n("794b"),i=n("1bc3"),c=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),o=n("e53d"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e265:function(t,e,n){t.exports=n("ed33")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var r=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),c=n("5559")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),a=0,f=[];for(n in u)n!=c&&r(u,n)&&f.push(n);while(e.length>a)r(u,n=e[a++])&&(~i(f,n)||f.push(n));return f}},ebfd:function(t,e,n){var r=n("62a0")("meta"),o=n("f772"),i=n("07e3"),c=n("d9f6").f,u=0,a=Object.isExtensible||function(){return!0},f=!n("294c")(function(){return a(Object.preventExtensions({}))}),s=function(t){c(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;s(t)}return t[r].w},d=function(t){return f&&b.NEED&&a(t)&&!i(t,r)&&s(t),t},b=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=n("268f"),i=n.n(o),c=n("e265"),u=n.n(c),a=n("a4bb"),f=n.n(a),s=n("85f2"),l=n.n(s);function p(t,e,n){return e in t?l()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=f()(n);"function"===typeof u.a&&(r=r.concat(u()(n).filter(function(t){return i()(n,t).enumerable}))),r.forEach(function(e){p(t,e,n[e])})}return t}n("7f7f");var b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},t._l(t.levelListWithTitle,function(e,r){return n("el-breadcrumb-item",{key:e.path},["noredirect"===e.redirect||r==t.levelList.length-1?n("span",{staticClass:"no-redirect"},[t._v("\n "+t._s(e.meta.title)+"\n ")]):n("router-link",{attrs:{to:e.redirect||e.path}},[t._v("\n "+t._s(e.meta.title)+"\n ")])],1)}),1)],1)},v=[],h=n("bd11"),y=n.n(h),m={name:"Breadcrumb",data:function(){return{levelList:null}},computed:{levelListWithTitle:function(){return this.levelList.filter(function(t){return void 0!==t.meta.title&&null!==t.meta.title})}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.params,e=this.$route.matched.filter(function(e){if(e.name){var n=y.a.compile(e.path);return e.path=n(t),!0}}),n=e[0];n&&"Dashboard"!==n.name&&(e=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(e)),this.levelList=e}}},g=m;n("ca11");function x(t,e,n,r,o,i,c,u){var a,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),c?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},f._ssrRegister=a):o&&(a=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var s=f.render;f.render=function(t,e){return a.call(e),s(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:f}}var w=x(g,b,v,!1,null,"7da23860",null),O=w.exports;O.install=function(t){t.component(O.name,O)};var _=O,S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{visible:"",title:"请选择部门"},on:{open:function(e){return t.$emit("open")},opend:function(e){return t.$emit("opend")},close:function(e){return t.$emit("close")},closed:function(e){return t.$emit("closed")}}},[n("el-tree",{ref:"deparmentTree",attrs:{props:t.departments,load:t.loadNode,lazy:"","show-checkbox":"","node-key":"id","check-strictly":""},on:{"check-change":t.handleCheckChange}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){return t.$emit("close")}}},[t._v("\n 取 消\n ")]),n("el-button",{attrs:{type:"primary"},on:{click:t.selectDepartment}},[t._v("\n 确 定\n ")])],1)],1)],1)},j=[],E=(n("c5f6"),{name:"DepartmentTree",props:{visible:{type:Boolean,default:!0},exclude:{type:Number,default:null}},data:function(){return{departments:{label:"name",children:"childDepartments",isLeaf:"leaf"},count:0}},computed:{isVisible:{get:function(){return this.visible},set:function(t){this.$emit("close")}}},methods:{handleCheckChange:function(t,e,n){this.count++,this.count%2===0&&(e?(this.$refs.deparmentTree.setCheckedNodes([]),this.$refs.deparmentTree.setCheckedNodes([t])):this.$refs.deparmentTree.setCheckedNodes([]))},handleNodeClick:function(t){},selectDepartment:function(){var t=this.$refs.deparmentTree.getCheckedNodes();this.$emit("close",t.length>0?t[0]:null)},loadNode:function(t,e){return 0===t.level?e([{name:"region"}]):t.level>1?e([]):void setTimeout(function(){var t=[{name:"leaf",leaf:!0},{name:"zone"}];e(t)},500)}}}),P=E,N=x(P,S,j,!1,null,null,null),C=N.exports;C.install=function(t){t.component(C.name,C)};var k=C,T=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("svg",{staticClass:"hamburger",class:{"is-active":t.isActive},attrs:{t:"1492500959545",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1691","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"64",height:"64"},on:{click:t.toggleClick}},[n("path",{staticClass:"path",attrs:{d:"M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z","p-id":"1692"}}),n("path",{staticClass:"path",attrs:{d:"M966.8023 881.527125 57.196677 881.527125c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 856.07443 998.200404 881.527125 966.8023 881.527125z","p-id":"1693"}}),n("path",{staticClass:"path",attrs:{d:"M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z","p-id":"1694"}})])])},I=[],F={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},M=F,$=(n("3b74"),x(M,T,I,!1,null,"a1a5ac32",null)),A=$.exports;A.install=function(t){t.component(A.name,A)};var R=A,D=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":t.iconName}})])},L=[],B={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},z=B,W=(n("d959"),x(z,D,L,!1,null,"32992e84",null)),V=W.exports;V.install=function(t){t.component(V.name,V)};var G=V,U=[_,k,R,G],J=function t(e){t.installed||U.map(function(t){return e.component(t.name,t)})};"undefined"!==typeof window&&window.Vue&&J(window.Vue);var X=d({install:J},U);e["default"]=X},fde4:function(t,e,n){n("bf90");var r=n("584a").Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})});
|
|
2
|
-
//# sourceMappingURL=super-ui.umd.min.js.map
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-menu class="navbar" mode="horizontal">
|
|
3
|
-
<hamburger :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar"/>
|
|
4
|
-
<!-- <breadcrumb /> -->
|
|
5
|
-
<a href="/acs.html">ACS</a><a href="/wf.html">WF</a>
|
|
6
|
-
<el-dropdown class="avatar-container" trigger="click">
|
|
7
|
-
<div class="avatar-wrapper">
|
|
8
|
-
<!-- <img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar"> -->
|
|
9
|
-
<i class="el-icon-caret-bottom"/>
|
|
10
|
-
</div>
|
|
11
|
-
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
|
12
|
-
<router-link class="inlineBlock" to="/">
|
|
13
|
-
<el-dropdown-item>
|
|
14
|
-
Home
|
|
15
|
-
</el-dropdown-item>
|
|
16
|
-
</router-link>
|
|
17
|
-
<el-dropdown-item divided>
|
|
18
|
-
<span style="display:block;" @click="logout">LogOut</span>
|
|
19
|
-
</el-dropdown-item>
|
|
20
|
-
</el-dropdown-menu>
|
|
21
|
-
</el-dropdown>
|
|
22
|
-
</el-menu>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
import { mapGetters } from 'vuex'
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
components: {
|
|
30
|
-
// Breadcrumb,
|
|
31
|
-
// Hamburger
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
...mapGetters([
|
|
35
|
-
'sidebar'
|
|
36
|
-
])
|
|
37
|
-
},
|
|
38
|
-
methods: {
|
|
39
|
-
toggleSideBar() {
|
|
40
|
-
this.$store.dispatch('toggleSidebar')
|
|
41
|
-
},
|
|
42
|
-
logout() {
|
|
43
|
-
this.$store.dispatch('logout').then(() => {
|
|
44
|
-
location.reload() // 为了重新实例化vue-router对象 避免bug
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
52
|
-
.navbar {
|
|
53
|
-
height: 50px;
|
|
54
|
-
line-height: 50px;
|
|
55
|
-
border-radius: 0px !important;
|
|
56
|
-
.hamburger-container {
|
|
57
|
-
line-height: 58px;
|
|
58
|
-
height: 50px;
|
|
59
|
-
float: left;
|
|
60
|
-
padding: 0 10px;
|
|
61
|
-
}
|
|
62
|
-
.screenfull {
|
|
63
|
-
position: absolute;
|
|
64
|
-
right: 90px;
|
|
65
|
-
top: 16px;
|
|
66
|
-
color: red;
|
|
67
|
-
}
|
|
68
|
-
.avatar-container {
|
|
69
|
-
height: 50px;
|
|
70
|
-
display: inline-block;
|
|
71
|
-
position: absolute;
|
|
72
|
-
right: 35px;
|
|
73
|
-
.avatar-wrapper {
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
margin-top: 5px;
|
|
76
|
-
position: relative;
|
|
77
|
-
.user-avatar {
|
|
78
|
-
width: 40px;
|
|
79
|
-
height: 40px;
|
|
80
|
-
border-radius: 10px;
|
|
81
|
-
}
|
|
82
|
-
.el-icon-caret-bottom {
|
|
83
|
-
position: absolute;
|
|
84
|
-
right: -20px;
|
|
85
|
-
top: 25px;
|
|
86
|
-
font-size: 12px;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
</style>
|
|
92
|
-
|