agilebuilder-ui 1.0.0 → 1.0.2
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/super-ui.css +1 -0
- package/lib/super-ui.js +118125 -0
- package/lib/super-ui.umd.cjs +204 -0
- package/lib/vite.svg +1 -0
- package/package.json +1 -1
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +1 -1
- package/packages/super-nine-grid/src/super-nine-grid.vue +32 -23
- package/src/i18n/langs/cn.js +3 -2
- package/src/i18n/langs/en.js +2 -1
- package/src/plugins.js +4 -4
- package/src/utils/common-util.js +1 -1
- package/src/utils/util.js +1 -1
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +1 -1
- package/src/views/layout/components/Menubar/SidebarItem.vue +1 -1
- package/src/views/layout/tab-content-index.vue +2 -2
package/lib/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
CHANGED
|
@@ -100,7 +100,7 @@ const dynamicSourceSelectService = {
|
|
|
100
100
|
// reject(error)
|
|
101
101
|
// })
|
|
102
102
|
// 页面设计不请求动态数据源
|
|
103
|
-
if (window.$vueApp.config.globalProperties.systemCode !== undefined && window.$vueApp.config.globalProperties.systemCode === '
|
|
103
|
+
if (window.$vueApp.config.globalProperties.systemCode !== undefined && window.$vueApp.config.globalProperties.systemCode === 'agilebuilder') {
|
|
104
104
|
resolve()
|
|
105
105
|
} else {
|
|
106
106
|
this.$http.post(backendUrl + '/common/dynamic-data-source/' + dynamicSourceCode, params).then(result => {
|
|
@@ -98,38 +98,39 @@
|
|
|
98
98
|
>
|
|
99
99
|
<div>
|
|
100
100
|
<el-tooltip
|
|
101
|
-
:content="
|
|
101
|
+
:content="props && props.content?getPropValue('content', params) + '('+ params.code+')':(props && props.title?getPropValue('title', params) + '('+ params.code+')':'')"
|
|
102
102
|
effect="dark"
|
|
103
103
|
placement="top-start"
|
|
104
104
|
>
|
|
105
105
|
<div
|
|
106
106
|
v-if="props && props.content"
|
|
107
|
-
style="display: inline-block"
|
|
107
|
+
:style="'display: inline-block;width:'+titleWidth"
|
|
108
|
+
class="ellipsis cell--span"
|
|
108
109
|
>
|
|
109
110
|
{{
|
|
110
|
-
getPropValue('content', params) +
|
|
111
|
-
getLength(params.code)
|
|
111
|
+
getPropValue('content', params) + '('+ params.code+')'
|
|
112
112
|
}}
|
|
113
113
|
</div>
|
|
114
114
|
<div
|
|
115
115
|
v-else-if="props && props.title"
|
|
116
|
-
style="display: inline-block"
|
|
116
|
+
:style="'display: inline-block;width:'+titleWidth"
|
|
117
|
+
class="ellipsis cell--span"
|
|
117
118
|
>
|
|
118
119
|
{{
|
|
119
|
-
getPropValue('title', params) +
|
|
120
|
+
getPropValue('title', params) + '('+ params.code+')'
|
|
120
121
|
}}
|
|
121
122
|
</div>
|
|
122
123
|
</el-tooltip>
|
|
123
124
|
<div
|
|
124
125
|
v-if="showEnableButton(params)"
|
|
125
126
|
style="
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
margin-left: 2px;
|
|
128
|
+
color: #00b42a;
|
|
129
|
+
background-color: #e8ffea;
|
|
130
|
+
width: 68px;
|
|
131
|
+
text-align: center;
|
|
132
|
+
display: inline-block;
|
|
133
|
+
"
|
|
133
134
|
>
|
|
134
135
|
<el-icon>
|
|
135
136
|
<SuccessFilled/>
|
|
@@ -142,13 +143,14 @@
|
|
|
142
143
|
</div>
|
|
143
144
|
</div>
|
|
144
145
|
<div class="button-style">
|
|
145
|
-
<div style="padding: 10px;box-sizing: border-box;">
|
|
146
|
+
<div style="padding: 10px;box-sizing: border-box;width: 50px">
|
|
146
147
|
{{ $t('imatrixUIPublicModel.edit') }}
|
|
147
148
|
</div>
|
|
148
|
-
<div>
|
|
149
|
+
<div style="padding-left: 15px">
|
|
149
150
|
<template v-for="button in operations">
|
|
150
151
|
<template v-if="isShowButton(params, button)">
|
|
151
152
|
<el-tooltip
|
|
153
|
+
:key="button.name"
|
|
152
154
|
v-if="button.icon"
|
|
153
155
|
v-permission="
|
|
154
156
|
button.permission ? button.permission : 'true'
|
|
@@ -165,6 +167,7 @@
|
|
|
165
167
|
</el-tooltip>
|
|
166
168
|
<em
|
|
167
169
|
v-else
|
|
170
|
+
:key="button.name"
|
|
168
171
|
v-permission="
|
|
169
172
|
button.permission ? button.permission : 'true'
|
|
170
173
|
"
|
|
@@ -177,26 +180,28 @@
|
|
|
177
180
|
<slot :name="slotBefore" :params="params"/>
|
|
178
181
|
</div>
|
|
179
182
|
</div>
|
|
180
|
-
<div
|
|
181
|
-
v-if="isShowEnableState"
|
|
183
|
+
<div
|
|
182
184
|
style="position: absolute;right: 5%;bottom: 9%;"
|
|
183
185
|
>
|
|
186
|
+
<slot :name="slotState" :params="params"/>
|
|
187
|
+
<template v-if="isShowEnableState">
|
|
184
188
|
<el-button
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
v-if="showEnableButton(params)"
|
|
190
|
+
class="button--default"
|
|
191
|
+
size="default"
|
|
192
|
+
@click.stop="changeState(params)"
|
|
189
193
|
>
|
|
190
194
|
{{ $t('imatrixUIPublicModel.forbidden') }}
|
|
191
195
|
</el-button>
|
|
192
196
|
<el-button
|
|
193
|
-
|
|
197
|
+
v-else
|
|
194
198
|
size="default"
|
|
195
199
|
type="primary"
|
|
196
200
|
@click.stop="changeState(params)"
|
|
197
201
|
>
|
|
198
202
|
{{ $t('imatrixUIPublicModel.startUsing') }}
|
|
199
203
|
</el-button>
|
|
204
|
+
</template>
|
|
200
205
|
</div>
|
|
201
206
|
</div>
|
|
202
207
|
</div>
|
|
@@ -303,6 +308,8 @@ export default {
|
|
|
303
308
|
this.options && this.options.showRadio !== undefined
|
|
304
309
|
? this.options.showRadio
|
|
305
310
|
: false
|
|
311
|
+
const titleWidth = this.options && this.options.style && this.options.style.titleWidth !== undefined
|
|
312
|
+
? this.options.style.titleWidth:'60%'
|
|
306
313
|
return {
|
|
307
314
|
isLoading: false,
|
|
308
315
|
currentPage: 1,
|
|
@@ -346,7 +353,9 @@ export default {
|
|
|
346
353
|
titleStyle: null, // 标题的样式对象,格式为:{ color: 'green', fontWeight: 'bold'}
|
|
347
354
|
isShowEnableState: false,
|
|
348
355
|
colSpan: 6,
|
|
349
|
-
slotBefore: 'before'
|
|
356
|
+
slotBefore: 'before',
|
|
357
|
+
titleWidth,
|
|
358
|
+
slotState: 'bottom'
|
|
350
359
|
}
|
|
351
360
|
},
|
|
352
361
|
computed: {},
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -43,7 +43,8 @@ const cn = {
|
|
|
43
43
|
fullScreen: '全屏',
|
|
44
44
|
forbidden: '禁用',
|
|
45
45
|
startUsing: '启用',
|
|
46
|
-
systemCode: '系统编码'
|
|
46
|
+
systemCode: '系统编码',
|
|
47
|
+
code:'编码'
|
|
47
48
|
},
|
|
48
49
|
imatrixUIMessage: {
|
|
49
50
|
whetherToConfirmDeletion: '是否确认删除',
|
|
@@ -120,7 +121,7 @@ const cn = {
|
|
|
120
121
|
previewTitleWhenNotImg: '非图片格式,使用其它方式预览',
|
|
121
122
|
refresh: '刷新',
|
|
122
123
|
open: '展开',
|
|
123
|
-
fold: '收起'
|
|
124
|
+
fold: '收起'
|
|
124
125
|
},
|
|
125
126
|
// 部门树组件
|
|
126
127
|
departmentTree: {},
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -43,7 +43,8 @@ const en = {
|
|
|
43
43
|
fullScreen: 'Full Screen',
|
|
44
44
|
forbidden: 'forbidden',
|
|
45
45
|
startUsing: 'Start Using',
|
|
46
|
-
systemCode: 'System Code'
|
|
46
|
+
systemCode: 'System Code',
|
|
47
|
+
code:'Code'
|
|
47
48
|
},
|
|
48
49
|
imatrixUIMessage: {
|
|
49
50
|
whetherToConfirmDeletion: 'Whether To Confirm Deletion',
|
package/src/plugins.js
CHANGED
|
@@ -7,11 +7,11 @@ import './styles/index.scss' // global css
|
|
|
7
7
|
// import 'element-ui/lib/theme-chalk/index.css'
|
|
8
8
|
// import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
|
|
9
9
|
|
|
10
|
-
// import SuperUI from '
|
|
11
|
-
// import '
|
|
10
|
+
// import SuperUI from 'agilebuilder-ui'
|
|
11
|
+
// import 'agilebuilder-ui/lib/super-ui.css'
|
|
12
12
|
|
|
13
|
-
import '
|
|
14
|
-
// import permission from '
|
|
13
|
+
import 'agilebuilder-ui/src/permission' // permission control
|
|
14
|
+
// import permission from 'agilebuilder-ui/src/directives/permission'
|
|
15
15
|
|
|
16
16
|
// window.$vueApp.use(ElementUI, { locale })
|
|
17
17
|
// window.$vueApp.use(SuperUI)
|
package/src/utils/common-util.js
CHANGED
|
@@ -200,7 +200,7 @@ export function getSystemBackendUrl(backendUrl) {
|
|
|
200
200
|
export function isPlateSys(systemCode) {
|
|
201
201
|
if (
|
|
202
202
|
systemCode &&
|
|
203
|
-
(systemCode === '
|
|
203
|
+
(systemCode === 'agilebuilder' ||
|
|
204
204
|
systemCode === 'portal' ||
|
|
205
205
|
systemCode === 'mms' ||
|
|
206
206
|
systemCode === 'task' ||
|
package/src/utils/util.js
CHANGED
|
@@ -133,7 +133,7 @@ export function findDynamicDataSourceByCode(
|
|
|
133
133
|
|
|
134
134
|
return new Promise((resolve, reject) => {
|
|
135
135
|
// 页面设计不请求动态数据源
|
|
136
|
-
if (window.$vueApp.config.globalProperties.systemCode !== undefined && window.$vueApp.config.globalProperties.systemCode === '
|
|
136
|
+
if (window.$vueApp.config.globalProperties.systemCode !== undefined && window.$vueApp.config.globalProperties.systemCode === 'agilebuilder') {
|
|
137
137
|
resolve()
|
|
138
138
|
} else {
|
|
139
139
|
window.$vueApp.config.globalProperties.$http.post(backendUrl + '/common/dynamic-data-source/' + dynamicSourceCode, params).then(result => {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
import Item from "./Item.vue";
|
|
47
47
|
import AppLink from "./Link.vue";
|
|
48
48
|
import * as Vue from "vue";
|
|
49
|
-
import { getI18nName } from "
|
|
49
|
+
import { getI18nName } from "agilebuilder-ui/src/utils/menu";
|
|
50
50
|
import tabJs from "../../../../api/tab";
|
|
51
51
|
import { getSystemCode } from "../../../../utils/permissionAuth";
|
|
52
52
|
import authApi from "../../../../utils/auth-api";
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<script>
|
|
22
22
|
import {Breadcrumb, Menubar} from './components'
|
|
23
23
|
import ResizeMixin from './mixin/ResizeHandler'
|
|
24
|
-
import {isShowMenuRoute} from '
|
|
24
|
+
import {isShowMenuRoute} from 'agilebuilder-ui/src/utils/common-util'
|
|
25
25
|
import TabContent from './components/tabs/tab-content.vue'
|
|
26
26
|
|
|
27
27
|
export default {
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
</script>
|
|
70
70
|
|
|
71
71
|
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
72
|
-
@import '
|
|
72
|
+
@import 'agilebuilder-ui/src/styles/mixin.scss';
|
|
73
73
|
.app-wrapper {
|
|
74
74
|
@include clearfix;
|
|
75
75
|
position: relative;
|