vue2-client 1.6.21 → 1.6.22
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/CHANGELOG.md +569 -569
- package/index.js +30 -30
- package/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +226 -226
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +733 -733
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +508 -508
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +140 -140
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
- package/src/base-client/components/common/XAddForm/XAddForm.vue +326 -326
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XForm/XForm.vue +180 -180
- package/src/base-client/components/common/XFormTable/XFormTable.vue +336 -336
- package/src/base-client/components/common/XFormTable/index.md +97 -97
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +109 -109
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
- package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
- package/src/base-client/plugins/AppData.js +76 -76
- package/src/base-client/plugins/GetLoginInfoService.js +179 -179
- package/src/base-client/plugins/PagedList.js +177 -177
- package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
- package/src/base-client/plugins/i18n-extend.js +32 -32
- package/src/components/Ellipsis/Ellipsis.vue +65 -65
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/STable/index.js +318 -318
- package/src/components/Trend/index.md +45 -45
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/checkbox/ImgCheckbox.vue +163 -163
- package/src/components/exception/ExceptionPage.vue +70 -70
- package/src/components/form/FormRow.vue +52 -52
- package/src/components/index.js +36 -36
- package/src/components/menu/SideMenu.vue +62 -62
- package/src/components/menu/menu.js +273 -273
- package/src/components/page/header/index.less +40 -40
- package/src/components/setting/Setting.vue +235 -235
- package/src/components/table/StandardTable.vue +141 -141
- package/src/components/table/advance/ActionColumns.vue +158 -158
- package/src/components/table/advance/SearchArea.vue +355 -355
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/components/tool/AvatarList.vue +68 -68
- package/src/components/tool/Drawer.vue +142 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/config/default/admin.config.js +18 -18
- package/src/config/default/setting.config.js +46 -46
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/CommonLayout.vue +42 -42
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +111 -111
- package/src/layouts/footer/PageFooter.vue +49 -49
- package/src/layouts/header/AdminHeader.vue +134 -134
- package/src/layouts/header/HeaderAvatar.vue +64 -64
- package/src/layouts/header/HeaderNotice.vue +176 -176
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/header/index.less +92 -92
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +379 -379
- package/src/mock/goods/index.js +108 -108
- package/src/pages/exception/404.vue +25 -25
- package/src/pages/login/Login.vue +363 -363
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/file/index.vue +317 -317
- package/src/pages/system/settings/index.vue +126 -126
- package/src/pages/system/settings/modifyPassword.vue +109 -109
- package/src/router/async/config.async.js +28 -28
- package/src/router/async/router.map.js +68 -68
- package/src/router/index.js +27 -27
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +34 -34
- package/src/services/api/cas.js +79 -79
- package/src/services/api/commonTempTable.js +10 -10
- package/src/services/api/index.js +17 -17
- package/src/services/api/logininfor/index.js +6 -6
- package/src/services/api/manage.js +8 -8
- package/src/services/apiService.js +14 -14
- package/src/services/user.js +64 -64
- package/src/store/modules/index.js +4 -4
- package/src/theme/default/nprogress.less +76 -76
- package/src/theme/default/style.less +47 -47
- package/src/utils/colors.js +107 -107
- package/src/utils/excel/Blob.js +180 -180
- package/src/utils/excel/Export2Excel.js +141 -141
- package/src/utils/formatter.js +68 -68
- package/src/utils/i18n.js +80 -80
- package/src/utils/map-utils.js +37 -37
- package/src/utils/request.js +311 -311
- package/src/utils/theme-color-replacer-extend.js +91 -91
- package/src/utils/themeUtil.js +100 -100
- package/src/utils/util.js +230 -230
- package/vue.config.js +106 -106
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="['step-item', link ? 'linkable' : null]"
|
|
4
|
-
@click="go"
|
|
5
|
-
>
|
|
6
|
-
<span :style="titleStyle">{{ title }}</span>
|
|
7
|
-
<a-icon v-if="icon" :style="iconStyle" :type="icon" />
|
|
8
|
-
<slot></slot>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
const Group = {
|
|
14
|
-
name: 'AStepItemGroup',
|
|
15
|
-
props: {
|
|
16
|
-
align: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: 'center',
|
|
19
|
-
validator (value) {
|
|
20
|
-
return ['left', 'center', 'right'].indexOf(value) !== -1
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
render (h) {
|
|
25
|
-
return h(
|
|
26
|
-
'div',
|
|
27
|
-
{ attrs: { style: `text-align: ${this.align}; margin-top: 8px` } },
|
|
28
|
-
[h('div', { attrs: { style: 'text-align: left; display: inline-block;' } }, [this.$slots.default])]
|
|
29
|
-
)
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default {
|
|
34
|
-
name: 'AStepItem',
|
|
35
|
-
Group: Group,
|
|
36
|
-
// eslint-disable-next-line vue/require-prop-types
|
|
37
|
-
props: ['title', 'icon', 'link', 'titleStyle', 'iconStyle'],
|
|
38
|
-
methods: {
|
|
39
|
-
go () {
|
|
40
|
-
const link = this.link
|
|
41
|
-
if (link) {
|
|
42
|
-
this.$router.push(link)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<style lang="less" scoped>
|
|
50
|
-
.step-item{
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
|
-
:global{
|
|
54
|
-
.ant-steps-item-process{
|
|
55
|
-
.linkable{
|
|
56
|
-
color: @primary-color;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="['step-item', link ? 'linkable' : null]"
|
|
4
|
+
@click="go"
|
|
5
|
+
>
|
|
6
|
+
<span :style="titleStyle">{{ title }}</span>
|
|
7
|
+
<a-icon v-if="icon" :style="iconStyle" :type="icon" />
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
const Group = {
|
|
14
|
+
name: 'AStepItemGroup',
|
|
15
|
+
props: {
|
|
16
|
+
align: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'center',
|
|
19
|
+
validator (value) {
|
|
20
|
+
return ['left', 'center', 'right'].indexOf(value) !== -1
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
render (h) {
|
|
25
|
+
return h(
|
|
26
|
+
'div',
|
|
27
|
+
{ attrs: { style: `text-align: ${this.align}; margin-top: 8px` } },
|
|
28
|
+
[h('div', { attrs: { style: 'text-align: left; display: inline-block;' } }, [this.$slots.default])]
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name: 'AStepItem',
|
|
35
|
+
Group: Group,
|
|
36
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
37
|
+
props: ['title', 'icon', 'link', 'titleStyle', 'iconStyle'],
|
|
38
|
+
methods: {
|
|
39
|
+
go () {
|
|
40
|
+
const link = this.link
|
|
41
|
+
if (link) {
|
|
42
|
+
this.$router.push(link)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style lang="less" scoped>
|
|
50
|
+
.step-item{
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
:global{
|
|
54
|
+
.ant-steps-item-process{
|
|
55
|
+
.linkable{
|
|
56
|
+
color: @primary-color;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="avatar-list">
|
|
3
|
-
<slot>
|
|
4
|
-
</slot>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
|
10
|
-
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
|
11
|
-
const Item = {
|
|
12
|
-
name: 'AvatarListItem',
|
|
13
|
-
props: {
|
|
14
|
-
size: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: false,
|
|
17
|
-
default: 'small'
|
|
18
|
-
},
|
|
19
|
-
src: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: true
|
|
22
|
-
},
|
|
23
|
-
tips: {
|
|
24
|
-
type: String,
|
|
25
|
-
required: false
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
methods: {
|
|
29
|
-
renderAvatar (h, size, src) {
|
|
30
|
-
return h(AAvatar, { props: { size: size, src: src } }, [])
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
render (h) {
|
|
34
|
-
const avatar = this.renderAvatar(h, this.$props.size, this.$props.src)
|
|
35
|
-
return h(
|
|
36
|
-
'li',
|
|
37
|
-
{ class: 'avatar-item' },
|
|
38
|
-
[this.$props.tips ? h(ATooltip, { props: { title: this.$props.tips } }, [avatar]) : avatar]
|
|
39
|
-
)
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export default {
|
|
43
|
-
name: 'AvatarList',
|
|
44
|
-
Item: Item
|
|
45
|
-
}
|
|
46
|
-
</script>
|
|
47
|
-
|
|
48
|
-
<style lang="less" scoped>
|
|
49
|
-
.avatar-list {
|
|
50
|
-
display: inline-block;
|
|
51
|
-
margin-left: 8px;
|
|
52
|
-
font-size: 0;
|
|
53
|
-
.avatar-item {
|
|
54
|
-
display: inline-block;
|
|
55
|
-
font-size: 14px;
|
|
56
|
-
margin-left: -8px;
|
|
57
|
-
width: 20px;
|
|
58
|
-
height: 20px;
|
|
59
|
-
:global {
|
|
60
|
-
.ant-avatar {
|
|
61
|
-
border: 1px solid #fff;
|
|
62
|
-
width: 20px;
|
|
63
|
-
height: 20px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="avatar-list">
|
|
3
|
+
<slot>
|
|
4
|
+
</slot>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
|
10
|
+
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
|
11
|
+
const Item = {
|
|
12
|
+
name: 'AvatarListItem',
|
|
13
|
+
props: {
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false,
|
|
17
|
+
default: 'small'
|
|
18
|
+
},
|
|
19
|
+
src: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
tips: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
renderAvatar (h, size, src) {
|
|
30
|
+
return h(AAvatar, { props: { size: size, src: src } }, [])
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
render (h) {
|
|
34
|
+
const avatar = this.renderAvatar(h, this.$props.size, this.$props.src)
|
|
35
|
+
return h(
|
|
36
|
+
'li',
|
|
37
|
+
{ class: 'avatar-item' },
|
|
38
|
+
[this.$props.tips ? h(ATooltip, { props: { title: this.$props.tips } }, [avatar]) : avatar]
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export default {
|
|
43
|
+
name: 'AvatarList',
|
|
44
|
+
Item: Item
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style lang="less" scoped>
|
|
49
|
+
.avatar-list {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
margin-left: 8px;
|
|
52
|
+
font-size: 0;
|
|
53
|
+
.avatar-item {
|
|
54
|
+
display: inline-block;
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
margin-left: -8px;
|
|
57
|
+
width: 20px;
|
|
58
|
+
height: 20px;
|
|
59
|
+
:global {
|
|
60
|
+
.ant-avatar {
|
|
61
|
+
border: 1px solid #fff;
|
|
62
|
+
width: 20px;
|
|
63
|
+
height: 20px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
</style>
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div >
|
|
3
|
-
<div :class="['mask', visible ? 'open' : 'close']" @click="close"></div>
|
|
4
|
-
<div :class="['drawer', placement, visible ? 'open' : 'close']">
|
|
5
|
-
<div ref="drawer" class="content beauty-scroll">
|
|
6
|
-
<slot></slot>
|
|
7
|
-
</div>
|
|
8
|
-
<div v-if="showHandler" :class="['handler-container', placement, visible ? 'open' : 'close']" ref="handler" @click="toggle">
|
|
9
|
-
<slot v-if="$slots.handler" name="handler"></slot>
|
|
10
|
-
<div v-else class="handler">
|
|
11
|
-
<a-icon :type="visible ? 'close' : 'bars'" />
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
export default {
|
|
20
|
-
name: 'Drawer',
|
|
21
|
-
data () {
|
|
22
|
-
return {
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
model: {
|
|
26
|
-
prop: 'visible',
|
|
27
|
-
event: 'change'
|
|
28
|
-
},
|
|
29
|
-
props: {
|
|
30
|
-
visible: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
required: false,
|
|
33
|
-
default: false
|
|
34
|
-
},
|
|
35
|
-
placement: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: false,
|
|
38
|
-
default: 'left'
|
|
39
|
-
},
|
|
40
|
-
showHandler: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
required: false,
|
|
43
|
-
default: true
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
open () {
|
|
48
|
-
this.$emit('change', true)
|
|
49
|
-
},
|
|
50
|
-
close () {
|
|
51
|
-
this.$emit('change', false)
|
|
52
|
-
},
|
|
53
|
-
toggle () {
|
|
54
|
-
this.$emit('change', !this.visible)
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<style lang="less" scoped>
|
|
61
|
-
.mask{
|
|
62
|
-
position: fixed;
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
bottom: 0;
|
|
66
|
-
top: 0;
|
|
67
|
-
background-color: @shadow-color;
|
|
68
|
-
transition: all 0.5s;
|
|
69
|
-
z-index: 100;
|
|
70
|
-
&.open{
|
|
71
|
-
display: inline-block;
|
|
72
|
-
}
|
|
73
|
-
&.close{
|
|
74
|
-
display: none;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.drawer{
|
|
78
|
-
position: fixed;
|
|
79
|
-
transition: all 0.5s;
|
|
80
|
-
height: 100vh;
|
|
81
|
-
z-index: 100;
|
|
82
|
-
&.left{
|
|
83
|
-
left: 0;
|
|
84
|
-
&.open{
|
|
85
|
-
.content{
|
|
86
|
-
box-shadow: 2px 0 8px @shadow-color;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
&.close{
|
|
90
|
-
transform: translateX(-100%);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
&.right{
|
|
94
|
-
right: 0;
|
|
95
|
-
.content{
|
|
96
|
-
float: right;
|
|
97
|
-
}
|
|
98
|
-
&.open{
|
|
99
|
-
.content{
|
|
100
|
-
box-shadow: -2px 0 8px @shadow-color;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
&.close{
|
|
104
|
-
transform: translateX(100%);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
.content{
|
|
109
|
-
display: inline-block;
|
|
110
|
-
height: 100vh;
|
|
111
|
-
overflow-y: auto;
|
|
112
|
-
}
|
|
113
|
-
.handler-container{
|
|
114
|
-
position: absolute;
|
|
115
|
-
display: inline-block;
|
|
116
|
-
text-align: center;
|
|
117
|
-
transition: all 0.5s;
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
top: 200px;
|
|
120
|
-
z-index: 100;
|
|
121
|
-
.handler {
|
|
122
|
-
height: 40px;
|
|
123
|
-
width: 40px;
|
|
124
|
-
background-color: @base-bg-color;
|
|
125
|
-
font-size: 26px;
|
|
126
|
-
box-shadow: 0 2px 8px @shadow-color;
|
|
127
|
-
line-height: 40px;
|
|
128
|
-
}
|
|
129
|
-
&.left{
|
|
130
|
-
right: -40px;
|
|
131
|
-
.handler{
|
|
132
|
-
border-radius: 0 5px 5px 0;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
&.right{
|
|
136
|
-
left: -40px;
|
|
137
|
-
.handler{
|
|
138
|
-
border-radius: 5px 0 0 5px;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div >
|
|
3
|
+
<div :class="['mask', visible ? 'open' : 'close']" @click="close"></div>
|
|
4
|
+
<div :class="['drawer', placement, visible ? 'open' : 'close']">
|
|
5
|
+
<div ref="drawer" class="content beauty-scroll">
|
|
6
|
+
<slot></slot>
|
|
7
|
+
</div>
|
|
8
|
+
<div v-if="showHandler" :class="['handler-container', placement, visible ? 'open' : 'close']" ref="handler" @click="toggle">
|
|
9
|
+
<slot v-if="$slots.handler" name="handler"></slot>
|
|
10
|
+
<div v-else class="handler">
|
|
11
|
+
<a-icon :type="visible ? 'close' : 'bars'" />
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
export default {
|
|
20
|
+
name: 'Drawer',
|
|
21
|
+
data () {
|
|
22
|
+
return {
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
model: {
|
|
26
|
+
prop: 'visible',
|
|
27
|
+
event: 'change'
|
|
28
|
+
},
|
|
29
|
+
props: {
|
|
30
|
+
visible: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
required: false,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
placement: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: false,
|
|
38
|
+
default: 'left'
|
|
39
|
+
},
|
|
40
|
+
showHandler: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
required: false,
|
|
43
|
+
default: true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
open () {
|
|
48
|
+
this.$emit('change', true)
|
|
49
|
+
},
|
|
50
|
+
close () {
|
|
51
|
+
this.$emit('change', false)
|
|
52
|
+
},
|
|
53
|
+
toggle () {
|
|
54
|
+
this.$emit('change', !this.visible)
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="less" scoped>
|
|
61
|
+
.mask{
|
|
62
|
+
position: fixed;
|
|
63
|
+
left: 0;
|
|
64
|
+
right: 0;
|
|
65
|
+
bottom: 0;
|
|
66
|
+
top: 0;
|
|
67
|
+
background-color: @shadow-color;
|
|
68
|
+
transition: all 0.5s;
|
|
69
|
+
z-index: 100;
|
|
70
|
+
&.open{
|
|
71
|
+
display: inline-block;
|
|
72
|
+
}
|
|
73
|
+
&.close{
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.drawer{
|
|
78
|
+
position: fixed;
|
|
79
|
+
transition: all 0.5s;
|
|
80
|
+
height: 100vh;
|
|
81
|
+
z-index: 100;
|
|
82
|
+
&.left{
|
|
83
|
+
left: 0;
|
|
84
|
+
&.open{
|
|
85
|
+
.content{
|
|
86
|
+
box-shadow: 2px 0 8px @shadow-color;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
&.close{
|
|
90
|
+
transform: translateX(-100%);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&.right{
|
|
94
|
+
right: 0;
|
|
95
|
+
.content{
|
|
96
|
+
float: right;
|
|
97
|
+
}
|
|
98
|
+
&.open{
|
|
99
|
+
.content{
|
|
100
|
+
box-shadow: -2px 0 8px @shadow-color;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
&.close{
|
|
104
|
+
transform: translateX(100%);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.content{
|
|
109
|
+
display: inline-block;
|
|
110
|
+
height: 100vh;
|
|
111
|
+
overflow-y: auto;
|
|
112
|
+
}
|
|
113
|
+
.handler-container{
|
|
114
|
+
position: absolute;
|
|
115
|
+
display: inline-block;
|
|
116
|
+
text-align: center;
|
|
117
|
+
transition: all 0.5s;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
top: 200px;
|
|
120
|
+
z-index: 100;
|
|
121
|
+
.handler {
|
|
122
|
+
height: 40px;
|
|
123
|
+
width: 40px;
|
|
124
|
+
background-color: @base-bg-color;
|
|
125
|
+
font-size: 26px;
|
|
126
|
+
box-shadow: 0 2px 8px @shadow-color;
|
|
127
|
+
line-height: 40px;
|
|
128
|
+
}
|
|
129
|
+
&.left{
|
|
130
|
+
right: -40px;
|
|
131
|
+
.handler{
|
|
132
|
+
border-radius: 0 5px 5px 0;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
&.right{
|
|
136
|
+
left: -40px;
|
|
137
|
+
.handler{
|
|
138
|
+
border-radius: 5px 0 0 5px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
</style>
|