yxuse 1.0.90 → 1.0.91

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.
Binary file
package/lib/index.es3.js CHANGED
@@ -9,10 +9,10 @@ const a = (r) => {
9
9
  s.onmessage = () => {
10
10
  r();
11
11
  };
12
- }, h = (r, s, e, c) => Array.isArray(r) ? r.map((t) => ({
12
+ }, l = (r, s, e, c) => Array.isArray(r) ? r.map((t) => ({
13
13
  label: t == null ? void 0 : t[s],
14
14
  value: c ? +t[e] : t[e]
15
- })) : [], l = (r) => {
15
+ })) : [], h = (r) => {
16
16
  const s = [];
17
17
  for (const e in r)
18
18
  isNaN(Number(e)) && s.push({ label: e, value: r[e] });
@@ -42,20 +42,20 @@ class f {
42
42
  });
43
43
  }
44
44
  }
45
- const p = new f(), S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
+ const p = new f(), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
46
46
  __proto__: null,
47
- enumToArray: l,
48
- getSelectOptions: h,
47
+ enumToArray: h,
48
+ getSelectOptions: l,
49
49
  http: b,
50
50
  notifyMessageToSystems: a,
51
51
  receiveMessage: u,
52
52
  yxSubscribe: p
53
53
  }, Symbol.toStringTag, { value: "Module" }));
54
54
  export {
55
- l as e,
56
- h as g,
57
- S as i,
55
+ h as e,
56
+ l as g,
58
57
  a as n,
59
58
  u as r,
59
+ d as u,
60
60
  p as y
61
61
  };
package/lib/index.es5.js CHANGED
@@ -33,8 +33,8 @@ const u = (t = "ttc") => a(void 0, null, function* () {
33
33
  }, Symbol.toStringTag, { value: "Module" }));
34
34
  export {
35
35
  m as a,
36
- u as b,
37
- T as c,
38
- A as g,
39
- U as i
36
+ U as b,
37
+ u as c,
38
+ T as d,
39
+ A as g
40
40
  };
@@ -0,0 +1,24 @@
1
+ import { ah as s } from "./index.es6.js";
2
+ const c = {
3
+ mounted(t, e) {
4
+ n(t, e);
5
+ }
6
+ }, n = (t, e) => {
7
+ const r = e.value;
8
+ return s(r) ? "" : t.remove();
9
+ }, o = {
10
+ auth: c
11
+ }, a = {
12
+ install: function(t) {
13
+ Object.keys(o).forEach((e) => {
14
+ t.directive(e, o[e]);
15
+ });
16
+ }
17
+ }, l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ __proto__: null,
19
+ default: a
20
+ }, Symbol.toStringTag, { value: "Module" }));
21
+ export {
22
+ a,
23
+ l as d
24
+ };
package/lib/theme.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs5.js");require("./vue.runtime.esm-bundler.cjs.js");require("./index.cjs6.js");require("./index.cjs3.js");require("./index.cjs4.js");exports.changeTheme=e.changeTheme;exports.getCurTheme=e.getCurTheme;exports.getCurThemeCssVar=e.getCurThemeCssVar;exports.getDefaultThemeUrl=e.getDefaultThemeUrl;exports.getGroupColor=e.getGroupColor;exports.install=e.install;exports.updateTheme=e.updateTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs5.js");require("./vue.runtime.esm-bundler.cjs.js");require("./index.cjs6.js");require("./index.cjs3.js");require("./index.cjs4.js");require("./index.cjs7.js");exports.changeTheme=e.changeTheme;exports.getCurTheme=e.getCurTheme;exports.getCurThemeCssVar=e.getCurThemeCssVar;exports.getDefaultThemeUrl=e.getDefaultThemeUrl;exports.getGroupColor=e.getGroupColor;exports.install=e.install;exports.updateTheme=e.updateTheme;
package/lib/theme.es.js CHANGED
@@ -1,15 +1,16 @@
1
- import { c as p, a as i, b as g, g as h, d as u, i as l, u as T } from "./index.es2.js";
1
+ import { c as i, a as g, b as h, g as u, d as l, i as T, u as C } from "./index.es2.js";
2
2
  import "./index.es5.js";
3
3
  import "./vue.runtime.esm-bundler.es.js";
4
4
  import "./index.es6.js";
5
5
  import "./index.es3.js";
6
6
  import "./index.es4.js";
7
+ import "./index.es7.js";
7
8
  export {
8
- p as changeTheme,
9
- i as getCurTheme,
10
- g as getCurThemeCssVar,
11
- h as getDefaultThemeUrl,
12
- u as getGroupColor,
13
- l as install,
14
- T as updateTheme
9
+ i as changeTheme,
10
+ g as getCurTheme,
11
+ h as getCurThemeCssVar,
12
+ u as getDefaultThemeUrl,
13
+ l as getGroupColor,
14
+ T as install,
15
+ C as updateTheme
15
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yxuse",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "yx"
@@ -1,81 +1,3 @@
1
- export declare const YxTable: import("vue").DefineComponent<{
2
- tableData: {
3
- type: import("vue").PropType<any[]>;
4
- required: true;
5
- };
6
- rowKey: {
7
- type: import("vue").PropType<string>;
8
- required: true;
9
- };
10
- columns: {
11
- type: import("vue").PropType<import("./type").TableColumn[]>;
12
- required: true;
13
- };
14
- pageInfo: {
15
- type: import("vue").PropType<import("./type").PageInfo>;
16
- };
17
- searchFormConfig: {
18
- type: import("vue").PropType<import("./type").FormConfig[]>;
19
- };
20
- searchParams: {
21
- type: import("vue").PropType<{
22
- [key: string]: any;
23
- }>;
24
- };
25
- sort: {
26
- type: import("vue").PropType<boolean>;
27
- };
28
- sortHandle: {
29
- type: import("vue").PropType<string>;
30
- };
31
- load: {
32
- type: import("vue").PropType<Function>;
33
- };
34
- }, {
35
- tableRef: import("vue").Ref<any>;
36
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
- "operate-handle": (type: string, data: object) => void;
38
- "sort-end": (oldIndex: number, newIndex: number) => void;
39
- "update-page": (type: string, value: number) => void;
40
- "size-change": (type: string, value: number) => void;
41
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
- tableData: {
43
- type: import("vue").PropType<any[]>;
44
- required: true;
45
- };
46
- rowKey: {
47
- type: import("vue").PropType<string>;
48
- required: true;
49
- };
50
- columns: {
51
- type: import("vue").PropType<import("./type").TableColumn[]>;
52
- required: true;
53
- };
54
- pageInfo: {
55
- type: import("vue").PropType<import("./type").PageInfo>;
56
- };
57
- searchFormConfig: {
58
- type: import("vue").PropType<import("./type").FormConfig[]>;
59
- };
60
- searchParams: {
61
- type: import("vue").PropType<{
62
- [key: string]: any;
63
- }>;
64
- };
65
- sort: {
66
- type: import("vue").PropType<boolean>;
67
- };
68
- sortHandle: {
69
- type: import("vue").PropType<string>;
70
- };
71
- load: {
72
- type: import("vue").PropType<Function>;
73
- };
74
- }>> & {
75
- "onOperate-handle"?: ((type: string, data: object) => any) | undefined;
76
- "onSort-end"?: ((oldIndex: number, newIndex: number) => any) | undefined;
77
- "onUpdate-page"?: ((type: string, value: number) => any) | undefined;
78
- "onSize-change"?: ((type: string, value: number) => any) | undefined;
79
- }, {}, {}>;
1
+ export { default as YxTable } from "./index.vue";
80
2
  export * from "./type";
81
3
  export * from "./index.vue";
package/types/index.d.ts CHANGED
@@ -6,3 +6,19 @@ export * as components from "./components";
6
6
  export * from "./directives";
7
7
  export declare const BC: BroadcastChannel;
8
8
  export * from "./components/type";
9
+ import * as utils from "./utils";
10
+ import * as icons from "./icons";
11
+ import * as api from "./api";
12
+ import * as theme from "./theme";
13
+ import * as components from "./components";
14
+ import * as directives from "./directives";
15
+ declare const _default: {
16
+ utils: typeof utils;
17
+ icons: typeof icons;
18
+ api: typeof api;
19
+ theme: typeof theme;
20
+ components: typeof components;
21
+ directives: typeof directives;
22
+ BC: BroadcastChannel;
23
+ };
24
+ export default _default;