hookehuyr

fix(主题): 使用主题变量替换确认对话框的按钮颜色

feat(组件): 添加VanDatetimePicker组件类型声明
...@@ -63,7 +63,7 @@ if (import.meta.env.PROD) { ...@@ -63,7 +63,7 @@ if (import.meta.env.PROD) {
63 showConfirmDialog({ 63 showConfirmDialog({
64 title: '温馨提示', 64 title: '温馨提示',
65 message: '检测到新版本,是否刷新页面!', 65 message: '检测到新版本,是否刷新页面!',
66 - confirmButtonColor: '#4caf50' 66 + confirmButtonColor: themeVars.primaryColor
67 }).then(() => { 67 }).then(() => {
68 window.location.reload(); 68 window.location.reload();
69 }); 69 });
......
...@@ -44,6 +44,7 @@ declare module 'vue' { ...@@ -44,6 +44,7 @@ declare module 'vue' {
44 VanCol: typeof import('vant/es')['Col'] 44 VanCol: typeof import('vant/es')['Col']
45 VanConfigProvider: typeof import('vant/es')['ConfigProvider'] 45 VanConfigProvider: typeof import('vant/es')['ConfigProvider']
46 VanDatePicker: typeof import('vant/es')['DatePicker'] 46 VanDatePicker: typeof import('vant/es')['DatePicker']
47 + VanDatetimePicker: typeof import('vant/es')['DatetimePicker']
47 VanDialog: typeof import('vant/es')['Dialog'] 48 VanDialog: typeof import('vant/es')['Dialog']
48 VanDivider: typeof import('vant/es')['Divider'] 49 VanDivider: typeof import('vant/es')['Divider']
49 VanDropdownItem: typeof import('vant/es')['DropdownItem'] 50 VanDropdownItem: typeof import('vant/es')['DropdownItem']
......