yc-pro-components 0.0.12 → 0.0.13

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 (103) hide show
  1. package/es/components/dialog-form/index.d.ts +14 -2
  2. package/es/components/dialog-form/src/index.vue.d.ts +14 -2
  3. package/es/components/display-item/index.d.ts +42 -6
  4. package/es/components/display-item/src/index.vue.d.ts +42 -6
  5. package/es/components/drawer-form/index.d.ts +14 -2
  6. package/es/components/drawer-form/src/index.vue.d.ts +14 -2
  7. package/es/components/form/index.d.ts +28 -4
  8. package/es/components/form/src/form-content.vue.d.ts +42 -6
  9. package/es/components/form/src/index.vue.d.ts +28 -4
  10. package/es/components/form-item/index.d.ts +88 -16
  11. package/es/components/form-item/src/index.vue.d.ts +35 -4
  12. package/es/components/form-item/src/index.vue2.mjs +1 -0
  13. package/es/components/page/index.d.ts +224 -32
  14. package/es/components/page/src/index.vue.d.ts +84 -12
  15. package/es/components/page/src/index.vue2.mjs +1 -1
  16. package/es/components/render/index.d.ts +3 -3
  17. package/es/components/render/src/index.vue.d.ts +1 -1
  18. package/es/components/search/index.d.ts +98 -14
  19. package/es/components/search/src/index.vue.d.ts +42 -6
  20. package/es/components/table/src/table-action-bar.vue2.mjs +1 -1
  21. package/es/components/table/src/table-column.vue.d.ts +42 -6
  22. package/es/components/yc-plus-page/src/index.vue.d.ts +154 -22
  23. package/es/constants/dict.d.ts +78 -0
  24. package/es/constants/dict.mjs +3 -0
  25. package/es/constants/index.d.ts +1 -0
  26. package/es/constants/index.mjs +1 -0
  27. package/es/hooks/index.d.ts +1 -0
  28. package/es/hooks/index.mjs +1 -0
  29. package/es/hooks/useDictInjection.d.ts +38 -0
  30. package/es/hooks/useDictInjection.mjs +18 -0
  31. package/es/hooks/useGetOptions.mjs +118 -30
  32. package/es/hooks/usePlusFormReset.d.ts +84 -12
  33. package/es/index.d.ts +1 -1
  34. package/es/index.mjs +2 -0
  35. package/es/types/plus.d.ts +74 -0
  36. package/es/version.d.ts +1 -1
  37. package/es/version.mjs +1 -1
  38. package/es/yc-components/index.d.ts +1 -1
  39. package/es/yc-components/version.d.ts +1 -1
  40. package/index.js +165 -59
  41. package/index.min.js +7 -7
  42. package/index.min.mjs +7 -7
  43. package/index.mjs +165 -61
  44. package/lib/components/dialog-form/index.d.ts +14 -2
  45. package/lib/components/dialog-form/src/index.vue.d.ts +14 -2
  46. package/lib/components/display-item/index.d.ts +42 -6
  47. package/lib/components/display-item/src/index.vue.d.ts +42 -6
  48. package/lib/components/drawer-form/index.d.ts +14 -2
  49. package/lib/components/drawer-form/src/index.vue.d.ts +14 -2
  50. package/lib/components/form/index.d.ts +28 -4
  51. package/lib/components/form/src/form-content.vue.d.ts +42 -6
  52. package/lib/components/form/src/index.vue.d.ts +28 -4
  53. package/lib/components/form-item/index.d.ts +88 -16
  54. package/lib/components/form-item/src/index.vue.d.ts +35 -4
  55. package/lib/components/form-item/src/index.vue2.js +1 -0
  56. package/lib/components/page/index.d.ts +224 -32
  57. package/lib/components/page/src/index.vue.d.ts +84 -12
  58. package/lib/components/page/src/index.vue2.js +1 -1
  59. package/lib/components/render/index.d.ts +3 -3
  60. package/lib/components/render/src/index.vue.d.ts +1 -1
  61. package/lib/components/search/index.d.ts +98 -14
  62. package/lib/components/search/src/index.vue.d.ts +42 -6
  63. package/lib/components/table/src/table-action-bar.vue2.js +1 -1
  64. package/lib/components/table/src/table-column.vue.d.ts +42 -6
  65. package/lib/components/yc-plus-page/src/index.vue.d.ts +154 -22
  66. package/lib/constants/dict.d.ts +78 -0
  67. package/lib/constants/dict.js +5 -0
  68. package/lib/constants/index.d.ts +1 -0
  69. package/lib/constants/index.js +2 -0
  70. package/lib/hooks/index.d.ts +1 -0
  71. package/lib/hooks/index.js +2 -0
  72. package/lib/hooks/useDictInjection.d.ts +38 -0
  73. package/lib/hooks/useDictInjection.js +20 -0
  74. package/lib/hooks/useGetOptions.js +117 -29
  75. package/lib/hooks/usePlusFormReset.d.ts +84 -12
  76. package/lib/index.d.ts +1 -1
  77. package/lib/index.js +4 -0
  78. package/lib/types/plus.d.ts +74 -0
  79. package/lib/version.d.ts +1 -1
  80. package/lib/version.js +1 -1
  81. package/lib/yc-components/index.d.ts +1 -1
  82. package/lib/yc-components/version.d.ts +1 -1
  83. package/locale/en.js +1 -1
  84. package/locale/en.min.js +1 -1
  85. package/locale/en.min.mjs +1 -1
  86. package/locale/en.mjs +1 -1
  87. package/locale/ja.js +1 -1
  88. package/locale/ja.min.js +1 -1
  89. package/locale/ja.min.mjs +1 -1
  90. package/locale/ja.mjs +1 -1
  91. package/locale/ko.js +1 -1
  92. package/locale/ko.min.js +1 -1
  93. package/locale/ko.min.mjs +1 -1
  94. package/locale/ko.mjs +1 -1
  95. package/locale/zh-cn.js +1 -1
  96. package/locale/zh-cn.min.js +1 -1
  97. package/locale/zh-cn.min.mjs +1 -1
  98. package/locale/zh-cn.mjs +1 -1
  99. package/locale/zh-tw.js +1 -1
  100. package/locale/zh-tw.min.js +1 -1
  101. package/locale/zh-tw.min.mjs +1 -1
  102. package/locale/zh-tw.mjs +1 -1
  103. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- /*! yc-pro-components v0.0.12 */
2
- import { unref, isRef, ref, isReactive, watch, inject, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, useAttrs, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow } from 'vue';
1
+ /*! yc-pro-components v0.0.13 */
2
+ import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, useAttrs, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow } from 'vue';
3
3
  import { dayjs, localeContextKey, ElDialog, ElButton, ElPagination, ElRadioGroup, ElRadio, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon, ElTooltip, ElPopconfirm, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElAutocomplete, ElCascader, ElCheckboxGroup, ElCheckbox, ElColorPicker, ElInputNumber, ElRate, ElSelect, ElOption, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElSelectV2, ElText, ElDivider, ElFormItem, ElOptionGroup, ElRow, ElCol, ElForm, ElCard, ElMessage, ElImage, ElProgress, ElAvatar, ElPopover, ElTable, vLoading, ElDescriptions, ElDescriptionsItem, ElDrawer, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop } from 'element-plus';
4
4
 
5
5
  const makeInstaller = (components = []) => {
@@ -4767,6 +4767,36 @@ const removeChildrenField = (item) => {
4767
4767
  return data;
4768
4768
  };
4769
4769
 
4770
+ const DefaultPageSizeList = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500];
4771
+ const DefaultPageInfo = {
4772
+ page: 1,
4773
+ pageSize: 10
4774
+ };
4775
+
4776
+ const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
4777
+ const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
4778
+ const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
4779
+ const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
4780
+ const ValueIsNumberList = ["rate", "input-number", "slider"];
4781
+ const ValueIsBooleanList = ["switch"];
4782
+ const ValueIsArrayList = [
4783
+ "checkbox",
4784
+ "cascader",
4785
+ "plus-date-picker",
4786
+ "plus-input-tag",
4787
+ "transfer"
4788
+ ];
4789
+
4790
+ const selectValueTypeList = [
4791
+ "select",
4792
+ "radio",
4793
+ "checkbox",
4794
+ "select-v2",
4795
+ "plus-radio"
4796
+ ];
4797
+
4798
+ const DictStoreInjectionKey = Symbol("DictStore");
4799
+
4770
4800
  const throwError = (data) => {
4771
4801
  if (!isArray(data)) {
4772
4802
  console.error("Uncaught TypeError: ", `options expected Array but got ${toRawType(data)}`);
@@ -4793,27 +4823,53 @@ const getOptionsByOptionsMap = (options, props) => {
4793
4823
  const useGetOptions = (props) => {
4794
4824
  const options = ref([]);
4795
4825
  const optionsIsReady = ref(false);
4796
- if (!props.options) {
4826
+ const injectedDictStore = inject(DictStoreInjectionKey, null);
4827
+ const hasValidOptions = props.options && (!isArray(props.options) || props.options.length > 0);
4828
+ if (hasValidOptions) {
4829
+ handleOptions();
4830
+ } else if (props.autoDict) {
4831
+ handleAutoDict();
4832
+ } else {
4797
4833
  options.value = [];
4798
4834
  optionsIsReady.value = true;
4799
- } else if (isRef(props.options) || isReactive(props.options) || isArray(props.options)) {
4800
- watch(
4801
- () => props.options,
4802
- (val) => {
4803
- const value = isRef(val) ? val.value : val;
4804
- options.value = getOptionsByOptionsMap(value, props);
4835
+ }
4836
+ function handleOptions() {
4837
+ if (!props.options) {
4838
+ options.value = [];
4839
+ optionsIsReady.value = true;
4840
+ return;
4841
+ }
4842
+ if (isRef(props.options) || isReactive(props.options) || isArray(props.options)) {
4843
+ watch(
4844
+ () => props.options,
4845
+ (val) => {
4846
+ const value = isRef(val) ? val.value : val;
4847
+ options.value = getOptionsByOptionsMap(value, props);
4848
+ optionsIsReady.value = true;
4849
+ },
4850
+ {
4851
+ immediate: true,
4852
+ deep: true
4853
+ }
4854
+ );
4855
+ } else if (isFunction(props.options)) {
4856
+ const getValue = props.options;
4857
+ const result = getValue(props);
4858
+ if (isPromise(result)) {
4859
+ result.then((value) => {
4860
+ options.value = getOptionsByOptionsMap(value, props);
4861
+ optionsIsReady.value = true;
4862
+ throwError(options.value);
4863
+ }).catch((err) => {
4864
+ throw err;
4865
+ });
4866
+ } else {
4867
+ options.value = getOptionsByOptionsMap(result, props);
4805
4868
  optionsIsReady.value = true;
4806
- },
4807
- {
4808
- immediate: true,
4809
- deep: true
4810
4869
  }
4811
- );
4812
- } else if (isFunction(props.options)) {
4813
- const getValue = props.options;
4814
- const result = getValue(props);
4815
- if (isPromise(result)) {
4816
- result.then((value) => {
4870
+ } else if (isPromise(props.options)) {
4871
+ const getValue = props.options;
4872
+ getValue.then((value) => {
4817
4873
  options.value = getOptionsByOptionsMap(value, props);
4818
4874
  optionsIsReady.value = true;
4819
4875
  throwError(options.value);
@@ -4821,21 +4877,82 @@ const useGetOptions = (props) => {
4821
4877
  throw err;
4822
4878
  });
4823
4879
  } else {
4824
- options.value = getOptionsByOptionsMap(result, props);
4825
4880
  optionsIsReady.value = true;
4881
+ throwError(props.options);
4826
4882
  }
4827
- } else if (isPromise(props.options)) {
4828
- const getValue = props.options;
4829
- getValue.then((value) => {
4830
- options.value = getOptionsByOptionsMap(value, props);
4883
+ }
4884
+ function handleAutoDict() {
4885
+ if (isFunction(props.autoDict)) {
4886
+ const autoDictFn = props.autoDict;
4887
+ watch(
4888
+ () => {
4889
+ return autoDictFn(props);
4890
+ },
4891
+ (result) => {
4892
+ if (isPromise(result)) {
4893
+ result.then((value) => {
4894
+ options.value = getOptionsByOptionsMap(value, props);
4895
+ optionsIsReady.value = true;
4896
+ }).catch((err) => {
4897
+ console.error("[yc-components] autoDict function error:", err);
4898
+ options.value = [];
4899
+ optionsIsReady.value = true;
4900
+ });
4901
+ } else {
4902
+ options.value = getOptionsByOptionsMap(result, props);
4903
+ optionsIsReady.value = true;
4904
+ }
4905
+ },
4906
+ { immediate: true }
4907
+ );
4908
+ } else if (typeof props.autoDict === "object" && props.autoDict !== null) {
4909
+ const { store, method = "getDictData", transform, dictCode } = props.autoDict;
4910
+ const dictStore = store || injectedDictStore;
4911
+ const fieldOrCode = dictCode || props.prop;
4912
+ if (dictStore && isFunction(dictStore[method])) {
4913
+ watch(
4914
+ () => dictStore[method](fieldOrCode),
4915
+ (val) => {
4916
+ try {
4917
+ const data = transform && isFunction(transform) ? transform(val) : val;
4918
+ options.value = getOptionsByOptionsMap(data, props);
4919
+ optionsIsReady.value = true;
4920
+ } catch (err) {
4921
+ console.error("[yc-components] autoDict transform error:", err);
4922
+ options.value = [];
4923
+ optionsIsReady.value = true;
4924
+ }
4925
+ },
4926
+ { immediate: true }
4927
+ );
4928
+ } else {
4929
+ console.warn(
4930
+ `[yc-components] autoDict: DictStore or method "${method}" not found for field "${fieldOrCode}"`
4931
+ );
4932
+ options.value = [];
4933
+ optionsIsReady.value = true;
4934
+ }
4935
+ } else if (props.autoDict === true) {
4936
+ if (injectedDictStore && isFunction(injectedDictStore.getDictData)) {
4937
+ watch(
4938
+ () => injectedDictStore.getDictData(props.prop),
4939
+ (val) => {
4940
+ options.value = getOptionsByOptionsMap(val, props);
4941
+ optionsIsReady.value = true;
4942
+ },
4943
+ { immediate: true }
4944
+ );
4945
+ } else {
4946
+ console.warn(
4947
+ `[yc-components] autoDict: DictStore not provided via inject for field "${props.prop}". Please use useDictInjection() in parent component.`
4948
+ );
4949
+ options.value = [];
4950
+ optionsIsReady.value = true;
4951
+ }
4952
+ } else {
4953
+ options.value = [];
4831
4954
  optionsIsReady.value = true;
4832
- throwError(options.value);
4833
- }).catch((err) => {
4834
- throw err;
4835
- });
4836
- } else {
4837
- optionsIsReady.value = true;
4838
- throwError(props.options);
4955
+ }
4839
4956
  }
4840
4957
  return { customOptions: options, customOptionsIsReady: optionsIsReady };
4841
4958
  };
@@ -4934,34 +5051,6 @@ const useLocale = (localeOverrides) => {
4934
5051
  }));
4935
5052
  };
4936
5053
 
4937
- const DefaultPageSizeList = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500];
4938
- const DefaultPageInfo = {
4939
- page: 1,
4940
- pageSize: 10
4941
- };
4942
-
4943
- const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
4944
- const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
4945
- const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
4946
- const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
4947
- const ValueIsNumberList = ["rate", "input-number", "slider"];
4948
- const ValueIsBooleanList = ["switch"];
4949
- const ValueIsArrayList = [
4950
- "checkbox",
4951
- "cascader",
4952
- "plus-date-picker",
4953
- "plus-input-tag",
4954
- "transfer"
4955
- ];
4956
-
4957
- const selectValueTypeList = [
4958
- "select",
4959
- "radio",
4960
- "checkbox",
4961
- "select-v2",
4962
- "plus-radio"
4963
- ];
4964
-
4965
5054
  function useTable(_pageInfo) {
4966
5055
  const defaultPageInfo = unref(_pageInfo) || DefaultPageInfo;
4967
5056
  const tableData = ref([]);
@@ -8482,6 +8571,20 @@ function useSelectWithPagination(config) {
8482
8571
  };
8483
8572
  }
8484
8573
 
8574
+ function useDictInjection(dictStore) {
8575
+ if (!dictStore) {
8576
+ console.warn("[yc-components] useDictInjection: dictStore is required");
8577
+ return;
8578
+ }
8579
+ if (typeof dictStore.getDictData !== "function") {
8580
+ console.error(
8581
+ "[yc-components] useDictInjection: dictStore must implement getDictData method. Please ensure your dictStore implements DictStoreInterface."
8582
+ );
8583
+ return;
8584
+ }
8585
+ provide(DictStoreInjectionKey, dictStore);
8586
+ }
8587
+
8485
8588
  const _hoisted_1$q = { class: "plus-dialog-body" };
8486
8589
  var _sfc_main$K = /* @__PURE__ */ defineComponent({
8487
8590
  ...{
@@ -15779,6 +15882,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
15779
15882
  fieldChildrenSlot: { type: Function, default: void 0 },
15780
15883
  renderErrorMessage: { type: Function, default: void 0 },
15781
15884
  optionsMap: { default: void 0 },
15885
+ autoDict: { type: [Boolean, Function, Object], default: void 0 },
15782
15886
  index: { default: 0 },
15783
15887
  clearable: { type: Boolean, default: true }
15784
15888
  },
@@ -59636,8 +59740,8 @@ const plugins = [
59636
59740
 
59637
59741
  var installer = makeInstaller([...plugins]);
59638
59742
 
59639
- const version = "0.1.30";
59743
+ const version = "0.0.13";
59640
59744
 
59641
59745
  const install = installer.install;
59642
59746
 
59643
- export { DEFAULT_CDN_CONFIG, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useDialogFormConfig, useDrawerFormConfig, useGetOptions, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
59747
+ export { DEFAULT_CDN_CONFIG, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useDialogFormConfig, useDictInjection, useDrawerFormConfig, useGetOptions, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
@@ -1027,7 +1027,7 @@ export declare const PlusDialogForm: {
1027
1027
  hasErrorTip: boolean;
1028
1028
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1029
1029
  $slots: Partial<Record<NonNullable<string | number>, (_: {
1030
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
1030
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1031
1031
  readonly label: string | ComputedRef<string>;
1032
1032
  readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1033
1033
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -1056,7 +1056,7 @@ export declare const PlusDialogForm: {
1056
1056
  };
1057
1057
  rows: number;
1058
1058
  autocomplete: string;
1059
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
1059
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
1060
1060
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
1061
1061
  step: string | number;
1062
1062
  format: string | ProgressFn | undefined;
@@ -1083,6 +1083,12 @@ export declare const PlusDialogForm: {
1083
1083
  label?: string | undefined;
1084
1084
  value?: string | undefined;
1085
1085
  } | undefined;
1086
+ readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1087
+ store?: any;
1088
+ method?: string | undefined;
1089
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1090
+ dictCode?: string | undefined;
1091
+ } | undefined;
1086
1092
  readonly clearable: boolean;
1087
1093
  readonly index: number;
1088
1094
  } & {
@@ -1120,6 +1126,12 @@ export declare const PlusDialogForm: {
1120
1126
  label?: string | undefined;
1121
1127
  value?: string | undefined;
1122
1128
  } | undefined;
1129
+ autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1130
+ store?: any;
1131
+ method?: string | undefined;
1132
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1133
+ dictCode?: string | undefined;
1134
+ } | undefined;
1123
1135
  clearable: boolean;
1124
1136
  index: number;
1125
1137
  }) => any>> & {
@@ -344,7 +344,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
344
344
  modelValue: FieldValues;
345
345
  hasErrorTip: boolean;
346
346
  }, {}>, Partial<Record<NonNullable<string | number>, (_: {
347
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
347
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
348
348
  readonly label: string | ComputedRef<string>;
349
349
  readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
350
350
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -373,7 +373,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
373
373
  };
374
374
  rows: number;
375
375
  autocomplete: string;
376
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
376
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
377
377
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
378
378
  step: string | number;
379
379
  format: string | ProgressFn | undefined;
@@ -400,6 +400,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
400
400
  label?: string | undefined;
401
401
  value?: string | undefined;
402
402
  } | undefined;
403
+ readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
404
+ store?: any;
405
+ method?: string | undefined;
406
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
407
+ dictCode?: string | undefined;
408
+ } | undefined;
403
409
  readonly clearable: boolean;
404
410
  readonly index: number;
405
411
  } & {
@@ -437,6 +443,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
437
443
  label?: string | undefined;
438
444
  value?: string | undefined;
439
445
  } | undefined;
446
+ autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
447
+ store?: any;
448
+ method?: string | undefined;
449
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
450
+ dictCode?: string | undefined;
451
+ } | undefined;
440
452
  clearable: boolean;
441
453
  index: number;
442
454
  }) => any>> & {
@@ -232,7 +232,7 @@ export declare const PlusDisplayItem: {
232
232
  editable: boolean | "click" | "dblclick";
233
233
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
234
234
  $slots: Partial<Record<string, (_: {
235
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
235
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
236
236
  readonly label: string | ComputedRef<string>;
237
237
  readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
238
238
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -261,7 +261,7 @@ export declare const PlusDisplayItem: {
261
261
  };
262
262
  rows: number;
263
263
  autocomplete: string;
264
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
264
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
265
265
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
266
266
  step: string | number;
267
267
  format: string | ProgressFn | undefined;
@@ -288,6 +288,12 @@ export declare const PlusDisplayItem: {
288
288
  label?: string | undefined;
289
289
  value?: string | undefined;
290
290
  } | undefined;
291
+ readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
292
+ store?: any;
293
+ method?: string | undefined;
294
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
295
+ dictCode?: string | undefined;
296
+ } | undefined;
291
297
  readonly clearable: boolean;
292
298
  readonly index: number;
293
299
  } & {
@@ -325,10 +331,16 @@ export declare const PlusDisplayItem: {
325
331
  label?: string | undefined;
326
332
  value?: string | undefined;
327
333
  } | undefined;
334
+ autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
335
+ store?: any;
336
+ method?: string | undefined;
337
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
338
+ dictCode?: string | undefined;
339
+ } | undefined;
328
340
  clearable: boolean;
329
341
  index: number;
330
342
  }) => any>> & Partial<Record<string, (_: {
331
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
343
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
332
344
  readonly label: string | ComputedRef<string>;
333
345
  readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
334
346
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -357,7 +369,7 @@ export declare const PlusDisplayItem: {
357
369
  };
358
370
  rows: number;
359
371
  autocomplete: string;
360
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
372
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
361
373
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
362
374
  step: string | number;
363
375
  format: string | ProgressFn | undefined;
@@ -384,6 +396,12 @@ export declare const PlusDisplayItem: {
384
396
  label?: string | undefined;
385
397
  value?: string | undefined;
386
398
  } | undefined;
399
+ readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
400
+ store?: any;
401
+ method?: string | undefined;
402
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
403
+ dictCode?: string | undefined;
404
+ } | undefined;
387
405
  readonly clearable: boolean;
388
406
  readonly index: number;
389
407
  } & {
@@ -421,10 +439,16 @@ export declare const PlusDisplayItem: {
421
439
  label?: string | undefined;
422
440
  value?: string | undefined;
423
441
  } | undefined;
442
+ autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
443
+ store?: any;
444
+ method?: string | undefined;
445
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
446
+ dictCode?: string | undefined;
447
+ } | undefined;
424
448
  clearable: boolean;
425
449
  index: number;
426
450
  }) => any>> & Partial<Record<string, (_: {
427
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
451
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
428
452
  readonly label: string | ComputedRef<string>;
429
453
  readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
430
454
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -453,7 +477,7 @@ export declare const PlusDisplayItem: {
453
477
  };
454
478
  rows: number;
455
479
  autocomplete: string;
456
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
480
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
457
481
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
458
482
  step: string | number;
459
483
  format: string | ProgressFn | undefined;
@@ -480,6 +504,12 @@ export declare const PlusDisplayItem: {
480
504
  label?: string | undefined;
481
505
  value?: string | undefined;
482
506
  } | undefined;
507
+ readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
508
+ store?: any;
509
+ method?: string | undefined;
510
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
511
+ dictCode?: string | undefined;
512
+ } | undefined;
483
513
  readonly clearable: boolean;
484
514
  readonly index: number;
485
515
  } & {
@@ -517,6 +547,12 @@ export declare const PlusDisplayItem: {
517
547
  label?: string | undefined;
518
548
  value?: string | undefined;
519
549
  } | undefined;
550
+ autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
551
+ store?: any;
552
+ method?: string | undefined;
553
+ transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
554
+ dictCode?: string | undefined;
555
+ } | undefined;
520
556
  clearable: boolean;
521
557
  index: number;
522
558
  }) => any>> & Partial<Record<string, (_: {