fix: some error

This commit is contained in:
vben
2020-10-31 00:15:14 +08:00
parent 9abf1763c7
commit 2407b3368c
28 changed files with 359 additions and 101 deletions

View File

@@ -11,7 +11,7 @@ export default defineComponent({
return (
<Row>
{() => (
<div>
<>
<Col md={24} lg={8}>
{() => (
<CollapseContainer
@@ -56,7 +56,7 @@ export default defineComponent({
</CollapseContainer>
)}
</Col>
</div>
</>
)}
</Row>
);

View File

@@ -29,7 +29,7 @@
&__item {
display: inline-block;
width: calc(25% - 8px);
flex: 0 0 calc(25% - 8px);
padding: 20px 10px;
margin-right: 8px;
border-radius: 4px;

View File

@@ -4,10 +4,10 @@
<Divider />
国际化信息: {{ t('hello') }}
<Divider />
<a-button :type="localeRef === 'zhCN' ? 'primary' : ''" @click="localeRef = 'zhCN'">
<a-button :type="localeRef === 'zhCN' ? 'primary' : 'default'" @click="localeRef = 'zhCN'">
中文
</a-button>
<a-button :type="localeRef === 'en' ? 'primary' : ''" @click="localeRef = 'en'">
<a-button :type="localeRef === 'en' ? 'primary' : 'default'" @click="localeRef = 'en'">
英文
</a-button>
<Divider />

View File

@@ -14,10 +14,10 @@
<div class="mt-4">
权限切换(请先切换权限模式为前端角色权限模式):
<a-button-group>
<a-button @click="changeRole(RoleEnum.SUPER)" :type="isSuper ? 'primary' : ''">
<a-button @click="changeRole(RoleEnum.SUPER)" :type="isSuper ? 'primary' : 'default'">
{{ RoleEnum.SUPER }}
</a-button>
<a-button @click="changeRole(RoleEnum.TEST)" :type="isTest ? 'primary' : ''">
<a-button @click="changeRole(RoleEnum.TEST)" :type="isTest ? 'primary' : 'default'">
{{ RoleEnum.TEST }}
</a-button>
</a-button-group>

View File

@@ -14,10 +14,10 @@
<div class="mt-4">
权限切换(请先切换权限模式为前端角色权限模式):
<a-button-group>
<a-button @click="changeRole(RoleEnum.SUPER)" :type="isSuper ? 'primary' : ''">
<a-button @click="changeRole(RoleEnum.SUPER)" :type="isSuper ? 'primary' : 'default'">
{{ RoleEnum.SUPER }}
</a-button>
<a-button @click="changeRole(RoleEnum.TEST)" :type="isTest ? 'primary' : ''">
<a-button @click="changeRole(RoleEnum.TEST)" :type="isTest ? 'primary' : 'default'">
{{ RoleEnum.TEST }}
</a-button>
</a-button-group>

View File

@@ -29,7 +29,7 @@
type="primary"
size="large"
class="rounded-sm"
block
:block="true"
@click="login"
:loading="formState.loading"
>登录</a-button