cnhis-design-vue 3.4.0-beta.24 → 3.4.0-beta.27

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.
@@ -28,7 +28,7 @@ function useOther(canvas, propItems, emits, computedX, computedY, fixedNoRisePoi
28
28
  function handleCrossDayLayout(currentTime, lastLeft, eventList) {
29
29
  const newLeft = lastLeft + xCellWidth;
30
30
  const nextTime = getXValue(newLeft);
31
- if (isCrossDay(currentTime, nextTime)) {
31
+ if (!(other == null ? void 0 : other.allowCrossDay) && isCrossDay(currentTime, nextTime)) {
32
32
  adjustEventsForCrossDay(eventList);
33
33
  return lastLeft;
34
34
  } else {
@@ -95,6 +95,7 @@ interface IOther {
95
95
  highlightColor?: string;
96
96
  eventHighlight?: boolean;
97
97
  splitLineNumber?: number;
98
+ allowCrossDay?: boolean;
98
99
  list: Array<IPoint>;
99
100
  }
100
101
  export interface IDate {
@@ -179,7 +179,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
179
179
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value = $event),
180
180
  animation: "150",
181
181
  "item-key": "id",
182
- draggable: ".item"
182
+ draggable: ".item",
183
+ handle: ".drag-icon"
183
184
  }, {
184
185
  item: withCtx(({
185
186
  element,
@@ -243,7 +243,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
243
243
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value = $event),
244
244
  animation: "150",
245
245
  "item-key": "id",
246
- draggable: ".item"
246
+ draggable: ".item",
247
+ handle: ".drag-icon"
247
248
  }, {
248
249
  item: withCtx(({
249
250
  element,
@@ -294,7 +294,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
294
294
  getShowColumn: (column: AnyObject) => boolean;
295
295
  initFields: () => (AnyObject | AnyObject[])[];
296
296
  handleGroup: (fields: AnyObject[]) => (AnyObject | AnyObject[])[];
297
- getTableFields: () => import("lodash").Omit<never, "uuid">[];
297
+ getTableFields: () => import("lodash").Omit<AnyObject, "uuid">[];
298
298
  handleSearch: () => void;
299
299
  isHighlight: (element: FieldSetItem) => boolean | undefined;
300
300
  handleAllCheck: (checked: boolean, field: string) => void;
@@ -538,6 +538,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
538
538
  "item-key": "id",
539
539
  filter: ".disabled",
540
540
  draggable: ".item",
541
+ handle: ".drag-icon",
541
542
  move: onMove,
542
543
  disabled: !__props.rowDraggable,
543
544
  key: resetKey.value
@@ -354,6 +354,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
354
354
  trigger: "hover"
355
355
  }, {
356
356
  trigger: withCtx(() => [createVNode(unref(NIcon), {
357
+ class: "drag-icon",
357
358
  style: {
358
359
  "margin-right": "5px",
359
360
  "top": "2px"
@@ -4,7 +4,7 @@ export declare const TEXTAREA: import("vue").DefineComponent<import("vue").Extra
4
4
  type: StringConstructor;
5
5
  };
6
6
  rows: {
7
- type: NumberConstructor;
7
+ type: (NumberConstructor | StringConstructor)[];
8
8
  };
9
9
  onChange: {};
10
10
  updateKey: {};
@@ -17,7 +17,7 @@ export declare const TEXTAREA: import("vue").DefineComponent<import("vue").Extra
17
17
  type: StringConstructor;
18
18
  };
19
19
  rows: {
20
- type: NumberConstructor;
20
+ type: (NumberConstructor | StringConstructor)[];
21
21
  };
22
22
  onChange: {};
23
23
  updateKey: {};
@@ -22,7 +22,7 @@ const script = /* @__PURE__ */ defineComponent({
22
22
  type: String
23
23
  },
24
24
  rows: {
25
- type: Number
25
+ type: [Number, String]
26
26
  },
27
27
  onChange: {},
28
28
  updateKey: {},
@@ -104,7 +104,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
104
104
  }
105
105
  function getParams() {
106
106
  const schemeName = formValue.projectName.trim();
107
- const exportPath = formValue.exportPath.trim();
107
+ const exportPath = encodeURIComponent(formValue.exportPath.trim());
108
108
  const {
109
109
  fieldKeys,
110
110
  schemeId
@@ -146,7 +146,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
146
146
  watch(() => props.visible, async (isShow) => {
147
147
  if (isShow) {
148
148
  const program = props.curProgram;
149
- formValue.exportPath = (program == null ? void 0 : program.exportPath) || "";
149
+ formValue.exportPath = decodeURIComponent((program == null ? void 0 : program.exportPath) || "");
150
150
  switch (program.schemeId) {
151
151
  case defaultKey:
152
152
  projectList.value = modeList.filter((mode) => mode.value === "addProject");
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.24";
2
+ var version = "3.4.0-beta.27";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.4.0-beta.24",
3
+ "version": "3.4.0-beta.27",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -73,5 +73,5 @@
73
73
  "iOS 7",
74
74
  "last 3 iOS versions"
75
75
  ],
76
- "gitHead": "f487bb4dea0c9ebe6a9f0965fea2e32eae425c8d"
76
+ "gitHead": "14f88c4540a6317ddad15c76d23b88f07632ae24"
77
77
  }