export default { // 通用配置 common: { videoMaxDuration: 30, // 小程序限制最多拍攝30秒 chooseMaxDuration: 1000, // 選擇視頻的默認(rèn)時(shí)長限制 clipMaxDuration: 60, // 裁切時(shí)長的默認(rèn)限制 exportPagePath: "/pages/main/export/index", // 默認(rèn)跳進(jìn)插件自己提供的頁面 style: { // 主題色 primaryColor: "#ff584c", // 文字色 textColor: "#fff", // 禁用色 disableColor: "#ddd", // 整體背景色 backgroundColor: "#000", // 通用按鈕配置 button: { state: { default: { backgroundColor: "#ff584c", fontColor: "#fff" }, disable: { backgroundColor: "#ddd", fontColor: "#fff" } } }, // 通用二級按鈕配置 secondaryButton: { state: { default: { backgroundColor: "#ffffff", fontColor: "#ff584c" }, disable: { backgroundColor: "#ddd", fontColor: "#fff" } } } } }, // 以下配置均可選,單獨(dú)配置覆蓋上面的通用色配置 // 拍攝界面 camera: { // 錄制按鈕 recordButton: { state: { default: { backgroundColor: "#ff584c", borderColor: "rgba(255,88,76,0.5)" }, recording: { backgroundColor: "#fff" } } }, // 下一步按鈕 nextButton: { state: { default: { backgroundColor: "#ff584c", borderColor: "rgba(255,88,76,0.5)" }, recording: { backgroundColor: "#fff" } } }, // 重新選擇按鈕 rechooseButton: { // 同上 } }, previewer: { //下一步按鈕,可以不配,配了覆蓋style.style.button nextButton: { state: { default: { backgroundColor: "#ff584c", fontColor: "#fff" } } }, // 覆蓋common.style.primaryColor clipper: { borderColor: "#ff584c" } }, // 編輯頁面 editor: { //下一步按鈕 nextButton: { state: { default: { backgroundColor: "#ff584c", fontColor: "#fff" } } }, //操作面板 operatePanel: { // 面板背景色,覆蓋common.style.backgroundColor backgroundColor: "rgba(0,0,0,0.8)", // 特效面板 effect: { // 自定義icon,不傳使用默認(rèn)icon icon: "https://xx.xx.xx", // 游標(biāo)顏色,此處的movableColor和下面的highlightColor不填則取common.style.primaryColor movableColor: "#ff584c" }, // 濾鏡面板 filter: { icon: "https://xx.xx.xx", highlightColor: "#ff584c" }, // 音樂面板 music: { icon: "https://xx.xx.xx", highlightColor: "#ff584c" }, // 文字面板 text: { icon: "https://xx.xx.xx", } } }};