所有页面的语法改写为setup形式;

修改了Header组件的样式、布局;
更新了IFLOW上下文;
添加了全局样式;
添加了pinia状态管理;
This commit is contained in:
User
2025-10-10 11:43:51 +08:00
parent 0d4c7353f4
commit e40288e8ef
20 changed files with 2147 additions and 1521 deletions

532
src/common/base.css Normal file
View File

@@ -0,0 +1,532 @@
/************************************************************
** 请将全局样式拷贝到项目的全局 CSS 文件或者当前页面的顶部 **
** 否则页面将无法正常显示 **
************************************************************/
html {
font-size: 16px;
user-select: none;
-webkit-user-drag: none;
-webkit-tap-highlight-color: transparent;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Microsoft Yahei', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
view,
image,
text {
box-sizing: border-box;
flex-shrink: 0;
}
#app {
width: 100vw;
height: 100vh;
}
.code-fun-flex-row {
display: flex;
flex-direction: row;
}
.code-fun-flex-col {
display: flex;
flex-direction: column;
}
.code-fun-justify-start {
justify-content: flex-start;
}
.code-fun-justify-end {
justify-content: flex-end;
}
.code-fun-justify-center {
justify-content: center;
}
.code-fun-justify-between {
justify-content: space-between;
}
.code-fun-justify-around {
justify-content: space-around;
}
.code-fun-justify-evenly {
justify-content: space-evenly;
}
.code-fun-items-start {
align-items: flex-start;
}
.code-fun-items-end {
align-items: flex-end;
}
.code-fun-items-center {
align-items: center;
}
.code-fun-items-baseline {
align-items: baseline;
}
.code-fun-items-stretch {
align-items: stretch;
}
.code-fun-self-start {
align-self: flex-start;
}
.code-fun-self-end {
align-self: flex-end;
}
.code-fun-self-center {
align-self: center;
}
.code-fun-self-baseline {
align-self: baseline;
}
.code-fun-self-stretch {
align-self: stretch;
}
.code-fun-flex-1 {
flex: 1 1 0%;
}
.code-fun-flex-auto {
flex: 1 1 auto;
}
.code-fun-grow {
flex-grow: 1;
}
.code-fun-grow-0 {
flex-grow: 0;
}
.code-fun-shrink {
flex-shrink: 1;
}
.code-fun-shrink-0 {
flex-shrink: 0;
}
.code-fun-relative {
position: relative;
}
.code-fun-ml-2 {
margin-left: 0.13rem;
}
.code-fun-mt-2 {
margin-top: 0.13rem;
}
.code-fun-ml-4 {
margin-left: 0.25rem;
}
.code-fun-mt-4 {
margin-top: 0.25rem;
}
.code-fun-ml-6 {
margin-left: 0.38rem;
}
.code-fun-mt-6 {
margin-top: 0.38rem;
}
.code-fun-ml-8 {
margin-left: 0.5rem;
}
.code-fun-mt-8 {
margin-top: 0.5rem;
}
.code-fun-ml-10 {
margin-left: 0.63rem;
}
.code-fun-mt-10 {
margin-top: 0.63rem;
}
.code-fun-ml-12 {
margin-left: 0.75rem;
}
.code-fun-mt-12 {
margin-top: 0.75rem;
}
.code-fun-ml-14 {
margin-left: 0.88rem;
}
.code-fun-mt-14 {
margin-top: 0.88rem;
}
.code-fun-ml-16 {
margin-left: 1rem;
}
.code-fun-mt-16 {
margin-top: 1rem;
}
.code-fun-ml-18 {
margin-left: 1.13rem;
}
.code-fun-mt-18 {
margin-top: 1.13rem;
}
.code-fun-ml-20 {
margin-left: 1.25rem;
}
.code-fun-mt-20 {
margin-top: 1.25rem;
}
.code-fun-ml-22 {
margin-left: 1.38rem;
}
.code-fun-mt-22 {
margin-top: 1.38rem;
}
.code-fun-ml-24 {
margin-left: 1.5rem;
}
.code-fun-mt-24 {
margin-top: 1.5rem;
}
.code-fun-ml-26 {
margin-left: 1.63rem;
}
.code-fun-mt-26 {
margin-top: 1.63rem;
}
.code-fun-ml-28 {
margin-left: 1.75rem;
}
.code-fun-mt-28 {
margin-top: 1.75rem;
}
.code-fun-ml-30 {
margin-left: 1.88rem;
}
.code-fun-mt-30 {
margin-top: 1.88rem;
}
.code-fun-ml-32 {
margin-left: 2rem;
}
.code-fun-mt-32 {
margin-top: 2rem;
}
.code-fun-ml-34 {
margin-left: 2.13rem;
}
.code-fun-mt-34 {
margin-top: 2.13rem;
}
.code-fun-ml-36 {
margin-left: 2.25rem;
}
.code-fun-mt-36 {
margin-top: 2.25rem;
}
.code-fun-ml-38 {
margin-left: 2.38rem;
}
.code-fun-mt-38 {
margin-top: 2.38rem;
}
.code-fun-ml-40 {
margin-left: 2.5rem;
}
.code-fun-mt-40 {
margin-top: 2.5rem;
}
.code-fun-ml-42 {
margin-left: 2.63rem;
}
.code-fun-mt-42 {
margin-top: 2.63rem;
}
.code-fun-ml-44 {
margin-left: 2.75rem;
}
.code-fun-mt-44 {
margin-top: 2.75rem;
}
.code-fun-ml-46 {
margin-left: 2.88rem;
}
.code-fun-mt-46 {
margin-top: 2.88rem;
}
.code-fun-ml-48 {
margin-left: 3rem;
}
.code-fun-mt-48 {
margin-top: 3rem;
}
.code-fun-ml-50 {
margin-left: 3.13rem;
}
.code-fun-mt-50 {
margin-top: 3.13rem;
}
.code-fun-ml-52 {
margin-left: 3.25rem;
}
.code-fun-mt-52 {
margin-top: 3.25rem;
}
.code-fun-ml-54 {
margin-left: 3.38rem;
}
.code-fun-mt-54 {
margin-top: 3.38rem;
}
.code-fun-ml-56 {
margin-left: 3.5rem;
}
.code-fun-mt-56 {
margin-top: 3.5rem;
}
.code-fun-ml-58 {
margin-left: 3.63rem;
}
.code-fun-mt-58 {
margin-top: 3.63rem;
}
.code-fun-ml-60 {
margin-left: 3.75rem;
}
.code-fun-mt-60 {
margin-top: 3.75rem;
}
.code-fun-ml-62 {
margin-left: 3.88rem;
}
.code-fun-mt-62 {
margin-top: 3.88rem;
}
.code-fun-ml-64 {
margin-left: 4rem;
}
.code-fun-mt-64 {
margin-top: 4rem;
}
.code-fun-ml-66 {
margin-left: 4.13rem;
}
.code-fun-mt-66 {
margin-top: 4.13rem;
}
.code-fun-ml-68 {
margin-left: 4.25rem;
}
.code-fun-mt-68 {
margin-top: 4.25rem;
}
.code-fun-ml-70 {
margin-left: 4.38rem;
}
.code-fun-mt-70 {
margin-top: 4.38rem;
}
.code-fun-ml-72 {
margin-left: 4.5rem;
}
.code-fun-mt-72 {
margin-top: 4.5rem;
}
.code-fun-ml-74 {
margin-left: 4.63rem;
}
.code-fun-mt-74 {
margin-top: 4.63rem;
}
.code-fun-ml-76 {
margin-left: 4.75rem;
}
.code-fun-mt-76 {
margin-top: 4.75rem;
}
.code-fun-ml-78 {
margin-left: 4.88rem;
}
.code-fun-mt-78 {
margin-top: 4.88rem;
}
.code-fun-ml-80 {
margin-left: 5rem;
}
.code-fun-mt-80 {
margin-top: 5rem;
}
.code-fun-ml-82 {
margin-left: 5.13rem;
}
.code-fun-mt-82 {
margin-top: 5.13rem;
}
.code-fun-ml-84 {
margin-left: 5.25rem;
}
.code-fun-mt-84 {
margin-top: 5.25rem;
}
.code-fun-ml-86 {
margin-left: 5.38rem;
}
.code-fun-mt-86 {
margin-top: 5.38rem;
}
.code-fun-ml-88 {
margin-left: 5.5rem;
}
.code-fun-mt-88 {
margin-top: 5.5rem;
}
.code-fun-ml-90 {
margin-left: 5.63rem;
}
.code-fun-mt-90 {
margin-top: 5.63rem;
}
.code-fun-ml-92 {
margin-left: 5.75rem;
}
.code-fun-mt-92 {
margin-top: 5.75rem;
}
.code-fun-ml-94 {
margin-left: 5.88rem;
}
.code-fun-mt-94 {
margin-top: 5.88rem;
}
.code-fun-ml-96 {
margin-left: 6rem;
}
.code-fun-mt-96 {
margin-top: 6rem;
}
.code-fun-ml-98 {
margin-left: 6.13rem;
}
.code-fun-mt-98 {
margin-top: 6.13rem;
}
.code-fun-ml-100 {
margin-left: 6.25rem;
}
.code-fun-mt-100 {
margin-top: 6.25rem;
}