Skip to content

Commit 367e5f7

Browse files
committed
update antd-vue 1.2.1
1 parent f56ca8b commit 367e5f7

File tree

9 files changed

+181
-171
lines changed

9 files changed

+181
-171
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@antv/data-set": "^0.10.1",
12-
"ant-design-vue": "^1.2.1",
12+
"ant-design-vue": "~1.2.1",
1313
"axios": "^0.18.0",
1414
"dayjs": "^1.7.5",
1515
"enquire.js": "^2.1.6",

src/components/menu/SideMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
:collapsed="collapsed"
1111
:menu="menus"
1212
:theme="theme"
13-
@select="onSelect"
1413
:mode="mode"
14+
@select="onSelect"
1515
style="padding: 16px 0px;"></s-menu>
1616
</a-layout-sider>
1717

src/components/menu/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ export default {
4444
this.updateMenu()
4545
},
4646
watch: {
47+
/*
4748
collapsed(val) {
4849
if (val) {
49-
this.cachedOpenKeys = this.openKeys
50+
this.cachedOpenKeys = this.openKeys.concat()
5051
this.openKeys = []
5152
} else {
5253
this.openKeys = this.cachedOpenKeys
5354
}
5455
},
56+
*/
5557
$route: function() {
5658
this.updateMenu()
5759
}
@@ -107,6 +109,7 @@ export default {
107109
},
108110
updateMenu() {
109111
const routes = this.$route.matched.concat()
112+
110113
if (routes.length >= 4 && this.$route.meta.hidden) {
111114
routes.pop()
112115
this.selectedKeys = [routes[2].path]
@@ -131,7 +134,7 @@ export default {
131134
props: {
132135
theme: this.$props.theme,
133136
mode: this.$props.mode,
134-
openKeys: this.openKeys,
137+
// openKeys: this.openKeys,
135138
selectedKeys: this.selectedKeys
136139
},
137140
on: {

src/components/page/GlobalLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
}
138138
}
139139
140-
.layout {
140+
.layout.ant-layout {
141141
min-height: 100vh;
142142
overflow-x: hidden;
143143

src/views/account/settings/AvatarModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<a-modal :visible="visible" title="修改头像" :maskClosable="false" :confirmLoading="confirmLoading" :width="800">
2+
<a-modal :visible="visible" title="修改头像" :maskClosable="false" :confirmLoading="confirmLoading" :width="800" @cancel="cancelHandel">
33
<a-row>
44
<a-col :xs="24" :md="12" :style="{height: '350px'}">
55
<vue-cropper

src/views/list/TableList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
</template>
5050
<a-col :md="!advanced && 8 || 24" :sm="24">
5151
<span class="table-page-search-submitButtons" :style="advanced && { float: 'right', overflow: 'hidden' } || {} ">
52-
<a-button type="primary">查询</a-button>
53-
<a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button>
52+
<a-button type="primary" @click="$refs.table.refresh()">查询</a-button>
53+
<a-button style="margin-left: 8px" @click="() => queryParam = {}">重置</a-button>
5454
<a @click="toggleAdvanced" style="margin-left: 8px">
5555
{{ advanced ? '收起' : '展开' }}
5656
<a-icon :type="advanced ? 'up' : 'down'"/>

src/views/result/Result.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="result">
33
<div>
4-
<a-icon :class="[isSuccess ? 'success' : 'error' ,'icon']" :type="isSuccess ? 'check-circle' : 'close-circle'"/>
4+
<a-icon :class="{ 'icon': true, 'success': isSuccess, 'error': !isSuccess }" :type="isSuccess ? 'check-circle' : 'close-circle'"/>
55
</div>
66
<div class="title" v-if="title">{{ title }}</div>
77
<div class="description" v-if="description">{{ description }}</div>
@@ -17,7 +17,6 @@
1717
<script>
1818
export default {
1919
name: 'Result',
20-
// 'isSuccess', 'title', 'description'
2120
props: {
2221
isSuccess: {
2322
type: Boolean,

0 commit comments

Comments
 (0)