diff --git a/main/manager-web/postcss.config.js b/main/manager-web/postcss.config.js index 562d0f668..00d521c19 100644 --- a/main/manager-web/postcss.config.js +++ b/main/manager-web/postcss.config.js @@ -1,5 +1,6 @@ module.exports = { plugins: { tailwindcss: {}, + autoprefixer: {} }, } \ No newline at end of file diff --git a/main/manager-web/src/components/ChipConfig.vue b/main/manager-web/src/components/ChipConfig.vue index 4950785b9..009b88e9a 100644 --- a/main/manager-web/src/components/ChipConfig.vue +++ b/main/manager-web/src/components/ChipConfig.vue @@ -77,7 +77,7 @@
-
+ @@ -99,9 +99,9 @@ -
+

{{ $t('chipConfig.manualConfigTitle') }}

- +
@@ -127,6 +127,7 @@ const ConfigForm = { default: false } }, + emits: ["updateConfig"], render() { return h('div', { class: 'grid grid-cols-1 md:grid-cols-3 gap-4' }, [ // 芯片型号选择 @@ -135,14 +136,18 @@ const ConfigForm = { this.$t('chipConfig.chipRequired') + ' ', this.showRequired ? h('span', { class: 'text-red-500' }, '*') : '' ]), - h('select', { - class: 'w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500', - value: this.config.model, + h('el-select', { + class: 'w-full', + props: { + value: this.config.model, + }, on: { - change: (e) => { this.config.model = e.target.value } + change: (value) => { + this.$emit('updateConfig', { model: value }) + } } }, this.$parent.CHIP_OPTIONS.map(option => - h('option', { attrs: { value: option.value }, key: option.value }, option.label) + h('el-option', { attrs: { value: option.value, label: option.label }, key: option.value }, option.label) )) ]), @@ -152,19 +157,22 @@ const ConfigForm = { this.$t('chipConfig.widthRequired') + ' ', this.showRequired ? h('span', { class: 'text-red-500' }, '*') : '' ]), - h('input', { - class: 'w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500', + h('el-input-number', { + class: 'w-full', attrs: { type: 'number', min: 128, max: 800, placeholder: '320', }, - domProps: { + props: { value: this.config.display.width, + "controls-position": "right", }, on: { - input: (e) => { this.config.display.width = Number(e.target.value) } + input: (value) => { + this.$emit('updateConfig', { display: { ...this.config.display, width: value } }) + } } }) ]), @@ -175,19 +183,22 @@ const ConfigForm = { this.$t('chipConfig.heightRequired') + ' ', this.showRequired ? h('span', { class: 'text-red-500' }, '*') : '' ]), - h('input', { - class: 'w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500', + h('el-input-number', { + class: 'w-full', attrs: { type: 'number', min: 128, max: 600, placeholder: '240', }, - domProps: { + props: { value: this.config.display.height, + "controls-position": "right", }, on: { - input: (e) => { this.config.display.height = Number(e.target.value) } + input: (value) => { + this.$emit('updateConfig', { display: { ...this.config.display, height: value } }) + } } }) ]) @@ -462,6 +473,10 @@ export default { return false } }, + // 更新自定义配置 + updateConfig(obj) { + this.customConfig = { ...this.customConfig, ...obj }; + }, // 切换手动编辑 toggleManualEdit() { diff --git a/main/manager-web/src/components/GenerateModal.vue b/main/manager-web/src/components/GenerateModal.vue index 6a54a2c53..3e1969858 100644 --- a/main/manager-web/src/components/GenerateModal.vue +++ b/main/manager-web/src/components/GenerateModal.vue @@ -14,7 +14,7 @@ -
+
{{ $t('generateModal.flashingInProgress') }}
@@ -150,8 +150,8 @@ {{ $t('generateModal.downloadAssets') }} - - + diff --git a/main/manager-web/src/components/GenerateSummary.vue b/main/manager-web/src/components/GenerateSummary.vue index e8001b9a2..5060070cb 100644 --- a/main/manager-web/src/components/GenerateSummary.vue +++ b/main/manager-web/src/components/GenerateSummary.vue @@ -186,21 +186,25 @@
- - +
+ + + + {{ $t('generateSummary.generate') }} +
+
diff --git a/main/manager-web/src/components/ThemeDesign.vue b/main/manager-web/src/components/ThemeDesign.vue index 230e90b82..6f38fdfba 100644 --- a/main/manager-web/src/components/ThemeDesign.vue +++ b/main/manager-web/src/components/ThemeDesign.vue @@ -53,18 +53,18 @@
- - +
@@ -75,21 +75,17 @@ import FontConfig from './tabs/FontConfig.vue' import EmojiConfig from './tabs/EmojiConfig.vue' import BackgroundConfig from './tabs/BackgroundConfig.vue' -// Icons (simple SVG components) // 麦克风图标 const MicrophoneIcon = { - render(h) { // 接收 h 函数(createElement)作为参数 + render(h) { return h('svg', { - // SVG 基础属性(放在 attrs 中) attrs: { fill: 'none', stroke: 'currentColor', viewBox: '0 0 24 24' }, - // 样式类名(可选,也可在使用时传递) class: 'w-5 h-5' }, [ - // 子节点:path 标签 h('path', { attrs: { 'stroke-linecap': 'round', diff --git a/main/manager-web/src/components/tabs/EmojiConfig.vue b/main/manager-web/src/components/tabs/EmojiConfig.vue index a7219d5b5..6d6917413 100644 --- a/main/manager-web/src/components/tabs/EmojiConfig.vue +++ b/main/manager-web/src/components/tabs/EmojiConfig.vue @@ -7,7 +7,7 @@
-
+