@xdmp-open/ui-shared 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/controls/registry.d.ts +15 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +715 -666
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LCDP / SearchForm 控件注册表:独立 controlType ↔ 既有 formItem element。
|
|
3
|
+
* 新增控件优先 registerControl,避免继续堆 formItem v-if。
|
|
4
|
+
*/
|
|
5
|
+
export type LcdpControlType = 'INPUT' | 'TEXTAREA' | 'NUMBER' | 'SELECT' | 'DATE' | 'SWITCH' | 'TREE_SELECT';
|
|
6
|
+
export type ControlDescriptor = {
|
|
7
|
+
/** 兼容 SearchForm formItem 的 element 值 */
|
|
8
|
+
element: string;
|
|
9
|
+
/** 额外默认 props(如 textarea) */
|
|
10
|
+
defaultProps?: Record<string, unknown>;
|
|
11
|
+
};
|
|
12
|
+
export declare function registerControl(controlType: string, descriptor: ControlDescriptor): void;
|
|
13
|
+
export declare function resolveControl(controlTypeOrElement: string | undefined | null): ControlDescriptor | null;
|
|
14
|
+
export declare function listControlTypes(): LcdpControlType[];
|
|
15
|
+
export declare function controlTypeToElement(controlType: string): string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,12 +31,14 @@ import { isExternal, validPassword, validMoblie, validInputLength, validSpecialN
|
|
|
31
31
|
import { debounce } from './utils/debounce';
|
|
32
32
|
import { Encrypt } from './utils/encrypt';
|
|
33
33
|
import { isDevRuntime, isRetainFieldDisabled, isRetainYes, RETAIN_INDEX, RETAIN_MSG_DELETE, RETAIN_MSG_DISABLE, RETAIN_MSG_UPDATE, YES_OR_NO_YES, RetainEntityMeta, RetainFieldMeta, RetainUpdateStrategy } from './utils/retain';
|
|
34
|
+
import { registerControl, resolveControl, listControlTypes, controlTypeToElement } from './controls/registry';
|
|
35
|
+
export type { LcdpControlType, ControlDescriptor } from './controls/registry';
|
|
34
36
|
/**
|
|
35
37
|
* 插件入口:全局注册全部组件与 emoji/highlight 指令。
|
|
36
38
|
* v-permission 指令需单独调用 setupPermissionDirective 注入判定函数后注册。
|
|
37
39
|
*/
|
|
38
40
|
declare function install(app: App): void;
|
|
39
|
-
export { UiapDrawer, SearchForm, Pagination, TreeSelect, MultipleTree, BackPage, PageDataInfo, PageDecs, PageMoreDataInfo, IconSelect, SvgIcon, KeyboardChart, LineMarkerChart, MixChart, ChartComponent, VueCountTo, ScaleSrceen, AvatarUpload, FileUpload, chartResizeMixin, setupBinaryApi, getBinaryResource, binaryUpload, binaryDownloadBlob, emoji, highlight, createPermissionDirective, setupPermissionDirective, registerSvgIcons, getSvgIconNames, isRegisteredSvgIcon, useIcons, $on, $off, $once, $emit, scrollTo, isExternal, validPassword, validMoblie, validInputLength, validSpecialName, validLegalInput, validBitMapString, validEnumString, isInteger, debounce, Encrypt, isRetainYes, isRetainFieldDisabled, isDevRuntime, RETAIN_INDEX, RETAIN_MSG_DELETE, RETAIN_MSG_DISABLE, RETAIN_MSG_UPDATE, YES_OR_NO_YES, install };
|
|
41
|
+
export { UiapDrawer, SearchForm, Pagination, TreeSelect, MultipleTree, BackPage, PageDataInfo, PageDecs, PageMoreDataInfo, IconSelect, SvgIcon, KeyboardChart, LineMarkerChart, MixChart, ChartComponent, VueCountTo, ScaleSrceen, AvatarUpload, FileUpload, chartResizeMixin, setupBinaryApi, getBinaryResource, binaryUpload, binaryDownloadBlob, emoji, highlight, createPermissionDirective, setupPermissionDirective, registerSvgIcons, getSvgIconNames, isRegisteredSvgIcon, useIcons, $on, $off, $once, $emit, scrollTo, isExternal, validPassword, validMoblie, validInputLength, validSpecialName, validLegalInput, validBitMapString, validEnumString, isInteger, debounce, Encrypt, isRetainYes, isRetainFieldDisabled, isDevRuntime, RETAIN_INDEX, RETAIN_MSG_DELETE, RETAIN_MSG_DISABLE, RETAIN_MSG_UPDATE, YES_OR_NO_YES, registerControl, resolveControl, listControlTypes, controlTypeToElement, install };
|
|
40
42
|
export type { HasPermissionFn, BinaryUploadQuery, RetainEntityMeta, RetainFieldMeta, RetainUpdateStrategy };
|
|
41
43
|
declare const _default: {
|
|
42
44
|
install: typeof install;
|