@robot-admin/naive-ui-components 0.3.1 → 0.3.2

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 (43) hide show
  1. package/dist/C_Form.cjs +1 -0
  2. package/dist/C_Form.js +1 -0
  3. package/dist/C_Form2.js +22 -25
  4. package/dist/C_Form2.js.map +1 -1
  5. package/dist/C_Table.cjs +1 -0
  6. package/dist/C_Table.js +1 -0
  7. package/dist/constants.d.ts +4 -4
  8. package/dist/constants2.d.ts +5 -5
  9. package/dist/constants3.d.ts +2 -2
  10. package/dist/constants4.d.ts +5 -5
  11. package/dist/constants5.d.ts +2 -2
  12. package/dist/data.d.ts +1 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/index10.vue.d.ts +5 -5
  15. package/dist/index11.vue.d.ts +2 -2
  16. package/dist/index12.vue.d.ts +5 -5
  17. package/dist/index13.vue.d.ts +2 -2
  18. package/dist/index14.vue.d.ts +1 -1
  19. package/dist/index16.vue.d.ts +3 -3
  20. package/dist/index16.vue.d.ts.map +1 -1
  21. package/dist/index2.vue.d.ts +3 -3
  22. package/dist/index3.vue.d.ts +2 -2
  23. package/dist/index4.vue.d.ts +2 -2
  24. package/dist/index5.vue.d.ts +2 -2
  25. package/dist/index6.vue.d.ts +3 -3
  26. package/dist/index8.vue.d.ts +2 -2
  27. package/dist/resolver.js.map +1 -1
  28. package/dist/useCalendarEvents.d.ts +2 -2
  29. package/dist/useCollapsePanel.d.ts +2 -2
  30. package/dist/useCropperCore.d.ts +5 -5
  31. package/dist/useDraggableLayout.d.ts +3 -3
  32. package/dist/useDynamicFormState.d.ts +118 -118
  33. package/dist/useDynamicFormState.d.ts.map +1 -1
  34. package/dist/useEdgeInteraction.d.ts +1 -1
  35. package/dist/useInfiniteScroll.d.ts +1 -1
  36. package/dist/useModalEdit.d.ts +2 -2
  37. package/dist/useQRCode.d.ts +4 -4
  38. package/dist/useQRCode.d.ts.map +1 -1
  39. package/dist/useSignatureHistory.d.ts +1 -1
  40. package/dist/useTimeSelection.d.ts +2 -2
  41. package/dist/useTreeOperations.d.ts +6 -6
  42. package/dist/useWorkflowValidation.d.ts +4 -4
  43. package/package.json +1 -1
package/dist/C_Form.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  require('./C_Icon.js');
3
+ require('./C_Editor.js');
3
4
  const require_C_Form = require('./C_Form.js');
4
5
 
5
6
  exports.C_Form = require_C_Form.C_Form_default;
package/dist/C_Form.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import "./C_Icon2.js";
2
+ import "./C_Editor2.js";
2
3
  import { a as registerRenderer, c as FORM_DEFAULTS, d as shouldShowActions, i as useDynamicFormState, l as LAYOUTS_WITH_OWN_CONTROLS, n as DYNAMIC_FORM_STATE_KEY, o as useFormRenderer, r as FIELD_TYPE_OPTIONS, s as useFormState, t as C_Form_default, u as resolveFormConfig } from "./C_Form2.js";
3
4
 
4
5
  export { C_Form_default as C_Form, DYNAMIC_FORM_STATE_KEY, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, LAYOUTS_WITH_OWN_CONTROLS, registerRenderer, resolveFormConfig, shouldShowActions, useDynamicFormState, useFormRenderer, useFormState };
package/dist/C_Form2.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { t as C_Icon_default } from "./C_Icon2.js";
2
2
  import { t as export_helper_default } from "./export-helper.js";
3
+ import { t as C_Editor_default } from "./C_Editor2.js";
3
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, inject, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toRaw, unref, vShow, watch, watchEffect, withCtx, withDirectives, withKeys } from "vue";
4
- import { NButton, NForm, NFormItem, NSpace } from "naive-ui";
5
+ import { NButton, NCascader, NCheckbox, NCheckboxGroup, NColorPicker, NDatePicker, NForm, NFormItem, NInput, NInputNumber, NRadio, NRadioGroup, NRate, NSelect, NSlider, NSpace, NSwitch, NTimePicker, NUpload } from "naive-ui";
5
6
  import { mergeRules } from "@robot-admin/form-validate";
6
7
 
7
8
  //#region src/components/C_Form/composables/useFormConfig.ts
@@ -216,11 +217,7 @@ function useFormState(options, config, formRef, emit) {
216
217
  //#region src/components/C_Form/composables/useFormRenderer.ts
217
218
  /**
218
219
  * 构建渲染器注册表
219
- * @param C - 组件映射表(由 C_Form <script setup> 解析并注入)
220
- *
221
- * 为什么不在 .ts 文件中直接 resolveComponent?
222
- * unplugin-vue-components 只转换 .vue SFC 中的 resolveComponent 调用,
223
- * .ts 文件中的 resolveComponent 不会被转换,运行时无法找到组件。
220
+ * @param C - 组件映射表(由 C_Form 直接 import naive-ui 组件后注入)
224
221
  */
225
222
  function buildRenderers(C) {
226
223
  return {
@@ -2319,25 +2316,25 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
2319
2316
  custom: Custom_default
2320
2317
  };
2321
2318
  const COMPONENT_MAP = {
2322
- NFormItem: resolveComponent("NFormItem"),
2323
- NInput: resolveComponent("NInput"),
2324
- NInputNumber: resolveComponent("NInputNumber"),
2325
- NSwitch: resolveComponent("NSwitch"),
2326
- NSlider: resolveComponent("NSlider"),
2327
- NRate: resolveComponent("NRate"),
2328
- NDatePicker: resolveComponent("NDatePicker"),
2329
- NTimePicker: resolveComponent("NTimePicker"),
2330
- NCascader: resolveComponent("NCascader"),
2331
- NColorPicker: resolveComponent("NColorPicker"),
2332
- NSelect: resolveComponent("NSelect"),
2333
- NCheckboxGroup: resolveComponent("NCheckboxGroup"),
2334
- NCheckbox: resolveComponent("NCheckbox"),
2335
- NRadioGroup: resolveComponent("NRadioGroup"),
2336
- NRadio: resolveComponent("NRadio"),
2337
- NUpload: resolveComponent("NUpload"),
2338
- NButton: resolveComponent("NButton"),
2339
- NSpace: resolveComponent("NSpace"),
2340
- C_Editor: resolveComponent("C_Editor")
2319
+ NFormItem,
2320
+ NInput,
2321
+ NInputNumber,
2322
+ NSwitch,
2323
+ NSlider,
2324
+ NRate,
2325
+ NDatePicker,
2326
+ NTimePicker,
2327
+ NCascader,
2328
+ NColorPicker,
2329
+ NSelect,
2330
+ NCheckboxGroup,
2331
+ NCheckbox,
2332
+ NRadioGroup,
2333
+ NRadio,
2334
+ NUpload,
2335
+ NButton,
2336
+ NSpace,
2337
+ C_Editor: C_Editor_default
2341
2338
  };
2342
2339
  const props = __props;
2343
2340
  const emit = __emit;