yc-vep-ui 0.0.40 → 0.0.45

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,13 +1,11 @@
1
- import type { DescriptionProps } from 'element-plus'
2
-
3
1
  export interface IDescriptionsField<T> {
4
2
  label: string
5
3
  prop: keyof T
6
- render?: (props: IDescriptionsRenderProps) => VNode | string | number
4
+ render?: (props: any) => any
7
5
  span?: number
8
6
  }
9
7
 
10
- export interface IDescriptionsProps<T> extends DescriptionProps<T> {
8
+ export interface IDescriptionsProps<T> {
11
9
  data: T
12
10
  fields: IDescriptionsField<T>[]
13
11
  column?: number
@@ -1,4 +1,4 @@
1
- import { IFormProps, IFormInstance } from '../type';
1
+ import { IFormProps, IFormInstance } from './type';
2
2
  declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onReset?: ((...args: any[]) => any) | undefined;
@@ -1,4 +1,3 @@
1
- import type { FormInstance } from 'element-plus'
2
1
  import type { IField } from '../Filter/type'
3
2
 
4
3
  export interface IFormProps<T> {
@@ -28,6 +27,6 @@ export interface IFormInstance {
28
27
  getValues: () => Reactive<Record<string, any>>
29
28
  setValues: (values: Record<string, any>) => void
30
29
  clearValidate: () => void
31
- onSubmit: (el: FormInstance) => void
30
+ onSubmit: (el: any) => void
32
31
  validate: () => Promise<any>
33
32
  }
@@ -1,7 +1,6 @@
1
- import type { TreeNodeData } from 'element-plus'
2
1
  export interface ITreeProps {
3
2
  id?: string
4
- data: TreeNodeData[]
3
+ data: any[]
5
4
  filterable?: boolean
6
5
  placeholder?: string
7
6
  /** 因此添加操作节点 */
@@ -1,10 +1,9 @@
1
- import { default as UiCard } from './Card/index.vue';
2
- import { default as UiTable } from './Table/index.vue';
3
- import { default as UiFilter } from './Filter/index.vue';
4
- import { default as UiForm } from './Form/index.vue';
5
- import { default as UiEditor } from './Editor/index.vue';
6
- import { default as UiTree } from './Tree/index.vue';
7
- import { default as UiInfiniteScroll } from './InfiniteScroll/index.vue';
8
- import { default as UiDescriptions } from './Descriptions/index.vue';
9
- import { default as UiDialog } from './Dialog/index.vue';
10
- export { UiCard, UiTable, UiFilter, UiForm, UiEditor, UiTree, UiInfiniteScroll, UiDescriptions, UiDialog };
1
+ export { default as UiCard } from './Card/index.vue';
2
+ export { default as UiTable } from './Table/index.vue';
3
+ export { default as UiFilter } from './Filter/index.vue';
4
+ export { default as UiForm } from './Form/index.vue';
5
+ export { default as UiEditor } from './Editor/index.vue';
6
+ export { default as UiTree } from './Tree/index.vue';
7
+ export { default as UiInfiniteScroll } from './InfiniteScroll/index.vue';
8
+ export { default as UiDescriptions } from './Descriptions/index.vue';
9
+ export { default as UiDialog } from './Dialog/index.vue';
@@ -0,0 +1,30 @@
1
+ export declare const El: {
2
+ readonly Button: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
3
+ readonly Link: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
4
+ readonly Tag: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
5
+ readonly Select: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
6
+ readonly DatePicker: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
7
+ readonly Input: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
8
+ readonly InputTag: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
9
+ readonly TimeSelect: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
10
+ readonly InputNumber: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
11
+ readonly RadioGroup: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
12
+ readonly Text: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
13
+ readonly Card: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
14
+ readonly Table: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
15
+ readonly TableColumn: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
16
+ readonly Pagination: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
17
+ readonly Form: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
18
+ readonly FormItem: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
19
+ readonly Row: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
20
+ readonly Col: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
21
+ readonly Icon: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
22
+ readonly TreeV2: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
23
+ readonly Dropdown: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
24
+ readonly DropdownMenu: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
25
+ readonly DropdownItem: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
26
+ readonly Dialog: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
27
+ readonly ButtonGroup: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
28
+ readonly Descriptions: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
29
+ readonly DescriptionsItem: string | import('vue').ConcreteComponent<{}, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
30
+ };
@@ -1,4 +1,15 @@
1
- import { LinkProps, TagProps, SwitchProps, SelectProps, DatePickerProps, InputProps, InputTagProps, TimeSelectProps, ButtonProps, InputNumberProps, RadioGroupProps, TextProps } from 'element-plus';
1
+ type ButtonProps = any;
2
+ type LinkProps = any;
3
+ type TagProps = any;
4
+ type SwitchProps = any;
5
+ type SelectProps = any;
6
+ type DatePickerProps = any;
7
+ type InputProps = any;
8
+ type InputTagProps = any;
9
+ type TimeSelectProps = any;
10
+ type InputNumberProps = any;
11
+ type RadioGroupProps = any;
12
+ type TextProps = any;
2
13
  declare function button(props: ButtonProps | ButtonProps[]): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
3
14
  [key: string]: any;
4
15
  }>;
package/dist/entry.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- export * from 'element-plus'
2
- export { YcButton, YcCard, YcDialog, YcForm, YcFormItem, YcInput, YcSelect, YcTable, YcTableColumn, YcTag, YcMessage, YcMessageBox, YcNotification } from './vep-ui.es.js'
3
- export type { IProp } from './components/type'
1
+ import type { App } from 'vue'
2
+ export type * from './components/type'
4
3
  export type { IColumn, ITableProps, ITableInstance, IRender, IRenderProps, IExtra, IColumnRenderProps } from './components/Table/type'
5
4
  export type { IField, IFilterProps, IFieldSlot, IFilterRenderProps } from './components/Filter/type'
6
5
  export type { IFormProps, IFormInstance } from './components/Form/type'
@@ -9,3 +8,7 @@ export type { ITreeProps } from './components/Tree/type'
9
8
  export type { IInfiniteScrollProps } from './components/InfiniteScroll/type'
10
9
  export type { IEditorProps } from './components/Editor/type'
11
10
  export type { ICardProps } from './components/Card/type'
11
+ export * from './components'
12
+ declare const ycPlugin: { install(app: App): Promise<void> }
13
+ export default ycPlugin
14
+ export { ycPlugin }