jky-component-lib 0.0.100 → 0.0.103

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.
Files changed (35) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
  2. package/dist/es/amap/style2.css +2 -13
  3. package/dist/es/amap/style3.css +13 -2
  4. package/dist/es/components.d.ts +1 -0
  5. package/dist/es/components.js +3 -0
  6. package/dist/es/index.js +2 -0
  7. package/dist/es/package.json.js +1 -1
  8. package/dist/es/page-layout/PageLayout.vue.js +6 -0
  9. package/dist/es/page-table/PageTable.vue.d.ts +10 -10
  10. package/dist/es/page-table/PageTable.vue.js +4 -4
  11. package/dist/es/page-table-v2/PageTableV2.vue.d.ts +974 -0
  12. package/dist/es/page-table-v2/PageTableV2.vue.js +7 -0
  13. package/dist/es/page-table-v2/PageTableV2.vue2.js +321 -0
  14. package/dist/es/page-table-v2/index.d.ts +4 -0
  15. package/dist/es/page-table-v2/index.js +7 -0
  16. package/dist/es/page-table-v2/style.css +13 -0
  17. package/dist/es/style.css +8 -0
  18. package/dist/lib/_virtual/_plugin-vue_export-helper.js +10 -0
  19. package/dist/lib/amap/style2.css +2 -13
  20. package/dist/lib/amap/style3.css +13 -2
  21. package/dist/lib/components.d.ts +1 -0
  22. package/dist/lib/components.js +12 -9
  23. package/dist/lib/index.js +8 -6
  24. package/dist/lib/package.json.js +1 -1
  25. package/dist/lib/page-layout/PageLayout.vue.js +6 -0
  26. package/dist/lib/page-table/PageTable.vue.d.ts +10 -10
  27. package/dist/lib/page-table/PageTable.vue.js +4 -4
  28. package/dist/lib/page-table-v2/PageTableV2.vue.d.ts +974 -0
  29. package/dist/lib/page-table-v2/PageTableV2.vue.js +7 -0
  30. package/dist/lib/page-table-v2/PageTableV2.vue2.js +321 -0
  31. package/dist/lib/page-table-v2/index.d.ts +4 -0
  32. package/dist/lib/page-table-v2/index.js +7 -0
  33. package/dist/lib/page-table-v2/style.css +13 -0
  34. package/dist/lib/style.css +8 -0
  35. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ const _export_sfc = (sfc, props) => {
2
+ const target = sfc.__vccOpts || sfc;
3
+ for (const [key, val] of props) {
4
+ target[key] = val;
5
+ }
6
+ return target;
7
+ };
8
+ export {
9
+ _export_sfc as default
10
+ };
@@ -1,14 +1,3 @@
1
- /* AMap 高德地图组件样式 */
2
- .jky-amap-container {
3
- /* 地图容器样式 */
4
- position: relative;
5
- overflow: hidden;
6
1
 
7
- /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
- .amap-logo {
9
- display: none !important;
10
- }
11
- .amap-copyright {
12
- display: none !important;
13
- }
14
- }
2
+ /* 轨迹回放组件不需要额外样式 */
3
+ /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
@@ -1,3 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
14
+ }
@@ -10,6 +10,7 @@ export * from './modal';
10
10
  export * from './page-header';
11
11
  export * from './page-layout';
12
12
  export * from './page-table';
13
+ export * from './page-table-v2';
13
14
  export * from './rich-editor';
14
15
  export * from './say-hello';
15
16
  export * from './tabs';
@@ -11,6 +11,7 @@ import { JkyPageHeader } from "./page-header/index.js";
11
11
  import { JkyPageLayout } from "./page-layout/index.js";
12
12
  import { JkyPageTable } from "./page-table/index.js";
13
13
  import { JkyActionColumn, JkyPageTableColumn } from "./page-table/index.js";
14
+ import { JkyPageTableV2 } from "./page-table-v2/index.js";
14
15
  import { JkyRichEditor } from "./rich-editor/index.js";
15
16
  import { JkySayHello } from "./say-hello/index.js";
16
17
  import { JkyTabs } from "./tabs/index.js";
@@ -25,6 +26,7 @@ const components = [
25
26
  JkyAddInput,
26
27
  JkyRichEditor,
27
28
  JkyPageTable,
29
+ JkyPageTableV2,
28
30
  JkyPageLayout,
29
31
  JkyTabs,
30
32
  JkyModal,
@@ -46,6 +48,7 @@ export {
46
48
  JkyPageLayout,
47
49
  JkyPageTable,
48
50
  JkyPageTableColumn,
51
+ JkyPageTableV2,
49
52
  JkyRichEditor,
50
53
  JkySayHello,
51
54
  JkyTabs,
package/dist/es/index.js CHANGED
@@ -17,6 +17,7 @@ import { JkyMenu } from "./menu/index.js";
17
17
  import { JkyModal } from "./modal/index.js";
18
18
  import { JkyPageHeader } from "./page-header/index.js";
19
19
  import { JkyPageLayout } from "./page-layout/index.js";
20
+ import { JkyPageTableV2 } from "./page-table-v2/index.js";
20
21
  import { JkyRichEditor } from "./rich-editor/index.js";
21
22
  import { JkySayHello } from "./say-hello/index.js";
22
23
  import { JkyTabs } from "./tabs/index.js";
@@ -44,6 +45,7 @@ export {
44
45
  JkyPageLayout,
45
46
  JkyPageTable,
46
47
  JkyPageTableColumn,
48
+ JkyPageTableV2,
47
49
  JkyRichEditor,
48
50
  JkySayHello,
49
51
  JkyTabs,
@@ -1,4 +1,4 @@
1
- const version = "0.0.100";
1
+ const version = "0.0.103";
2
2
  export {
3
3
  version
4
4
  };
@@ -131,6 +131,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
131
131
  return menuData.value;
132
132
  });
133
133
  const displayedSideMenu = computed(() => {
134
+ if (!props.showSideMenu) {
135
+ return [];
136
+ }
137
+ if (!props.showTopMenu) {
138
+ return menuData.value;
139
+ }
134
140
  if (menuData.value.length === 0) {
135
141
  return [];
136
142
  }
@@ -102,7 +102,7 @@ declare function __VLS_template(): {
102
102
  };
103
103
  $forceUpdate: () => void;
104
104
  $nextTick: typeof nextTick;
105
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
105
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
106
106
  } & Readonly<{
107
107
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
108
108
  labelWidth: string | number;
@@ -201,7 +201,7 @@ declare function __VLS_template(): {
201
201
  };
202
202
  $forceUpdate: () => void;
203
203
  $nextTick: typeof nextTick;
204
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
204
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
205
205
  } & Readonly<{
206
206
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
207
207
  labelWidth: string | number;
@@ -328,7 +328,7 @@ declare function __VLS_template(): {
328
328
  };
329
329
  $forceUpdate: () => void;
330
330
  $nextTick: typeof nextTick;
331
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
331
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
332
332
  } & Readonly<{
333
333
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
334
334
  labelWidth: string | number;
@@ -448,7 +448,7 @@ declare function __VLS_template(): {
448
448
  };
449
449
  $forceUpdate: () => void;
450
450
  $nextTick: typeof nextTick;
451
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
451
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
452
452
  } & Readonly<{
453
453
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
454
454
  labelWidth: string | number;
@@ -547,7 +547,7 @@ declare function __VLS_template(): {
547
547
  };
548
548
  $forceUpdate: () => void;
549
549
  $nextTick: typeof nextTick;
550
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
550
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
551
551
  } & Readonly<{
552
552
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
553
553
  labelWidth: string | number;
@@ -2866,7 +2866,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2866
2866
  };
2867
2867
  $forceUpdate: () => void;
2868
2868
  $nextTick: typeof nextTick;
2869
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2869
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2870
2870
  } & Readonly<{
2871
2871
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2872
2872
  labelWidth: string | number;
@@ -2965,7 +2965,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2965
2965
  };
2966
2966
  $forceUpdate: () => void;
2967
2967
  $nextTick: typeof nextTick;
2968
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2968
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2969
2969
  } & Readonly<{
2970
2970
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2971
2971
  labelWidth: string | number;
@@ -3092,7 +3092,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3092
3092
  };
3093
3093
  $forceUpdate: () => void;
3094
3094
  $nextTick: typeof nextTick;
3095
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3095
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3096
3096
  } & Readonly<{
3097
3097
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3098
3098
  labelWidth: string | number;
@@ -3212,7 +3212,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3212
3212
  };
3213
3213
  $forceUpdate: () => void;
3214
3214
  $nextTick: typeof nextTick;
3215
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3215
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3216
3216
  } & Readonly<{
3217
3217
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3218
3218
  labelWidth: string | number;
@@ -3311,7 +3311,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3311
3311
  };
3312
3312
  $forceUpdate: () => void;
3313
3313
  $nextTick: typeof nextTick;
3314
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3314
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3315
3315
  } & Readonly<{
3316
3316
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3317
3317
  labelWidth: string | number;
@@ -370,11 +370,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
370
370
  return openBlock(), createElementBlock("div", {
371
371
  ref_key: "pageTableRef",
372
372
  ref: pageTableRef,
373
- class: normalizeClass(["bg-transparent jky-page-table", [props.class]])
373
+ class: normalizeClass(["bg-transparent flex flex-col jky-page-table", [props.class]])
374
374
  }, [
375
375
  __props.filterItems && __props.filterItems.length > 0 ? (openBlock(), createBlock(unref(ElCard), {
376
376
  key: 0,
377
- class: "mb-3 jky-page-table__filter-card"
377
+ class: "mb-3 flex-none jky-page-table__filter-card"
378
378
  }, {
379
379
  default: withCtx(() => [
380
380
  createVNode(unref(JkyForm), mergeProps({
@@ -394,7 +394,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
394
394
  ]),
395
395
  _: 1
396
396
  })) : createCommentVNode("", true),
397
- (openBlock(), createBlock(resolveDynamicComponent(props.withCard ? unref(ElCard) : "div"), { class: "jky-page-table__table-card min-h-0" }, {
397
+ (openBlock(), createBlock(resolveDynamicComponent(props.withCard ? unref(ElCard) : "div"), { class: "flex-1 min-h-0 jky-page-table__table-card" }, {
398
398
  default: withCtx(() => {
399
399
  var _a2, _b2, _c2, _d, _e, _f, _g;
400
400
  return [
@@ -477,7 +477,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
477
477
  })),
478
478
  showPagination.value ? (openBlock(), createBlock(resolveDynamicComponent(((_a = pagination.value) == null ? void 0 : _a.withCard) ? unref(ElCard) : "div"), {
479
479
  key: 1,
480
- class: normalizeClass(["flex flex-end bg-white justify-center mt-4 p-2 z-30 sticky bottom-0 jky-page-table__pagination", [((_b = pagination.value) == null ? void 0 : _b.class) || ""]]),
480
+ class: normalizeClass(["flex flex-none flex-end bg-white justify-center mt-4 p-2 z-30 sticky bottom-0 jky-page-table__pagination", [((_b = pagination.value) == null ? void 0 : _b.class) || ""]]),
481
481
  style: normalizeStyle({
482
482
  "--jky-page-table_pagination-position": ((_c = pagination.value) == null ? void 0 : _c.position) || "flex-end"
483
483
  })