pro-design-vue 1.2.13 → 1.2.14

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.
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.2.13 */
1
+ /*! Pro Design Vue v1.2.14 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue'), require('ant-design-vue/es/locale/zh_CN.js')) :
@@ -32,7 +32,7 @@
32
32
  const DEFAULT_NAMESPACE = "pro";
33
33
  const DEFAULT_LOCALE = "zh-CN";
34
34
 
35
- const version$1 = "1.2.13";
35
+ const version$1 = "1.2.14";
36
36
 
37
37
  const makeInstaller = (components = []) => {
38
38
  const install = (app) => {
@@ -35071,75 +35071,81 @@
35071
35071
  class: vue.normalizeClass(`${_ctx.prefixCls}-alert`)
35072
35072
  },
35073
35073
  [
35074
- vue.createElementVNode(
35075
- "div",
35076
- {
35077
- class: vue.normalizeClass(`${_ctx.prefixCls}-alert-container`)
35078
- },
35079
- [
35080
- vue.createElementVNode(
35081
- "div",
35082
- {
35083
- class: vue.normalizeClass(`${_ctx.prefixCls}-alert-info`)
35084
- },
35085
- [
35086
- vue.renderSlot(_ctx.$slots, "info", {
35087
- selectedRowKeys: _ctx.selectedRowKeys,
35088
- selectedRows: _ctx.selectedRows,
35089
- onCleanSelected: _ctx.onCleanSelected
35090
- }, () => [
35074
+ vue.renderSlot(_ctx.$slots, "alert", {
35075
+ selectedRowKeys: _ctx.selectedRowKeys,
35076
+ selectedRows: _ctx.selectedRows,
35077
+ onCleanSelected: _ctx.onCleanSelected
35078
+ }, () => [
35079
+ vue.createElementVNode(
35080
+ "div",
35081
+ {
35082
+ class: vue.normalizeClass(`${_ctx.prefixCls}-alert-container`)
35083
+ },
35084
+ [
35085
+ vue.createElementVNode(
35086
+ "div",
35087
+ {
35088
+ class: vue.normalizeClass(`${_ctx.prefixCls}-alert-info`)
35089
+ },
35090
+ [
35091
+ vue.renderSlot(_ctx.$slots, "info", {
35092
+ selectedRowKeys: _ctx.selectedRowKeys,
35093
+ selectedRows: _ctx.selectedRows,
35094
+ onCleanSelected: _ctx.onCleanSelected
35095
+ }, () => [
35096
+ vue.createVNode(_component_Space, null, {
35097
+ default: vue.withCtx(() => [
35098
+ vue.createTextVNode(
35099
+ " \u5DF2\u9009\u62E9 " + vue.toDisplayString(_ctx.selectedRowKeys.length) + " \u9879 ",
35100
+ 1
35101
+ /* TEXT */
35102
+ ),
35103
+ _ctx.slots.actions ? (vue.openBlock(), vue.createElementBlock("a", {
35104
+ class: "pro-link",
35105
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onCleanSelected && _ctx.onCleanSelected(...args)),
35106
+ key: "0"
35107
+ }, "\u53D6\u6D88\u9009\u62E9")) : vue.createCommentVNode("v-if", true)
35108
+ ]),
35109
+ _: 1
35110
+ /* STABLE */
35111
+ })
35112
+ ])
35113
+ ],
35114
+ 2
35115
+ /* CLASS */
35116
+ ),
35117
+ vue.createElementVNode(
35118
+ "div",
35119
+ {
35120
+ class: vue.normalizeClass(`${_ctx.prefixCls}-alert-actions`)
35121
+ },
35122
+ [
35091
35123
  vue.createVNode(_component_Space, null, {
35092
35124
  default: vue.withCtx(() => [
35093
- vue.createTextVNode(
35094
- " \u5DF2\u9009\u62E9 " + vue.toDisplayString(_ctx.selectedRowKeys.length) + " \u9879 ",
35095
- 1
35096
- /* TEXT */
35097
- ),
35098
- _ctx.slots.actions ? (vue.openBlock(), vue.createElementBlock("a", {
35099
- class: "pro-link",
35100
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onCleanSelected && _ctx.onCleanSelected(...args)),
35101
- key: "0"
35102
- }, "\u53D6\u6D88\u9009\u62E9")) : vue.createCommentVNode("v-if", true)
35125
+ vue.renderSlot(_ctx.$slots, "actions", {
35126
+ selectedRowKeys: _ctx.selectedRowKeys,
35127
+ selectedRows: _ctx.selectedRows,
35128
+ onCleanSelected: _ctx.onCleanSelected
35129
+ }, () => [
35130
+ vue.createElementVNode("a", {
35131
+ class: "pro-link",
35132
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onCleanSelected && _ctx.onCleanSelected(...args)),
35133
+ key: "0"
35134
+ }, "\u53D6\u6D88\u9009\u62E9")
35135
+ ])
35103
35136
  ]),
35104
- _: 1
35105
- /* STABLE */
35137
+ _: 3
35138
+ /* FORWARDED */
35106
35139
  })
35107
- ])
35108
- ],
35109
- 2
35110
- /* CLASS */
35111
- ),
35112
- vue.createElementVNode(
35113
- "div",
35114
- {
35115
- class: vue.normalizeClass(`${_ctx.prefixCls}-alert-actions`)
35116
- },
35117
- [
35118
- vue.createVNode(_component_Space, null, {
35119
- default: vue.withCtx(() => [
35120
- vue.renderSlot(_ctx.$slots, "actions", {
35121
- selectedRowKeys: _ctx.selectedRowKeys,
35122
- selectedRows: _ctx.selectedRows,
35123
- onCleanSelected: _ctx.onCleanSelected
35124
- }, () => [
35125
- vue.createElementVNode("a", {
35126
- class: "pro-link",
35127
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onCleanSelected && _ctx.onCleanSelected(...args)),
35128
- key: "0"
35129
- }, "\u53D6\u6D88\u9009\u62E9")
35130
- ])
35131
- ]),
35132
- _: 3
35133
- /* FORWARDED */
35134
- })
35135
- ],
35136
- 2
35137
- /* CLASS */
35138
- )
35139
- ],
35140
- 2
35141
- /* CLASS */
35142
- )
35140
+ ],
35141
+ 2
35142
+ /* CLASS */
35143
+ )
35144
+ ],
35145
+ 2
35146
+ /* CLASS */
35147
+ )
35148
+ ])
35143
35149
  ],
35144
35150
  2
35145
35151
  /* CLASS */
@@ -35485,8 +35491,9 @@
35485
35491
  const dataRowKey = getRowKey.value(data, -1);
35486
35492
  preserveRecordsRef.value.set(dataRowKey, data);
35487
35493
  });
35494
+ } else {
35495
+ onCleanSelected();
35488
35496
  }
35489
- onCleanSelected();
35490
35497
  });
35491
35498
  const [selectedRowKeys, setSelectedRowKeys] = useMergedState(props.selectedRowKeys || (props.rowSelection ? ((_a = props.rowSelection) == null ? void 0 : _a.defaultSelectedRowKeys) || [] : void 0), {
35492
35499
  value: vue.computed(() => props.selectedRowKeys || (props.rowSelection ? props.rowSelection.selectedRowKeys : void 0))
@@ -35573,6 +35580,7 @@
35573
35580
  clearDataSource: () => {
35574
35581
  dataSource.value = [];
35575
35582
  },
35583
+ cleanSelected: onCleanSelected,
35576
35584
  appendCellToSelectedRange: (params) => {
35577
35585
  var _a2;
35578
35586
  return (_a2 = tableRef.value) == null ? void 0 : _a2.appendCellToSelectedRange(params);
@@ -35638,7 +35646,8 @@
35638
35646
  "onCleanSelected": onCleanSelected
35639
35647
  }, {
35640
35648
  info: slots.alertInfo,
35641
- actions: slots.alertActions
35649
+ actions: slots.alertActions,
35650
+ alert: slots.alert
35642
35651
  }), vue.createVNode(InteralTable, vue.mergeProps({
35643
35652
  "ref": tableRef
35644
35653
  }, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys", "onUpdate:columns"]), {
@@ -35672,7 +35681,10 @@
35672
35681
  return vue.createVNode(antDesignVue.ConfigProvider, {
35673
35682
  "prefixCls": antPrefixCls == null ? void 0 : antPrefixCls.value,
35674
35683
  "getPopupContainer": () => {
35675
- return counter.rootDomRef.value || document.body;
35684
+ if (counter.hasFullScreen.value && counter.rootDomRef.value) {
35685
+ return counter.rootDomRef.value;
35686
+ }
35687
+ return document.body;
35676
35688
  }
35677
35689
  }, {
35678
35690
  default: () => {