vsyswin-ui 0.3.1 → 0.3.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/img/pick-left.61cd74f4.png +0 -0
- package/lib/vsyswin-ui.common.js +623 -402
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +623 -402
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +49 -49
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/button-ellipsis/src/button-container.vue +22 -8
- package/packages/drag-set/src/dragSet.vue +31 -15
- package/packages/full-dialog/index.js +10 -0
- package/packages/full-dialog/src/full-dialog.vue +166 -0
- package/packages/index.js +4 -2
- package/packages/layout/src/layout.vue +34 -25
- package/packages/layout/src/pick-left.png +0 -0
- package/packages/layout/src/pick-right.png +0 -0
- package/packages/newSearchBar/src/newSearchBar.vue +1 -2
- package/packages/search-bar/src/search-bar.scss +30 -16
- package/packages/search-tree/src/zTree.vue +8 -5
- package/packages/select-project/h.png +0 -0
- package/packages/select-project/src/select-project.vue +34 -4
- package/packages/styles/common/variables.scss +1 -0
- package/packages/styles/common-old.scss +228 -99
- package/packages/styles/common.scss +631 -418
- package/packages/table/src/table.vue +644 -661
package/package.json
CHANGED
|
@@ -8,12 +8,12 @@ export default {
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
computed: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
trigger() {
|
|
12
|
+
return this.$parent.trigger
|
|
13
|
+
},
|
|
14
|
+
num() {
|
|
15
|
+
return this.$parent.num
|
|
16
|
+
}
|
|
17
17
|
},
|
|
18
18
|
render(h) {
|
|
19
19
|
let contents = []
|
|
@@ -64,9 +64,23 @@ export default {
|
|
|
64
64
|
</script>
|
|
65
65
|
|
|
66
66
|
<style lang="scss" scoped>
|
|
67
|
+
.sy-buttons {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
.sy-button-dots {
|
|
68
|
-
width:
|
|
69
|
-
height:
|
|
73
|
+
width: 32px;
|
|
74
|
+
height: 32px;
|
|
70
75
|
cursor: pointer;
|
|
76
|
+
background: #EFF5FB;
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
margin-left: 10px;
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
&:hover{
|
|
83
|
+
background: #E6EFF8;
|
|
84
|
+
}
|
|
71
85
|
}
|
|
72
86
|
</style>
|
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
<div ref="dragSet" class="dragSetting">
|
|
3
3
|
<el-popover trigger="click" v-model="dragVisible">
|
|
4
4
|
<div class="content" style="height:300px;overflow: auto;">
|
|
5
|
-
<draggable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
:style="{ height: dragVisible ? 'calc(100% - 50px)' : '0', overflow: 'auto' }"
|
|
9
|
-
v-model="list"
|
|
10
|
-
:options="dragOptions"
|
|
11
|
-
>
|
|
5
|
+
<draggable element="ul" style="transition: all 0.3s;border-bottom: 1px solid #EBEEF5;"
|
|
6
|
+
:style="{ height: dragVisible ? 'calc(100% - 50px)' : '0', overflow: 'auto' }" v-model="list"
|
|
7
|
+
:options="dragOptions">
|
|
12
8
|
<div class="dragItem" v-for="(item, index) in list" :domProp="item.prop" :key="index">
|
|
13
9
|
<el-checkbox v-model="item.isShow" :disabled="item.isDragDisabled" />
|
|
14
10
|
{{ item.label }}
|
|
@@ -23,7 +19,16 @@
|
|
|
23
19
|
</draggable>
|
|
24
20
|
<div class="confirmBtn" slot="footer" @click="save">确定</div>
|
|
25
21
|
</div>
|
|
26
|
-
<i class="iconfont icon-yewushezhi" style="font-size: 14px;cursor: pointer;" slot="reference"></i>
|
|
22
|
+
<!-- <i class="iconfont icon-yewushezhi" style="font-size: 14px;cursor: pointer;" slot="reference"></i> -->
|
|
23
|
+
<svg t="1696937838297" slot="reference" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
p-id="4320" width="18" height="18">
|
|
25
|
+
<path
|
|
26
|
+
d="M510.37806 337.803609c-98.010221 0-177.748287 78.842673-177.748287 175.75284 0 96.91426 79.738066 175.763073 177.748287 175.763073 9.537214 0 19.620873-0.978281 31.797194-3.088338 18.196431-3.281743 30.290887-20.538779 26.963095-38.471197-2.924609-15.732309-16.693194-27.152407-32.747845-27.152407-2.071172 0-4.15974 0.196475-6.123464 0.563842-7.937786 1.402953-14.233166 2.056845-19.807115 2.056845-61.159942 0-110.915136-49.201585-110.915136-109.671819 0-60.467163 49.679469-109.661585 110.747313-109.661585 61.116963 0 110.832248 49.194422 110.832248 109.661585 0 5.892197-0.656963 12.0832-2.088568 19.531845-3.327792 17.928325 8.769734 35.189454 26.959002 38.464033 2.006703 0.360204 4.045129 0.546446 6.070252 0.546446 16.204054 0 30.019711-11.43033 32.832779-27.116591 2.13871-11.45182 3.13848-21.435195 3.13848-31.41857 0.042979-46.873564-18.435884-90.990341-52.033074-124.223233C602.407056 356.106464 557.790906 337.803609 510.37806 337.803609z"
|
|
27
|
+
fill="#000000" p-id="4321"></path>
|
|
28
|
+
<path
|
|
29
|
+
d="M938.476161 432.79917c-2.185782-11.426237-11.037381-20.499893-22.563902-23.12058-41.909505-9.508561-76.781734-34.929534-98.185206-71.550593-21.334911-36.560684-26.191522-79.099523-13.68979-119.709429 3.52836-11.123338 0.007163-23.235191-8.951883-30.840402-41.860387-35.721573-89.536222-62.938448-141.695163-80.885192-3.152806-1.088798-6.437619-1.639337-9.776667-1.639337-8.256034 0-16.182564 3.431146-21.724791 9.376555-29.236881 31.04404-68.840878 48.140417-111.5107 48.140417-42.673915 0-82.305541-17.125029-111.607914-48.230468-7.877411-8.333806-20.510126-11.512195-31.580253-7.726985-52.483328 18.171871-100.131535 45.416376-141.640927 80.988546-8.815783 7.591909-12.322653 19.620873-8.934486 30.67258 12.586666 40.645722 7.759731 83.180468-13.597693 119.78106-21.306258 36.5965-56.149834 62.006216-98.17395 71.561849-11.540847 2.709715-20.396539 11.812023-22.559808 23.166629-5.228071 27.169803-7.877411 54.346769-7.877411 80.770582 0 26.426883 2.64934 53.603849 7.873318 80.763418 2.174526 11.411911 11.023054 20.488637 22.552645 23.12058 41.913599 9.512654 76.785827 34.922371 98.19237 71.547523 21.349237 36.59343 26.177196 79.128175 13.583366 119.795387-3.363607 10.969842 0.121773 23.013133 8.973372 30.758538 41.84913 35.707246 89.494267 62.920028 141.662417 80.902588 11.466146 3.885494 23.738657 0.549515 31.454386-7.680936 29.29828-31.091112 68.925812-48.216141 111.593588-48.216141s82.302471 17.125029 111.560842 48.183396c5.556553 5.955642 13.494339 9.380648 21.782096 9.380648 3.27765 0 6.537903-0.520863 9.829879-1.599428 52.126194-17.968234 99.774401-45.184085 141.652184-80.912821 8.791224-7.577582 12.308327-19.628036 8.94165-30.758538-12.597923-40.678468-7.745405-83.20605 13.672394-119.773897 21.324678-36.625152 56.192813-62.030775 98.19237-71.547523 11.390421-2.592035 20.23588-11.633968 22.549575-23.106254 5.223978-27.184129 7.870248-54.358025 7.870248-80.770582C946.342316 487.171522 943.697069 459.965903 938.476161 432.79917zM728.572524 789.878798c-26.02677 20.157085-54.736649 36.553521-85.487 48.818869-36.682457-32.144094-83.60207-49.779753-132.792399-49.779753-48.926316 0-95.838765 17.635659-132.767839 49.786916-30.744211-12.262278-59.45716-28.655643-85.491093-48.812729 9.894348-47.441499 1.889023-96.449679-22.763446-138.627291-24.448832-41.966811-63.427588-73.339332-110.186542-88.840374-2.381234-16.343223-3.584642-32.758078-3.584642-48.869011 0-16.043395 1.203408-32.451086 3.584642-48.851615 46.612621-15.389502 85.584214-46.758953 110.186542-88.850607 24.523533-42.024116 32.525788-91.033319 22.74912-138.620128 26.0237-20.149922 54.735625-36.543288 85.494163-48.815799 36.821627 32.201399 83.73817 49.861618 132.778072 49.861618 49.194422 0 96.109941-17.635659 132.792399-49.779753 30.751375 12.269441 59.45716 28.662807 85.48086 48.812729-9.809413 47.63388-1.835811 96.634898 22.667256 138.620128 24.445762 41.966811 63.416332 73.343425 110.182448 88.850607 2.381234 16.386202 3.584642 32.801057 3.584642 48.940642 0.143263 15.443737-1.031493 31.797194-3.499707 48.701189-46.763047 15.504112-85.73771 46.873564-110.186542 88.836281C726.84416 693.189665 718.845998 742.190683 728.572524 789.878798z"
|
|
30
|
+
fill="#000000" p-id="4322"></path>
|
|
31
|
+
</svg>
|
|
27
32
|
</el-popover>
|
|
28
33
|
</div>
|
|
29
34
|
</template>
|
|
@@ -98,6 +103,7 @@ export default {
|
|
|
98
103
|
.content {
|
|
99
104
|
width: 100%;
|
|
100
105
|
box-sizing: border-box;
|
|
106
|
+
|
|
101
107
|
.dragItem {
|
|
102
108
|
width: 100%;
|
|
103
109
|
height: 30px;
|
|
@@ -106,32 +112,39 @@ export default {
|
|
|
106
112
|
padding: 0 10px;
|
|
107
113
|
box-sizing: border-box;
|
|
108
114
|
cursor: move;
|
|
115
|
+
|
|
109
116
|
.itemLock {
|
|
110
117
|
float: right;
|
|
111
118
|
opacity: 0;
|
|
112
119
|
cursor: pointer;
|
|
113
120
|
transition: opacity 0.1s;
|
|
114
121
|
}
|
|
122
|
+
|
|
115
123
|
.itemIsLock {
|
|
116
124
|
cursor: pointer;
|
|
117
125
|
float: right;
|
|
118
126
|
}
|
|
127
|
+
|
|
119
128
|
.dragIcon {
|
|
120
129
|
float: right;
|
|
121
130
|
opacity: 0;
|
|
122
131
|
transition: opacity 0.1s;
|
|
123
132
|
margin-right: 8px;
|
|
124
133
|
}
|
|
134
|
+
|
|
125
135
|
&:hover {
|
|
126
136
|
color: #027aff;
|
|
137
|
+
|
|
127
138
|
.itemLock {
|
|
128
139
|
opacity: 1;
|
|
129
140
|
}
|
|
141
|
+
|
|
130
142
|
.dragIcon {
|
|
131
143
|
opacity: 1;
|
|
132
144
|
}
|
|
133
145
|
}
|
|
134
146
|
}
|
|
147
|
+
|
|
135
148
|
.confirmBtn {
|
|
136
149
|
margin: 16px auto 0;
|
|
137
150
|
width: 72px;
|
|
@@ -149,19 +162,22 @@ export default {
|
|
|
149
162
|
position: absolute;
|
|
150
163
|
right: 0;
|
|
151
164
|
top: 0;
|
|
152
|
-
height:
|
|
153
|
-
line-height:
|
|
165
|
+
height: 52px;
|
|
166
|
+
line-height: 52px;
|
|
154
167
|
padding: 0 2px;
|
|
155
|
-
background: #
|
|
156
|
-
border:
|
|
157
|
-
border-left: 1px solid #d8d8d8;
|
|
168
|
+
background: linear-gradient(180deg, #EEF4FB 0%, #FFFFFF 100%);
|
|
169
|
+
border: none;
|
|
170
|
+
// border-left: 1px solid #d8d8d8;
|
|
158
171
|
color: #606266;
|
|
159
172
|
z-index: 20;
|
|
173
|
+
::v-deep .el-popover__reference-wrapper{
|
|
174
|
+
line-height: 62px !important;
|
|
175
|
+
}
|
|
160
176
|
}
|
|
177
|
+
|
|
161
178
|
ul {
|
|
162
179
|
margin: 0;
|
|
163
180
|
padding: 0;
|
|
164
181
|
border: 0;
|
|
165
182
|
line-height: 100%;
|
|
166
|
-
}
|
|
167
|
-
</style>
|
|
183
|
+
}</style>
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- 封装弹框 -->
|
|
3
|
+
<div>
|
|
4
|
+
<el-dialog title="" appendToBody custom-class="syswin-dialog-center-footer" :visible.sync="dialogVisible"
|
|
5
|
+
:class="className"
|
|
6
|
+
:fullscreen="fullscreen" :before-close="Cancel" :close-on-click-modal="closeOnClickModal" center class="popup">
|
|
7
|
+
<div class="sy-full-cont">
|
|
8
|
+
<div class="sy-full-headbox">
|
|
9
|
+
<p class="sy-full-active" @click="Cancel">{{ title }}</p>
|
|
10
|
+
<span> <i class="el-icon-arrow-right"></i></span>
|
|
11
|
+
<p>{{ subtitle }}</p>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="sy-full-content">
|
|
14
|
+
<slot name="content"></slot>
|
|
15
|
+
</div>
|
|
16
|
+
<span v-if="!$slots.footer" slot="footer" class="sy-full-dialog-footer">
|
|
17
|
+
<el-button type="primary" class="sy-full-btn sy-full-save" @click="Save">保存</el-button>
|
|
18
|
+
<el-button @click="Cancel" class="sy-full-btn sy-full-cancel">取 消</el-button>
|
|
19
|
+
</span>
|
|
20
|
+
<div v-else class="sy-full-my-footer">
|
|
21
|
+
<slot name="footer" />
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</el-dialog>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
export default {
|
|
30
|
+
name: 'SyFullDialog',
|
|
31
|
+
props: {
|
|
32
|
+
visible: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
width: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: '550px'
|
|
39
|
+
},
|
|
40
|
+
closeOnClickModal: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
loading: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
48
|
+
fullscreen: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: true
|
|
51
|
+
},
|
|
52
|
+
title: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: ''
|
|
55
|
+
},
|
|
56
|
+
subtitle: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ''
|
|
59
|
+
},
|
|
60
|
+
otherData: {
|
|
61
|
+
type: Object,
|
|
62
|
+
default: () => { }
|
|
63
|
+
},
|
|
64
|
+
className: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: ''
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
computed: {
|
|
70
|
+
dialogVisible: {
|
|
71
|
+
get() {
|
|
72
|
+
return this.visible
|
|
73
|
+
},
|
|
74
|
+
set(val) {
|
|
75
|
+
// 当visible改变的时候,触发父组件的 updateVisible方法,在该方法中更改传入子组件的 centerDialogVisible的值
|
|
76
|
+
this.$emit('update:visible', val)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
methods: {
|
|
81
|
+
Cancel() {
|
|
82
|
+
this.$emit('close')
|
|
83
|
+
},
|
|
84
|
+
Save() {
|
|
85
|
+
this.$emit('confirm')
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<style lang="scss" scoped>
|
|
92
|
+
|
|
93
|
+
.popup {
|
|
94
|
+
::v-deep .el-dialog {
|
|
95
|
+
background: #f2f5f9;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
::v-deep .el-dialog__header {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
::v-deep .el-dialog--center .el-dialog__body {
|
|
103
|
+
padding: 24px;
|
|
104
|
+
height: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sy-full-cont {
|
|
108
|
+
height: 100%;
|
|
109
|
+
background: #fff;
|
|
110
|
+
position: relative;
|
|
111
|
+
border-radius: 8px;
|
|
112
|
+
|
|
113
|
+
.sy-full-headbox {
|
|
114
|
+
height: 62px;
|
|
115
|
+
background: #fff;
|
|
116
|
+
border-bottom: 1px solid #eeeff3;
|
|
117
|
+
color: #888888;
|
|
118
|
+
line-height: 62px;
|
|
119
|
+
display: flex;
|
|
120
|
+
border-top-left-radius: 8px;
|
|
121
|
+
border-top-right-radius: 8px;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
|
|
124
|
+
p {
|
|
125
|
+
font-size: 16px;
|
|
126
|
+
font-weight: bold;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
span {
|
|
130
|
+
padding: 0px 10px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.sy-full-active {
|
|
134
|
+
color: #027AFF;
|
|
135
|
+
margin-left: 20px;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.sy-full-content {
|
|
141
|
+
height: calc(100% - 138px);
|
|
142
|
+
overflow-y: scroll;
|
|
143
|
+
overflow-x: hidden;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.el-button.el-button--default {
|
|
148
|
+
// width: 88px;
|
|
149
|
+
color: var(--primary-color);
|
|
150
|
+
border: 1px solid var(--primary-color);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.sy-full-dialog-footer,
|
|
154
|
+
.sy-full-my-footer {
|
|
155
|
+
height: 76px;
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
align-items: center;
|
|
159
|
+
background: #fff;
|
|
160
|
+
border-top: 1px solid #eeeff3;
|
|
161
|
+
border-radius: 0 0 8px 8px;
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
</style>
|
package/packages/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import simpleSearchBar from './simple-search-bar' // 简单搜索栏组件
|
|
|
11
11
|
import inputMore from './input-more' // 简单搜索栏组件
|
|
12
12
|
import paging from './paging'
|
|
13
13
|
import baseDialog from './base-dialog'
|
|
14
|
+
import fullDialog from './full-dialog' // 全屏弹窗组件
|
|
14
15
|
import newSearchBar from './newSearchBar' // 高级筛选
|
|
15
16
|
import table from './table' // 表格组件
|
|
16
17
|
import dragSet from './drag-set'
|
|
@@ -20,7 +21,7 @@ export { default as Progress } from './progress';
|
|
|
20
21
|
const { buttonList, buttonItem } = buttonEllipsis
|
|
21
22
|
|
|
22
23
|
// 存储组件列表
|
|
23
|
-
const components = [layout, searchTree, selectProject, selectTree, buttonItem, buttonList, SearchBar, simpleSearchBar, inputMore, paging, newSearchBar, table, dragSet, topTabs, baseDialog]
|
|
24
|
+
const components = [layout, searchTree, selectProject, selectTree, buttonItem, buttonList, SearchBar, simpleSearchBar, inputMore, paging, newSearchBar, table, dragSet, topTabs, baseDialog, fullDialog]
|
|
24
25
|
|
|
25
26
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
26
27
|
const install = function (Vue) {
|
|
@@ -53,5 +54,6 @@ export default {
|
|
|
53
54
|
table,
|
|
54
55
|
topTabs,
|
|
55
56
|
dragSet,
|
|
56
|
-
baseDialog
|
|
57
|
+
baseDialog,
|
|
58
|
+
fullDialog
|
|
57
59
|
}
|
|
@@ -1,26 +1,41 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="main-container"
|
|
3
|
-
<div class="
|
|
4
|
-
<slot name="headLeft">
|
|
5
|
-
<h2>{{ title }}</h2>
|
|
6
|
-
</slot>
|
|
7
|
-
<div class="hd-right">
|
|
8
|
-
<slot name="headRight"></slot>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="bd west-east-wrap" v-if="$slots.left">
|
|
2
|
+
<div class="main-container">
|
|
3
|
+
<div class="container-left" v-if="$slots.left" :style="{ 'margin-right': showTree ? '16px' : '0px'}">
|
|
12
4
|
<!-- 当有左侧树时使用这个布局 -->
|
|
13
5
|
<div class="west-tree-box" :style="{ width: showTree ? '260px' : '0' }">
|
|
14
6
|
<!-- 左侧树 -->
|
|
15
7
|
<div class="west-tree-content">
|
|
16
8
|
<slot name="left"></slot>
|
|
17
9
|
</div>
|
|
18
|
-
<div class="pick-left" @click="
|
|
19
|
-
<img src="./pick-left.png" alt="" />
|
|
10
|
+
<div class="pick-left" @click="toggle" :style="{ 'right': showTree ? '-16px' : '0px'}">
|
|
11
|
+
<img src="./pick-left.png" alt="" v-show="showTree" />
|
|
12
|
+
<img src="./pick-right.png" alt="" v-show="!showTree" />
|
|
20
13
|
</div>
|
|
21
14
|
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="container-right">
|
|
17
|
+
<div class="container-page-hd">
|
|
18
|
+
<div class="hd" v-if="hasPageHeader">
|
|
19
|
+
<slot name="headLeft">
|
|
20
|
+
<h2>{{ title }}</h2>
|
|
21
|
+
</slot>
|
|
22
|
+
<div class="hd-right">
|
|
23
|
+
<slot name="headRight"></slot>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="page-hd-others">
|
|
27
|
+
<slot name="headOthers"></slot>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="bd">
|
|
31
|
+
<!-- 默认的布局 -->
|
|
32
|
+
<slot />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<!-- <div class="bd west-east-wrap" v-if="$slots.left">
|
|
37
|
+
|
|
22
38
|
<div class="east-content" :class="{ 'no-padding': noPadding }" :style="{ width: showTree ? 'calc(100% - 261px)' : 'calc(100% - 1px)' }">
|
|
23
|
-
<!-- 右侧主区域 -->
|
|
24
39
|
<slot />
|
|
25
40
|
<div class="pick-right" @click="pickRight" v-show="!showTree">
|
|
26
41
|
<img src="./pick-right.png" alt="" />
|
|
@@ -28,9 +43,8 @@
|
|
|
28
43
|
</div>
|
|
29
44
|
</div>
|
|
30
45
|
<div class="bd" v-else>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</div>
|
|
46
|
+
|
|
47
|
+
</div> -->
|
|
34
48
|
</div>
|
|
35
49
|
</template>
|
|
36
50
|
|
|
@@ -42,10 +56,6 @@ export default {
|
|
|
42
56
|
// 标题
|
|
43
57
|
type: String,
|
|
44
58
|
default: ''
|
|
45
|
-
},
|
|
46
|
-
noPadding: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
59
|
}
|
|
50
60
|
},
|
|
51
61
|
data() {
|
|
@@ -54,14 +64,13 @@ export default {
|
|
|
54
64
|
}
|
|
55
65
|
},
|
|
56
66
|
computed: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return this.$slots.headLeft || this.$slots.headRight || this.title
|
|
67
|
+
hasPageHeader() {
|
|
68
|
+
return this.title || this.$slots.headLeft || this.$slots.headRight
|
|
60
69
|
}
|
|
61
70
|
},
|
|
62
71
|
methods: {
|
|
63
|
-
|
|
64
|
-
this.showTree =
|
|
72
|
+
toggle() {
|
|
73
|
+
this.showTree = !this.showTree
|
|
65
74
|
},
|
|
66
75
|
pickRight() {
|
|
67
76
|
this.showTree = true
|
|
Binary file
|
|
Binary file
|
|
@@ -135,10 +135,9 @@ export default {
|
|
|
135
135
|
.syNewsearchbar {
|
|
136
136
|
.search-wrap {
|
|
137
137
|
position: relative;
|
|
138
|
-
height: 64px;
|
|
139
138
|
box-sizing: border-box;
|
|
140
139
|
overflow: hidden;
|
|
141
|
-
padding: 16px
|
|
140
|
+
padding-bottom: 16px ;
|
|
142
141
|
min-width: 850px;
|
|
143
142
|
.search-input {
|
|
144
143
|
width: 408px;
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
@include b(searchbar-container) {
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
padding: 16px 0;
|
|
11
|
-
height: 64px;
|
|
10
|
+
// padding: 16px 0;
|
|
11
|
+
// height: 64px;
|
|
12
|
+
padding: 20px 0;
|
|
12
13
|
overflow: hidden;
|
|
13
14
|
display: flex;
|
|
14
15
|
align-items: center;
|
|
@@ -28,9 +29,10 @@
|
|
|
28
29
|
margin-left: 8px;
|
|
29
30
|
color: $--color-primary;
|
|
30
31
|
font-size: $--font-size-base;
|
|
31
|
-
&:hover,
|
|
32
|
+
&:hover,
|
|
33
|
+
&:focus {
|
|
32
34
|
background: transparent !important;
|
|
33
|
-
color:
|
|
35
|
+
color: $--color-primary !important;
|
|
34
36
|
border-color: transparent !important;
|
|
35
37
|
}
|
|
36
38
|
.el-icon-caret-bottom {
|
|
@@ -47,32 +49,40 @@
|
|
|
47
49
|
width: $--button-width-base;
|
|
48
50
|
height: $--button-height-base;
|
|
49
51
|
font-size: $--button-font-size;
|
|
50
|
-
border-radius: $--button-border-radius
|
|
52
|
+
border-radius: $--button-border-radius;
|
|
51
53
|
background-color: $--button-primary-background-color;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
-webkit-border-radius: $--button-border-radius;
|
|
55
|
+
-moz-border-radius: $--button-border-radius;
|
|
56
|
+
-ms-border-radius: $--button-border-radius;
|
|
57
|
+
-o-border-radius: $--button-border-radius;
|
|
58
|
+
@include when(margin-left-16) {
|
|
54
59
|
margin-left: 16px;
|
|
55
60
|
}
|
|
56
|
-
|
|
61
|
+
}
|
|
57
62
|
|
|
58
|
-
@include e(reset) {
|
|
63
|
+
@include e(reset) {
|
|
59
64
|
padding: 0;
|
|
60
65
|
width: $--button-width-base;
|
|
61
66
|
height: $--button-height-base;
|
|
62
67
|
font-size: $--button-font-size;
|
|
63
|
-
border-radius: $--button-border-radius
|
|
68
|
+
border-radius: $--button-border-radius;
|
|
69
|
+
-webkit-border-radius: $--button-border-radius;
|
|
70
|
+
-moz-border-radius: $--button-border-radius;
|
|
71
|
+
-ms-border-radius: $--button-border-radius;
|
|
72
|
+
-o-border-radius: $--button-border-radius;
|
|
73
|
+
|
|
64
74
|
&:hover {
|
|
65
75
|
color: #606266 !important;
|
|
66
|
-
border-color: #
|
|
76
|
+
border-color: #dcdfe6 !important;
|
|
67
77
|
background: #fff !important;
|
|
68
78
|
}
|
|
69
|
-
|
|
79
|
+
}
|
|
70
80
|
|
|
71
81
|
@include e(listBtns) {
|
|
72
82
|
position: absolute;
|
|
73
|
-
right:
|
|
83
|
+
right: 20px;
|
|
74
84
|
.el-button--text {
|
|
75
|
-
color:
|
|
85
|
+
color: $--color-primary;
|
|
76
86
|
}
|
|
77
87
|
}
|
|
78
88
|
}
|
|
@@ -214,8 +224,12 @@
|
|
|
214
224
|
width: $--button-width-base;
|
|
215
225
|
height: $--button-height-base;
|
|
216
226
|
font-size: $--button-font-size;
|
|
217
|
-
border-radius: $--button-border-radius
|
|
218
|
-
|
|
227
|
+
border-radius: $--button-border-radius;
|
|
228
|
+
-webkit-border-radius: $--button-border-radius;
|
|
229
|
+
-moz-border-radius: $--button-border-radius;
|
|
230
|
+
-ms-border-radius: $--button-border-radius;
|
|
231
|
+
-o-border-radius: $--button-border-radius;
|
|
232
|
+
}
|
|
219
233
|
|
|
220
234
|
@include e(condition) {
|
|
221
235
|
margin: 0 16px;
|
|
@@ -263,8 +263,9 @@ export default {
|
|
|
263
263
|
flex-direction: column;
|
|
264
264
|
}
|
|
265
265
|
.ztree-search {
|
|
266
|
-
height:
|
|
267
|
-
padding-top:
|
|
266
|
+
height: 30px;
|
|
267
|
+
padding-top: 4px;
|
|
268
|
+
margin-bottom: 12px;
|
|
268
269
|
}
|
|
269
270
|
.ztree-search-wrapper {
|
|
270
271
|
height: 30px;
|
|
@@ -307,14 +308,16 @@ export default {
|
|
|
307
308
|
overflow-y: auto;
|
|
308
309
|
}
|
|
309
310
|
.empty {
|
|
310
|
-
|
|
311
|
-
|
|
311
|
+
width: 200px;
|
|
312
|
+
color: #888;
|
|
313
|
+
text-align: center;
|
|
314
|
+
padding-top: 40px;
|
|
312
315
|
}
|
|
313
316
|
/* beauty ztree! */
|
|
314
317
|
.ztree {
|
|
315
318
|
text-align: left;
|
|
316
319
|
font-size: 14px;
|
|
317
|
-
padding-left:
|
|
320
|
+
padding-left: 8px;
|
|
318
321
|
}
|
|
319
322
|
/* .ztree >>> .node-iconfont {
|
|
320
323
|
font-size: 20px;
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="sy-select-project">
|
|
3
|
-
<el-popover placement="bottom" trigger="click"
|
|
4
|
-
<div style="height: 60vh;">
|
|
3
|
+
<el-popover placement="bottom" trigger="click" v-model="visible" :disabled="disabled">
|
|
4
|
+
<div style="height: 60vh;max-width:215px;">
|
|
5
5
|
<sy-search-tree
|
|
6
6
|
ref="ztreeRef"
|
|
7
7
|
:setting="ztreeSetting"
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
:beforeClickFn="beforeClickFn"
|
|
14
14
|
/>
|
|
15
15
|
</div>
|
|
16
|
-
<a slot="reference"
|
|
17
|
-
|
|
16
|
+
<a slot="reference" class="node-name">
|
|
17
|
+
<img src="../h.png" alt="">
|
|
18
|
+
{{ projectInfo[ztreeSetting.data.key.name] }}<i class="el-icon-caret-bottom drop-icon" :class="{ isOpen: visible }"></i
|
|
18
19
|
></a>
|
|
19
20
|
</el-popover>
|
|
20
21
|
</div>
|
|
@@ -144,9 +145,38 @@ export default {
|
|
|
144
145
|
height: 100%;
|
|
145
146
|
color: $header-color;
|
|
146
147
|
font-weight: 700;
|
|
148
|
+
.node-name{
|
|
149
|
+
display: inline-block;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
min-width: 200px;
|
|
152
|
+
max-width: 215px;
|
|
153
|
+
height: 32px;
|
|
154
|
+
line-height: 30px;
|
|
155
|
+
background: #FFFFFF;
|
|
156
|
+
border-radius: 4px ;
|
|
157
|
+
color: #3A3F48;
|
|
158
|
+
font-weight: bold;
|
|
159
|
+
border: 1px solid #E5E5E5;
|
|
160
|
+
box-sizing: border-box;
|
|
161
|
+
padding:0 25px 0 40px;
|
|
162
|
+
position: relative;
|
|
163
|
+
white-space: nowrap;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
text-overflow: ellipsis;
|
|
166
|
+
img{
|
|
167
|
+
width: 17px;
|
|
168
|
+
height: 17px;
|
|
169
|
+
position: absolute;
|
|
170
|
+
top:7px;
|
|
171
|
+
left: 12px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
147
174
|
|
|
148
175
|
.drop-icon {
|
|
149
176
|
transition: all 0.3s linear;
|
|
177
|
+
position: absolute;
|
|
178
|
+
right: 12px;
|
|
179
|
+
top: 8px;
|
|
150
180
|
&.isOpen {
|
|
151
181
|
transform: rotateZ(180deg);
|
|
152
182
|
}
|
|
@@ -67,6 +67,7 @@ $--button-font-weight : normal !defaul
|
|
|
67
67
|
$--button-font-size : 12px !default;
|
|
68
68
|
$--button-font-size-large : 14px !default;
|
|
69
69
|
$--button-border-radius : 4px !default;
|
|
70
|
+
$--button-border-radius8 : 8px !default;
|
|
70
71
|
$--button-border-radius-small : 2px !default;
|
|
71
72
|
|
|
72
73
|
/* Input
|