cnhis-design-vue 3.1.13-beta.2 → 3.1.13-beta.3

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 (38) hide show
  1. package/es/packages/form-render/src/components/renderer/input.js +3 -3
  2. package/es/packages/form-render/src/components/renderer/simpleComponent.js +2 -15
  3. package/es/packages/form-render/src/utils/index.d.ts +5 -2
  4. package/es/packages/form-render/src/utils/index.js +16 -2
  5. package/es/packages/index.css +11 -0
  6. package/es/packages/index.d.ts +4 -1
  7. package/es/packages/index.js +9 -1
  8. package/es/packages/shortcut-provider/index.d.ts +17 -0
  9. package/es/packages/shortcut-provider/index.js +13 -0
  10. package/es/packages/shortcut-provider/src/ShortcutProvider.js +4 -0
  11. package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +15 -0
  12. package/es/packages/shortcut-provider/src/ShortcutProvider.vue_vue_type_script_setup_true_lang.js +32 -0
  13. package/es/packages/shortcut-provider/src/constants/index.d.ts +7 -0
  14. package/es/packages/shortcut-provider/src/constants/index.js +8 -0
  15. package/es/packages/shortcut-provider/src/hooks/index.d.ts +2 -0
  16. package/es/packages/shortcut-provider/src/hooks/index.js +2 -0
  17. package/es/packages/shortcut-provider/src/hooks/useShortcutSignature.d.ts +4 -0
  18. package/es/packages/shortcut-provider/src/hooks/useShortcutSignature.js +12 -0
  19. package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +30 -0
  20. package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +157 -0
  21. package/es/packages/shortcut-provider/src/types/index.d.ts +30 -0
  22. package/es/packages/shortcut-provider/src/types/index.js +1 -0
  23. package/es/packages/shortcut-provider/src/utils/index.d.ts +7 -0
  24. package/es/packages/shortcut-provider/src/utils/index.js +49 -0
  25. package/es/packages/shortcut-provider/style/index.css +3 -0
  26. package/es/packages/shortcut-setter/constant/index.d.ts +4 -0
  27. package/es/packages/shortcut-setter/constant/index.js +7 -0
  28. package/es/packages/shortcut-setter/index.d.ts +4258 -0
  29. package/es/packages/shortcut-setter/index.js +11 -0
  30. package/es/packages/shortcut-setter/src/ShortcutSetter.js +4 -0
  31. package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +4258 -0
  32. package/es/packages/shortcut-setter/src/ShortcutSetter.vue_vue_type_script_setup_true_lang.js +38 -0
  33. package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +4 -0
  34. package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +4238 -0
  35. package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js +125 -0
  36. package/es/packages/shortcut-setter/style/index.css +8 -0
  37. package/es/src/types/index.d.ts +1 -0
  38. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref } from 'vue';
2
+ import { useShortcuts } from '../../../packages/shortcut-provider';
3
+ import './ShortcutSetterItem.js';
4
+ import script$1 from './ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js';
5
+
6
+ var script = /* @__PURE__ */ defineComponent({
7
+ __name: "ShortcutSetter",
8
+ props: {
9
+ glob: { type: Boolean, required: false, default: false }
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const fieldList = computed(() => {
14
+ return useShortcuts(props.glob).traverse().map((shortcut) => {
15
+ return {
16
+ val_key: shortcut.key,
17
+ alias: shortcut.label,
18
+ html_type: "SHORTCUT",
19
+ placeholder: "\u8BF7\u8F93\u5165\u65B0\u7684\u5FEB\u6377\u952E",
20
+ componentProps: { glob: props.glob },
21
+ elem_width: 12
22
+ };
23
+ });
24
+ });
25
+ const components = { SHORTCUT: script$1 };
26
+ return (_ctx, _cache) => {
27
+ const _component_c_form_render = resolveComponent("c-form-render");
28
+ return openBlock(), createBlock(_component_c_form_render, {
29
+ key: String(props.glob),
30
+ "label-placement": "left",
31
+ "field-list": unref(fieldList),
32
+ components
33
+ }, null, 8, ["field-list"]);
34
+ };
35
+ }
36
+ });
37
+
38
+ export { script as default };
@@ -0,0 +1,4 @@
1
+ import script from './ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js';
2
+ export { default } from './ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js';
3
+
4
+ script.__file = "packages/shortcut-setter/src/ShortcutSetterItem.vue";