mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-04 17:14:21 +00:00
refactor: 将组件前缀从Art统一替换为Fa
- 更新所有FA前缀的组件文件 - 新增Fa前缀的对应组件 - 更新所有引用路径和组件名 - 修改相关样式和变量名 - 调整部分组件目录结构
This commit is contained in:
@@ -54,7 +54,7 @@ export const useAuth = () => {
|
||||
: [];
|
||||
|
||||
/**
|
||||
* 检查是否拥有某权限标识(与 v-hasPerm / 表格内 ArtButtonMore 全码一致)
|
||||
* 检查是否拥有某权限标识(与 v-hasPerm / 表格内 FaButtonMore 全码一致)
|
||||
* @param auth 权限标识(多为后端菜单 permission 全码,如 module_system:role:update)
|
||||
*/
|
||||
const hasAuth = (auth: string): boolean => {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*
|
||||
* ## 手动礼花快捷键
|
||||
*
|
||||
* 全局 **Ctrl+Shift+P** / **⌘+Shift+P** 由 `art-fireworks-effect` 监听;礼花图与当天节日配置一致,
|
||||
* 全局 **Ctrl+Shift+P** / **⌘+Shift+P** 由 `fa-fireworks-effect` 监听;礼花图与当天节日配置一致,
|
||||
* 详见 `src/config/modules/festival.ts` 文件头说明。
|
||||
*
|
||||
* ## 使用示例
|
||||
|
||||
@@ -29,10 +29,7 @@ export function useCommon() {
|
||||
*/
|
||||
const homePath = computed(() => menuStore.getHomePath());
|
||||
|
||||
/**
|
||||
* 刷新当前页面
|
||||
* 通过切换 setting store 中的 refresh 状态触发页面重新渲染
|
||||
*/
|
||||
/** 触发 `FaPageContent` 级重建(与布局 settings 联动) */
|
||||
const refresh = () => {
|
||||
settingStore.reload();
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ export function useHeaderBar() {
|
||||
return isFeatureEnabled("breadcrumb") && showCrumbs.value;
|
||||
});
|
||||
|
||||
// 全局搜索:新版 ArtGlobalSearch 体验更好,显示条件 = 配置开启 ∧ 旧版「菜单搜索」开关
|
||||
// 全局搜索:新版 FaGlobalSearch 体验更好,显示条件 = 配置开启 ∧ 旧版「菜单搜索」开关
|
||||
const shouldShowGlobalSearch = computed(() => {
|
||||
return isFeatureEnabled("globalSearch") && showMenuSearch.value;
|
||||
});
|
||||
|
||||
@@ -27,12 +27,12 @@ interface LayoutHeightOptions {
|
||||
extraSpacing?: number;
|
||||
/** 是否自动更新 CSS 变量(默认 true) */
|
||||
updateCssVar?: boolean;
|
||||
/** CSS 变量名称(默认 '--art-full-height') */
|
||||
/** CSS 变量名称(默认 '--fa-full-height') */
|
||||
cssVarName?: string;
|
||||
}
|
||||
|
||||
export function useLayoutHeight(options: LayoutHeightOptions = {}) {
|
||||
const { extraSpacing = 15, updateCssVar = true, cssVarName = "--art-full-height" } = options;
|
||||
const { extraSpacing = 15, updateCssVar = true, cssVarName = "--fa-full-height" } = options;
|
||||
|
||||
// 元素引用
|
||||
const headerRef = ref<HTMLElement>();
|
||||
@@ -87,7 +87,7 @@ export function useAutoLayoutHeight(
|
||||
headerIds: string[] = ["app-header", "app-content-header"],
|
||||
options: LayoutHeightOptions = {}
|
||||
) {
|
||||
const { extraSpacing = 15, updateCssVar = true, cssVarName = "--art-full-height" } = options;
|
||||
const { extraSpacing = 15, updateCssVar = true, cssVarName = "--fa-full-height" } = options;
|
||||
|
||||
// 创建元素引用
|
||||
const headerRef = ref<HTMLElement>();
|
||||
|
||||
Reference in New Issue
Block a user