zjh-web-ui 1.0.10
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/README.md +1 -0
- package/config/resolver.js +21 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/AMapConfig.js +23 -0
- package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.js +82 -0
- package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue2.js +4 -0
- package/dist/components/HuiAMapMassMarkers/index.js +7 -0
- package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.js +7 -0
- package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue2.js +190 -0
- package/dist/components/HuiAMapSearchAddress/index.js +7 -0
- package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.js +83 -0
- package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue2.js +4 -0
- package/dist/components/HuiAMapSearchAddressDialog/index.js +7 -0
- package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.js +7 -0
- package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue2.js +178 -0
- package/dist/components/HuiAMapSelectAddress/index.js +7 -0
- package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.js +83 -0
- package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue2.js +4 -0
- package/dist/components/HuiAMapSelectAddressDialog/index.js +7 -0
- package/dist/components/HuiCountDownButton/HuiCountDownButton.vue.js +63 -0
- package/dist/components/HuiCountDownButton/HuiCountDownButton.vue2.js +4 -0
- package/dist/components/HuiCountDownButton/index.js +7 -0
- package/dist/components/HuiDataView/HuiDataView.vue.js +7 -0
- package/dist/components/HuiDataView/HuiDataView.vue2.js +84 -0
- package/dist/components/HuiDataView/index.js +7 -0
- package/dist/components/HuiGridForm/HuiGridForm.vue.js +7 -0
- package/dist/components/HuiGridForm/HuiGridForm.vue2.js +223 -0
- package/dist/components/HuiGridForm/HuiGridFormHooks.js +21 -0
- package/dist/components/HuiGridForm/index.js +7 -0
- package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue.js +7 -0
- package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue2.js +167 -0
- package/dist/components/HuiLineEditDialog/index.js +7 -0
- package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue.js +7 -0
- package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue2.js +128 -0
- package/dist/components/HuiLineEditPopover/index.js +7 -0
- package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.js +65 -0
- package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue2.js +4 -0
- package/dist/components/HuiPreviewRichTextDialog/index.js +7 -0
- package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.js +118 -0
- package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue2.js +4 -0
- package/dist/components/HuiRegionTreeDialog/index.js +7 -0
- package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.js +7 -0
- package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue2.js +59 -0
- package/dist/components/HuiRegionTreeSelect/index.js +7 -0
- package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.js +44 -0
- package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue2.js +4 -0
- package/dist/components/HuiSelectLoadStatus/index.js +7 -0
- package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.js +50 -0
- package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue2.js +4 -0
- package/dist/components/HuiShowUrlDialog/index.js +7 -0
- package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.js +118 -0
- package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue2.js +4 -0
- package/dist/components/HuiStringArrayInputDialog/index.js +7 -0
- package/dist/components/HuiTags/HuiTags.vue.js +7 -0
- package/dist/components/HuiTags/HuiTags.vue2.js +28 -0
- package/dist/components/HuiTags/index.js +7 -0
- package/dist/components/HuiTagsMore/HuiTagsMore.vue.js +188 -0
- package/dist/components/HuiTagsMore/HuiTagsMore.vue2.js +4 -0
- package/dist/components/HuiTagsMore/index.js +7 -0
- package/dist/components/HuiTinymce/HuiTinymce.vue.js +37 -0
- package/dist/components/HuiTinymce/HuiTinymce.vue3.js +5 -0
- package/dist/components/HuiTinymce/HuiTinymceLinkHooks.js +99 -0
- package/dist/components/HuiTinymce/HuiTinymceSettingHooks.js +104 -0
- package/dist/components/HuiTinymce/index.js +8 -0
- package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue.js +96 -0
- package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue2.js +4 -0
- package/dist/components/HuiTinymceDialog/index.js +7 -0
- package/dist/components/HuiTip/HuiTip.vue.js +52 -0
- package/dist/components/HuiTip/HuiTip.vue2.js +4 -0
- package/dist/components/HuiTip/index.js +7 -0
- package/dist/components-install-list.js +47 -0
- package/dist/delegate.js +13 -0
- package/dist/directives/install-loadmore.js +7 -0
- package/dist/directives/select-loadmore.js +25 -0
- package/dist/hooks/useHuiDialog/useHuiDialog.js +20 -0
- package/dist/hooks/useHuiFormDialog/formDialogPropsDef.js +6 -0
- package/dist/hooks/useHuiFormDialog/useHuiFormDialog.js +109 -0
- package/dist/index.js +62 -0
- package/dist/install-helper/install.js +21 -0
- package/dist/style.css +1 -0
- package/dist/utils/hui-rules.js +142 -0
- package/dist/utils/hui-tool/index.js +7 -0
- package/dist/utils/hui-tool/message-box/index.js +33 -0
- package/dist/utils/hui-tool/message-box/message-box.vue.js +112 -0
- package/dist/utils/hui-tool/message-box/message-box.vue3.js +5 -0
- package/dist/utils/hui-tool/msg-tool.js +39 -0
- package/global.d.ts +40 -0
- package/package.json +44 -0
- package/src/css/common-font.scss +104 -0
- package/src/css/index.scss +1 -0
- package/types/components/AMapConfig.d.ts +2 -0
- package/types/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.d.ts +105 -0
- package/types/components/HuiAMapMassMarkers/index.d.ts +107 -0
- package/types/components/HuiAMapMassMarkers/type.d.ts +58 -0
- package/types/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.d.ts +76 -0
- package/types/components/HuiAMapSearchAddress/index.d.ts +77 -0
- package/types/components/HuiAMapSearchAddress/type.d.ts +19 -0
- package/types/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.d.ts +38 -0
- package/types/components/HuiAMapSearchAddressDialog/index.d.ts +71 -0
- package/types/components/HuiAMapSearchAddressDialog/type.d.ts +17 -0
- package/types/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.d.ts +76 -0
- package/types/components/HuiAMapSelectAddress/index.d.ts +77 -0
- package/types/components/HuiAMapSelectAddress/type.d.ts +19 -0
- package/types/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.d.ts +38 -0
- package/types/components/HuiAMapSelectAddressDialog/index.d.ts +71 -0
- package/types/components/HuiAMapSelectAddressDialog/type.d.ts +17 -0
- package/types/components/HuiCountDownButton/HuiCountDownButton.vue.d.ts +44 -0
- package/types/components/HuiCountDownButton/index.d.ts +76 -0
- package/types/components/HuiCountDownButton/type.d.ts +20 -0
- package/types/components/HuiDataView/HuiDataView.vue.d.ts +60 -0
- package/types/components/HuiDataView/index.d.ts +109 -0
- package/types/components/HuiDataView/type.d.ts +49 -0
- package/types/components/HuiGridForm/HuiGridForm.vue.d.ts +77 -0
- package/types/components/HuiGridForm/HuiGridFormHooks.d.ts +4 -0
- package/types/components/HuiGridForm/index.d.ts +175 -0
- package/types/components/HuiGridForm/type.d.ts +67 -0
- package/types/components/HuiLineEditDialog/HuiLineEditDialog.vue.d.ts +75 -0
- package/types/components/HuiLineEditDialog/index.d.ts +173 -0
- package/types/components/HuiLineEditDialog/type.d.ts +86 -0
- package/types/components/HuiLineEditPopover/HuiLineEditPopover.vue.d.ts +74 -0
- package/types/components/HuiLineEditPopover/index.d.ts +133 -0
- package/types/components/HuiLineEditPopover/type.d.ts +23 -0
- package/types/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.d.ts +31 -0
- package/types/components/HuiPreviewRichTextDialog/index.d.ts +22 -0
- package/types/components/HuiPreviewRichTextDialog/type.d.ts +4 -0
- package/types/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.d.ts +53 -0
- package/types/components/HuiRegionTreeDialog/index.d.ts +68 -0
- package/types/components/HuiRegionTreeDialog/type.d.ts +24 -0
- package/types/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.d.ts +25 -0
- package/types/components/HuiRegionTreeSelect/index.d.ts +29 -0
- package/types/components/HuiRegionTreeSelect/type.d.ts +6 -0
- package/types/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.d.ts +14 -0
- package/types/components/HuiSelectLoadStatus/index.d.ts +33 -0
- package/types/components/HuiSelectLoadStatus/type.d.ts +11 -0
- package/types/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.d.ts +37 -0
- package/types/components/HuiShowUrlDialog/index.d.ts +40 -0
- package/types/components/HuiShowUrlDialog/type.d.ts +11 -0
- package/types/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.d.ts +44 -0
- package/types/components/HuiStringArrayInputDialog/index.d.ts +67 -0
- package/types/components/HuiStringArrayInputDialog/type.d.ts +33 -0
- package/types/components/HuiTags/HuiTags.vue.d.ts +37 -0
- package/types/components/HuiTags/index.d.ts +36 -0
- package/types/components/HuiTagsMore/HuiTagsMore.vue.d.ts +93 -0
- package/types/components/HuiTagsMore/index.d.ts +92 -0
- package/types/components/HuiTinymce/HuiTinymce.vue.d.ts +62 -0
- package/types/components/HuiTinymce/HuiTinymceLinkHooks.d.ts +3 -0
- package/types/components/HuiTinymce/HuiTinymceSettingHooks.d.ts +3 -0
- package/types/components/HuiTinymce/index.d.ts +66 -0
- package/types/components/HuiTinymce/type.d.ts +51 -0
- package/types/components/HuiTinymceDialog/HuiTinymceDialog.vue.d.ts +53 -0
- package/types/components/HuiTinymceDialog/index.d.ts +78 -0
- package/types/components/HuiTinymceDialog/type.d.ts +12 -0
- package/types/components/HuiTip/HuiTip.vue.d.ts +22 -0
- package/types/components/HuiTip/index.d.ts +99 -0
- package/types/components/HuiTip/type.d.ts +14 -0
- package/types/components-install-list.d.ts +3328 -0
- package/types/components.d.ts +21 -0
- package/types/delegate.d.ts +41 -0
- package/types/directives/index.d.ts +4 -0
- package/types/directives/install-loadmore.d.ts +7 -0
- package/types/directives/select-loadmore.d.ts +7 -0
- package/types/hooks/index.d.ts +3 -0
- package/types/hooks/useHuiDialog/useHuiDialog.d.ts +18 -0
- package/types/hooks/useHuiFormDialog/formDialogPropsDef.d.ts +3 -0
- package/types/hooks/useHuiFormDialog/type.d.ts +90 -0
- package/types/hooks/useHuiFormDialog/useHuiFormDialog.d.ts +32 -0
- package/types/index.d.ts +13 -0
- package/types/install-helper/install.d.ts +18 -0
- package/types/install-helper/typescript.d.ts +14 -0
- package/types/utils/hui-rules.d.ts +80 -0
- package/types/utils/hui-tool/index.d.ts +8 -0
- package/types/utils/hui-tool/message-box/index.d.ts +18 -0
- package/types/utils/hui-tool/message-box/message-box.vue.d.ts +36 -0
- package/types/utils/hui-tool/msg-tool.d.ts +26 -0
- package/types/utils/index.d.ts +2 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../install-helper/typescript';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { Arrayable } from 'element-plus/es/utils';
|
|
4
|
+
import { FormItemRule } from 'element-plus';
|
|
5
|
+
/**
|
|
6
|
+
* 逗号分割字符串输入对话框
|
|
7
|
+
*/
|
|
8
|
+
export declare const HuiStringArrayInputDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
9
|
+
label: {
|
|
10
|
+
type: PropType<string>;
|
|
11
|
+
required: true;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
title: {
|
|
15
|
+
type: PropType<string>;
|
|
16
|
+
required: true;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
rules: {
|
|
25
|
+
type: PropType<Arrayable<FormItemRule>>;
|
|
26
|
+
};
|
|
27
|
+
tips: {
|
|
28
|
+
type: PropType<boolean>;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
open: (dataId?: string, info?: {}) => void;
|
|
33
|
+
close: () => void;
|
|
34
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
35
|
+
onSubmit: (id: string, info: string) => void;
|
|
36
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
37
|
+
label: {
|
|
38
|
+
type: PropType<string>;
|
|
39
|
+
required: true;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
title: {
|
|
43
|
+
type: PropType<string>;
|
|
44
|
+
required: true;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
placeholder: {
|
|
48
|
+
type: PropType<string>;
|
|
49
|
+
required: true;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
rules: {
|
|
53
|
+
type: PropType<Arrayable<FormItemRule>>;
|
|
54
|
+
};
|
|
55
|
+
tips: {
|
|
56
|
+
type: PropType<boolean>;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
}>> & Readonly<{
|
|
60
|
+
onOnSubmit?: (id: string, info: string) => any;
|
|
61
|
+
}>, {
|
|
62
|
+
label: string;
|
|
63
|
+
title: string;
|
|
64
|
+
placeholder: string;
|
|
65
|
+
tips: boolean;
|
|
66
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
67
|
+
export default HuiStringArrayInputDialog;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FormItemRule, FormRules } from 'element-plus';
|
|
2
|
+
import { Arrayable } from 'element-plus/es/utils';
|
|
3
|
+
|
|
4
|
+
export interface HuiStringArrayInputDialogForm {
|
|
5
|
+
/** 输入框内容 */
|
|
6
|
+
inputInfo: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 输入框内容校验规则
|
|
10
|
+
*/
|
|
11
|
+
export type HuiStringArrayInputDialogRules = FormRules<HuiStringArrayInputDialogForm>;
|
|
12
|
+
/**
|
|
13
|
+
* 接受的 props
|
|
14
|
+
*/
|
|
15
|
+
export interface HuiStringArrayInputDialogPropsType {
|
|
16
|
+
/** dialog标题 */
|
|
17
|
+
title: string;
|
|
18
|
+
/** 输入框标题 */
|
|
19
|
+
label: string;
|
|
20
|
+
/** 输入框提示语 */
|
|
21
|
+
placeholder: string;
|
|
22
|
+
/** 输入框验证规则 */
|
|
23
|
+
rules?: Arrayable<FormItemRule>;
|
|
24
|
+
/** 是否显示提示语 */
|
|
25
|
+
tips?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 抛出的事件
|
|
29
|
+
*/
|
|
30
|
+
export type HuiStringArrayInputDialogEmitType = {
|
|
31
|
+
/** 确定按钮点击 */
|
|
32
|
+
onSubmit: [id: string, info: string];
|
|
33
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
interface TagProps {
|
|
3
|
+
/** 标签的文本内容 */
|
|
4
|
+
text: string;
|
|
5
|
+
/** 标签的类型 必须传这几个 */
|
|
6
|
+
tagType?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
7
|
+
/** 当类型的颜色不满足的时候可以传入标签的背景颜色 */
|
|
8
|
+
tagClass?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TagProps>, {
|
|
11
|
+
text: string;
|
|
12
|
+
tagType: string;
|
|
13
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TagProps>, {
|
|
14
|
+
text: string;
|
|
15
|
+
tagType: string;
|
|
16
|
+
}>>> & Readonly<{}>, {
|
|
17
|
+
text: string;
|
|
18
|
+
tagType: "info" | "success" | "warning" | "danger" | "primary";
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Prettify<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../install-helper/typescript';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* 标签
|
|
5
|
+
*/
|
|
6
|
+
export declare const HuiTags: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
7
|
+
text: {
|
|
8
|
+
type: PropType<string>;
|
|
9
|
+
required: true;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
tagType: {
|
|
13
|
+
type: PropType<"info" | "success" | "warning" | "danger" | "primary">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
tagClass: {
|
|
17
|
+
type: PropType<string>;
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
20
|
+
text: {
|
|
21
|
+
type: PropType<string>;
|
|
22
|
+
required: true;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
tagType: {
|
|
26
|
+
type: PropType<"info" | "success" | "warning" | "danger" | "primary">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
tagClass: {
|
|
30
|
+
type: PropType<string>;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{}>, {
|
|
33
|
+
text: string;
|
|
34
|
+
tagType: "info" | "success" | "warning" | "danger" | "primary";
|
|
35
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
36
|
+
export default HuiTags;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export interface TagItem {
|
|
3
|
+
k: string;
|
|
4
|
+
v: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
tip?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
9
|
+
tagsList: {
|
|
10
|
+
type: ArrayConstructor;
|
|
11
|
+
default: () => any[];
|
|
12
|
+
};
|
|
13
|
+
dictObj: {
|
|
14
|
+
type: () => TagItem;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
showTips: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
width: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
valueKey: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
labelKey: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
isElTag: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
elTagType: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
elTagAttr: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
46
|
+
tagsList: {
|
|
47
|
+
type: ArrayConstructor;
|
|
48
|
+
default: () => any[];
|
|
49
|
+
};
|
|
50
|
+
dictObj: {
|
|
51
|
+
type: () => TagItem;
|
|
52
|
+
default: () => void;
|
|
53
|
+
};
|
|
54
|
+
showTips: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
width: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
valueKey: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
labelKey: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
isElTag: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
elTagType: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
elTagAttr: {
|
|
79
|
+
type: ObjectConstructor;
|
|
80
|
+
default: () => {};
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{}>, {
|
|
83
|
+
width: number;
|
|
84
|
+
valueKey: string;
|
|
85
|
+
tagsList: unknown[];
|
|
86
|
+
dictObj: TagItem;
|
|
87
|
+
showTips: boolean;
|
|
88
|
+
labelKey: string;
|
|
89
|
+
isElTag: boolean;
|
|
90
|
+
elTagType: string;
|
|
91
|
+
elTagAttr: Record<string, any>;
|
|
92
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
93
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../install-helper/typescript';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { TagItem } from './HuiTagsMore.vue';
|
|
4
|
+
/**
|
|
5
|
+
* 标签
|
|
6
|
+
*/
|
|
7
|
+
export declare const HuiTagsMore: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
8
|
+
tagsList: {
|
|
9
|
+
type: ArrayConstructor;
|
|
10
|
+
default: () => any[];
|
|
11
|
+
};
|
|
12
|
+
dictObj: {
|
|
13
|
+
type: () => TagItem;
|
|
14
|
+
default: () => void;
|
|
15
|
+
};
|
|
16
|
+
showTips: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
width: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
valueKey: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
labelKey: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
isElTag: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
elTagType: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
elTagAttr: {
|
|
41
|
+
type: ObjectConstructor;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
45
|
+
tagsList: {
|
|
46
|
+
type: ArrayConstructor;
|
|
47
|
+
default: () => any[];
|
|
48
|
+
};
|
|
49
|
+
dictObj: {
|
|
50
|
+
type: () => TagItem;
|
|
51
|
+
default: () => void;
|
|
52
|
+
};
|
|
53
|
+
showTips: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
width: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
valueKey: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
labelKey: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
isElTag: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
elTagType: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
elTagAttr: {
|
|
78
|
+
type: ObjectConstructor;
|
|
79
|
+
default: () => {};
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{}>, {
|
|
82
|
+
width: number;
|
|
83
|
+
valueKey: string;
|
|
84
|
+
tagsList: unknown[];
|
|
85
|
+
dictObj: TagItem;
|
|
86
|
+
showTips: boolean;
|
|
87
|
+
labelKey: string;
|
|
88
|
+
isElTag: boolean;
|
|
89
|
+
elTagType: string;
|
|
90
|
+
elTagAttr: Record<string, any>;
|
|
91
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
92
|
+
export default HuiTagsMore;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { HuiTinymceLink } from './type';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
modelValue: PropType<string>;
|
|
5
|
+
width: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
height: {
|
|
11
|
+
type: PropType<string | number>;
|
|
12
|
+
required: true;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
permission: {
|
|
16
|
+
type: PropType<{
|
|
17
|
+
code?: "";
|
|
18
|
+
checkRight?: () => boolean;
|
|
19
|
+
tip?: string;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
linkAttribute: {
|
|
23
|
+
type: PropType< HuiTinymceLink[]>;
|
|
24
|
+
required: true;
|
|
25
|
+
default: () => {
|
|
26
|
+
title: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
31
|
+
modelValue: PropType<string>;
|
|
32
|
+
width: {
|
|
33
|
+
type: PropType<string>;
|
|
34
|
+
required: true;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
height: {
|
|
38
|
+
type: PropType<string | number>;
|
|
39
|
+
required: true;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
permission: {
|
|
43
|
+
type: PropType<{
|
|
44
|
+
code?: "";
|
|
45
|
+
checkRight?: () => boolean;
|
|
46
|
+
tip?: string;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
linkAttribute: {
|
|
50
|
+
type: PropType< HuiTinymceLink[]>;
|
|
51
|
+
required: true;
|
|
52
|
+
default: () => {
|
|
53
|
+
title: string;
|
|
54
|
+
value: string;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {
|
|
58
|
+
width: string;
|
|
59
|
+
height: string | number;
|
|
60
|
+
linkAttribute: HuiTinymceLink[];
|
|
61
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../install-helper/typescript';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { HuiTinymceLink } from './type';
|
|
4
|
+
/**
|
|
5
|
+
* 富文本编辑弹窗
|
|
6
|
+
*/
|
|
7
|
+
export declare const HuiTinymce: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
8
|
+
modelValue: PropType<string>;
|
|
9
|
+
width: {
|
|
10
|
+
type: PropType<string>;
|
|
11
|
+
required: true;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
height: {
|
|
15
|
+
type: PropType<string | number>;
|
|
16
|
+
required: true;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
permission: {
|
|
20
|
+
type: PropType<{
|
|
21
|
+
code?: "";
|
|
22
|
+
checkRight?: () => boolean;
|
|
23
|
+
tip?: string;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
26
|
+
linkAttribute: {
|
|
27
|
+
type: PropType< HuiTinymceLink[]>;
|
|
28
|
+
required: true;
|
|
29
|
+
default: () => {
|
|
30
|
+
title: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
35
|
+
modelValue: PropType<string>;
|
|
36
|
+
width: {
|
|
37
|
+
type: PropType<string>;
|
|
38
|
+
required: true;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
height: {
|
|
42
|
+
type: PropType<string | number>;
|
|
43
|
+
required: true;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
permission: {
|
|
47
|
+
type: PropType<{
|
|
48
|
+
code?: "";
|
|
49
|
+
checkRight?: () => boolean;
|
|
50
|
+
tip?: string;
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
linkAttribute: {
|
|
54
|
+
type: PropType< HuiTinymceLink[]>;
|
|
55
|
+
required: true;
|
|
56
|
+
default: () => {
|
|
57
|
+
title: string;
|
|
58
|
+
value: string;
|
|
59
|
+
}[];
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
width: string;
|
|
63
|
+
height: string | number;
|
|
64
|
+
linkAttribute: HuiTinymceLink[];
|
|
65
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
66
|
+
export default HuiTinymce;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 链接支持的属性
|
|
5
|
+
*/
|
|
6
|
+
export interface HuiTinymceLink {
|
|
7
|
+
/** 链接标题 */
|
|
8
|
+
title: string;
|
|
9
|
+
/** 链接对象的key */
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* HuiTinymce 需要的props参数
|
|
14
|
+
*/
|
|
15
|
+
export interface HuiTinymcePropsType {
|
|
16
|
+
/** 宽度 */
|
|
17
|
+
width: string;
|
|
18
|
+
/** 高度 */
|
|
19
|
+
height: string | number;
|
|
20
|
+
/**
|
|
21
|
+
* 链接属性
|
|
22
|
+
* linkAttribute 接收参数的value可以是一个单词,如果是两个单词及以上组成必须用_连接(例:mp_appid)不能使用驼峰
|
|
23
|
+
*/
|
|
24
|
+
linkAttribute: HuiTinymceLink[];
|
|
25
|
+
permission?: {
|
|
26
|
+
code?: '';
|
|
27
|
+
checkRight?: () => boolean;
|
|
28
|
+
tip?: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface HuiTinymcehooksPayloadBase {
|
|
32
|
+
/** props参数 */
|
|
33
|
+
props: HuiTinymcePropsType;
|
|
34
|
+
/** 链接配置方法 */
|
|
35
|
+
linkSetup(editor: any): void;
|
|
36
|
+
/** 链接属性 */
|
|
37
|
+
linkExpandAttributeStr: ComputedRef<string>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* HuiTinymceSettingHooks 函数
|
|
41
|
+
*/
|
|
42
|
+
export type HuiTinymceSettingHooksType = (settingPayload: HuiTinymcehooksPayloadBase) => {
|
|
43
|
+
/** 配置项 */
|
|
44
|
+
setting: {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* HuiTinymceLinkHooks 函数
|
|
50
|
+
*/
|
|
51
|
+
export type HuiTinymceLinkHooksType = (linkPayload: Pick<HuiTinymcehooksPayloadBase, 'props'>) => Omit<HuiTinymcehooksPayloadBase, 'props'>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
import { HuiTinymcePropsType, HuiTinymceLink } from '../HuiTinymce/type';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps< HuiTinymcePropsType>, {
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
linkAttribute: () => {
|
|
7
|
+
title: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[];
|
|
10
|
+
permission: () => {};
|
|
11
|
+
}>>, {
|
|
12
|
+
open: (dataId?: string, info?: {}) => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
onSubmit: (tinymceContent: string, row?: any, field?: string) => void;
|
|
16
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps< HuiTinymcePropsType>, {
|
|
17
|
+
width: string;
|
|
18
|
+
height: string;
|
|
19
|
+
linkAttribute: () => {
|
|
20
|
+
title: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
permission: () => {};
|
|
24
|
+
}>>> & Readonly<{
|
|
25
|
+
onOnSubmit?: (tinymceContent: string, row?: any, field?: string) => any;
|
|
26
|
+
}>, {
|
|
27
|
+
width: string;
|
|
28
|
+
height: string | number;
|
|
29
|
+
permission: {
|
|
30
|
+
code?: "";
|
|
31
|
+
checkRight?: () => boolean;
|
|
32
|
+
tip?: string;
|
|
33
|
+
};
|
|
34
|
+
linkAttribute: HuiTinymceLink[];
|
|
35
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
|
+
default: D[K];
|
|
49
|
+
}> : P[K];
|
|
50
|
+
};
|
|
51
|
+
type __VLS_Prettify<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../install-helper/typescript';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { HuiTinymceLink } from '../HuiTinymce/type';
|
|
4
|
+
/**
|
|
5
|
+
* 富文本编辑弹窗
|
|
6
|
+
*/
|
|
7
|
+
export declare const HuiTinymceDialog: SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
8
|
+
width: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
required: true;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
height: {
|
|
14
|
+
type: PropType<string | number>;
|
|
15
|
+
required: true;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
permission: {
|
|
19
|
+
type: PropType<{
|
|
20
|
+
code?: "";
|
|
21
|
+
checkRight?: () => boolean;
|
|
22
|
+
tip?: string;
|
|
23
|
+
}>;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
linkAttribute: {
|
|
27
|
+
type: PropType< HuiTinymceLink[]>;
|
|
28
|
+
required: true;
|
|
29
|
+
default: () => {
|
|
30
|
+
title: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
}>, {
|
|
35
|
+
open: (dataId?: string, info?: {}) => void;
|
|
36
|
+
close: () => void;
|
|
37
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
38
|
+
onSubmit: (tinymceContent: string, row?: any, field?: string) => void;
|
|
39
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
40
|
+
width: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
required: true;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
height: {
|
|
46
|
+
type: PropType<string | number>;
|
|
47
|
+
required: true;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
permission: {
|
|
51
|
+
type: PropType<{
|
|
52
|
+
code?: "";
|
|
53
|
+
checkRight?: () => boolean;
|
|
54
|
+
tip?: string;
|
|
55
|
+
}>;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
|
+
linkAttribute: {
|
|
59
|
+
type: PropType< HuiTinymceLink[]>;
|
|
60
|
+
required: true;
|
|
61
|
+
default: () => {
|
|
62
|
+
title: string;
|
|
63
|
+
value: string;
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{
|
|
67
|
+
onOnSubmit?: (tinymceContent: string, row?: any, field?: string) => any;
|
|
68
|
+
}>, {
|
|
69
|
+
width: string;
|
|
70
|
+
height: string | number;
|
|
71
|
+
permission: {
|
|
72
|
+
code?: "";
|
|
73
|
+
checkRight?: () => boolean;
|
|
74
|
+
tip?: string;
|
|
75
|
+
};
|
|
76
|
+
linkAttribute: HuiTinymceLink[];
|
|
77
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
78
|
+
export default HuiTinymceDialog;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HuiTinymcePropsType } from '../HuiTinymce/type';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* HuiTinymceDialogPropsType 需要的props参数
|
|
5
|
+
*/
|
|
6
|
+
export type HuiTinymceDialogPropsType = HuiTinymcePropsType;
|
|
7
|
+
/**
|
|
8
|
+
* HuiTinymceDialog emit事件
|
|
9
|
+
*/
|
|
10
|
+
export type HuiTinymceDialogEmitType = {
|
|
11
|
+
onSubmit: [tinymceContent: string, row?: any, field?: string];
|
|
12
|
+
};
|