-
hello
+
+ {{ value }}
@@ -14,5 +19,6 @@
::v-deep(.el-button) {
width: 100%;
height: 100%;
+ color: v-bind("styles.color");
}
diff --git a/src/constants/config.js b/src/constants/config.js
index 303554a..332604f 100644
--- a/src/constants/config.js
+++ b/src/constants/config.js
@@ -55,8 +55,9 @@ export const WIDGE_LIST = [
url: "/img/elementplus1.png",
component: "customElementUiButton",
label: "按钮",
+ value: "hello world!",
default: dft.ECHARTSPIE_DATA,
styles: dft.ECHARTSPIE_STYLE,
- styleForm: styleFormConfig.PIE,
+ styleForm: styleFormConfig.BTN,
},
];
diff --git a/src/constants/style-form-config.js b/src/constants/style-form-config.js
index 15d2e42..cc26df0 100644
--- a/src/constants/style-form-config.js
+++ b/src/constants/style-form-config.js
@@ -17,6 +17,11 @@ export const TEXT = [
component: "InputNumber",
isStyle: true,
},
+ {
+ key: "border",
+ label: "边框",
+ component: "Border",
+ },
];
export const BAR = [
@@ -44,3 +49,22 @@ export const PIE = [
component: "el-input-number",
},
];
+
+export const BTN = [
+ {
+ key: "color",
+ label: "颜色",
+ component: "ColorPicker",
+ isStyle: true,
+ },
+ {
+ key: "value",
+ label: "内容",
+ component: "Input",
+ },
+ {
+ key: "border",
+ label: "边框",
+ component: "Border",
+ },
+];