cnhis-design-vue 3.1.14-beta.6 → 3.1.14-beta.7

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,23 +1,23 @@
1
- # Vue 3 + Typescript + Vite
2
-
3
- This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
-
5
- ## Recommended IDE Setup
6
-
7
- - [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
8
-
9
- ## Type Support For `.vue` Imports in TS
10
-
11
- Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
12
-
13
- ## 使用
14
- ```JavaScript
15
- import { createApp } from "vue";
16
- import App from "./App.vue";
17
- import cui from "cnhis-design-vue";
18
- import "cnhis-design-vue/es/index.css";
19
-
20
- const app = createApp(App);
21
- app.use(cui);
22
- app.mount("#app");
1
+ # Vue 3 + Typescript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ - [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
8
+
9
+ ## Type Support For `.vue` Imports in TS
10
+
11
+ Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
12
+
13
+ ## 使用
14
+ ```JavaScript
15
+ import { createApp } from "vue";
16
+ import App from "./App.vue";
17
+ import cui from "cnhis-design-vue";
18
+ import "cnhis-design-vue/es/index.css";
19
+
20
+ const app = createApp(App);
21
+ app.use(cui);
22
+ app.mount("#app");
23
23
  ```
@@ -540,8 +540,8 @@ var script = /* @__PURE__ */ defineComponent({
540
540
  index: $rowIndex,
541
541
  type: formType,
542
542
  onFormChange,
543
- onFocus: () => {
544
- emit("formFocus", {
543
+ onClick: () => {
544
+ emit("formClick", {
545
545
  value: row[col.columnName],
546
546
  row,
547
547
  column: col,
@@ -47,7 +47,7 @@ const bigTableEmits = [
47
47
  "checkboxChange",
48
48
  "menuClick",
49
49
  "resizableChange",
50
- "formFocus"
50
+ "formClick"
51
51
  ];
52
52
 
53
53
  export { bigTableEmits as default };
@@ -1,4 +1,5 @@
1
1
  import { SFCWithInstall } from '../../../es/src/types';
2
+ export * from './src/utils';
2
3
  declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
3
4
  printParams: {
4
5
  type: ArrayConstructor;
@@ -2,6 +2,7 @@ import { COMPONENT_NAMESPACE } from '../../src/global/variable';
2
2
  import { safeComponentRegister } from '../../src/utils';
3
3
  import './src/ButtonPrint.js';
4
4
  import script from './src/ButtonPrint.vue_vue_type_script_setup_true_lang.js';
5
+ export { Print } from './src/utils/print.js';
5
6
 
6
7
  const ButtonPrint = script;
7
8
  ButtonPrint.install = function(app) {
@@ -22,6 +22,7 @@ import CShortcutSetter from './shortcut-setter';
22
22
  export * from './form-render';
23
23
  export * from './shortcut-provider';
24
24
  export * from './big-table';
25
+ export * from './button-print';
25
26
  declare function install(app: App): void;
26
27
  export { CGrid, CBigTable, CFieldSet, CDragLayout, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CFormTable, CInfoHeader, CTimeLine, CBpmnWorkflow, CStepsWheel, Editor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter };
27
28
  declare const _default: {
@@ -55,6 +55,7 @@ export { useFormContext } from './form-render/src/hooks/useFormContext.js';
55
55
  export { ShortcutManager, useShortcuts } from './shortcut-provider/src/hooks/useShortcuts.js';
56
56
  export { useShortcutSignature } from './shortcut-provider/src/hooks/useShortcutSignature.js';
57
57
  export { useColumnConfigAdaptor } from './big-table/src/hooks/useColumnConfigAdaptor.js';
58
+ export { Print } from './button-print/src/utils/print.js';
58
59
 
59
60
  const components = {
60
61
  CGrid: Grid,
@@ -1411,7 +1411,6 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
1411
1411
  };
1412
1412
  rootSlots: {
1413
1413
  type: import("vue").PropType<Record<string, import("../../../es/src/types").Func<any[], any>>>;
1414
- required: true;
1415
1414
  };
1416
1415
  }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1417
1416
  renderer: {
@@ -1420,7 +1419,6 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
1420
1419
  };
1421
1420
  rootSlots: {
1422
1421
  type: import("vue").PropType<Record<string, import("../../../es/src/types").Func<any[], any>>>;
1423
- required: true;
1424
1422
  };
1425
1423
  }>>, {}>;
1426
1424
  HiddenContent: import("vue").DefineComponent<{
@@ -1412,7 +1412,6 @@ declare const _default: import("vue").DefineComponent<{
1412
1412
  };
1413
1413
  rootSlots: {
1414
1414
  type: PropType<Record<string, import("../../../../es/src/types").Func<any[], any>>>;
1415
- required: true;
1416
1415
  };
1417
1416
  }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1418
1417
  renderer: {
@@ -1421,7 +1420,6 @@ declare const _default: import("vue").DefineComponent<{
1421
1420
  };
1422
1421
  rootSlots: {
1423
1422
  type: PropType<Record<string, import("../../../../es/src/types").Func<any[], any>>>;
1424
- required: true;
1425
1423
  };
1426
1424
  }>>, {}>;
1427
1425
  HiddenContent: import("vue").DefineComponent<{
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, nextTick, onMounted, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, toDisplayString, renderList, withDirectives, createBlock, unref, withCtx, createTextVNode, vShow, createVNode } from 'vue';
2
2
  import { NTag, NDescriptions, NDescriptionsItem, NEllipsis } from 'naive-ui';
3
3
  import { useThrottleFn, useEventListener } from '@vueuse/core';
4
- import SlotRender from './SlotRender.js';
4
+ import SlotRender from '../../../src/components/SlotRender';
5
5
  import './HiddenContent.js';
6
6
  import script$1 from './HiddenContent.vue_vue_type_script_setup_true_lang.js';
7
7
 
@@ -7,7 +7,6 @@ declare const _default: import("vue").DefineComponent<{
7
7
  };
8
8
  rootSlots: {
9
9
  type: PropType<Record<string, Func<any[], any>>>;
10
- required: true;
11
10
  };
12
11
  }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
12
  renderer: {
@@ -16,7 +15,6 @@ declare const _default: import("vue").DefineComponent<{
16
15
  };
17
16
  rootSlots: {
18
17
  type: PropType<Record<string, Func<any[], any>>>;
19
- required: true;
20
18
  };
21
19
  }>>, {}>;
22
20
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { isString, isFunction } from 'lodash-es';
2
2
  import { defineComponent } from 'vue';
3
3
 
4
- var SlotRender = defineComponent({
4
+ var script = defineComponent({
5
5
  name: "SlotRender",
6
6
  props: {
7
7
  renderer: {
@@ -9,15 +9,15 @@ var SlotRender = defineComponent({
9
9
  required: true
10
10
  },
11
11
  rootSlots: {
12
- type: Object,
13
- required: true
12
+ type: Object
14
13
  }
15
14
  },
16
15
  setup(props, {
17
16
  attrs
18
17
  }) {
19
18
  function renderSlots(slotName) {
20
- const renderer = props.rootSlots[slotName];
19
+ var _a;
20
+ const renderer = (_a = props.rootSlots) == null ? void 0 : _a[slotName];
21
21
  return isFunction(renderer) ? renderer(attrs) : null;
22
22
  }
23
23
  function renderVNode(renderer) {
@@ -32,4 +32,4 @@ var SlotRender = defineComponent({
32
32
  }
33
33
  });
34
34
 
35
- export { SlotRender as default };
35
+ export { script as default };
@@ -0,0 +1,2 @@
1
+ import script from './SlotRender';
2
+ export default script;
@@ -0,0 +1,2 @@
1
+ import script from './SlotRender.js';
2
+ export { default } from './SlotRender.js';
package/global.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as NaiveUI from 'naive-ui';
2
-
3
- declare module 'naive-ui' {
4
- // @ts-ignore
5
- export const NTree: any;
6
- }
7
-
8
- export {};
1
+ import * as NaiveUI from 'naive-ui';
2
+
3
+ declare module 'naive-ui' {
4
+ // @ts-ignore
5
+ export const NTree: any;
6
+ }
7
+
8
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.14-beta.6",
4
+ "version": "3.1.14-beta.7",
5
5
  "license": "ISC",
6
6
  "module": "es/packages/index.js",
7
7
  "main": "es/packages/index.js",