diff --git a/README.md b/README.md
index 8a91d70674babf3b33ef73971b8f75b8ca8e04a8..c495156d60df3857a233a0ef13f1f84608fcdc44 100644
--- a/README.md
+++ b/README.md
@@ -59,4 +59,5 @@ yarn run dev
[low-code](https://lowcode-kip.vercel.app/)
# 反馈
-如果您有任何反馈,请通过发送[电子邮件](mailto:workyyx@163.com)与我们联系
\ No newline at end of file
+如果您有任何反馈,请通过发送[电子邮件](mailto:workyyx@163.com)与我们联系
+
diff --git a/index.html b/index.html
index 9b70a3ef41658ffeecc7b19d8d223f2e8554f146..2f1f17416bd4389ec3642741d7863fb31a2475f5 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,12 @@
-
+
+
+
+
+
+
Low-Code
diff --git a/src/components/style/ButtonStyle.vue b/src/components/style/ButtonStyle.vue
index 2b4b9230c6345a565a895447b0a987bcfe7e06b0..9948917477ace506d142663c1690b0b115ec2cd4 100644
--- a/src/components/style/ButtonStyle.vue
+++ b/src/components/style/ButtonStyle.vue
@@ -81,6 +81,7 @@
更新
+ 移除
@@ -99,7 +100,7 @@ const mainStore = userMainStore();
const form = reactive(utils.deepCopy(props.data))
-function updateConf(conf: Object, index: number) {
+function updateConf(conf: Object, index: number): void {
/**
* 触发更新tList中对应组件配置的action
*
@@ -108,6 +109,15 @@ function updateConf(conf: Object, index: number) {
*/
mainStore.updateConfig(utils.deepCopy(conf), index);
}
+
+function removeComponent(index: number): void {
+ /**
+ * 触发删除tList中对应组件的action
+ *
+ * @param {number} index 组件在tList中的位置
+ */
+ mainStore.deleteComponent(index);
+}
+
\ No newline at end of file
diff --git a/src/components/style/TextStyle.vue b/src/components/style/TextStyle.vue
index 46f30186ae6bada187ca3d061d27b94729207fbd..52f48d19495323a17d0fa75cfc24243d4e9f6627 100644
--- a/src/components/style/TextStyle.vue
+++ b/src/components/style/TextStyle.vue
@@ -44,6 +44,7 @@
更新
+ 移除
@@ -70,7 +71,7 @@ for (let i: number = 12; i <= 30; i++) {
fontSizeArr.push(`${i}px`);
}
-function updateConf(conf: Object, index: number) {
+function updateConf(conf: Object, index: number): void {
/**
* 触发更新tList中对应组件配置的action
*
@@ -79,6 +80,15 @@ function updateConf(conf: Object, index: number) {
*/
mainStore.updateConfig(utils.deepCopy(conf), index);
}
+
+function removeComponent(index: number): void {
+ /**
+ * 触发删除tList中对应组件的action
+ *
+ * @param {number} index 组件在tList中的位置
+ */
+ mainStore.deleteComponent(index);
+}