@newview/ui 1.1.60 → 1.1.62

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/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 1.1.62
2
+ 1、grid时间选择新增属性
3
+
1
4
  ### 1.1.60
2
5
  1、新增AI组件
3
6
 
@@ -32745,6 +32745,12 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
32745
32745
  }
32746
32746
  return column.select.transfer;
32747
32747
  });
32748
+ __publicField2(this, "getDateTransfer", (column) => {
32749
+ if (this.utilities.isNull(column.datePicker) || this.utilities.isNull(column.datePicker.transfer)) {
32750
+ return false;
32751
+ }
32752
+ return column.datePicker.transfer;
32753
+ });
32748
32754
  /**
32749
32755
  * 获取属性值
32750
32756
  * @param column
@@ -33031,7 +33037,7 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
33031
33037
  //#endregion
33032
33038
  };
33033
33039
  const GridColumn_vue_vue_type_style_index_0_lang$1 = "";
33034
- const GridColumn_vue_vue_type_style_index_1_scoped_4f9996c6_lang = "";
33040
+ const GridColumn_vue_vue_type_style_index_1_scoped_ce03779d_lang = "";
33035
33041
  const _hoisted_1$i = { class: "gridColumn" };
33036
33042
  const _hoisted_2$f = {
33037
33043
  key: 3,
@@ -33194,8 +33200,9 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
33194
33200
  "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
33195
33201
  format: _ctx.getDatePickerFormat(column),
33196
33202
  type: _ctx.getDatePickerType(column),
33197
- onOnChange: ($event) => _ctx.doChange(column, scope.row)
33198
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
33203
+ onOnChange: ($event) => _ctx.doChange(column, scope.row),
33204
+ transfer: _ctx.getDateTransfer(column)
33205
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "type", "onOnChange", "transfer"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
33199
33206
  key: 4,
33200
33207
  modelValue: scope.row[_ctx.getField(column)],
33201
33208
  "onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
@@ -33375,7 +33382,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
33375
33382
  }), 256))
33376
33383
  ]);
33377
33384
  }
33378
- const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-4f9996c6"]]);
33385
+ const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-ce03779d"]]);
33379
33386
  const _sfc_main$m = defineComponent({
33380
33387
  name: "FilterDaterange",
33381
33388
  props: {
@@ -251687,6 +251694,7 @@ let AIBasicsInstance$1 = class AIBasicsInstance2 extends BaseInstance {
251687
251694
  inputModel: this.inputModel.value,
251688
251695
  chatContent: ""
251689
251696
  });
251697
+ this.scrollToBottom();
251690
251698
  await this.doRunAI();
251691
251699
  this.inputModel.value = "";
251692
251700
  });
@@ -251746,10 +251754,12 @@ let AIBasicsInstance$1 = class AIBasicsInstance2 extends BaseInstance {
251746
251754
  }
251747
251755
  }),
251748
251756
  onmessage(event2) {
251757
+ _this.scrollToBottom();
251749
251758
  if (_this.utilities.isNull(event2.data)) {
251750
251759
  return;
251751
251760
  }
251752
251761
  try {
251762
+ _this.scrollToBottom();
251753
251763
  const data2 = JSON.parse(event2.data);
251754
251764
  if (data2.event == "message_end") {
251755
251765
  _this.doStop();
@@ -256314,6 +256324,7 @@ class AIBasicsInstance extends BaseInstance {
256314
256324
  inputModel: this.inputModel.value,
256315
256325
  chatContent: ""
256316
256326
  });
256327
+ this.scrollToBottom();
256317
256328
  await this.doRunAI();
256318
256329
  this.inputModel.value = "";
256319
256330
  });
@@ -256373,10 +256384,12 @@ class AIBasicsInstance extends BaseInstance {
256373
256384
  }
256374
256385
  }),
256375
256386
  onmessage(event2) {
256387
+ _this.scrollToBottom();
256376
256388
  if (_this.utilities.isNull(event2.data)) {
256377
256389
  return;
256378
256390
  }
256379
256391
  try {
256392
+ _this.scrollToBottom();
256380
256393
  const data2 = JSON.parse(event2.data);
256381
256394
  if (data2.event == "message_end") {
256382
256395
  _this.doStop();