cnhis-design-vue 0.2.33-beta → 0.2.34-beta

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.33-beta",
3
+ "version": "0.2.34-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -1041,12 +1041,14 @@ export default create({
1041
1041
  checkListFormUnionSettingParamsList() {
1042
1042
  if (!this.listFormUnionSetting?.paramsList?.length) {
1043
1043
  this.$message.warning('可编辑行需要设置关联表单字段,设置后请重试!');
1044
+ this.$emit('resetInlineEditAll', false);
1044
1045
  this.$emit('triggerSpinning', false);
1045
1046
  return false;
1046
1047
  }
1047
1048
  let find = this.fieldListOriginal?.find(item => item.isEdit == 1);
1048
1049
  if (!find) {
1049
1050
  this.$message.warning('没有设置可编辑字段,请联系管理员');
1051
+ this.$emit('resetInlineEditAll', false);
1050
1052
  this.$emit('triggerSpinning', false);
1051
1053
  return false;
1052
1054
  }
@@ -2980,7 +2982,7 @@ export default create({
2980
2982
  let rowItemWrap = [...wrap.querySelectorAll('.vxe-cell')];
2981
2983
  rowItemWrap.push(...[...wrap.querySelectorAll('.vxe-body--column')]);
2982
2984
  rowItemWrap.forEach(dom => {
2983
- dom.style.height = height;
2985
+ dom.style.setProperty('height', height, 'important');
2984
2986
  dom.style.lineHeight = lineHeight;
2985
2987
  if (height) {
2986
2988
  dom.style.backgroundColor = '#EFF5FF';
@@ -441,6 +441,13 @@ export default {
441
441
  </script>
442
442
  <style lang="less" scoped>
443
443
  .editForm-page {
444
+ height: 100%;
445
+ width: 100%;
446
+ display: flex;
447
+ align-items: center;
448
+ .ant-form {
449
+ width: 100%;
450
+ }
444
451
  /deep/.has-error .ant-input-group-addon {
445
452
  color: rgba(0, 0, 0, 0.65);
446
453
  }
@@ -2,7 +2,16 @@
2
2
  <div class="base-search">
3
3
  <div class="base-container">
4
4
  <div class="bease-left" ref="baseLeft" v-resize="onResize">
5
- <ul>
5
+ <!-- 行内编辑对应生成的(保存、取消)按钮 -->
6
+ <template v-if="visibleInlineOperateBtn">
7
+ <a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditClick" class="btn-custom-class" style="margin: 8px 8px 8px 0" type="primary">
8
+ 保存
9
+ </a-button>
10
+ <a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditCancel" class="btn-custom-class" style="margin: 8px 8px 8px 0">
11
+ 取消
12
+ </a-button>
13
+ </template>
14
+ <ul v-else>
6
15
  <div ref="btnRow" class="btn-row" v-if="isShowSettingBtn">
7
16
  <a-button class="btn-setting" v-show="currentTempId != '0' && isShowSetting('hideSettingBtn')" icon="setting" @click="handlerSetting">
8
17
  设置
@@ -310,15 +319,6 @@
310
319
  </a-button>
311
320
  </a-dropdown>
312
321
  </template>
313
- <!-- 行内编辑对应生成的(保存、取消)按钮 -->
314
- <template v-if="visibleInlineOperateBtn">
315
- <a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditClick" class="btn-custom-class" style="margin: 0 8px 8px 0" type="primary">
316
- 保存
317
- </a-button>
318
- <a-button :style="{ display: isInlineOperating ? 'inline-block' : 'none' }" @click="inlineEditCancel" class="btn-custom-class" style="margin: 0 8px 8px 0">
319
- 取消
320
- </a-button>
321
- </template>
322
322
  </template>
323
323
  </template>
324
324
  </ul>
@@ -815,7 +815,7 @@ export default create({
815
815
  if (index !== -1) this.$emit('tabClick', this.tabConditionList[index]);
816
816
  },
817
817
  pageResize(obj) {
818
- if (this.resizeFlag) return;
818
+ if (this.resizeFlag || this.visibleInlineOperateBtn) return;
819
819
  let baseLeft = this.$refs['baseLeft'];
820
820
  if (!baseLeft) return;
821
821
  this.resizeFlag = true;
@@ -839,7 +839,7 @@ export default create({
839
839
  }
840
840
  },
841
841
  onResize() {
842
- if (this.isButtonFolding || this.isShowSetting('buttonAdaption') || this.relatedIsTree == 1) return;
842
+ if (this.isButtonFolding || this.isShowSetting('buttonAdaption') || this.relatedIsTree == 1 || this.visibleInlineOperateBtn) return;
843
843
  utils.debounce(this.pageResize({ type: 'resize' }), 300);
844
844
  },
845
845
  async saveListIsTile() {
@@ -1916,7 +1916,6 @@ export default create({
1916
1916
  _this.setBatchSaveRowStatus(true);
1917
1917
  },
1918
1918
  onCancel() {
1919
- _this.setBatchCancelRowStatus(true);
1920
1919
  }
1921
1920
  });
1922
1921
  return;