菜单栏调整

This commit is contained in:
Foming
2025-05-19 16:51:43 +08:00
parent d81ce6cf07
commit f8a7dfbd33
6 changed files with 29 additions and 27 deletions

View File

@@ -8,8 +8,8 @@
*/
export const widgetButton = {
code: 'widget-button',
type: 'text',
tabName: '文本栏',
type: 'form',
tabName: '表单',
label: '按钮',
icon: 'iconanniu',
options: {
@@ -31,14 +31,6 @@ export const widgetButton = {
placeholder: '',
value: '按钮',
},
{
type: 'vue-color',
label: '背景颜色',
name: 'backgroundColor',
required: false,
placeholder: '',
value: '#0000FF',
},
{
type: 'el-input-number',
label: '字体字号',
@@ -55,6 +47,14 @@ export const widgetButton = {
placeholder: '',
value: '#FAD400',
},
{
type: 'vue-color',
label: '字体背景',
name: 'backgroundColor',
required: false,
placeholder: '',
value: 'rgba(115,170,229,.5)',
},
{
type: 'el-input-number',
label: '字体间距',
@@ -63,14 +63,6 @@ export const widgetButton = {
placeholder: '',
value: '0',
},
{
type: 'vue-color',
label: '字体背景',
name: 'background',
required: false,
placeholder: '',
value: 'rgba(115,170,229,.5)',
},
{
type: 'el-select',
label: '文字粗细',

View File

@@ -50,10 +50,20 @@ export const widgetIframe = {
label: 'iframe地址管理',
name: 'iframeUrls',
required: false,
value: [{
name: '默认地址',
url: 'https://ajreport.beliefteam.cn/index.html'
}],
value: [
{
name: '百度地图',
url: 'https://map.baidu.com/'
},
{
name: 'gitee',
url: 'https://gitee.com/'
},
{
name: 'deepseek',
url: 'https://chat.deepseek.com/'
}
],
},
],
// 数据

View File

@@ -12,7 +12,7 @@ import {widgetMarquee} from "./configure/texts/widget-marquee"
import {widgetHref} from "./configure/texts/widget-href"
import {widgetTime} from "./configure/texts/widget-time"
import {widgetImage} from "./configure/texts/widget-image"
import {widgetButton} from "./configure/texts/widget-button"
import {widgetButton} from "./configure/form/widget-button"
import {widgetSliders} from "./configure/texts/widget-slider"
import {widgetVideo} from "./configure/texts/widget-video"
import {widgetTable} from "./configure/texts/widget-table"

View File

@@ -61,7 +61,7 @@ export default {
styleColor() {
return {
position: this.ispreview ? "relative" : "static",
color: this.transStyle.color || "#00FF00",
color: this.transStyle.color,
text: this.transStyle.text || "按钮",
width: this.transStyle.width + "px",
height: this.transStyle.height + "px",
@@ -73,7 +73,7 @@ export default {
"font-weight": this.transStyle.fontWeight || "600",
"font-size": this.transStyle.fontSize + "px" || "12px",
"letter-spacing": this.transStyle.letterSpacing + "em",
"background-color": this.transStyle.backgroundColor || "#0000ff",
"background-color": this.transStyle.backgroundColor || "rgba(115,170,229,.5)",
display:
this.transStyle.hideLayer === undefined
? "block"

View File

@@ -12,7 +12,7 @@
<script>
import widgetHref from "./texts/widgetHref.vue";
import widgetText from "./texts/widgetText.vue";
import widgetButton from "./texts/widgetButton.vue";
import widgetButton from "./form/widgetButton.vue";
import WidgetMarquee from "./texts/widgetMarquee.vue";
import widgetTime from "./texts/widgetTime.vue";
import widgetImage from "./texts/widgetImage.vue";

View File

@@ -19,7 +19,7 @@
<script>
import widgetHref from "./texts/widgetHref.vue";
import widgetText from "./texts/widgetText.vue";
import widgetButton from './texts/widgetButton.vue';
import widgetButton from './form/widgetButton.vue';
import WidgetMarquee from "./texts/widgetMarquee.vue";
import widgetTime from "./texts/widgetTime.vue";
import widgetImage from "./texts/widgetImage.vue";