refactor: inputs-config.js 合并为 config.js,新增默认背景图配置及使用说明

This commit is contained in:
2026-05-15 15:14:11 +08:00
parent 315f568138
commit f090f18a9d
4 changed files with 166 additions and 6 deletions

38
js/config.js Normal file
View File

@@ -0,0 +1,38 @@
// ============================================
// 邀请函制作工具 - 全局配置文件
// 修改以下数值即可调整外观,无需改动代码
// ============================================
// -------- 默认背景图 --------
// 修改为你的图片路径即可替换默认背景
var DEFAULT_BG_IMAGE = './images/default-bg.jpg';
// -------- 三个预设输入框的初始位置与样式 --------
var INPUTS_CONFIG = {
"inputs": [
{
"id": "input1",
"label": "企业",
"left": 100,
"top": 218.4,
"fontWeight": 700,
"placeholder": "请输入"
},
{
"id": "input2",
"label": "嘉宾",
"left": 100,
"top": 261.4,
"fontWeight": 700,
"placeholder": "请输入"
},
{
"id": "input3",
"label": "编号",
"left": 100,
"top": 308.1,
"fontWeight": 700,
"placeholder": "请输入"
}
]
};