@weitutech/by-components 1.1.154 → 1.1.156

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.
@@ -74524,8 +74524,8 @@ var component = normalizeComponent(
74524
74524
  )
74525
74525
 
74526
74526
  /* harmony default export */ var pager = (component.exports);
74527
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=1531768e
74528
- var tablevue_type_template_id_1531768e_render = function render() {
74527
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=7d8ad903
74528
+ var tablevue_type_template_id_7d8ad903_render = function render() {
74529
74529
  var _vm = this,
74530
74530
  _c = _vm._self._c;
74531
74531
  return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
@@ -74603,7 +74603,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
74603
74603
  }
74604
74604
  }) : _vm._e()], 1);
74605
74605
  };
74606
- var tablevue_type_template_id_1531768e_staticRenderFns = [];
74606
+ var tablevue_type_template_id_7d8ad903_staticRenderFns = [];
74607
74607
 
74608
74608
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
74609
74609
  var es_array_push = __webpack_require__(4114);
@@ -76764,6 +76764,9 @@ var custom_column_component = normalizeComponent(
76764
76764
  newColumns = this.removeFixedColumns(newColumns);
76765
76765
  }
76766
76766
 
76767
+ // 为表头补充tooltips展示能力
76768
+ newColumns = this.applyColumnTooltips(newColumns);
76769
+
76767
76770
  // 处理前端分页和虚拟滚动
76768
76771
  let data = others.data || [];
76769
76772
  if ((_others$pagerConfig = others.pagerConfig) !== null && _others$pagerConfig !== void 0 && _others$pagerConfig.frontendPagination || (_others$sortConfig = others.sortConfig) !== null && _others$sortConfig !== void 0 && _others$sortConfig.frontendSort) {
@@ -76937,6 +76940,79 @@ var custom_column_component = normalizeComponent(
76937
76940
  setHasCache() {
76938
76941
  this.hasCache = isCachedTableColumns(this.name);
76939
76942
  },
76943
+ /**
76944
+ * 根据工具提示配置增强表头
76945
+ * @param {Array} columns
76946
+ */
76947
+ applyColumnTooltips(columns) {
76948
+ if (!Array.isArray(columns)) return columns;
76949
+ return columns.map(column => {
76950
+ const newColumn = {
76951
+ ...column
76952
+ };
76953
+ if (Array.isArray(newColumn.children) && newColumn.children.length) {
76954
+ newColumn.children = this.applyColumnTooltips(newColumn.children);
76955
+ }
76956
+ const tooltipConfig = this.normalizeTooltipConfig(newColumn.tooltips);
76957
+ if (tooltipConfig) {
76958
+ newColumn.titleSuffix = this.createTitleSuffixConfig(newColumn.titleSuffix, tooltipConfig);
76959
+ }
76960
+ return newColumn;
76961
+ });
76962
+ },
76963
+ /**
76964
+ * 规范化列配置上的tooltips字段
76965
+ * @param {string|Object} tooltips
76966
+ */
76967
+ normalizeTooltipConfig(tooltips) {
76968
+ if (!tooltips) return null;
76969
+ if (typeof tooltips === 'string') {
76970
+ return {
76971
+ content: tooltips,
76972
+ placement: 'top',
76973
+ effect: 'dark'
76974
+ };
76975
+ }
76976
+ if (typeof tooltips === 'object') {
76977
+ const {
76978
+ content,
76979
+ placement,
76980
+ effect,
76981
+ popperClass,
76982
+ iconClass
76983
+ } = tooltips;
76984
+ if (!content) {
76985
+ return null;
76986
+ }
76987
+ return {
76988
+ content,
76989
+ placement: placement || 'top',
76990
+ effect: effect || 'dark',
76991
+ popperClass,
76992
+ iconClass
76993
+ };
76994
+ }
76995
+ return null;
76996
+ },
76997
+ /**
76998
+ * 生成 VXE 表格 titleSuffix 配置
76999
+ */
77000
+ createTitleSuffixConfig(existingSuffix, tooltipConfig) {
77001
+ const suffix = typeof existingSuffix === 'object' && existingSuffix !== null ? {
77002
+ ...existingSuffix
77003
+ } : {};
77004
+ const iconClass = tooltipConfig.iconClass || suffix.icon || 'el-icon-question';
77005
+ return {
77006
+ ...suffix,
77007
+ icon: iconClass,
77008
+ content: tooltipConfig.content,
77009
+ message: tooltipConfig.content,
77010
+ theme: suffix.theme || tooltipConfig.effect || 'dark',
77011
+ enterable: typeof suffix.enterable === 'boolean' ? suffix.enterable : true,
77012
+ placement: suffix.placement || tooltipConfig.placement || 'top',
77013
+ popperClass: suffix.popperClass || tooltipConfig.popperClass
77014
+ };
77015
+ },
76940
77016
  //重置列宽缓存
76941
77017
  resetCachedTableColumns() {
76942
77018
  removeCachedTableColumns(this.name);
@@ -77390,8 +77466,8 @@ var custom_column_component = normalizeComponent(
77390
77466
  ;
77391
77467
  var table_component = normalizeComponent(
77392
77468
  components_tablevue_type_script_lang_js,
77393
- tablevue_type_template_id_1531768e_render,
77394
- tablevue_type_template_id_1531768e_staticRenderFns,
77469
+ tablevue_type_template_id_7d8ad903_render,
77470
+ tablevue_type_template_id_7d8ad903_staticRenderFns,
77395
77471
  false,
77396
77472
  null,
77397
77473
  null,
@@ -95201,8 +95277,8 @@ var ByPopoverSelector_component = normalizeComponent(
95201
95277
  )
95202
95278
 
95203
95279
  /* harmony default export */ var ByPopoverSelector = (ByPopoverSelector_component.exports);
95204
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/grid-layout/ByGridLayout.vue?vue&type=template&id=3735c079
95205
- var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95280
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/grid-layout/ByGridLayout.vue?vue&type=template&id=7e47dec8
95281
+ var ByGridLayoutvue_type_template_id_7e47dec8_render = function render() {
95206
95282
  var _vm = this,
95207
95283
  _c = _vm._self._c;
95208
95284
  return _c('div', {
@@ -95238,7 +95314,7 @@ var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95238
95314
  }, 'grid-item', renderItem.layoutProps, false), [_c('div', {
95239
95315
  staticClass: "by-grid-layout__item-wrapper"
95240
95316
  }, [_vm.toggleable && _vm.isEditingActive ? _c('i', {
95241
- staticClass: "by-grid-layout__delete-btn el-icon-close",
95317
+ staticClass: "by-grid-layout__delete-btn el-icon-delete",
95242
95318
  on: {
95243
95319
  "click": function ($event) {
95244
95320
  $event.stopPropagation();
@@ -95345,6 +95421,12 @@ var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95345
95421
  staticClass: "by-grid-layout__empty-desc"
95346
95422
  }, [_vm._v(_vm._s(_vm.isEditing ? '点击上方添加卡片或点击右侧恢复默认布局' : '点击右侧自定义按钮进行配置'))])]) : _vm._e(), _vm.toggleable ? _c('div', {
95347
95423
  staticClass: "by-grid-layout__controls"
95424
+ }, [_c('el-tooltip', {
95425
+ attrs: {
95426
+ "content": _vm.tooltipContent,
95427
+ "placement": "left",
95428
+ "disabled": !_vm.isEditingActive || !_vm.showTooltip
95429
+ }
95348
95430
  }, [_c('div', {
95349
95431
  staticClass: "by-grid-layout__mode-toggle",
95350
95432
  class: {
@@ -95353,14 +95435,19 @@ var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95353
95435
  on: {
95354
95436
  "click": _vm.handleModeButtonClick
95355
95437
  }
95356
- }, [_c('span', [_vm._v(_vm._s(_vm.modeButtonText))])]), _vm.isEditingActive ? _c('div', {
95438
+ }, [_c('span', [_vm._v(_vm._s(_vm.modeButtonText))])])]), _vm.isEditingActive ? _c('div', {
95357
95439
  staticClass: "by-grid-layout__reset-toggle",
95358
95440
  on: {
95359
95441
  "click": _vm.handleReset
95360
95442
  }
95361
- }, [_c('span', [_vm._v("恢复默认")])]) : _vm._e()]) : _vm._e()], 1);
95443
+ }, [_c('span', [_vm._v("恢复默认")])]) : _vm._e(), _vm.isEditingActive ? _c('div', {
95444
+ staticClass: "by-grid-layout__cancel-toggle",
95445
+ on: {
95446
+ "click": _vm.handleCancel
95447
+ }
95448
+ }, [_c('span', [_vm._v("取消")])]) : _vm._e()], 1) : _vm._e()], 1);
95362
95449
  };
95363
- var ByGridLayoutvue_type_template_id_3735c079_staticRenderFns = [];
95450
+ var ByGridLayoutvue_type_template_id_7e47dec8_staticRenderFns = [];
95364
95451
 
95365
95452
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
95366
95453
  var es_iterator_reduce = __webpack_require__(8237);
@@ -95434,6 +95521,16 @@ const GRID_ITEM_KEYS = ['x', 'y', 'w', 'h', 'i', ...OPTIONAL_LAYOUT_KEYS];
95434
95521
  toggleable: {
95435
95522
  type: Boolean,
95436
95523
  default: true
95524
+ },
95525
+ /** 是否显示提示 */
95526
+ showTooltip: {
95527
+ type: Boolean,
95528
+ default: true
95529
+ },
95530
+ /** 提示内容 */
95531
+ tooltipContent: {
95532
+ type: String,
95533
+ default: '编辑排版保存后生效~'
95437
95534
  }
95438
95535
  },
95439
95536
  data() {
@@ -95668,6 +95765,10 @@ const GRID_ITEM_KEYS = ['x', 'y', 'w', 'h', 'i', ...OPTIONAL_LAYOUT_KEYS];
95668
95765
  }))
95669
95766
  });
95670
95767
  },
95768
+ handleCancel() {
95769
+ this.exitEditMode();
95770
+ this.$emit('cancel');
95771
+ },
95671
95772
  emitModeChange() {
95672
95773
  this.$emit('mode-change', this.currentMode);
95673
95774
  },
@@ -96071,8 +96172,8 @@ const GRID_ITEM_KEYS = ['x', 'y', 'w', 'h', 'i', ...OPTIONAL_LAYOUT_KEYS];
96071
96172
  ;
96072
96173
  var ByGridLayout_component = normalizeComponent(
96073
96174
  grid_layout_ByGridLayoutvue_type_script_lang_js,
96074
- ByGridLayoutvue_type_template_id_3735c079_render,
96075
- ByGridLayoutvue_type_template_id_3735c079_staticRenderFns,
96175
+ ByGridLayoutvue_type_template_id_7e47dec8_render,
96176
+ ByGridLayoutvue_type_template_id_7e47dec8_staticRenderFns,
96076
96177
  false,
96077
96178
  null,
96078
96179
  null,
@@ -74534,8 +74534,8 @@ var component = normalizeComponent(
74534
74534
  )
74535
74535
 
74536
74536
  /* harmony default export */ var pager = (component.exports);
74537
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=1531768e
74538
- var tablevue_type_template_id_1531768e_render = function render() {
74537
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=7d8ad903
74538
+ var tablevue_type_template_id_7d8ad903_render = function render() {
74539
74539
  var _vm = this,
74540
74540
  _c = _vm._self._c;
74541
74541
  return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
@@ -74613,7 +74613,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
74613
74613
  }
74614
74614
  }) : _vm._e()], 1);
74615
74615
  };
74616
- var tablevue_type_template_id_1531768e_staticRenderFns = [];
74616
+ var tablevue_type_template_id_7d8ad903_staticRenderFns = [];
74617
74617
 
74618
74618
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
74619
74619
  var es_array_push = __webpack_require__(4114);
@@ -76774,6 +76774,9 @@ var custom_column_component = normalizeComponent(
76774
76774
  newColumns = this.removeFixedColumns(newColumns);
76775
76775
  }
76776
76776
 
76777
+ // 为表头补充tooltips展示能力
76778
+ newColumns = this.applyColumnTooltips(newColumns);
76779
+
76777
76780
  // 处理前端分页和虚拟滚动
76778
76781
  let data = others.data || [];
76779
76782
  if ((_others$pagerConfig = others.pagerConfig) !== null && _others$pagerConfig !== void 0 && _others$pagerConfig.frontendPagination || (_others$sortConfig = others.sortConfig) !== null && _others$sortConfig !== void 0 && _others$sortConfig.frontendSort) {
@@ -76947,6 +76950,79 @@ var custom_column_component = normalizeComponent(
76947
76950
  setHasCache() {
76948
76951
  this.hasCache = isCachedTableColumns(this.name);
76949
76952
  },
76953
+ /**
76954
+ * 根据工具提示配置增强表头
76955
+ * @param {Array} columns
76956
+ */
76957
+ applyColumnTooltips(columns) {
76958
+ if (!Array.isArray(columns)) return columns;
76959
+ return columns.map(column => {
76960
+ const newColumn = {
76961
+ ...column
76962
+ };
76963
+ if (Array.isArray(newColumn.children) && newColumn.children.length) {
76964
+ newColumn.children = this.applyColumnTooltips(newColumn.children);
76965
+ }
76966
+ const tooltipConfig = this.normalizeTooltipConfig(newColumn.tooltips);
76967
+ if (tooltipConfig) {
76968
+ newColumn.titleSuffix = this.createTitleSuffixConfig(newColumn.titleSuffix, tooltipConfig);
76969
+ }
76970
+ return newColumn;
76971
+ });
76972
+ },
76973
+ /**
76974
+ * 规范化列配置上的tooltips字段
76975
+ * @param {string|Object} tooltips
76976
+ */
76977
+ normalizeTooltipConfig(tooltips) {
76978
+ if (!tooltips) return null;
76979
+ if (typeof tooltips === 'string') {
76980
+ return {
76981
+ content: tooltips,
76982
+ placement: 'top',
76983
+ effect: 'dark'
76984
+ };
76985
+ }
76986
+ if (typeof tooltips === 'object') {
76987
+ const {
76988
+ content,
76989
+ placement,
76990
+ effect,
76991
+ popperClass,
76992
+ iconClass
76993
+ } = tooltips;
76994
+ if (!content) {
76995
+ return null;
76996
+ }
76997
+ return {
76998
+ content,
76999
+ placement: placement || 'top',
77000
+ effect: effect || 'dark',
77001
+ popperClass,
77002
+ iconClass
77003
+ };
77004
+ }
77005
+ return null;
77006
+ },
77007
+ /**
77008
+ * 生成 VXE 表格 titleSuffix 配置
77009
+ */
77010
+ createTitleSuffixConfig(existingSuffix, tooltipConfig) {
77011
+ const suffix = typeof existingSuffix === 'object' && existingSuffix !== null ? {
77012
+ ...existingSuffix
77013
+ } : {};
77014
+ const iconClass = tooltipConfig.iconClass || suffix.icon || 'el-icon-question';
77015
+ return {
77016
+ ...suffix,
77017
+ icon: iconClass,
77018
+ content: tooltipConfig.content,
77019
+ message: tooltipConfig.content,
77020
+ theme: suffix.theme || tooltipConfig.effect || 'dark',
77021
+ enterable: typeof suffix.enterable === 'boolean' ? suffix.enterable : true,
77022
+ placement: suffix.placement || tooltipConfig.placement || 'top',
77023
+ popperClass: suffix.popperClass || tooltipConfig.popperClass
77024
+ };
77025
+ },
76950
77026
  //重置列宽缓存
76951
77027
  resetCachedTableColumns() {
76952
77028
  removeCachedTableColumns(this.name);
@@ -77400,8 +77476,8 @@ var custom_column_component = normalizeComponent(
77400
77476
  ;
77401
77477
  var table_component = normalizeComponent(
77402
77478
  components_tablevue_type_script_lang_js,
77403
- tablevue_type_template_id_1531768e_render,
77404
- tablevue_type_template_id_1531768e_staticRenderFns,
77479
+ tablevue_type_template_id_7d8ad903_render,
77480
+ tablevue_type_template_id_7d8ad903_staticRenderFns,
77405
77481
  false,
77406
77482
  null,
77407
77483
  null,
@@ -95211,8 +95287,8 @@ var ByPopoverSelector_component = normalizeComponent(
95211
95287
  )
95212
95288
 
95213
95289
  /* harmony default export */ var ByPopoverSelector = (ByPopoverSelector_component.exports);
95214
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/grid-layout/ByGridLayout.vue?vue&type=template&id=3735c079
95215
- var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95290
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/grid-layout/ByGridLayout.vue?vue&type=template&id=7e47dec8
95291
+ var ByGridLayoutvue_type_template_id_7e47dec8_render = function render() {
95216
95292
  var _vm = this,
95217
95293
  _c = _vm._self._c;
95218
95294
  return _c('div', {
@@ -95248,7 +95324,7 @@ var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95248
95324
  }, 'grid-item', renderItem.layoutProps, false), [_c('div', {
95249
95325
  staticClass: "by-grid-layout__item-wrapper"
95250
95326
  }, [_vm.toggleable && _vm.isEditingActive ? _c('i', {
95251
- staticClass: "by-grid-layout__delete-btn el-icon-close",
95327
+ staticClass: "by-grid-layout__delete-btn el-icon-delete",
95252
95328
  on: {
95253
95329
  "click": function ($event) {
95254
95330
  $event.stopPropagation();
@@ -95355,6 +95431,12 @@ var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95355
95431
  staticClass: "by-grid-layout__empty-desc"
95356
95432
  }, [_vm._v(_vm._s(_vm.isEditing ? '点击上方添加卡片或点击右侧恢复默认布局' : '点击右侧自定义按钮进行配置'))])]) : _vm._e(), _vm.toggleable ? _c('div', {
95357
95433
  staticClass: "by-grid-layout__controls"
95434
+ }, [_c('el-tooltip', {
95435
+ attrs: {
95436
+ "content": _vm.tooltipContent,
95437
+ "placement": "left",
95438
+ "disabled": !_vm.isEditingActive || !_vm.showTooltip
95439
+ }
95358
95440
  }, [_c('div', {
95359
95441
  staticClass: "by-grid-layout__mode-toggle",
95360
95442
  class: {
@@ -95363,14 +95445,19 @@ var ByGridLayoutvue_type_template_id_3735c079_render = function render() {
95363
95445
  on: {
95364
95446
  "click": _vm.handleModeButtonClick
95365
95447
  }
95366
- }, [_c('span', [_vm._v(_vm._s(_vm.modeButtonText))])]), _vm.isEditingActive ? _c('div', {
95448
+ }, [_c('span', [_vm._v(_vm._s(_vm.modeButtonText))])])]), _vm.isEditingActive ? _c('div', {
95367
95449
  staticClass: "by-grid-layout__reset-toggle",
95368
95450
  on: {
95369
95451
  "click": _vm.handleReset
95370
95452
  }
95371
- }, [_c('span', [_vm._v("恢复默认")])]) : _vm._e()]) : _vm._e()], 1);
95453
+ }, [_c('span', [_vm._v("恢复默认")])]) : _vm._e(), _vm.isEditingActive ? _c('div', {
95454
+ staticClass: "by-grid-layout__cancel-toggle",
95455
+ on: {
95456
+ "click": _vm.handleCancel
95457
+ }
95458
+ }, [_c('span', [_vm._v("取消")])]) : _vm._e()], 1) : _vm._e()], 1);
95372
95459
  };
95373
- var ByGridLayoutvue_type_template_id_3735c079_staticRenderFns = [];
95460
+ var ByGridLayoutvue_type_template_id_7e47dec8_staticRenderFns = [];
95374
95461
 
95375
95462
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
95376
95463
  var es_iterator_reduce = __webpack_require__(8237);
@@ -95444,6 +95531,16 @@ const GRID_ITEM_KEYS = ['x', 'y', 'w', 'h', 'i', ...OPTIONAL_LAYOUT_KEYS];
95444
95531
  toggleable: {
95445
95532
  type: Boolean,
95446
95533
  default: true
95534
+ },
95535
+ /** 是否显示提示 */
95536
+ showTooltip: {
95537
+ type: Boolean,
95538
+ default: true
95539
+ },
95540
+ /** 提示内容 */
95541
+ tooltipContent: {
95542
+ type: String,
95543
+ default: '编辑排版保存后生效~'
95447
95544
  }
95448
95545
  },
95449
95546
  data() {
@@ -95678,6 +95775,10 @@ const GRID_ITEM_KEYS = ['x', 'y', 'w', 'h', 'i', ...OPTIONAL_LAYOUT_KEYS];
95678
95775
  }))
95679
95776
  });
95680
95777
  },
95778
+ handleCancel() {
95779
+ this.exitEditMode();
95780
+ this.$emit('cancel');
95781
+ },
95681
95782
  emitModeChange() {
95682
95783
  this.$emit('mode-change', this.currentMode);
95683
95784
  },
@@ -96081,8 +96182,8 @@ const GRID_ITEM_KEYS = ['x', 'y', 'w', 'h', 'i', ...OPTIONAL_LAYOUT_KEYS];
96081
96182
  ;
96082
96183
  var ByGridLayout_component = normalizeComponent(
96083
96184
  grid_layout_ByGridLayoutvue_type_script_lang_js,
96084
- ByGridLayoutvue_type_template_id_3735c079_render,
96085
- ByGridLayoutvue_type_template_id_3735c079_staticRenderFns,
96185
+ ByGridLayoutvue_type_template_id_7e47dec8_render,
96186
+ ByGridLayoutvue_type_template_id_7e47dec8_staticRenderFns,
96086
96187
  false,
96087
96188
  null,
96088
96189
  null,