File tree 7 files changed +26
-22
lines changed
views/demo/system/password
7 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 138
138
"vetur.format.defaultFormatter.ts" : " prettier-tslint" ,
139
139
"vetur.format.defaultFormatter.js" : " prettier" ,
140
140
"vetur.languageFeatures.codeActions" : false ,
141
- "vetur.validation.script" : false ,
141
+ // "vetur.validation.script": false,
142
142
"vetur.format.defaultFormatterOptions" : {
143
143
"js-beautify-html" : {
144
144
"wrap_attributes" : " force-expand-multiline"
Original file line number Diff line number Diff line change 8
8
9
9
- 确保 ` table action ` 的值被正确更新
10
10
- 修复页面切换的动画无法关闭
11
+ - 修复` PageWrapper ` title 不显示
11
12
12
13
## 2.0.3 (2021-03-07)
13
14
Original file line number Diff line number Diff line change 112
112
"vite-plugin-style-import" : " ^0.8.1" ,
113
113
"vite-plugin-svg-icons" : " ^0.3.3" ,
114
114
"vite-plugin-theme" : " ^0.4.8" ,
115
- "vite-plugin-windicss" : " 0.7.0 " ,
115
+ "vite-plugin-windicss" : " 0.7.1 " ,
116
116
"vue-eslint-parser" : " ^7.6.0" ,
117
117
"yargs" : " ^16.2.0"
118
118
},
Original file line number Diff line number Diff line change 2
2
<div :class =" getClass" >
3
3
<PageHeader
4
4
:ghost =" ghost"
5
+ :title =" title"
5
6
v-bind =" $attrs"
6
7
ref =" headerRef"
7
- v-if =" content || $slots.headerContent"
8
+ v-if =" content || $slots.headerContent || title || getHeaderSlots.length "
8
9
>
9
10
<template #default >
10
11
<template v-if =" content " >
49
50
components: { PageFooter , PageHeader },
50
51
inheritAttrs: false ,
51
52
props: {
53
+ title: propTypes .string ,
52
54
dense: propTypes .bool ,
53
55
ghost: propTypes .bool ,
54
56
content: propTypes .string ,
Original file line number Diff line number Diff line change 1
1
import '/@/design/index.less' ;
2
- import 'windi.css' ;
2
+ import '@virtual/ windi.css' ;
3
3
4
4
// Do not introduce on-demand in local development?
5
5
// In the local development for on-demand introduction, the number of browser requests will increase by about 20%.
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" p-4 flex flex-col justify-center items-center" >
3
- <BasicForm @register =" register" />
4
-
5
- <div class =" flex justify-center" >
6
- <a-button @click =" resetFields" > 重置 </a-button >
7
- <a-button class =" ml-4" type =" primary" @click =" handleSubmit" > 确认 </a-button >
2
+ <PageWrapper title =" 修改当前用户密码" content =" 修改成功后会自动退出当前登录!" >
3
+ <div class =" py-8 bg-white flex flex-col justify-center items-center" >
4
+ <BasicForm @register =" register" />
5
+ <div class =" flex justify-center" >
6
+ <a-button @click =" resetFields" > 重置 </a-button >
7
+ <a-button class =" ml-4" type =" primary" @click =" handleSubmit" > 确认 </a-button >
8
+ </div >
8
9
</div >
9
- </div >
10
+ </PageWrapper >
10
11
</template >
11
12
<script lang="ts">
12
13
import { defineComponent } from ' vue' ;
13
-
14
+ import { PageWrapper } from ' /@/components/Page ' ;
14
15
import { BasicForm , useForm } from ' /@/components/Form' ;
15
16
16
17
import { formSchema } from ' ./pwd.data' ;
17
18
export default defineComponent ({
18
19
name: ' ChangePassword' ,
19
- components: { BasicForm },
20
+ components: { BasicForm , PageWrapper },
20
21
setup() {
21
22
const [register, { validate, resetFields }] = useForm ({
22
23
size: ' large' ,
Original file line number Diff line number Diff line change 1785
1785
dependencies :
1786
1786
vue-demi latest
1787
1787
1788
- " @windicss/plugin-utils@0.7.0 " :
1789
- version "0.7.0 "
1790
- resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.7.0 .tgz#0321328cd4e7ef673cdeccf0104e8e5f81f7496b "
1791
- integrity sha512-Bfk3AF/CLKyj22iSaAkjHCI5Nw0Lp2GFo0bS3ymUSWrWn2Xx7w0K8INkZ9bjDpdrh/m1yImA+sbas302+NqXEQ ==
1788
+ " @windicss/plugin-utils@0.7.1 " :
1789
+ version "0.7.1 "
1790
+ resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.7.1 .tgz#001ba282b78a9d4e110e531d59309d2b9cb0929e "
1791
+ integrity sha512-ZloIRRKCnArFyDNuhZiFRA15XqhlWaeTcOf3soP9VxWJ+i6/IkH6cnaYgBefDATA/zJodOPsXBnbX333zKVk1Q ==
1792
1792
dependencies :
1793
1793
esbuild "^0.8.57"
1794
1794
esbuild-register "^2.2.0"
@@ -9182,12 +9182,12 @@ vite-plugin-theme@^0.4.8:
9182
9182
es-module-lexer "^0.3.26"
9183
9183
tinycolor2 "^1.4.2"
9184
9184
9185
- vite-plugin-windicss@0.7.0 :
9186
- version "0.7.0 "
9187
- resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.7.0 .tgz#9e1bee2d041aee7a0b5a4bf08c483fe5b2525898 "
9188
- integrity sha512-zKQEnDKhKZT4mYoUfLfOy8hPviAWTUbLE5POo2OACKxMCBdcOHmakh+RfkMIUrejgrRZbX9bBezKzSfxPqO65Q ==
9185
+ vite-plugin-windicss@0.7.1 :
9186
+ version "0.7.1 "
9187
+ resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.7.1 .tgz#1e1c41c2f62d18a2777819057c981a1ec26d8901 "
9188
+ integrity sha512-0NNrTBgjx11KOwqS/4szfVIt3LURFor4cEEVVJjB8p7JDTnC4K8Cu11bcAvY+QMOfflxv4s2ONo2SU4xkq68kA ==
9189
9189
dependencies :
9190
- " @windicss/plugin-utils" " 0.7.0 "
9190
+ " @windicss/plugin-utils" " 0.7.1 "
9191
9191
windicss "^2.3.0"
9192
9192
9193
9193
vite@^2.0.5 :
You can’t perform that action at this time.
0 commit comments