yc-vep-ui 0.3.79 → 0.3.80

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.
@@ -2590,13 +2590,13 @@ function useDefaultTable(e, n) {
2590
2590
  }), o = ref([]), s = reactive({
2591
2591
  page: 1,
2592
2592
  pageSize: 10
2593
- });
2593
+ }), c = null;
2594
2594
  if (n?.onBefore?.(s) === !1) return {
2595
2595
  loading: ref(!1),
2596
2596
  data: i,
2597
2597
  pagination: a
2598
2598
  };
2599
- let c = useFetch(e, {
2599
+ let l = useFetch(e, {
2600
2600
  ...n,
2601
2601
  defaultParams: s,
2602
2602
  immediate: !1,
@@ -2606,11 +2606,18 @@ function useDefaultTable(e, n) {
2606
2606
  });
2607
2607
  watchEffect(() => {
2608
2608
  let e = toValue(n.ready) ?? !0, r = toValue(n.defaultParams || {});
2609
- a.page = 1, a.pageSize = 10;
2609
+ if (a.page = 1, a.pageSize = 10, !e) {
2610
+ c = { ...r };
2611
+ return;
2612
+ }
2613
+ if (c) {
2614
+ for (let e in c) e !== "page" && e !== "pageSize" && (s[e] = c[e]);
2615
+ c = null;
2616
+ }
2610
2617
  for (let e in r) e !== "page" && e !== "pageSize" && (s[e] = r[e]);
2611
- e && c.execute({ ...s });
2612
- }, { flush: "sync" });
2613
- function l(e = {}) {
2618
+ l.execute({ ...s });
2619
+ });
2620
+ function u(e = {}) {
2614
2621
  a.page = 1, a.pageSize = 10, e && (Object.keys(s).forEach((n) => {
2615
2622
  r.ignoreAttrs?.includes(n) || Object.keys(e).includes(n) || delete s[n];
2616
2623
  }), Object.assign(s, {
@@ -2619,23 +2626,23 @@ function useDefaultTable(e, n) {
2619
2626
  pageSize: 10
2620
2627
  }));
2621
2628
  }
2622
- function u({ page: e, pageSize: n }) {
2629
+ function d({ page: e, pageSize: n }) {
2623
2630
  a.page = e, a.pageSize = n, Object.assign(s, {
2624
2631
  page: e,
2625
2632
  pageSize: n
2626
2633
  });
2627
2634
  }
2628
- function d(e) {
2635
+ function f(e) {
2629
2636
  o.value = e;
2630
2637
  }
2631
2638
  return reactive({
2632
- ...c,
2639
+ ...l,
2633
2640
  data: i,
2634
2641
  pagination: a,
2635
2642
  selection: o,
2636
- reset: l,
2637
- updatePagination: u,
2638
- selectionChange: d
2643
+ reset: u,
2644
+ updatePagination: d,
2645
+ selectionChange: f
2639
2646
  });
2640
2647
  }
2641
2648
  //#endregion
package/dist/entry.d.ts CHANGED
@@ -1,19 +1,27 @@
1
- import type { App } from 'vue'
2
- export type * from './components/type'
3
- export type { IColumn, ITableProps, ITableInstance, IRender, IRenderProps, IExtra, IColumnRenderProps } from './components/Table/type'
4
- export type { IField, IFilterProps, IFieldSlot, IFilterRenderProps } from './components/Filter/type'
5
- export type { IFormProps, IFormInstance } from './components/Form/type'
6
- export type { IDescriptionsProps, IDescriptionsField } from './components/Descriptions/type'
7
- export type { ITreeProps } from './components/Tree/type'
8
- export type { IInfiniteScrollProps } from './components/InfiniteScroll/type'
9
- export type { IEditorProps } from './components/Editor/type'
10
- export type { ICardProps } from './components/Card/type'
11
- export * from './components'
12
- export declare function setHostVue(vue: any): void
13
- export declare function getHostVue(): any
1
+ import { App } from 'vue';
2
+ export { default as YcMessage } from './components/Message';
3
+ export type * from './components/type';
4
+ export type * from './components/Table/type';
5
+ export type * from './components/Filter/type';
6
+ export type * from './components/Form/type';
7
+ export type * from './components/Descriptions/type';
8
+ export type * from './components/InfiniteScroll/type';
9
+ export type * from './components/Tree/type';
10
+ export type * from './components/Card/type';
11
+ export type * from './components/Editor/type';
12
+ export type * from './components/Upload/type';
13
+ export type * from './components/Message/type';
14
+ export * from './components';
15
+ export * as hooks from './hooks';
16
+ export declare function setHostVue(vue: any): void;
17
+ export declare function getHostVue(): any;
14
18
  export interface YcVepUiOptions {
15
- elementPlus?: { install: (app: App, ...args: any[]) => void }
19
+ elementPlus?: {
20
+ install: (app: App, ...args: any[]) => void;
21
+ };
16
22
  }
17
- declare const ycPlugin: { install(app: App, options?: YcVepUiOptions): void }
18
- export default ycPlugin
19
- export { ycPlugin }
23
+ declare const ycPlugin: {
24
+ install(app: App, options?: YcVepUiOptions): void;
25
+ };
26
+ export default ycPlugin;
27
+ export { ycPlugin };
@@ -1,2 +1,2 @@
1
- import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-C0ppCovp.js";
1
+ import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-B9KHZci1.js";
2
2
  export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
@@ -1,2 +1,2 @@
1
- import { O as e, _ as t, b as n, v as r, y as i } from "../entry-C0ppCovp.js";
1
+ import { O as e, _ as t, b as n, v as r, y as i } from "../entry-B9KHZci1.js";
2
2
  export { t as baseUrl, n as request, e as tempToRender, r as uniq, i as uniqBy };
package/dist/vep-ui.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-C0ppCovp.js";
1
+ import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-B9KHZci1.js";
2
2
  export { e as UiCard, i as UiDescriptions, v as UiDialog, a as UiEditor, n as UiFilter, r as UiForm, t as UiInfiniteScroll, d as UiStaffSelect, u as UiTable, _ as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, g as getHostVue, p as hooks, f as setHostVue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.3.79",
3
+ "version": "0.3.80",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [
@@ -19,6 +19,10 @@
19
19
  "main": "./dist/vep-ui.js",
20
20
  "module": "./dist/vep-ui.js",
21
21
  "types": "./dist/entry.d.ts",
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
22
26
  "exports": {
23
27
  ".": {
24
28
  "types": "./dist/entry.d.ts",
@@ -38,6 +42,12 @@
38
42
  "dist",
39
43
  "README.md"
40
44
  ],
45
+ "scripts": {
46
+ "dev": "vite",
47
+ "build": "vue-tsc && vite build",
48
+ "build:lib": "vite build && node scripts/generate-entry-dts.cjs",
49
+ "preview": "vite preview"
50
+ },
41
51
  "dependencies": {
42
52
  "aieditor": "^1.4.0",
43
53
  "jsencrypt": "^3.5.4",
@@ -67,11 +77,5 @@
67
77
  },
68
78
  "sideEffects": [
69
79
  "**/*.css"
70
- ],
71
- "scripts": {
72
- "dev": "vite",
73
- "build": "vue-tsc && vite build",
74
- "build:lib": "vite build && node scripts/generate-entry-dts.cjs",
75
- "preview": "vite preview"
76
- }
77
- }
80
+ ]
81
+ }