@zyui/components 0.0.36 → 0.0.38

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.
@@ -1,9 +1,11 @@
1
1
  export declare const flowPropsKey: unique symbol;
2
2
  type FlowPropsContext = {
3
3
  nodeTypes: any[];
4
+ mode: string;
4
5
  };
5
- export declare function provideFlowProps({ nodeTypes }: {
6
+ export declare function provideFlowProps({ nodeTypes, mode }: {
6
7
  nodeTypes: any;
8
+ mode: any;
7
9
  }): FlowPropsContext;
8
10
  export declare function useFlowProps(): FlowPropsContext;
9
11
  export {};
@@ -1 +1,2 @@
1
1
  export { default as FormFlow } from './index.vue';
2
+ export { default as FormFlowPreview } from './Preview.vue';
@@ -16,7 +16,7 @@ export type InputType = string;
16
16
  export type NodesGroups = {
17
17
  id: string;
18
18
  color: string;
19
- activated?: Boolean;
19
+ activated?: boolean;
20
20
  nodes: NodeItem[];
21
21
  };
22
22
  export type NodeItem = {
@@ -32,7 +32,7 @@ export type NodeItem = {
32
32
  [key: string]: any;
33
33
  };
34
34
  export type MenuAction = 'copy' | 'paste' | 'delete';
35
- export type RenderType = 'edit' | 'select' | 'enter' | 'result';
35
+ export type RenderType = 'edit' | 'select' | 'enter' | 'preview';
36
36
  export type SelectNodesMode = 'single' | 'multiple' | 'multiple-row';
37
37
  export type WrappedNode = NodeItem & {
38
38
  element: HTMLElement | null;
@@ -3,9 +3,43 @@ declare function __VLS_template(): {
3
3
  };
4
4
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  modelValue: import('vue').PropType<any>;
6
+ /** 默认显示的内容,是否简写 */
7
+ isAbbr: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ /** 默认显示的内容,最大展示数量 */
12
+ showCount: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ /** 是否多选 */
17
+ multiple: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
6
21
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
22
  modelValue: import('vue').PropType<any>;
8
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
+ /** 默认显示的内容,是否简写 */
24
+ isAbbr: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ /** 默认显示的内容,最大展示数量 */
29
+ showCount: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ /** 是否多选 */
34
+ multiple: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }>> & Readonly<{}>, {
39
+ isAbbr: boolean;
40
+ showCount: number;
41
+ multiple: boolean;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
43
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
44
  export default _default;
11
45
  type __VLS_WithTemplateSlots<T, S> = T & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -1 +0,0 @@
1
- export { default as ProEditor } from './index.vue';
@@ -1,45 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- modelValue: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- }>, {}, {
7
- init: {
8
- height: number;
9
- promotion: boolean;
10
- menubar: boolean;
11
- branding: boolean;
12
- language: string;
13
- setup: (editor: any) => void;
14
- plugins: never[];
15
- };
16
- }, {
17
- content: {
18
- get(): string;
19
- set(value: any): void;
20
- };
21
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
- modelValue: {
23
- type: StringConstructor;
24
- required: true;
25
- };
26
- }>> & Readonly<{}>, {}, {}, {
27
- Editor: import('vue').DefineComponent<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').CopyProps<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').IPropTypes>, () => any, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').CopyProps<import('@tinymce/tinymce-vue/lib/cjs/main/ts/components/EditorPropTypes').IPropTypes>>>, {
28
- init: any;
29
- apiKey: any;
30
- licenseKey: any;
31
- cloudChannel: any;
32
- id: any;
33
- initialValue: any;
34
- outputFormat: any;
35
- inline: any;
36
- modelEvents: any;
37
- plugins: any;
38
- tagName: any;
39
- toolbar: any;
40
- modelValue: any;
41
- disabled: any;
42
- tinymceScriptSrc: any;
43
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
44
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
- export default _default;
@@ -1,6 +0,0 @@
1
- /**
2
- * 模拟获取环境监测数据列表的接口
3
- * @param searchText 搜索关键词
4
- * @returns Promise<{text: string; value: string}[]> 返回符合TinyMCE自动完成器要求的数据格式
5
- */
6
- export declare const getUserList: (searchText: string) => Promise<any[]>;
@@ -1,6 +0,0 @@
1
- export interface MentionPluginOptions {
2
- trigger?: string;
3
- minChars?: number;
4
- columns?: number;
5
- }
6
- export declare const mentionPlugin: (options?: MentionPluginOptions) => (editor: any) => void;
@@ -1,4 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- open: (data: any) => void;
3
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
- export default _default;
@@ -1,17 +0,0 @@
1
- import { FormItemOptions } from '../type';
2
-
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
- options: FormItemOptions;
5
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- options: FormItemOptions;
7
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
- export default _default;
9
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
- type __VLS_TypePropsToRuntimeProps<T> = {
11
- [K in keyof T]-?: {} extends Pick<T, K> ? {
12
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
- } : {
14
- type: import('vue').PropType<T[K]>;
15
- required: true;
16
- };
17
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * 模拟获取环境监测数据列表的接口
3
- * @param searchText 搜索关键词
4
- * @returns Promise<{text: string; value: string}[]> 返回符合TinyMCE自动完成器要求的数据格式
5
- */
6
- export declare const getUserList: (searchText: string) => Promise<any[]>;
@@ -1,8 +0,0 @@
1
- import { Editor } from 'tinymce/tinymce';
2
-
3
- export interface MentionPluginOptions {
4
- trigger?: string;
5
- minChars?: number;
6
- columns?: number;
7
- }
8
- export declare const mentionPlugin: (options?: MentionPluginOptions) => (editor: Editor) => void;