jky-component-lib 0.0.110 → 0.0.114

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,7 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
- .amap-icon img,
4
- .amap-marker-content img {
5
- width: 25px;
6
- height: 34px;
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
7
14
  }
@@ -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,7 @@
1
1
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
2
+ /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
+ .amap-icon img,
4
+ .amap-marker-content img {
5
+ width: 25px;
6
+ height: 34px;
7
+ }
@@ -227,11 +227,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
227
227
  }) => any) | undefined;
228
228
  }>, {
229
229
  size: import('element-plus').ComponentSize;
230
- disabled: boolean;
231
230
  grid: import('./types').GridConfig;
232
- inline: boolean;
233
- labelPosition: "left" | "right" | "top";
234
- labelWidth: string | number;
235
231
  gutter: number;
236
232
  defaultSpan: number;
237
233
  responsive: boolean;
@@ -37,17 +37,17 @@ var __async = (__this, __arguments, generator) => {
37
37
  step((generator = generator.apply(__this, __arguments)).next());
38
38
  });
39
39
  };
40
- import { defineComponent, useModel, provide, ref, computed, watch, resolveComponent, openBlock, createBlock, unref, normalizeStyle, normalizeClass, withCtx, createElementBlock, Fragment, renderList, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, createVNode, mergeModels } from "vue";
40
+ import { defineComponent, useModel, provide, useAttrs, ref, computed, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createVNode, mergeModels } from "vue";
41
41
  import { ElForm } from "element-plus";
42
+ import { omit } from "lodash-es";
42
43
  import _sfc_main$1 from "./FormItem.vue.js";
43
44
  /* empty css */
44
45
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
45
- name: "JkyForm",
46
- inheritAttrs: false
46
+ name: "JkyForm"
47
+ // inheritAttrs: false,
47
48
  }), {
48
49
  __name: "Form",
49
50
  props: /* @__PURE__ */ mergeModels({
50
- modelValue: {},
51
51
  items: {},
52
52
  showTitle: { type: Boolean },
53
53
  title: {},
@@ -57,7 +57,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
57
57
  grid: { type: [Boolean, Object], default: false },
58
58
  className: {},
59
59
  readonly: { type: Boolean },
60
- disabled: { type: Boolean, default: false },
61
60
  watchDeep: { type: Boolean, default: true },
62
61
  showFooter: { type: Boolean, default: true },
63
62
  footerClass: { default: "" },
@@ -66,16 +65,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
66
65
  submitDisabled: { type: Boolean, default: false },
67
66
  cancelDisabled: { type: Boolean, default: false },
68
67
  showCount: { default: 999 },
69
- onValidate: {},
70
68
  onSubmit: {},
71
69
  onReset: {},
72
70
  model: {},
73
71
  rules: {},
74
- labelPosition: { default: "right" },
72
+ labelPosition: {},
75
73
  requireAsteriskPosition: {},
76
- labelWidth: { default: "100" },
74
+ labelWidth: {},
77
75
  labelSuffix: {},
78
- inline: { type: Boolean, default: false },
76
+ inline: { type: Boolean },
79
77
  inlineMessage: { type: Boolean },
80
78
  statusIcon: { type: Boolean },
81
79
  showMessage: { type: Boolean },
@@ -83,7 +81,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
83
81
  hideRequiredAsterisk: { type: Boolean },
84
82
  scrollToError: { type: Boolean },
85
83
  scrollIntoViewOptions: { type: Boolean },
86
- size: { default: "default" }
84
+ size: { default: "default" },
85
+ disabled: { type: Boolean }
87
86
  }, {
88
87
  "modelValue": { required: true, default: () => ({}) },
89
88
  "modelModifiers": {}
@@ -93,7 +92,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
93
92
  const props = __props;
94
93
  const emit = __emit;
95
94
  const modelValue = useModel(__props, "modelValue");
95
+ const customProps = ["items", "showTitle", "title", "gutter", "defaultSpan", "responsive", "watchDeep", "grid", "showFooter", "submitText", "cancelText", "submitDisabled", "cancelDisabled", "showCount"];
96
96
  provide("formModel", modelValue);
97
+ const attrs = useAttrs();
97
98
  const formRef = ref();
98
99
  const showAllItems = ref(false);
99
100
  const _visibleItems = computed(() => {
@@ -112,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
112
113
  showAllItems.value = !showAllItems.value;
113
114
  }
114
115
  const _gridStyle = computed(() => {
115
- if (!props.inline || !props.grid || typeof props.grid === "boolean") {
116
+ if (!attrs.inline || !props.grid || typeof props.grid === "boolean") {
116
117
  return {};
117
118
  }
118
119
  const style = {};
@@ -126,7 +127,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
126
127
  return style;
127
128
  });
128
129
  watch(
129
- () => props.modelValue,
130
+ () => modelValue.value,
130
131
  (newVal, oldVal) => {
131
132
  if (newVal !== oldVal) {
132
133
  emit("change", __spreadValues({}, newVal));
@@ -186,13 +187,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
186
187
  return (_ctx, _cache) => {
187
188
  const _component_ElButton = resolveComponent("ElButton");
188
189
  const _component_ElFormItem = resolveComponent("ElFormItem");
189
- return openBlock(), createBlock(unref(ElForm), {
190
+ return openBlock(), createBlock(unref(ElForm), mergeProps({
190
191
  ref_key: "formRef",
191
- ref: formRef,
192
- class: normalizeClass(["jky-form", [__props.inline && "jky-form--inline", __props.grid && "jky-form--grid"]]),
192
+ ref: formRef
193
+ }, unref(omit)(props, customProps), {
194
+ class: ["jky-form", [_ctx.$attrs.inline && "jky-form--inline", props.grid && "jky-form--grid"]],
193
195
  model: modelValue.value,
194
- style: normalizeStyle(_gridStyle.value)
195
- }, {
196
+ style: [_gridStyle.value]
197
+ }), {
196
198
  default: withCtx(() => [
197
199
  (openBlock(true), createElementBlock(Fragment, null, renderList(_visibleItems.value, (item) => {
198
200
  return openBlock(), createBlock(_sfc_main$1, {
@@ -210,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
210
212
  }, {
211
213
  default: withCtx(() => [
212
214
  createElementVNode("div", {
213
- class: normalizeClass(["w-full flex gap-2", [props.grid && props.inline ? "justify-center" : "justify-end", props.footerClass]])
215
+ class: normalizeClass(["w-full flex gap-2", [props.grid && _ctx.$attrs.inline ? "justify-center" : "justify-end", props.footerClass]])
214
216
  }, [
215
217
  _showMoreButton.value ? (openBlock(), createBlock(_component_ElButton, {
216
218
  key: 0,
@@ -250,7 +252,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
250
252
  })) : createCommentVNode("", true)
251
253
  ]),
252
254
  _: 1
253
- }, 8, ["class", "model", "style"]);
255
+ }, 16, ["model", "class", "style"]);
254
256
  };
255
257
  }
256
258
  }));
@@ -1,4 +1,4 @@
1
- const version = "0.0.110";
1
+ const version = "0.0.114";
2
2
  export {
3
3
  version
4
4
  };
@@ -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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */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 : (...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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */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 : (...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;
@@ -237,11 +237,7 @@ declare function __VLS_template(): {
237
237
  }) => any;
238
238
  }, import('vue').PublicProps, {
239
239
  size: import('element-plus').ComponentSize;
240
- disabled: boolean;
241
240
  grid: import('../form').GridConfig;
242
- inline: boolean;
243
- labelPosition: "left" | "right" | "top";
244
- labelWidth: string | number;
245
241
  gutter: number;
246
242
  defaultSpan: number;
247
243
  responsive: boolean;
@@ -328,7 +324,7 @@ declare function __VLS_template(): {
328
324
  };
329
325
  $forceUpdate: () => void;
330
326
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
327
+ $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;
332
328
  } & Readonly<{
333
329
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
334
330
  labelWidth: string | number;
@@ -448,7 +444,7 @@ declare function __VLS_template(): {
448
444
  };
449
445
  $forceUpdate: () => void;
450
446
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
447
+ $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;
452
448
  } & Readonly<{
453
449
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
454
450
  labelWidth: string | number;
@@ -547,7 +543,7 @@ declare function __VLS_template(): {
547
543
  };
548
544
  $forceUpdate: () => void;
549
545
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
546
+ $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;
551
547
  } & Readonly<{
552
548
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
553
549
  labelWidth: string | number;
@@ -574,11 +570,7 @@ declare function __VLS_template(): {
574
570
  }) | undefined;
575
571
  }, {}, {}, {}, {
576
572
  size: import('element-plus').ComponentSize;
577
- disabled: boolean;
578
573
  grid: import('../form').GridConfig;
579
- inline: boolean;
580
- labelPosition: "left" | "right" | "top";
581
- labelWidth: string | number;
582
574
  gutter: number;
583
575
  defaultSpan: number;
584
576
  responsive: boolean;
@@ -2866,7 +2858,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2866
2858
  };
2867
2859
  $forceUpdate: () => void;
2868
2860
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2861
+ $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;
2870
2862
  } & Readonly<{
2871
2863
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2872
2864
  labelWidth: string | number;
@@ -2965,7 +2957,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2965
2957
  };
2966
2958
  $forceUpdate: () => void;
2967
2959
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2960
+ $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;
2969
2961
  } & Readonly<{
2970
2962
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2971
2963
  labelWidth: string | number;
@@ -3001,11 +2993,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3001
2993
  }) => any;
3002
2994
  }, import('vue').PublicProps, {
3003
2995
  size: import('element-plus').ComponentSize;
3004
- disabled: boolean;
3005
2996
  grid: import('../form').GridConfig;
3006
- inline: boolean;
3007
- labelPosition: "left" | "right" | "top";
3008
- labelWidth: string | number;
3009
2997
  gutter: number;
3010
2998
  defaultSpan: number;
3011
2999
  responsive: boolean;
@@ -3092,7 +3080,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3092
3080
  };
3093
3081
  $forceUpdate: () => void;
3094
3082
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3083
+ $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;
3096
3084
  } & Readonly<{
3097
3085
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3098
3086
  labelWidth: string | number;
@@ -3212,7 +3200,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3212
3200
  };
3213
3201
  $forceUpdate: () => void;
3214
3202
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3203
+ $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;
3216
3204
  } & Readonly<{
3217
3205
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3218
3206
  labelWidth: string | number;
@@ -3311,7 +3299,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3311
3299
  };
3312
3300
  $forceUpdate: () => void;
3313
3301
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3302
+ $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;
3315
3303
  } & Readonly<{
3316
3304
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3317
3305
  labelWidth: string | number;
@@ -3338,11 +3326,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3338
3326
  }) | undefined;
3339
3327
  }, {}, {}, {}, {
3340
3328
  size: import('element-plus').ComponentSize;
3341
- disabled: boolean;
3342
3329
  grid: import('../form').GridConfig;
3343
- inline: boolean;
3344
- labelPosition: "left" | "right" | "top";
3345
- labelWidth: string | number;
3346
3330
  gutter: number;
3347
3331
  defaultSpan: number;
3348
3332
  responsive: boolean;
@@ -210,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
210
210
  }
211
211
  function loadData() {
212
212
  return __async(this, null, function* () {
213
- var _a, _b, _c, _d;
213
+ var _a, _b;
214
214
  if (!((_a = props.dataSource) == null ? void 0 : _a.api)) {
215
215
  console.warn("PageTable: 没有配置 dataSource.api");
216
216
  return;
@@ -222,12 +222,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
222
222
  const responseProps = props.dataSource.responseProps || {};
223
223
  const recordsField = responseProps.recordsField || "records";
224
224
  const totalField = responseProps.totalField || "total";
225
- const pageNoField = responseProps.pageNoField || "pageNo";
226
- const pageSizeField = responseProps.pageSizeField || "pageSize";
227
225
  internalData.value = result[recordsField] || [];
228
226
  totalModel.value = (_b = result[totalField]) != null ? _b : defaults.total;
229
- pageNoModel.value = (_c = result[pageNoField]) != null ? _c : defaults.pageNo;
230
- pageSizeModel.value = (_d = result[pageSizeField]) != null ? _d : defaults.pageSize;
231
227
  if (props.selectedRows && props.selectedRows.length > 0) {
232
228
  setTimeout(() => {
233
229
  if (tableRef.value) {
@@ -272,11 +272,7 @@ declare const _default: import('vue').DefineComponent<PageTableV2Props, {
272
272
  }) => any;
273
273
  }, import('vue').PublicProps, {
274
274
  size: import('element-plus').ComponentSize;
275
- disabled: boolean;
276
275
  grid: import('../form').GridConfig;
277
- inline: boolean;
278
- labelPosition: "left" | "right" | "top";
279
- labelWidth: string | number;
280
276
  gutter: number;
281
277
  defaultSpan: number;
282
278
  responsive: boolean;
@@ -609,11 +605,7 @@ declare const _default: import('vue').DefineComponent<PageTableV2Props, {
609
605
  }) | undefined;
610
606
  }, {}, {}, {}, {
611
607
  size: import('element-plus').ComponentSize;
612
- disabled: boolean;
613
608
  grid: import('../form').GridConfig;
614
- inline: boolean;
615
- labelPosition: "left" | "right" | "top";
616
- labelWidth: string | number;
617
609
  gutter: number;
618
610
  defaultSpan: number;
619
611
  responsive: boolean;
@@ -1,7 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
- .amap-icon img,
4
- .amap-marker-content img {
5
- width: 25px;
6
- height: 34px;
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
7
14
  }
@@ -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,7 @@
1
1
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
2
+ /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
+ .amap-icon img,
4
+ .amap-marker-content img {
5
+ width: 25px;
6
+ height: 34px;
7
+ }
@@ -227,11 +227,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
227
227
  }) => any) | undefined;
228
228
  }>, {
229
229
  size: import('element-plus').ComponentSize;
230
- disabled: boolean;
231
230
  grid: import('./types').GridConfig;
232
- inline: boolean;
233
- labelPosition: "left" | "right" | "top";
234
- labelWidth: string | number;
235
231
  gutter: number;
236
232
  defaultSpan: number;
237
233
  responsive: boolean;
@@ -41,15 +41,15 @@ var __async = (__this, __arguments, generator) => {
41
41
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
42
42
  const vue = require("vue");
43
43
  const ElementPlus = require("element-plus");
44
+ const lodashEs = require("lodash-es");
44
45
  const FormItem_vue_vue_type_script_setup_true_lang = require("./FormItem.vue.js");
45
46
  ;/* empty css */
46
47
  const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
47
- name: "JkyForm",
48
- inheritAttrs: false
48
+ name: "JkyForm"
49
+ // inheritAttrs: false,
49
50
  }), {
50
51
  __name: "Form",
51
52
  props: /* @__PURE__ */ vue.mergeModels({
52
- modelValue: {},
53
53
  items: {},
54
54
  showTitle: { type: Boolean },
55
55
  title: {},
@@ -59,7 +59,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
59
59
  grid: { type: [Boolean, Object], default: false },
60
60
  className: {},
61
61
  readonly: { type: Boolean },
62
- disabled: { type: Boolean, default: false },
63
62
  watchDeep: { type: Boolean, default: true },
64
63
  showFooter: { type: Boolean, default: true },
65
64
  footerClass: { default: "" },
@@ -68,16 +67,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
68
67
  submitDisabled: { type: Boolean, default: false },
69
68
  cancelDisabled: { type: Boolean, default: false },
70
69
  showCount: { default: 999 },
71
- onValidate: {},
72
70
  onSubmit: {},
73
71
  onReset: {},
74
72
  model: {},
75
73
  rules: {},
76
- labelPosition: { default: "right" },
74
+ labelPosition: {},
77
75
  requireAsteriskPosition: {},
78
- labelWidth: { default: "100" },
76
+ labelWidth: {},
79
77
  labelSuffix: {},
80
- inline: { type: Boolean, default: false },
78
+ inline: { type: Boolean },
81
79
  inlineMessage: { type: Boolean },
82
80
  statusIcon: { type: Boolean },
83
81
  showMessage: { type: Boolean },
@@ -85,7 +83,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
85
83
  hideRequiredAsterisk: { type: Boolean },
86
84
  scrollToError: { type: Boolean },
87
85
  scrollIntoViewOptions: { type: Boolean },
88
- size: { default: "default" }
86
+ size: { default: "default" },
87
+ disabled: { type: Boolean }
89
88
  }, {
90
89
  "modelValue": { required: true, default: () => ({}) },
91
90
  "modelModifiers": {}
@@ -95,7 +94,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
95
94
  const props = __props;
96
95
  const emit = __emit;
97
96
  const modelValue = vue.useModel(__props, "modelValue");
97
+ const customProps = ["items", "showTitle", "title", "gutter", "defaultSpan", "responsive", "watchDeep", "grid", "showFooter", "submitText", "cancelText", "submitDisabled", "cancelDisabled", "showCount"];
98
98
  vue.provide("formModel", modelValue);
99
+ const attrs = vue.useAttrs();
99
100
  const formRef = vue.ref();
100
101
  const showAllItems = vue.ref(false);
101
102
  const _visibleItems = vue.computed(() => {
@@ -114,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
114
115
  showAllItems.value = !showAllItems.value;
115
116
  }
116
117
  const _gridStyle = vue.computed(() => {
117
- if (!props.inline || !props.grid || typeof props.grid === "boolean") {
118
+ if (!attrs.inline || !props.grid || typeof props.grid === "boolean") {
118
119
  return {};
119
120
  }
120
121
  const style = {};
@@ -128,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
128
129
  return style;
129
130
  });
130
131
  vue.watch(
131
- () => props.modelValue,
132
+ () => modelValue.value,
132
133
  (newVal, oldVal) => {
133
134
  if (newVal !== oldVal) {
134
135
  emit("change", __spreadValues({}, newVal));
@@ -188,13 +189,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
188
189
  return (_ctx, _cache) => {
189
190
  const _component_ElButton = vue.resolveComponent("ElButton");
190
191
  const _component_ElFormItem = vue.resolveComponent("ElFormItem");
191
- return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElForm), {
192
+ return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElForm), vue.mergeProps({
192
193
  ref_key: "formRef",
193
- ref: formRef,
194
- class: vue.normalizeClass(["jky-form", [__props.inline && "jky-form--inline", __props.grid && "jky-form--grid"]]),
194
+ ref: formRef
195
+ }, vue.unref(lodashEs.omit)(props, customProps), {
196
+ class: ["jky-form", [_ctx.$attrs.inline && "jky-form--inline", props.grid && "jky-form--grid"]],
195
197
  model: modelValue.value,
196
- style: vue.normalizeStyle(_gridStyle.value)
197
- }, {
198
+ style: [_gridStyle.value]
199
+ }), {
198
200
  default: vue.withCtx(() => [
199
201
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_visibleItems.value, (item) => {
200
202
  return vue.openBlock(), vue.createBlock(FormItem_vue_vue_type_script_setup_true_lang.default, {
@@ -212,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
212
214
  }, {
213
215
  default: vue.withCtx(() => [
214
216
  vue.createElementVNode("div", {
215
- class: vue.normalizeClass(["w-full flex gap-2", [props.grid && props.inline ? "justify-center" : "justify-end", props.footerClass]])
217
+ class: vue.normalizeClass(["w-full flex gap-2", [props.grid && _ctx.$attrs.inline ? "justify-center" : "justify-end", props.footerClass]])
216
218
  }, [
217
219
  _showMoreButton.value ? (vue.openBlock(), vue.createBlock(_component_ElButton, {
218
220
  key: 0,
@@ -252,7 +254,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
252
254
  })) : vue.createCommentVNode("", true)
253
255
  ]),
254
256
  _: 1
255
- }, 8, ["class", "model", "style"]);
257
+ }, 16, ["model", "class", "style"]);
256
258
  };
257
259
  }
258
260
  }));
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "0.0.110";
3
+ const version = "0.0.114";
4
4
  exports.version = version;
@@ -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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */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 : (...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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */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 : (...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;
@@ -237,11 +237,7 @@ declare function __VLS_template(): {
237
237
  }) => any;
238
238
  }, import('vue').PublicProps, {
239
239
  size: import('element-plus').ComponentSize;
240
- disabled: boolean;
241
240
  grid: import('../form').GridConfig;
242
- inline: boolean;
243
- labelPosition: "left" | "right" | "top";
244
- labelWidth: string | number;
245
241
  gutter: number;
246
242
  defaultSpan: number;
247
243
  responsive: boolean;
@@ -328,7 +324,7 @@ declare function __VLS_template(): {
328
324
  };
329
325
  $forceUpdate: () => void;
330
326
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
327
+ $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;
332
328
  } & Readonly<{
333
329
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
334
330
  labelWidth: string | number;
@@ -448,7 +444,7 @@ declare function __VLS_template(): {
448
444
  };
449
445
  $forceUpdate: () => void;
450
446
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
447
+ $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;
452
448
  } & Readonly<{
453
449
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
454
450
  labelWidth: string | number;
@@ -547,7 +543,7 @@ declare function __VLS_template(): {
547
543
  };
548
544
  $forceUpdate: () => void;
549
545
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
546
+ $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;
551
547
  } & Readonly<{
552
548
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
553
549
  labelWidth: string | number;
@@ -574,11 +570,7 @@ declare function __VLS_template(): {
574
570
  }) | undefined;
575
571
  }, {}, {}, {}, {
576
572
  size: import('element-plus').ComponentSize;
577
- disabled: boolean;
578
573
  grid: import('../form').GridConfig;
579
- inline: boolean;
580
- labelPosition: "left" | "right" | "top";
581
- labelWidth: string | number;
582
574
  gutter: number;
583
575
  defaultSpan: number;
584
576
  responsive: boolean;
@@ -2866,7 +2858,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2866
2858
  };
2867
2859
  $forceUpdate: () => void;
2868
2860
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2861
+ $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;
2870
2862
  } & Readonly<{
2871
2863
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2872
2864
  labelWidth: string | number;
@@ -2965,7 +2957,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2965
2957
  };
2966
2958
  $forceUpdate: () => void;
2967
2959
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2960
+ $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;
2969
2961
  } & Readonly<{
2970
2962
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2971
2963
  labelWidth: string | number;
@@ -3001,11 +2993,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3001
2993
  }) => any;
3002
2994
  }, import('vue').PublicProps, {
3003
2995
  size: import('element-plus').ComponentSize;
3004
- disabled: boolean;
3005
2996
  grid: import('../form').GridConfig;
3006
- inline: boolean;
3007
- labelPosition: "left" | "right" | "top";
3008
- labelWidth: string | number;
3009
2997
  gutter: number;
3010
2998
  defaultSpan: number;
3011
2999
  responsive: boolean;
@@ -3092,7 +3080,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3092
3080
  };
3093
3081
  $forceUpdate: () => void;
3094
3082
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3083
+ $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;
3096
3084
  } & Readonly<{
3097
3085
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3098
3086
  labelWidth: string | number;
@@ -3212,7 +3200,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3212
3200
  };
3213
3201
  $forceUpdate: () => void;
3214
3202
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3203
+ $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;
3216
3204
  } & Readonly<{
3217
3205
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3218
3206
  labelWidth: string | number;
@@ -3311,7 +3299,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3311
3299
  };
3312
3300
  $forceUpdate: () => void;
3313
3301
  $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 : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3302
+ $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;
3315
3303
  } & Readonly<{
3316
3304
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3317
3305
  labelWidth: string | number;
@@ -3338,11 +3326,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3338
3326
  }) | undefined;
3339
3327
  }, {}, {}, {}, {
3340
3328
  size: import('element-plus').ComponentSize;
3341
- disabled: boolean;
3342
3329
  grid: import('../form').GridConfig;
3343
- inline: boolean;
3344
- labelPosition: "left" | "right" | "top";
3345
- labelWidth: string | number;
3346
3330
  gutter: number;
3347
3331
  defaultSpan: number;
3348
3332
  responsive: boolean;
@@ -212,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
212
212
  }
213
213
  function loadData() {
214
214
  return __async(this, null, function* () {
215
- var _a, _b, _c, _d;
215
+ var _a, _b;
216
216
  if (!((_a = props.dataSource) == null ? void 0 : _a.api)) {
217
217
  console.warn("PageTable: 没有配置 dataSource.api");
218
218
  return;
@@ -224,12 +224,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
224
224
  const responseProps = props.dataSource.responseProps || {};
225
225
  const recordsField = responseProps.recordsField || "records";
226
226
  const totalField = responseProps.totalField || "total";
227
- const pageNoField = responseProps.pageNoField || "pageNo";
228
- const pageSizeField = responseProps.pageSizeField || "pageSize";
229
227
  internalData.value = result[recordsField] || [];
230
228
  totalModel.value = (_b = result[totalField]) != null ? _b : defaults.total;
231
- pageNoModel.value = (_c = result[pageNoField]) != null ? _c : defaults.pageNo;
232
- pageSizeModel.value = (_d = result[pageSizeField]) != null ? _d : defaults.pageSize;
233
229
  if (props.selectedRows && props.selectedRows.length > 0) {
234
230
  setTimeout(() => {
235
231
  if (tableRef.value) {
@@ -272,11 +272,7 @@ declare const _default: import('vue').DefineComponent<PageTableV2Props, {
272
272
  }) => any;
273
273
  }, import('vue').PublicProps, {
274
274
  size: import('element-plus').ComponentSize;
275
- disabled: boolean;
276
275
  grid: import('../form').GridConfig;
277
- inline: boolean;
278
- labelPosition: "left" | "right" | "top";
279
- labelWidth: string | number;
280
276
  gutter: number;
281
277
  defaultSpan: number;
282
278
  responsive: boolean;
@@ -609,11 +605,7 @@ declare const _default: import('vue').DefineComponent<PageTableV2Props, {
609
605
  }) | undefined;
610
606
  }, {}, {}, {}, {
611
607
  size: import('element-plus').ComponentSize;
612
- disabled: boolean;
613
608
  grid: import('../form').GridConfig;
614
- inline: boolean;
615
- labelPosition: "left" | "right" | "top";
616
- labelWidth: string | number;
617
609
  gutter: number;
618
610
  defaultSpan: number;
619
611
  responsive: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jky-component-lib",
3
3
  "type": "module",
4
- "version": "0.0.110",
4
+ "version": "0.0.114",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -57,6 +57,7 @@
57
57
  },
58
58
  "scripts": {
59
59
  "preinstall": "echo 'Using bun package manager'",
60
+ "prepare": "bunx simple-git-hooks",
60
61
  "dev": "vite build --watch",
61
62
  "dev:all": "bash scripts/dev-all.sh",
62
63
  "dev:docs": "bash scripts/docs-dev.sh",
@@ -152,6 +153,9 @@
152
153
  "vue-router": "^5.0.4",
153
154
  "vue-tsc": "^2.2.10"
154
155
  },
156
+ "simple-git-hooks": {
157
+ "pre-commit": "bun run lint-staged"
158
+ },
155
159
  "lint-staged": {
156
160
  "*": "bun run lint:fix"
157
161
  }