@jetlinks-web/components 2.0.34 → 2.0.36

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.
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
- const _withScopeId = n => (_pushScopeId("data-v-1716533070372"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1719281995794"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -21,7 +21,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
21
21
  "_contentProps": "setup-maybe-ref",
22
22
  "Table": "setup-maybe-ref",
23
23
  "get": "setup-maybe-ref",
24
- "isString": "setup-maybe-ref",
25
24
  "Empty": "setup-maybe-ref",
26
25
  "props": "setup-reactive-const",
27
26
  "slots": "setup-maybe-ref",
@@ -43,7 +42,7 @@ const _hoisted_3 = {
43
42
  import { useSlots, computed } from 'vue';
44
43
  import { _contentProps } from "./setting";
45
44
  import { Table } from 'ant-design-vue';
46
- import { get, } from 'lodash-es';
45
+ import { get } from 'lodash-es';
47
46
  import Empty from '../Empty';
48
47
  const __sfc_main__ = _defineComponent({
49
48
  ...{
@@ -63,7 +62,7 @@ const __sfc_main__ = _defineComponent({
63
62
  const _scroll = computed(() => {
64
63
  let y = _optionalChain([props, 'access', _3 => _3.scroll, 'optionalAccess', _4 => _4.y]) || '100%';
65
64
  return {
66
- x: _optionalChain([props, 'access', _5 => _5.scroll, 'optionalAccess', _6 => _6.x]) || 1366,
65
+ x: _optionalChain([props, 'access', _5 => _5.scroll, 'optionalAccess', _6 => _6.x]) || '100%',
67
66
  y
68
67
  };
69
68
  });
@@ -1,25 +1,33 @@
1
1
  /* Analyzed bindings: {
2
2
  "Pagination": "setup-maybe-ref",
3
- "paginationProps": "setup-maybe-ref",
3
+ "_paginationProps": "setup-maybe-ref",
4
+ "computed": "setup-const",
4
5
  "props": "setup-reactive-const",
5
6
  "emits": "setup-const",
7
+ "className": "setup-ref",
6
8
  "_showTotal": "setup-const",
7
9
  "onChange": "setup-const"
8
10
  } */
9
11
  import { defineComponent as _defineComponent } from 'vue';
10
- import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
12
+ import { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
11
13
  const _hoisted_1 = { class: "jtable-pagination" };
12
14
  import { Pagination } from 'ant-design-vue';
13
- import { paginationProps } from "./setting";
15
+ import { _paginationProps } from "./setting";
16
+ import { computed } from 'vue';
14
17
  const __sfc_main__ = _defineComponent({
15
18
  ...{
16
19
  name: 'Pagination'
17
20
  },
18
- props: { ...paginationProps },
21
+ props: { ..._paginationProps },
19
22
  emits: ['change'],
20
23
  setup(__props, { emit: __emit }) {
21
24
  const props = __props;
22
25
  const emits = __emit;
26
+ const className = computed(() => {
27
+ return {
28
+ 'show-content': !props.isShowContent,
29
+ };
30
+ });
23
31
  const _showTotal = (num) => {
24
32
  const minSize = props.pageIndex * props.pageSize + 1;
25
33
  const MaxSize = (props.pageIndex + 1) * props.pageSize;
@@ -31,13 +39,14 @@ const __sfc_main__ = _defineComponent({
31
39
  return (_ctx, _cache) => {
32
40
  return (_openBlock(), _createElementBlock("div", _hoisted_1, [
33
41
  _renderSlot(_ctx.$slots, "default", {}, () => [
34
- _createVNode(_unref(Pagination), {
42
+ _createVNode(_unref(Pagination), _mergeProps(props, {
35
43
  total: _ctx.total,
36
44
  pageSize: _ctx.pageSize,
37
45
  current: _ctx.pageIndex + 1,
38
46
  "show-total": (num) => _showTotal(num),
39
- onChange: onChange
40
- }, null, 8 /* PROPS */, ["total", "pageSize", "current", "show-total"])
47
+ onChange: onChange,
48
+ class: className.value
49
+ }), null, 16 /* FULL_PROPS */, ["total", "pageSize", "current", "show-total", "class"])
41
50
  ])
42
51
  ]));
43
52
  };
@@ -112,7 +112,7 @@ const __sfc_main__ = _defineComponent({
112
112
  };
113
113
  const handleSearch = async (_params) => {
114
114
  if (Array.isArray(props.dataSource)) {
115
- _dataSource.value = [];
115
+ _dataSource.value = props.dataSource;
116
116
  }
117
117
  else if (props.request) {
118
118
  const __params = {
@@ -281,13 +281,14 @@ const __sfc_main__ = _defineComponent({
281
281
  })
282
282
  ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["mode", "dataSource", "column"]),
283
283
  (showPagination.value)
284
- ? (_openBlock(), _createBlock(Pagination, {
284
+ ? (_openBlock(), _createBlock(Pagination, _mergeProps({
285
285
  key: 1,
286
- onChange: onPageChange,
286
+ onChange: onPageChange
287
+ }, props.pagination, {
287
288
  total: page.total,
288
289
  pageIndex: page.pageIndex,
289
290
  pageSize: page.pageSize
290
- }, {
291
+ }), {
291
292
  default: _withCtx(() => [
292
293
  _renderSlot(_ctx.$slots, "paginationRender", {
293
294
  total: page.total,
@@ -297,7 +298,7 @@ const __sfc_main__ = _defineComponent({
297
298
  })
298
299
  ]),
299
300
  _: 3 /* FORWARDED */
300
- }, 8 /* PROPS */, ["total", "pageIndex", "pageSize"]))
301
+ }, 16 /* FULL_PROPS */, ["total", "pageIndex", "pageSize"]))
301
302
  : _createCommentVNode("v-if", true)
302
303
  ])
303
304
  ]),
@@ -2,6 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import { tableProps } from "ant-design-vue/es/table/Table";
3
3
  import "vue";
4
4
  import "ant-design-vue/es/table";
5
+ import { paginationProps } from 'ant-design-vue/es/pagination/Pagination';
5
6
  export var _headerProps = {
6
7
  mode: {
7
8
  type: [String, undefined],
@@ -48,17 +49,15 @@ export var _contentProps = _objectSpread(_objectSpread(_objectSpread({}, tablePr
48
49
  scroll: {
49
50
  type: Object,
50
51
  default: function _default() {
51
- return {
52
- x: 1366
53
- };
54
- }
52
+ return {};
53
+ } // x: 1366
55
54
  },
56
55
  rowKey: {
57
56
  type: [String, Function],
58
57
  default: 'id'
59
58
  }
60
59
  });
61
- export var paginationProps = {
60
+ export var _paginationProps = _objectSpread(_objectSpread({}, paginationProps()), {}, {
62
61
  total: {
63
62
  type: Number,
64
63
  default: 0
@@ -70,8 +69,15 @@ export var paginationProps = {
70
69
  pageIndex: {
71
70
  type: Number,
72
71
  default: 0
72
+ },
73
+ /**
74
+ * 是否显示分页内容
75
+ */
76
+ isShowContent: {
77
+ type: Boolean,
78
+ default: false
73
79
  }
74
- };
80
+ });
75
81
  export var proTableProps = _objectSpread(_objectSpread(_objectSpread({}, _contentProps), _alertProps), {}, {
76
82
  bodyStyle: {
77
83
  type: Object,
@@ -1,4 +1,5 @@
1
1
  @import '../../style/variable.less';
2
+ @import 'ant-design-vue/es/pagination/style/index.less';
2
3
 
3
4
  .jtable-body-spin {
4
5
  height: 100%;
@@ -76,6 +77,10 @@
76
77
  min-width: 0;
77
78
  }
78
79
  }
80
+
81
+ .j-table-empty {
82
+ margin-top: 100px;
83
+ }
79
84
  }
80
85
 
81
86
  .ant-table-wrapper {
@@ -117,4 +122,13 @@
117
122
  display: flex;
118
123
  justify-content: flex-end;
119
124
  margin-top: 16px;
125
+
126
+ .show-content {
127
+ .@{ant-prefix}-pagination-item,
128
+ & .@{ant-prefix}-pagination-jump-prev,
129
+ & .@{ant-prefix}-pagination-jump-next {
130
+ display: none;
131
+ }
132
+ }
120
133
  }
134
+
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1716533072084"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1719281998222"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
package/es/Search/Item.js CHANGED
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
81
- const _withScopeId = n => (_pushScopeId("data-v-1716533071139"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1719281997473"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
39
- const _withScopeId = n => (_pushScopeId("data-v-1716533071278"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1719281997632"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';