Unverified Commit 367e5f77 by Sendya

update antd-vue 1.2.1

parent f56ca8b4
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}, },
"dependencies": { "dependencies": {
"@antv/data-set": "^0.10.1", "@antv/data-set": "^0.10.1",
"ant-design-vue": "^1.2.1", "ant-design-vue": "~1.2.1",
"axios": "^0.18.0", "axios": "^0.18.0",
"dayjs": "^1.7.5", "dayjs": "^1.7.5",
"enquire.js": "^2.1.6", "enquire.js": "^2.1.6",
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
:collapsed="collapsed" :collapsed="collapsed"
:menu="menus" :menu="menus"
:theme="theme" :theme="theme"
@select="onSelect"
:mode="mode" :mode="mode"
@select="onSelect"
style="padding: 16px 0px;"></s-menu> style="padding: 16px 0px;"></s-menu>
</a-layout-sider> </a-layout-sider>
......
...@@ -44,14 +44,16 @@ export default { ...@@ -44,14 +44,16 @@ export default {
this.updateMenu() this.updateMenu()
}, },
watch: { watch: {
/*
collapsed(val) { collapsed(val) {
if (val) { if (val) {
this.cachedOpenKeys = this.openKeys this.cachedOpenKeys = this.openKeys.concat()
this.openKeys = [] this.openKeys = []
} else { } else {
this.openKeys = this.cachedOpenKeys this.openKeys = this.cachedOpenKeys
} }
}, },
*/
$route: function() { $route: function() {
this.updateMenu() this.updateMenu()
} }
...@@ -107,6 +109,7 @@ export default { ...@@ -107,6 +109,7 @@ export default {
}, },
updateMenu() { updateMenu() {
const routes = this.$route.matched.concat() const routes = this.$route.matched.concat()
if (routes.length >= 4 && this.$route.meta.hidden) { if (routes.length >= 4 && this.$route.meta.hidden) {
routes.pop() routes.pop()
this.selectedKeys = [routes[2].path] this.selectedKeys = [routes[2].path]
...@@ -131,7 +134,7 @@ export default { ...@@ -131,7 +134,7 @@ export default {
props: { props: {
theme: this.$props.theme, theme: this.$props.theme,
mode: this.$props.mode, mode: this.$props.mode,
openKeys: this.openKeys, // openKeys: this.openKeys,
selectedKeys: this.selectedKeys selectedKeys: this.selectedKeys
}, },
on: { on: {
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
} }
} }
.layout { .layout.ant-layout {
min-height: 100vh; min-height: 100vh;
overflow-x: hidden; overflow-x: hidden;
......
<template> <template>
<a-modal :visible="visible" title="修改头像" :maskClosable="false" :confirmLoading="confirmLoading" :width="800"> <a-modal :visible="visible" title="修改头像" :maskClosable="false" :confirmLoading="confirmLoading" :width="800" @cancel="cancelHandel">
<a-row> <a-row>
<a-col :xs="24" :md="12" :style="{height: '350px'}"> <a-col :xs="24" :md="12" :style="{height: '350px'}">
<vue-cropper <vue-cropper
......
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
</template> </template>
<a-col :md="!advanced && 8 || 24" :sm="24"> <a-col :md="!advanced && 8 || 24" :sm="24">
<span class="table-page-search-submitButtons" :style="advanced && { float: 'right', overflow: 'hidden' } || {} "> <span class="table-page-search-submitButtons" :style="advanced && { float: 'right', overflow: 'hidden' } || {} ">
<a-button type="primary">查询</a-button> <a-button type="primary" @click="$refs.table.refresh()">查询</a-button>
<a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button> <a-button style="margin-left: 8px" @click="() => queryParam = {}">重置</a-button>
<a @click="toggleAdvanced" style="margin-left: 8px"> <a @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }} {{ advanced ? '收起' : '展开' }}
<a-icon :type="advanced ? 'up' : 'down'"/> <a-icon :type="advanced ? 'up' : 'down'"/>
......
<template> <template>
<div class="result"> <div class="result">
<div> <div>
<a-icon :class="[isSuccess ? 'success' : 'error' ,'icon']" :type="isSuccess ? 'check-circle' : 'close-circle'"/> <a-icon :class="{ 'icon': true, 'success': isSuccess, 'error': !isSuccess }" :type="isSuccess ? 'check-circle' : 'close-circle'"/>
</div> </div>
<div class="title" v-if="title">{{ title }}</div> <div class="title" v-if="title">{{ title }}</div>
<div class="description" v-if="description">{{ description }}</div> <div class="description" v-if="description">{{ description }}</div>
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
<script> <script>
export default { export default {
name: 'Result', name: 'Result',
// 'isSuccess', 'title', 'description'
props: { props: {
isSuccess: { isSuccess: {
type: Boolean, type: Boolean,
......
...@@ -1386,7 +1386,7 @@ ant-design-palettes@^1.1.3: ...@@ -1386,7 +1386,7 @@ ant-design-palettes@^1.1.3:
dependencies: dependencies:
tinycolor2 "^1.4.1" tinycolor2 "^1.4.1"
ant-design-vue@^1.2.1: ant-design-vue@~1.2.1:
version "1.2.1" version "1.2.1"
resolved "https://registry.yarnpkg.com/ant-design-vue/-/ant-design-vue-1.2.1.tgz#ce71c62c6c8080372b07718df0fb405ff1863680" resolved "https://registry.yarnpkg.com/ant-design-vue/-/ant-design-vue-1.2.1.tgz#ce71c62c6c8080372b07718df0fb405ff1863680"
integrity sha512-boOtRgMIVi3c6E4EOwrF1bn3KFvpfJv75RLa0tTCZCe7ghmlN+WF0QeJPaL+LaY8dUbO8xJXiuNutzLEKNhZKQ== integrity sha512-boOtRgMIVi3c6E4EOwrF1bn3KFvpfJv75RLa0tTCZCe7ghmlN+WF0QeJPaL+LaY8dUbO8xJXiuNutzLEKNhZKQ==
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment