diff --git a/.gitee.yml b/.gitee.yml new file mode 100644 index 0000000000000000000000000000000000000000..eadc7dde3cbe69d21c0bb8d1cc4a5c9932c4872a --- /dev/null +++ b/.gitee.yml @@ -0,0 +1,16 @@ +version: '1.0' +name: ci-test +displayName: CI 测试流水线 +triggers: + pr: # 仅在 Pull Request 时触发 + branches: + include: + - master # 仅当 PR 目标为 master 时触发 +jobs: + test: + steps: + - name: 安装依赖 + uses: node:18 # 选择 Node.js 版本 + command: npm install + - name: 运行测试 + command: npm test # 执行项目测试脚本(确保 package.json 中有 "test" 脚本) \ No newline at end of file diff --git a/LICENSE b/LICENSE index b2cbd2cfc5bb7fe75c2af7c7158d2fffb690481a..29f16d2cdb842b0ce973188bb3074e11aa522942 100644 --- a/LICENSE +++ b/LICENSE @@ -19,3 +19,24 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +MIT License + +Copyright (c) 2025 杨泽瑞 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/App.vue b/src/App.vue index fde13bd03a1c28525529969b0abfe6fd79489b33..fadff87ff7bb08b54f267840b7815e6bc46644ea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -113,13 +113,15 @@ const list = ref([{ padding-left: 15px; box-sizing: border-box; } - .todo-from{ - margin-top: 20px; - margin-left: 30px; - display: flex; - padding-left: 30px; - box-sizing: border-box; - } + .todo-from { + margin-top: 20px; + /* 移除原来的左内边距,避免影响居中 */ + /* margin - left: 30px; */ + display: flex; + /* 添加以下样式实现横向居中 */ + justify-content: center; + box-sizing: border-box; +} .item{ width: 80%; height: 50px;