yc-pro-components 0.0.72 → 0.0.74

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 (60) hide show
  1. package/es/components/search/src/index.vue2.mjs +11 -3
  2. package/es/components/yc-config-provider/src/index.vue2.mjs +7 -3
  3. package/es/components/yc-config-provider/src/type.d.ts +9 -0
  4. package/es/components/yc-config-provider/src/type.mjs +3 -0
  5. package/es/components/yc-drawer/src/index.vue.mjs +1 -1
  6. package/es/components/yc-drawer/src/index.vue2.mjs +18 -6
  7. package/es/components/yc-drawer/store.d.ts +2 -0
  8. package/es/components/yc-drawer/store.mjs +10 -1
  9. package/es/components/yc-plus-page/src/index.vue.d.ts +20 -48
  10. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  11. package/es/components/yc-plus-page/src/index.vue2.mjs +35 -0
  12. package/es/index.css +10 -10
  13. package/es/version.d.ts +1 -1
  14. package/es/version.mjs +1 -1
  15. package/es/yc-components/version.d.ts +1 -1
  16. package/index.css +1 -1
  17. package/index.js +4479 -4409
  18. package/index.min.css +2 -2
  19. package/index.min.js +13 -13
  20. package/index.min.mjs +13 -13
  21. package/index.mjs +4479 -4409
  22. package/lib/components/search/src/index.vue2.js +10 -2
  23. package/lib/components/yc-config-provider/src/index.vue2.js +7 -3
  24. package/lib/components/yc-config-provider/src/type.d.ts +9 -0
  25. package/lib/components/yc-config-provider/src/type.js +3 -0
  26. package/lib/components/yc-drawer/src/index.vue.js +1 -1
  27. package/lib/components/yc-drawer/src/index.vue2.js +16 -4
  28. package/lib/components/yc-drawer/store.d.ts +2 -0
  29. package/lib/components/yc-drawer/store.js +11 -0
  30. package/lib/components/yc-plus-page/src/index.vue.d.ts +20 -48
  31. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  32. package/lib/components/yc-plus-page/src/index.vue2.js +35 -0
  33. package/lib/index.css +12 -12
  34. package/lib/version.d.ts +1 -1
  35. package/lib/version.js +1 -1
  36. package/lib/yc-components/version.d.ts +1 -1
  37. package/locale/en.js +1 -1
  38. package/locale/en.min.js +1 -1
  39. package/locale/en.min.mjs +1 -1
  40. package/locale/en.mjs +1 -1
  41. package/locale/ja.js +1 -1
  42. package/locale/ja.min.js +1 -1
  43. package/locale/ja.min.mjs +1 -1
  44. package/locale/ja.mjs +1 -1
  45. package/locale/ko.js +1 -1
  46. package/locale/ko.min.js +1 -1
  47. package/locale/ko.min.mjs +1 -1
  48. package/locale/ko.mjs +1 -1
  49. package/locale/zh-cn.js +1 -1
  50. package/locale/zh-cn.min.js +1 -1
  51. package/locale/zh-cn.min.mjs +1 -1
  52. package/locale/zh-cn.mjs +1 -1
  53. package/locale/zh-tw.js +1 -1
  54. package/locale/zh-tw.min.js +1 -1
  55. package/locale/zh-tw.min.mjs +1 -1
  56. package/locale/zh-tw.mjs +1 -1
  57. package/package.json +1 -1
  58. package/theme-chalk/index.css +1 -1
  59. package/theme-chalk/plus-pagination.css +1 -1
  60. package/theme-chalk/src/pagination.scss +5 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, useAttrs, computed, unref, watch, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, createTextVNode, toDisplayString, createVNode, renderList, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, ref, computed, useAttrs, unref, watch, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, createTextVNode, toDisplayString, createVNode, renderList, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import { PlusForm } from '../../form/index.mjs';
3
3
  import { ArrowUp, ArrowDown } from '@element-plus/icons-vue';
4
4
  import { versionIsLessThan299 } from '../../utils/index.mjs';
@@ -6,6 +6,7 @@ import { useLocale } from '../../../hooks/useLocale.mjs';
6
6
  import 'sortablejs';
7
7
  import { ElFormItem, ElButton, ElLink, ElIcon } from 'element-plus';
8
8
  import { orderBy } from 'lodash-es';
9
+ import { useYcComponentConfig } from '../../yc-config-provider/src/useYcConfig.mjs';
9
10
 
10
11
  var _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  ...{
@@ -49,7 +50,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
49
50
  const props = __props;
50
51
  const emit = __emit;
51
52
  const { t } = useLocale();
53
+ const searchConfig = useYcComponentConfig("plusSearch");
52
54
  const plusFormInstance = ref();
55
+ const effectiveLabelPosition = computed(
56
+ () => {
57
+ var _a2, _b;
58
+ return (_b = (_a2 = props.labelPosition) != null ? _a2 : searchConfig == null ? void 0 : searchConfig.labelPosition) != null ? _b : "right";
59
+ }
60
+ );
53
61
  const isShowUnfold = ref((_a = props.defaultUnfold) != null ? _a : false);
54
62
  const values = ref({});
55
63
  const attrs = useAttrs();
@@ -121,7 +129,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
121
129
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => values.value = $event),
122
130
  inline: _ctx.inline,
123
131
  rules: rules.value,
124
- "label-position": _ctx.labelPosition,
132
+ "label-position": effectiveLabelPosition.value,
125
133
  "row-props": _ctx.rowProps,
126
134
  "col-props": _ctx.colProps,
127
135
  columns: subColumns.value,
@@ -134,7 +142,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
134
142
  _ctx.hasFooter ? (openBlock(), createBlock(unref(ElFormItem), {
135
143
  key: 0,
136
144
  class: "plus-search__button__wrapper",
137
- label: _ctx.labelPosition === "top" ? "placeholder" : ""
145
+ label: effectiveLabelPosition.value === "top" ? "placeholder" : ""
138
146
  }, {
139
147
  default: withCtx(() => [
140
148
  renderSlot(_ctx.$slots, "footer", {
@@ -12,7 +12,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  setup(__props) {
13
13
  const props = __props;
14
14
  const mergedConfig = computed(() => {
15
- var _a, _b, _c, _d, _e, _f, _g;
15
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
16
16
  const userConfig = props.config;
17
17
  return {
18
18
  // CDN 配置合并
@@ -33,9 +33,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  ...(_d = DEFAULT_YC_CONFIG.components) == null ? void 0 : _d.plusPage,
34
34
  ...(_e = userConfig.components) == null ? void 0 : _e.plusPage
35
35
  },
36
+ plusSearch: {
37
+ ...(_f = DEFAULT_YC_CONFIG.components) == null ? void 0 : _f.plusSearch,
38
+ ...(_g = userConfig.components) == null ? void 0 : _g.plusSearch
39
+ },
36
40
  tabsWithFilter: {
37
- ...(_f = DEFAULT_YC_CONFIG.components) == null ? void 0 : _f.tabsWithFilter,
38
- ...(_g = userConfig.components) == null ? void 0 : _g.tabsWithFilter
41
+ ...(_h = DEFAULT_YC_CONFIG.components) == null ? void 0 : _h.tabsWithFilter,
42
+ ...(_i = userConfig.components) == null ? void 0 : _i.tabsWithFilter
39
43
  }
40
44
  }
41
45
  };
@@ -63,6 +63,15 @@ export interface YcGlobalConfig {
63
63
  /** 工具栏「字段管理」/列设置旁文案,默认「字段管理」 */
64
64
  columnSettingsText?: string;
65
65
  };
66
+ /** PlusSearch 默认配置 */
67
+ plusSearch?: {
68
+ /** 标签位置,默认 'right' */
69
+ labelPosition?: 'left' | 'right' | 'top';
70
+ /** 布局模式 */
71
+ layout?: 'flex' | 'grid';
72
+ /** 默认展示的搜索项数量 */
73
+ showNumber?: number;
74
+ };
66
75
  /** YcTabsWithFilter 默认配置 */
67
76
  tabsWithFilter?: {
68
77
  /** 筛选按钮文字 */
@@ -15,6 +15,9 @@ const DEFAULT_YC_CONFIG = {
15
15
  showSearch: true,
16
16
  columnSettingsText: "\u5B57\u6BB5\u7BA1\u7406"
17
17
  },
18
+ plusSearch: {
19
+ labelPosition: "right"
20
+ },
18
21
  tabsWithFilter: {
19
22
  filterText: "\u7B5B\u9009"
20
23
  }
@@ -1,6 +1,6 @@
1
1
  import _sfc_main from './index.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6f2fd13"], ["__file", "index.vue"]]);
4
+ var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eb9ddafc"], ["__file", "index.vue"]]);
5
5
 
6
6
  export { YcDrawerComponent as default };
@@ -1,10 +1,11 @@
1
- import { defineComponent, provide, ref, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, mergeProps, createSlots, withCtx, createElementVNode, resolveDynamicComponent, normalizeClass, toDisplayString, createVNode, normalizeProps, guardReactiveProps, createTextVNode, pushScopeId, popScopeId } from 'vue';
1
+ import { defineComponent, onUnmounted, provide, ref, computed, resolveComponent, unref, openBlock, createElementBlock, Fragment, renderList, createBlock, mergeProps, createSlots, withCtx, createElementVNode, resolveDynamicComponent, normalizeClass, toDisplayString, createVNode, normalizeProps, guardReactiveProps, createTextVNode, createCommentVNode, pushScopeId, popScopeId } from 'vue';
2
2
  import { isFunction } from 'lodash-es';
3
3
  import { Close } from '@element-plus/icons-vue';
4
- import { drawerStore, closeDrawer } from '../store.mjs';
4
+ import { drawerStore, claimDrawerInstance, releaseDrawerInstance, closeDrawer } from '../store.mjs';
5
5
  import { DictStoreInjectionKey } from '../../../constants/dict.mjs';
6
6
 
7
- const _withScopeId = (n) => (pushScopeId("data-v-f6f2fd13"), n = n(), popScopeId(), n);
7
+ const import_meta = {};
8
+ const _withScopeId = (n) => (pushScopeId("data-v-eb9ddafc"), n = n(), popScopeId(), n);
8
9
  const _hoisted_1 = { class: "custom-drawer-header" };
9
10
  const _hoisted_2 = { class: "header-content" };
10
11
  const _hoisted_3 = ["id"];
@@ -22,6 +23,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
22
23
  },
23
24
  __name: "index",
24
25
  setup(__props) {
26
+ const shouldRender = claimDrawerInstance();
27
+ if (!shouldRender && import_meta.env.DEV) {
28
+ console.warn(
29
+ "[YcDrawer] Multiple <YcDrawer /> instances detected. Only the first instance renders drawers. Remove duplicate <YcDrawer /> from your component \u2014 it only needs to be placed once in the root App."
30
+ );
31
+ }
32
+ onUnmounted(() => {
33
+ if (shouldRender) {
34
+ releaseDrawerInstance();
35
+ }
36
+ });
25
37
  const DictStoreProvider = defineComponent({
26
38
  name: "DictStoreProvider",
27
39
  props: {
@@ -110,9 +122,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
110
122
  const _component_el_button = resolveComponent("el-button");
111
123
  const _component_el_popconfirm = resolveComponent("el-popconfirm");
112
124
  const _component_el_drawer = resolveComponent("el-drawer");
113
- return openBlock(true), createElementBlock(
125
+ return unref(shouldRender) ? (openBlock(true), createElementBlock(
114
126
  Fragment,
115
- null,
127
+ { key: 0 },
116
128
  renderList(unref(drawerStore), (options, index) => {
117
129
  return openBlock(), createBlock(_component_el_drawer, mergeProps({ key: index }, options, {
118
130
  modelValue: options.visible,
@@ -249,7 +261,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
249
261
  }),
250
262
  128
251
263
  /* KEYED_FRAGMENT */
252
- );
264
+ )) : createCommentVNode("v-if", true);
253
265
  };
254
266
  }
255
267
  });
@@ -2342,6 +2342,8 @@ export declare const drawerStore: Ref<{
2342
2342
  zIndex?: number | undefined;
2343
2343
  headerAriaLevel?: string | undefined;
2344
2344
  }[]>;
2345
+ export declare function claimDrawerInstance(): boolean;
2346
+ export declare function releaseDrawerInstance(): void;
2345
2347
  /** 打开抽屉 */
2346
2348
  export declare const addDrawer: (options: DrawerOptions) => void;
2347
2349
  /** 关闭抽屉 */
@@ -1,6 +1,15 @@
1
1
  import { ref } from 'vue';
2
2
 
3
3
  const drawerStore = ref([]);
4
+ let _hasActiveInstance = false;
5
+ function claimDrawerInstance() {
6
+ if (_hasActiveInstance) return false;
7
+ _hasActiveInstance = true;
8
+ return true;
9
+ }
10
+ function releaseDrawerInstance() {
11
+ _hasActiveInstance = false;
12
+ }
4
13
  const addDrawer = (options) => {
5
14
  const open = () => drawerStore.value.push(Object.assign(options, { visible: true }));
6
15
  if (options == null ? void 0 : options.openDelay) {
@@ -35,4 +44,4 @@ const closeAllDrawer = () => {
35
44
  drawerStore.value = [];
36
45
  };
37
46
 
38
- export { addDrawer, closeAllDrawer, closeDrawer, drawerStore, updateDrawer };
47
+ export { addDrawer, claimDrawerInstance, closeAllDrawer, closeDrawer, drawerStore, releaseDrawerInstance, updateDrawer };
@@ -995,10 +995,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
995
995
  onSubmitError?: ((errors: unknown) => any) | undefined;
996
996
  }, {
997
997
  formInstance: Ref< FormInstance | null>;
998
- /**
999
- * 默认每页条数(公共配置)
1000
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
1001
- */
1002
998
  handleSubmit: () => void;
1003
999
  handleReset: () => void;
1004
1000
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -1177,10 +1173,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1177
1173
  onSubmitError?: ((errors: unknown) => any) | undefined;
1178
1174
  }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
1179
1175
  formInstance: Ref< FormInstance | null>;
1180
- /**
1181
- * 默认每页条数(公共配置)
1182
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
1183
- */
1184
1176
  handleSubmit: () => void;
1185
1177
  handleReset: () => void;
1186
1178
  }> & {} & ComponentCustomProperties & {} & {
@@ -1907,10 +1899,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
1907
1899
  onSubmitError?: ((errors: unknown) => any) | undefined;
1908
1900
  }, {
1909
1901
  formInstance: Ref< FormInstance | null>;
1910
- /**
1911
- * 默认每页条数(公共配置)
1912
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
1913
- */
1914
1902
  handleSubmit: () => void;
1915
1903
  handleReset: () => void;
1916
1904
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -2089,10 +2077,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
2089
2077
  onSubmitError?: ((errors: unknown) => any) | undefined;
2090
2078
  }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
2091
2079
  formInstance: Ref< FormInstance | null>;
2092
- /**
2093
- * 默认每页条数(公共配置)
2094
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
2095
- */
2096
2080
  handleSubmit: () => void;
2097
2081
  handleReset: () => void;
2098
2082
  }> & {} & ComponentCustomProperties & {} & {
@@ -3123,10 +3107,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
3123
3107
  row: RecordType;
3124
3108
  index: number;
3125
3109
  rowIndex: number;
3126
- /**
3127
- * 使用表头筛选 Hook
3128
- * 使用 getter 函数传递 props 以保持响应性
3129
- */
3130
3110
  fieldProps: RecordType;
3131
3111
  options: OptionsRow<undefined>[];
3132
3112
  value: any;
@@ -4466,10 +4446,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
4466
4446
  onSubmitError?: ((errors: unknown) => any) | undefined;
4467
4447
  }, {
4468
4448
  formInstance: Ref< FormInstance | null>;
4469
- /**
4470
- * 默认每页条数(公共配置)
4471
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
4472
- */
4473
4449
  handleSubmit: () => void;
4474
4450
  handleReset: () => void;
4475
4451
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -4648,10 +4624,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
4648
4624
  onSubmitError?: ((errors: unknown) => any) | undefined;
4649
4625
  }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
4650
4626
  formInstance: Ref< FormInstance | null>;
4651
- /**
4652
- * 默认每页条数(公共配置)
4653
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
4654
- */
4655
4627
  handleSubmit: () => void;
4656
4628
  handleReset: () => void;
4657
4629
  }> & {} & ComponentCustomProperties & {} & {
@@ -5378,10 +5350,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
5378
5350
  onSubmitError?: ((errors: unknown) => any) | undefined;
5379
5351
  }, {
5380
5352
  formInstance: Ref< FormInstance | null>;
5381
- /**
5382
- * 默认每页条数(公共配置)
5383
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
5384
- */
5385
5353
  handleSubmit: () => void;
5386
5354
  handleReset: () => void;
5387
5355
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -5560,10 +5528,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
5560
5528
  onSubmitError?: ((errors: unknown) => any) | undefined;
5561
5529
  }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
5562
5530
  formInstance: Ref< FormInstance | null>;
5563
- /**
5564
- * 默认每页条数(公共配置)
5565
- * @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
5566
- */
5567
5531
  handleSubmit: () => void;
5568
5532
  handleReset: () => void;
5569
5533
  }> & {} & ComponentCustomProperties & {} & {
@@ -6594,10 +6558,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
6594
6558
  row: RecordType;
6595
6559
  index: number;
6596
6560
  rowIndex: number;
6597
- /**
6598
- * 使用表头筛选 Hook
6599
- * 使用 getter 函数传递 props 以保持响应性
6600
- */
6601
6561
  fieldProps: RecordType;
6602
6562
  options: OptionsRow<undefined>[];
6603
6563
  value: any;
@@ -7281,10 +7241,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
7281
7241
  row: RecordType;
7282
7242
  index: number;
7283
7243
  rowIndex: number;
7284
- /**
7285
- * 使用表头筛选 Hook
7286
- * 使用 getter 函数传递 props 以保持响应性
7287
- */
7288
7244
  fieldProps: RecordType;
7289
7245
  options: OptionsRow<undefined>[];
7290
7246
  value: any;
@@ -7970,10 +7926,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
7970
7926
  row: RecordType;
7971
7927
  index: number;
7972
7928
  rowIndex: number;
7973
- /**
7974
- * 使用表头筛选 Hook
7975
- * 使用 getter 函数传递 props 以保持响应性
7976
- */
7977
7929
  fieldProps: RecordType;
7978
7930
  options: OptionsRow<undefined>[];
7979
7931
  value: any;
@@ -7994,6 +7946,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
7994
7946
  }) | null | undefined>;
7995
7947
  tableInstance: ComputedRef< TableInstance | null | undefined>;
7996
7948
  formRefs: ComputedRef<Record<string | number, TableFormRefRow[]> | undefined>;
7949
+ /**
7950
+ * 搜索表单的 ElForm 实例快捷访问
7951
+ * @version 0.0.75
7952
+ */
7953
+ searchFormInstance: ComputedRef< FormInstance | null | undefined>;
7997
7954
  headerFiltersState: HeaderFiltersState;
7998
7955
  orderByState: OrderByItem[];
7999
7956
  operatorCatalogState: Ref<Record<string, string[]>>;
@@ -8007,6 +7964,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
8007
7964
  value?: string | undefined;
8008
7965
  }[] | undefined) => void;
8009
7966
  getList: () => Promise<void> | undefined;
7967
+ /**
7968
+ * 获取搜索表单的所有字段值,或指定字段的值
7969
+ * @version 0.0.75
7970
+ */
7971
+ getSearchFieldsValue: (key?: string | undefined) => FieldValueType;
7972
+ /**
7973
+ * 设置搜索表单的字段值
7974
+ * @version 0.0.75
7975
+ */
7976
+ setSearchFieldsValue: (values: Record<string, unknown>) => void | undefined;
7977
+ /**
7978
+ * 清空搜索表单的所有字段值
7979
+ * @version 0.0.75
7980
+ */
7981
+ clearSearchFieldsValue: () => void | undefined;
8010
7982
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8011
7983
  "header-filter-confirm": (payload: HeaderFilterPayload) => void;
8012
7984
  "header-filter-reset": (payload: HeaderFilterResetPayload) => void;
@@ -1,6 +1,6 @@
1
1
  import _sfc_main from './index.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6f94a8b9"], ["__file", "index.vue"]]);
4
+ var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-73380467"], ["__file", "index.vue"]]);
5
5
 
6
6
  export { YcPlusPageComponent as default };
@@ -58,6 +58,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  var _a, _b;
59
59
  return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.plusTableInstance) == null ? void 0 : _b.formRefs;
60
60
  });
61
+ const searchFormInstance = computed(
62
+ () => {
63
+ var _a, _b, _c;
64
+ return (_c = (_b = (_a = plusPageRef.value) == null ? void 0 : _a.plusSearchInstance) == null ? void 0 : _b.plusFormInstance) == null ? void 0 : _c.formInstance;
65
+ }
66
+ );
61
67
  const slots = useSlots();
62
68
  const triggerTableHeightRecalculate = () => {
63
69
  nextTick(() => {
@@ -462,6 +468,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
462
468
  plusTableInstance,
463
469
  tableInstance,
464
470
  formRefs,
471
+ /**
472
+ * 搜索表单的 ElForm 实例快捷访问
473
+ * @version 0.0.75
474
+ */
475
+ searchFormInstance,
465
476
  // 表头筛选相关
466
477
  headerFiltersState,
467
478
  orderByState,
@@ -474,6 +485,30 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
474
485
  getList: () => {
475
486
  var _a, _b;
476
487
  return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.getList) == null ? void 0 : _b.call(_a);
488
+ },
489
+ /**
490
+ * 获取搜索表单的所有字段值,或指定字段的值
491
+ * @version 0.0.75
492
+ */
493
+ getSearchFieldsValue: (key) => {
494
+ var _a, _b;
495
+ return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.getSearchFieldsValue) == null ? void 0 : _b.call(_a, key);
496
+ },
497
+ /**
498
+ * 设置搜索表单的字段值
499
+ * @version 0.0.75
500
+ */
501
+ setSearchFieldsValue: (values) => {
502
+ var _a, _b;
503
+ return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.setSearchFieldsValue) == null ? void 0 : _b.call(_a, values);
504
+ },
505
+ /**
506
+ * 清空搜索表单的所有字段值
507
+ * @version 0.0.75
508
+ */
509
+ clearSearchFieldsValue: () => {
510
+ var _a, _b;
511
+ return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.clearSearchFieldsValue) == null ? void 0 : _b.call(_a);
477
512
  }
478
513
  });
479
514
  return (_ctx, _cache) => {