feat: 更新为 1.2.0 构建产物(内核重构版)

- 产物替换为 funjiaui.es.js / funjiaui.cjs.js / funjiaui.umd.js
- style.css 更新,新增 index.d.ts 与各组件类型声明目录
- 移除旧产物 um_table.es.js(1.0.0 的 ES 包,历史与 v1.0.0 标签仍可回溯)
- package.json 补齐 module / types / unpkg / jsdelivr / files 字段,
  并将 vue、element-plus、@element-plus/icons-vue 声明为 peerDependencies
- 新增 README 说明产物清单与用法
This commit is contained in:
2026-09-19 01:04:09 +08:00
parent 0d6ad0c775
commit f26bd3f377
38 changed files with 14329 additions and 3516 deletions
+59
View File
@@ -0,0 +1,59 @@
declare const _sfc_main: import("vue").DefineComponent<{
treeData: {
type: ArrayConstructor;
required: true;
};
props: {
type: null;
required: false;
};
defaultExpandAll: {
type: BooleanConstructor;
required: false;
default: boolean;
};
keyword: {
type: StringConstructor;
required: false;
};
nodeKey: {
type: StringConstructor;
required: false;
default: string;
};
}, {
props: any;
emit: (e: "onSelect", data: any, node: any, currentNode: any) => void;
treeRef: import("vue").Ref<any>;
onFilter: (value: string, record: any) => boolean;
onSelect: (data: any, node: any, currentNode: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onSelect"[], "onSelect", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
treeData: {
type: ArrayConstructor;
required: true;
};
props: {
type: null;
required: false;
};
defaultExpandAll: {
type: BooleanConstructor;
required: false;
default: boolean;
};
keyword: {
type: StringConstructor;
required: false;
};
nodeKey: {
type: StringConstructor;
required: false;
default: string;
};
}>> & {
onOnSelect?: ((...args: any[]) => any) | undefined;
}, {
defaultExpandAll: boolean;
nodeKey: string;
}>;
export default _sfc_main;
+1674
View File
File diff suppressed because it is too large Load Diff
+85
View File
@@ -0,0 +1,85 @@
import type { IDictTypes } from "./types";
declare const _sfc_main: import("vue").DefineComponent<{
title: {
type: StringConstructor;
required: true;
};
id: {
type: null;
required: true;
};
officeLevel: {
type: NumberConstructor;
required: false;
};
officeLevelData: {
type: ArrayConstructor;
required: true;
};
dictTypes: {
type: null;
required: false;
};
}, {
props: any;
DISTRICT: string;
OFFICE: string;
DISTRICTAREA: string;
dict: import("vue").ComputedRef<IDictTypes>;
iconClass: import("vue").ComputedRef<"icon-a-gonganjubeifen5" | "icon-gonganju" | "icon-a-bianzu171">;
Iconfont: import("vue").DefineComponent<{
class: {
type: StringConstructor;
required: false;
};
style: {
type: null;
required: false;
};
type: {
type: StringConstructor;
required: true;
};
}, {
props: any;
emit: (e: "click") => void;
iconClass: import("vue").ComputedRef<string>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
class: {
type: StringConstructor;
required: false;
};
style: {
type: null;
required: false;
};
type: {
type: StringConstructor;
required: true;
};
}>> & {
onClick?: ((...args: any[]) => any) | undefined;
}, {}>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
title: {
type: StringConstructor;
required: true;
};
id: {
type: null;
required: true;
};
officeLevel: {
type: NumberConstructor;
required: false;
};
officeLevelData: {
type: ArrayConstructor;
required: true;
};
dictTypes: {
type: null;
required: false;
};
}>>, {}>;
export default _sfc_main;
+1533
View File
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
/**
* 简单的"取值 -> 命中缓存"辅助类。
* 改造前它依赖 `funjialib`(需要内网 Git 凭据才能安装的私有包),现在用内置 isEmpty。
*/
export declare class Cache {
#private;
static get(key: number | undefined | any): any;
static set(key: number | undefined | any, value: string | any): void;
}
+23
View File
@@ -0,0 +1,23 @@
/**
* UmTree 组件族的公共类型。
*
* 改造前 `TNodeId` / `IUmTreeExpose` 这两个类型在 UmDistrictTree / UmDistrictTreeNode
* 里被直接引用,但全仓库没有任何一处定义它们 —— 属于"编译必报错"的状态
* (之所以一直没暴露,是因为入口 components/index.ts 没有把 UmTree 导出去)。
*/
import type { TreeKey } from "element-plus/es/components/tree/src/tree.type";
/** 树节点 id */
export type TNodeId = string | number;
/** UmTree 通过 defineExpose 暴露出来的方法 */
export interface IUmTreeExpose {
/** 设置选中的 keycheckbox 模式下为多选) */
setSelectKey: (v: TNodeId | TNodeId[]) => void;
}
/** 节点图标判定用到的字典编码 */
export interface IDictTypes {
/** 行政区域 */
district?: string;
/** 派出所 */
office?: string;
}
export type { TreeKey };