@xdmp-open/ui-shared 0.1.5 → 0.1.6
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 +6 -0
- package/README.md +3 -3
- package/dist/components/PlaceholderPage/index.vue.d.ts +42 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +504 -485
- package/dist/style.css +1 -1
- package/package.json +3 -2
- /package/dist/components/{UiapDrawer → XdmpDrawer}/index.vue.d.ts +0 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -48,18 +48,18 @@ setupBinaryApi(sdkClient)
|
|
|
48
48
|
也可按需单组件引入:
|
|
49
49
|
|
|
50
50
|
```ts
|
|
51
|
-
import { Pagination,
|
|
51
|
+
import { Pagination, XdmpDrawer } from '@xdmp-open/ui-shared'
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
> 注意:组件不再依赖宿主全局注册 element-plus 组件;但 `PageDecs` 等模板中的
|
|
55
|
-
> `
|
|
55
|
+
> `xdmp-icon-*`/`el-icon-xdmp-*` 图标字体 class、`SvgIcon` 的 SVG sprite(`#icon-*`)
|
|
56
56
|
> 仍由宿主应用提供(与原实现一致)。
|
|
57
57
|
|
|
58
58
|
## 组件清单
|
|
59
59
|
|
|
60
60
|
| 导出名 | 来源(应用壳) | 说明 |
|
|
61
61
|
| --- | --- | --- |
|
|
62
|
-
| `
|
|
62
|
+
| `XdmpDrawer` | `components/xdmpDrawer` | 抽屉容器(el-drawer 封装,footer 取消/确定) |
|
|
63
63
|
| `SearchForm` | `components/SearchForm` | 配置式搜索表单(内部依赖 `MultipleTree`) |
|
|
64
64
|
| `Pagination` | `components/Pagination` | 分页(el-pagination 封装,含 scrollTo) |
|
|
65
65
|
| `TreeSelect` | `components/TreeSelect` | 树下拉选择 |
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** 菜单已下发但宿主还没有对应页面时的占位。标题取路由 meta.title。 */
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {
|
|
3
|
+
description(this: {
|
|
4
|
+
$route?: {
|
|
5
|
+
meta?: {
|
|
6
|
+
title?: unknown;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
}): string;
|
|
10
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
11
|
+
ElEmpty: import('element-plus/es/utils/vue/typescript.mjs').SFCWithInstall<{
|
|
12
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').EmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
13
|
+
description: string;
|
|
14
|
+
image: string;
|
|
15
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
16
|
+
P: {};
|
|
17
|
+
B: {};
|
|
18
|
+
D: {};
|
|
19
|
+
C: {};
|
|
20
|
+
M: {};
|
|
21
|
+
Defaults: {};
|
|
22
|
+
}, Readonly<import('element-plus').EmptyProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
23
|
+
description: string;
|
|
24
|
+
image: string;
|
|
25
|
+
}>;
|
|
26
|
+
__isFragment?: never;
|
|
27
|
+
__isTeleport?: never;
|
|
28
|
+
__isSuspense?: never;
|
|
29
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').EmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
30
|
+
description: string;
|
|
31
|
+
image: string;
|
|
32
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
33
|
+
$slots: {
|
|
34
|
+
image?: (props: {}) => any;
|
|
35
|
+
} & {
|
|
36
|
+
description?: (props: {}) => any;
|
|
37
|
+
} & {
|
|
38
|
+
default?: (props: {}) => any;
|
|
39
|
+
};
|
|
40
|
+
})>;
|
|
41
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as XdmpDrawer } from './components/XdmpDrawer/index.vue';
|
|
3
3
|
import { default as SearchForm } from './components/SearchForm/index.vue';
|
|
4
4
|
import { default as Pagination } from './components/Pagination/index.vue';
|
|
5
5
|
import { default as TreeSelect } from './components/TreeSelect/index.vue';
|
|
@@ -18,6 +18,7 @@ import { default as VueCountTo } from './components/VueCountTo/index.vue';
|
|
|
18
18
|
import { default as ScaleSrceen } from './components/ScaleSrceen/index.vue';
|
|
19
19
|
import { default as AvatarUpload } from './components/AvatarUpload/index.vue';
|
|
20
20
|
import { default as FileUpload } from './components/FileUpload/index.vue';
|
|
21
|
+
import { default as PlaceholderPage } from './components/PlaceholderPage/index.vue';
|
|
21
22
|
import { default as chartResizeMixin } from './components/Charts/mixins/resize';
|
|
22
23
|
import { emoji } from './directives/emoji';
|
|
23
24
|
import { highlight } from './directives/highlight';
|
|
@@ -40,7 +41,7 @@ export type { LcdpControlType, ControlDescriptor } from './controls/registry';
|
|
|
40
41
|
* v-permission 指令需单独调用 setupPermissionDirective 注入判定函数后注册。
|
|
41
42
|
*/
|
|
42
43
|
declare function install(app: App): void;
|
|
43
|
-
export {
|
|
44
|
+
export { XdmpDrawer, SearchForm, Pagination, TreeSelect, MultipleTree, BackPage, PageDataInfo, PageDecs, PageMoreDataInfo, IconSelect, SvgIcon, KeyboardChart, LineMarkerChart, MixChart, ChartComponent, VueCountTo, ScaleSrceen, AvatarUpload, FileUpload, PlaceholderPage, 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, TOKEN_NAMES, TOKEN_NEUTRAL_FALLBACKS, install };
|
|
44
45
|
export type { HasPermissionFn, BinaryUploadQuery, RetainEntityMeta, RetainFieldMeta, RetainUpdateStrategy };
|
|
45
46
|
declare const _default: {
|
|
46
47
|
install: typeof install;
|