@robot-admin/naive-ui-components 0.3.0 → 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.
- package/dist/C_Form.cjs +1 -0
- package/dist/C_Form.js +1 -0
- package/dist/C_Form2.js +22 -25
- package/dist/C_Form2.js.map +1 -1
- package/dist/C_Table.cjs +1 -0
- package/dist/C_Table.js +1 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants2.d.ts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.ts +6 -6
- package/dist/data.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index10.vue.d.ts +5 -5
- package/dist/index12.vue.d.ts +2 -2
- package/dist/index13.vue.d.ts +1 -1
- package/dist/index16.vue.d.ts +4 -4
- package/dist/index16.vue.d.ts.map +1 -1
- package/dist/index2.vue.d.ts +3 -3
- package/dist/index3.vue.d.ts +4 -4
- package/dist/index6.vue.d.ts +3 -3
- package/dist/index7.vue.d.ts +1 -1
- package/dist/index8.vue.d.ts +3 -3
- package/dist/resolver.cjs +88 -0
- package/dist/resolver.d.cts +48 -0
- package/dist/resolver.d.cts.map +1 -0
- package/dist/resolver.d.ts +48 -0
- package/dist/resolver.d.ts.map +1 -0
- package/dist/resolver.js +86 -0
- package/dist/resolver.js.map +1 -0
- package/dist/useCropperCore.d.ts +3 -3
- package/dist/useDraggableLayout.d.ts +4 -4
- package/dist/useDynamicFormState.d.ts +118 -118
- package/dist/useDynamicFormState.d.ts.map +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useModalEdit.d.ts +1 -1
- package/dist/useModalEdit.d.ts.map +1 -1
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.ts +1 -1
- package/dist/useSplitResize.d.ts.map +1 -1
- package/dist/useTimeSelection.d.ts +1 -1
- package/dist/useTreeOperations.d.ts +4 -4
- package/dist/useWorkflowValidation.d.ts +3 -3
- package/package.json +6 -1
package/dist/C_Form.cjs
CHANGED
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
|
|
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
|
|
2323
|
-
NInput
|
|
2324
|
-
NInputNumber
|
|
2325
|
-
NSwitch
|
|
2326
|
-
NSlider
|
|
2327
|
-
NRate
|
|
2328
|
-
NDatePicker
|
|
2329
|
-
NTimePicker
|
|
2330
|
-
NCascader
|
|
2331
|
-
NColorPicker
|
|
2332
|
-
NSelect
|
|
2333
|
-
NCheckboxGroup
|
|
2334
|
-
NCheckbox
|
|
2335
|
-
NRadioGroup
|
|
2336
|
-
NRadio
|
|
2337
|
-
NUpload
|
|
2338
|
-
NButton
|
|
2339
|
-
NSpace
|
|
2340
|
-
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;
|