|
@@ -1,56 +1,54 @@
|
|
|
<template>
|
|
|
- <div class="start-btn" @click="formTableChange">
|
|
|
- <div class="icon">
|
|
|
- <div class="sanjiao"></div>
|
|
|
- </div>
|
|
|
- <div class="text">开始{{title}}</div>
|
|
|
+ <div class="start-btn" @click="formTableChange">
|
|
|
+ <div class="icon">
|
|
|
+ <div class="sanjiao"></div>
|
|
|
</div>
|
|
|
+ <div class="text">开始{{ title }}</div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
- import { defineProps, inject, ref } from 'vue'
|
|
|
-
|
|
|
- let title = ref('')
|
|
|
- let getNode = inject('getNode')
|
|
|
- const node = getNode()
|
|
|
- node.on('change:data', ({current}) => {
|
|
|
- title.value = current.title
|
|
|
- })
|
|
|
+import { inject, ref } from "vue";
|
|
|
|
|
|
+let title = ref("");
|
|
|
+let getNode = inject("getNode");
|
|
|
+const node = getNode();
|
|
|
+node.on("change:data", ({ current }) => {
|
|
|
+ title.value = current.title;
|
|
|
+});
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
- .start-btn{
|
|
|
- height: 90px;
|
|
|
- width: 150px;
|
|
|
- background: #fff;
|
|
|
- text-align: center;
|
|
|
- box-shadow: 0px 2px 10px 1px rgba(51,51,51,0.1);
|
|
|
- border-radius: 10px 10px 10px 10px;
|
|
|
- padding: 10px 0;
|
|
|
- .icon {
|
|
|
- height: 40px;
|
|
|
- width: 40px;
|
|
|
- background: #39C55A;
|
|
|
- border-radius: 20px;
|
|
|
- margin: 0 auto;
|
|
|
- //画一个三角形
|
|
|
- .sanjiao {
|
|
|
- width: 0;
|
|
|
- height: 0;
|
|
|
- border-left: 10px solid transparent;
|
|
|
- border-right: 10px solid transparent;
|
|
|
- border-bottom: 10px solid #fff;
|
|
|
- margin: 0 auto;
|
|
|
- position: relative;
|
|
|
- top: 15px;
|
|
|
- left: 2px;
|
|
|
- transform: rotate(90deg);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- .text{
|
|
|
- color: #333;
|
|
|
- font-size: 14px;
|
|
|
- margin-top: 10px;
|
|
|
- }
|
|
|
+.start-btn {
|
|
|
+ height: 90px;
|
|
|
+ width: 150px;
|
|
|
+ background: #fff;
|
|
|
+ text-align: center;
|
|
|
+ box-shadow: 0px 2px 10px 1px rgba(51, 51, 51, 0.1);
|
|
|
+ border-radius: 10px 10px 10px 10px;
|
|
|
+ padding: 10px 0;
|
|
|
+ .icon {
|
|
|
+ height: 40px;
|
|
|
+ width: 40px;
|
|
|
+ background: #39c55a;
|
|
|
+ border-radius: 20px;
|
|
|
+ margin: 0 auto;
|
|
|
+ //画一个三角形
|
|
|
+ .sanjiao {
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ border-left: 10px solid transparent;
|
|
|
+ border-right: 10px solid transparent;
|
|
|
+ border-bottom: 10px solid #fff;
|
|
|
+ margin: 0 auto;
|
|
|
+ position: relative;
|
|
|
+ top: 15px;
|
|
|
+ left: 2px;
|
|
|
+ transform: rotate(90deg);
|
|
|
}
|
|
|
-</style>
|
|
|
+ }
|
|
|
+ .text {
|
|
|
+ color: #333;
|
|
|
+ font-size: 14px;
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|