xrk-components 2.0.0-beta.97 → 2.0.0-beta.99

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/lib/index.css CHANGED
@@ -19810,11 +19810,21 @@
19810
19810
  box-sizing: border-box;
19811
19811
  }
19812
19812
  .xrk-search[data-v-a1781a06] > .xrk-form {
19813
- display: grid;
19814
- grid-template-columns: repeat(var(--column-num), 1fr);
19813
+ display: -webkit-box;
19814
+ display: -webkit-flex;
19815
+ display: -ms-flexbox;
19816
+ display: flex;
19815
19817
  gap: 10px 16px;
19818
+ -webkit-box-align: end;
19819
+ -webkit-align-items: flex-end;
19820
+ -ms-flex-align: end;
19821
+ align-items: flex-end;
19822
+ -webkit-flex-wrap: wrap;
19823
+ -ms-flex-wrap: wrap;
19824
+ flex-wrap: wrap;
19816
19825
  }
19817
19826
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-form-item {
19827
+ width: calc((100% - 16px * (var(--column-num) - 1)) / var(--column-num));
19818
19828
  margin-bottom: 0px;
19819
19829
  }
19820
19830
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-form-item .xrk-form-item__label {
@@ -19833,6 +19843,9 @@
19833
19843
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-form-item .xrk-select__caret {
19834
19844
  color: #161616 !important;
19835
19845
  }
19846
+ .xrk-search[data-v-a1781a06] > .xrk-form .xrk-form-item .xrk-input__count-inner {
19847
+ background: transparent;
19848
+ }
19836
19849
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-form-item__label {
19837
19850
  padding-right: 6px !important;
19838
19851
  }
@@ -19842,8 +19855,52 @@
19842
19855
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-button + .xrk-button {
19843
19856
  margin-left: 0;
19844
19857
  }
19858
+ @media screen and (min-width: 1400px) and (max-width: 1500px) {
19859
+ .xrk-search[data-v-a1781a06] {
19860
+ display: block !important;
19861
+ }
19862
+ .xrk-search[data-v-a1781a06] .xrk-form .xrk-form-item {
19863
+ width: calc((100% - 16px * (var(--column-num) - 2)) / (var(--column-num) - 1)) !important;
19864
+ }
19865
+ .xrk-search[data-v-a1781a06] .btn-group {
19866
+ -webkit-box-pack: start !important;
19867
+ -webkit-justify-content: flex-start !important;
19868
+ -ms-flex-pack: start !important;
19869
+ justify-content: flex-start !important;
19870
+ width: 100% !important;
19871
+ }
19872
+ }
19873
+ @media screen and (min-width: 1040px) and (max-width: 1399px) {
19874
+ .xrk-search[data-v-a1781a06] {
19875
+ display: block !important;
19876
+ }
19877
+ .xrk-search[data-v-a1781a06] .xrk-form .xrk-form-item {
19878
+ width: calc((100% - 16px * (var(--column-num) - 3)) / (var(--column-num) - 2)) !important;
19879
+ }
19880
+ .xrk-search[data-v-a1781a06] .btn-group {
19881
+ -webkit-box-pack: start !important;
19882
+ -webkit-justify-content: flex-start !important;
19883
+ -ms-flex-pack: start !important;
19884
+ justify-content: flex-start !important;
19885
+ width: 100% !important;
19886
+ }
19887
+ }
19888
+ @media screen and (max-width: 1039px) {
19889
+ .xrk-search[data-v-a1781a06] {
19890
+ display: block !important;
19891
+ }
19892
+ .xrk-search[data-v-a1781a06] .xrk-form .xrk-form-item {
19893
+ width: calc((100% - 16px * (var(--column-num) - 4)) / (var(--column-num) - 3)) !important;
19894
+ }
19895
+ .xrk-search[data-v-a1781a06] .btn-group {
19896
+ -webkit-box-pack: start !important;
19897
+ -webkit-justify-content: flex-start !important;
19898
+ -ms-flex-pack: start !important;
19899
+ justify-content: flex-start !important;
19900
+ width: 100% !important;
19901
+ }
19902
+ }
19845
19903
  .xrk-search .btn-group[data-v-a1781a06] {
19846
- margin-top: 24px;
19847
19904
  display: -webkit-box;
19848
19905
  display: -webkit-flex;
19849
19906
  display: -ms-flexbox;
@@ -19854,30 +19911,14 @@
19854
19911
  align-items: center;
19855
19912
  gap: 12px;
19856
19913
  }
19857
- .xrk-search.xrk-search-line[data-v-a1781a06] {
19858
- display: -webkit-box;
19859
- display: -webkit-flex;
19860
- display: -ms-flexbox;
19861
- display: flex;
19862
- -webkit-flex-wrap: wrap;
19863
- -ms-flex-wrap: wrap;
19864
- flex-wrap: wrap;
19865
- }
19866
- .xrk-search.xrk-search-line[data-v-a1781a06] > .xrk-form {
19867
- width: calc(var(--column-len) / var(--column-num) * 100%);
19868
- grid-template-columns: repeat(var(--column-len), 1fr);
19869
- margin-right: 16px;
19914
+ .xrk-search .btn-group.fixed[data-v-a1781a06] {
19915
+ width: 100%;
19870
19916
  }
19871
- .xrk-search.xrk-search-line .btn-group[data-v-a1781a06] {
19872
- min-width: calc((var(--column-num) - var(--column-len)) / var(--column-num) * 100% - 16px);
19873
- -webkit-box-align: end;
19874
- -webkit-align-items: flex-end;
19875
- -ms-flex-align: end;
19876
- align-items: flex-end;
19877
- -webkit-box-pack: end;
19878
- -webkit-justify-content: flex-end;
19879
- -ms-flex-pack: end;
19880
- justify-content: flex-end;
19917
+ .xrk-search .btn-group.fixed .btn-group-right[data-v-a1781a06] {
19918
+ -webkit-box-flex: 1;
19919
+ -webkit-flex: 1;
19920
+ -ms-flex: 1;
19921
+ flex: 1;
19881
19922
  }
19882
19923
  .base_text_title {
19883
19924
  min-height: var(--base-text-title-min-height, 54px);
@@ -20530,6 +20571,9 @@
20530
20571
  .base-layout-menu .main-menu[data-v-cbc34618]::-webkit-scrollbar {
20531
20572
  display: none; /* Chrome/Safari/Opera */
20532
20573
  }
20574
+ .base-layout-menu .main-menu[data-v-cbc34618] .xrk-collapse-item {
20575
+ padding: 0 8px 0 4px;
20576
+ }
20533
20577
  .base-layout-menu .main-menu[data-v-cbc34618] .xrk-collapse-item__content {
20534
20578
  padding-bottom: 0;
20535
20579
  }
package/lib/index.esm.js CHANGED
@@ -72567,7 +72567,7 @@ var BaseCheckboxButton = script$x;
72567
72567
  var BaseCheckboxGroup = script$v;
72568
72568
  var BaseCheckbox = script$w;
72569
72569
 
72570
- var propsKey$1 = 'date-picker'; // 解决defineProps作用域问题
72570
+ var propsKey$2 = 'date-picker'; // 解决defineProps作用域问题
72571
72571
  var __default__$s = {
72572
72572
  name: 'base-date-picker'
72573
72573
  };
@@ -72593,7 +72593,7 @@ var script$u = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$s
72593
72593
  clearIcon: { type: null, required: false },
72594
72594
  validateEvent: { type: Boolean, required: false },
72595
72595
  disabledDate: { type: Function, required: false },
72596
- shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$1, 'shortcuts', []); }) },
72596
+ shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$2, 'shortcuts', []); }) },
72597
72597
  cellClassName: { type: Function, required: false },
72598
72598
  teleported: { type: Boolean, required: false, default: true }
72599
72599
  }, emits: ["change", "visibleChange", "calendarChange", "update:modelValue"], setup: function (__props, _a) {
@@ -73126,9 +73126,9 @@ script$s.__file = "packages/base/input/input.vue";
73126
73126
 
73127
73127
  var BaseInput = script$s;
73128
73128
 
73129
- var _withScopeId$4 = function (n) { return (pushScopeId("data-v-13bddb91"), n = n(), popScopeId(), n); };
73129
+ var _withScopeId$5 = function (n) { return (pushScopeId("data-v-13bddb91"), n = n(), popScopeId(), n); };
73130
73130
  var _hoisted_1$e = ["src"];
73131
- var _hoisted_2$9 = /*#__PURE__*/ _withScopeId$4(function () { return createElementVNode("svg", {
73131
+ var _hoisted_2$9 = /*#__PURE__*/ _withScopeId$5(function () { return createElementVNode("svg", {
73132
73132
  xmlns: "http://www.w3.org/2000/svg",
73133
73133
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
73134
73134
  fill: "none",
@@ -74249,9 +74249,13 @@ var script$k = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$i
74249
74249
  script$k.__scopeId = "data-v-17eda5db";
74250
74250
  script$k.__file = "packages/base/form/form-item.vue";
74251
74251
 
74252
- var _hoisted_1$c = { class: "btn-group" };
74253
- var _hoisted_2$8 = { class: "btn-group-left" };
74254
- var _hoisted_3$8 = { class: "btn-group-right" };
74252
+ var _withScopeId$4 = function (n) { return (pushScopeId("data-v-a1781a06"), n = n(), popScopeId(), n); };
74253
+ var _hoisted_1$c = { class: "btn-group-left" };
74254
+ var _hoisted_2$8 = {
74255
+ key: 0,
74256
+ class: "btn-group-right"
74257
+ };
74258
+ var _hoisted_3$8 = /*#__PURE__*/ _withScopeId$4(function () { return createElementVNode("div", { style: { "clear": "both" } }, null, -1 /* HOISTED */); });
74255
74259
  var __default__$h = {
74256
74260
  name: 'xrk-search'
74257
74261
  };
@@ -74278,9 +74282,17 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74278
74282
  var searchBtn = computed(function () { return (__assign({ text: '搜索', show: true }, props.searchBtn)); });
74279
74283
  var resetBtn = computed(function () { return (__assign({ text: '重置', show: true }, props.resetBtn)); });
74280
74284
  var columnNum = ref(5);
74281
- var searchStyle = ref({
74282
- '--column-num': columnNum.value,
74283
- '--column-len': props.columns.length
74285
+ var searchStyle = computed(function () {
74286
+ return {
74287
+ '--column-num': columnNum.value,
74288
+ '--column-len': props.columns.length
74289
+ };
74290
+ });
74291
+ var btnsFixed = computed(function () {
74292
+ var _a, _b;
74293
+ if (!((_a = props === null || props === void 0 ? void 0 : props.otherComponents) === null || _a === void 0 ? void 0 : _a.length))
74294
+ return false;
74295
+ return (_b = props === null || props === void 0 ? void 0 : props.otherComponents) === null || _b === void 0 ? void 0 : _b.some(function (item) { return (item === null || item === void 0 ? void 0 : item.fixed) === 'right'; });
74284
74296
  });
74285
74297
  var isExpand = ref(false);
74286
74298
  var getCurrentColumns = computed(function () {
@@ -74425,12 +74437,12 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74425
74437
  handleResetClick: handleResetClick
74426
74438
  });
74427
74439
  return function (_ctx, _cache) {
74428
- var _a, _b;
74440
+ var _a, _b, _c, _d, _e, _f;
74429
74441
  return (openBlock(), createElementBlock("div", {
74430
74442
  class: normalizeClass(["xrk-search", {
74431
- 'xrk-search-line': ((_a = __props.columns) === null || _a === void 0 ? void 0 : _a.length) < columnNum.value
74443
+ 'xrk-search-line': ((_a = __props.columns) === null || _a === void 0 ? void 0 : _a.length) && ((_b = __props.columns) === null || _b === void 0 ? void 0 : _b.length) < columnNum.value
74432
74444
  }]),
74433
- style: normalizeStyle(searchStyle.value)
74445
+ style: normalizeStyle(__assign({ marginBottom: ((_c = __props.columns) === null || _c === void 0 ? void 0 : _c.length) ? '16px' : 0 }, unref(searchStyle)))
74434
74446
  }, [
74435
74447
  createVNode(script$b, {
74436
74448
  model: searchValue,
@@ -74466,8 +74478,15 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74466
74478
  ]; }),
74467
74479
  _: 1 /* STABLE */
74468
74480
  }, 8 /* PROPS */, ["model"]),
74469
- createElementVNode("div", _hoisted_1$c, [
74470
- createElementVNode("div", _hoisted_2$8, [
74481
+ createElementVNode("div", {
74482
+ class: normalizeClass(["btn-group", {
74483
+ fixed: unref(btnsFixed)
74484
+ }]),
74485
+ style: normalizeStyle({
74486
+ marginTop: ((_d = __props.columns) === null || _d === void 0 ? void 0 : _d.length) ? '24px' : 0
74487
+ })
74488
+ }, [
74489
+ createElementVNode("div", _hoisted_1$c, [
74471
74490
  (unref(searchBtn).show)
74472
74491
  ? (openBlock(), createBlock(script$F, {
74473
74492
  key: 0,
@@ -74493,7 +74512,7 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74493
74512
  _: 1 /* STABLE */
74494
74513
  }))
74495
74514
  : createCommentVNode("v-if", true),
74496
- (__props.columns && ((_b = __props.columns) === null || _b === void 0 ? void 0 : _b.length) > columnNum.value * 2)
74515
+ (__props.columns && ((_e = __props.columns) === null || _e === void 0 ? void 0 : _e.length) > columnNum.value * 2)
74497
74516
  ? (openBlock(), createBlock(script$F, {
74498
74517
  key: 2,
74499
74518
  type: "default",
@@ -74517,16 +74536,21 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74517
74536
  }))
74518
74537
  : createCommentVNode("v-if", true)
74519
74538
  ]),
74520
- createElementVNode("div", _hoisted_3$8, [
74521
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.otherComponents, function (_a, index) {
74522
- var render = _a.render;
74523
- return (openBlock(), createBlock(unref(BaseSearchRender), {
74524
- render: render,
74525
- key: index
74526
- }, null, 8 /* PROPS */, ["render"]));
74527
- }), 128 /* KEYED_FRAGMENT */))
74528
- ])
74529
- ])
74539
+ ((_f = __props.otherComponents) === null || _f === void 0 ? void 0 : _f.length)
74540
+ ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
74541
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.otherComponents, function (_a, index) {
74542
+ var render = _a.render, fixed = _a.fixed;
74543
+ return (openBlock(), createBlock(unref(BaseSearchRender), {
74544
+ render: render,
74545
+ key: index,
74546
+ style: normalizeStyle({ float: fixed || 'none' })
74547
+ }, null, 8 /* PROPS */, ["render", "style"]));
74548
+ }), 128 /* KEYED_FRAGMENT */)),
74549
+ createCommentVNode(" 清除浮动 "),
74550
+ _hoisted_3$8
74551
+ ]))
74552
+ : createCommentVNode("v-if", true)
74553
+ ], 6 /* CLASS, STYLE */)
74530
74554
  ], 6 /* CLASS, STYLE */));
74531
74555
  };
74532
74556
  } }));
@@ -76275,7 +76299,7 @@ var addParentIds = function (_a) {
76275
76299
  });
76276
76300
  };
76277
76301
 
76278
- var propsKey = 'table'; // 解决defineProps作用域问题
76302
+ var propsKey$1 = 'table'; // 解决defineProps作用域问题
76279
76303
  var __default__$a = {
76280
76304
  name: 'base-table'
76281
76305
  };
@@ -76285,7 +76309,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76285
76309
  height: { type: [String, Number], required: false, default: '100%' },
76286
76310
  maxHeight: { type: [String, Number], required: false },
76287
76311
  stripe: { type: Boolean, required: false, default: false },
76288
- border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey, 'border', false); }) },
76312
+ border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$1, 'border', true); }) },
76289
76313
  size: { type: String, required: false, default: 'large' },
76290
76314
  fit: { type: Boolean, required: false, default: true },
76291
76315
  rowClassName: { type: null, required: false },
@@ -76302,7 +76326,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76302
76326
  emptyText: { type: String, required: false, default: '暂无数据' },
76303
76327
  defaultSort: { type: Object, required: false },
76304
76328
  useBaseClass: { type: Boolean, required: false, default: (function () {
76305
- return useGetGlobalDefaultProp(propsKey, 'useBaseClass', true);
76329
+ return useGetGlobalDefaultProp(propsKey$1, 'useBaseClass', true);
76306
76330
  }) },
76307
76331
  spanMethod: { type: null, required: false },
76308
76332
  treeProps: { type: Object, required: false },
@@ -76392,7 +76416,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76392
76416
  : (openBlock(), createBlock(unref(BaseEmpty), { key: 1 }))
76393
76417
  ]; }),
76394
76418
  default: withCtx(function () { return [
76395
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column, index) {
76419
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column) {
76396
76420
  return (openBlock(), createBlock(unref(BaseTableColumn), mergeProps({
76397
76421
  key: column.prop,
76398
76422
  pageAllData: __props.data,
@@ -76402,12 +76426,11 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76402
76426
  getSelectionRows: unref(getSelectionRows),
76403
76427
  addSelectionRow: unref(addSelectionRow),
76404
76428
  removeSelectionRow: unref(removeSelectionRow),
76405
- clearSelectionRows: unref(clearSelectionRows),
76406
- isBothEnds: !index || index === __props.columns.length - 1
76429
+ clearSelectionRows: unref(clearSelectionRows)
76407
76430
  }, column, {
76408
76431
  onSelect: handleColumnSelect,
76409
76432
  onSelectAll: handleColumnSelectAll
76410
- }), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows", "isBothEnds"]));
76433
+ }), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows"]));
76411
76434
  }), 128 /* KEYED_FRAGMENT */))
76412
76435
  ]; }),
76413
76436
  _: 1 /* STABLE */
@@ -76419,6 +76442,7 @@ script$a.__scopeId = "data-v-968a9a5a";
76419
76442
  script$a.__file = "packages/base/table/table.vue";
76420
76443
 
76421
76444
  var _hoisted_1$6 = ["onClick"];
76445
+ var propsKey = 'table-column'; // 解决defineProps作用域问题
76422
76446
  var __default__$9 = {
76423
76447
  name: 'base-table-column'
76424
76448
  };
@@ -76442,7 +76466,6 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
76442
76466
  className: { type: String, required: false },
76443
76467
  labelClassName: { type: String, required: false },
76444
76468
  children: { type: Array, required: false },
76445
- isBothEnds: { type: Boolean, required: false },
76446
76469
  renderHeader: { type: Function, required: false },
76447
76470
  renderHeaderSelectionLabel: { type: Function, required: false },
76448
76471
  formatter: { type: Function, required: false, default: function (_a) {
@@ -76476,9 +76499,9 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
76476
76499
  var _selectionAllLoading = ref(false);
76477
76500
  var _selectionRowLoading = ref(false);
76478
76501
  var getAlign = computed(function () {
76479
- if ((props === null || props === void 0 ? void 0 : props.isBothEnds) || (props === null || props === void 0 ? void 0 : props.type))
76502
+ if ((props === null || props === void 0 ? void 0 : props.type) || (props === null || props === void 0 ? void 0 : props.label) === '操作')
76480
76503
  return (props === null || props === void 0 ? void 0 : props.align) || 'center';
76481
- return (props === null || props === void 0 ? void 0 : props.align) || 'left';
76504
+ return (props === null || props === void 0 ? void 0 : props.align) || useGetGlobalDefaultProp(propsKey, 'align', 'center');
76482
76505
  });
76483
76506
  var BaseTableColumnHeaderSelectionLabelRender = defineComponent({
76484
76507
  name: 'table-column-header-selection-label-render',
@@ -77324,6 +77347,11 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
77324
77347
  var menusRef = ref();
77325
77348
  var activeMenus = ref([]);
77326
77349
  var _menus = ref([]);
77350
+ var paddingLeft = computed(function () {
77351
+ if (props.level === 0)
77352
+ return (props.level + 1) * 12 + 'px';
77353
+ return (props.level + 1) * 16 + 'px';
77354
+ });
77327
77355
  var checkHasChild = function (menu) {
77328
77356
  return Array.isArray(menu.menuList) && menu.menuList.length > 0;
77329
77357
  };
@@ -77378,7 +77406,7 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
77378
77406
  title: withCtx(function () { return [
77379
77407
  createElementVNode("div", {
77380
77408
  style: normalizeStyle({
77381
- paddingLeft: (__props.level + 1) * 12 + 'px'
77409
+ paddingLeft: unref(paddingLeft)
77382
77410
  }),
77383
77411
  class: normalizeClass(menuClassName),
77384
77412
  name: menu.url,
@@ -77423,7 +77451,7 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
77423
77451
  }, [
77424
77452
  createElementVNode("div", {
77425
77453
  style: normalizeStyle({
77426
- paddingLeft: (__props.level + 1) * 12 + 'px'
77454
+ paddingLeft: unref(paddingLeft)
77427
77455
  }),
77428
77456
  class: normalizeClass(menuClassName),
77429
77457
  name: menu.name
@@ -77897,7 +77925,6 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
77897
77925
  (!__props.searchConfig.hide)
77898
77926
  ? (openBlock(), createBlock(script$j, {
77899
77927
  key: 1,
77900
- style: { "margin-bottom": "16px" },
77901
77928
  ref_key: "XrkSearchRef",
77902
77929
  ref: XrkSearchRef,
77903
77930
  columns: __props.searchConfig.searchColumns,
package/lib/index.umd.js CHANGED
@@ -72570,7 +72570,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
72570
72570
  var BaseCheckboxGroup = script$v;
72571
72571
  var BaseCheckbox = script$w;
72572
72572
 
72573
- var propsKey$1 = 'date-picker'; // 解决defineProps作用域问题
72573
+ var propsKey$2 = 'date-picker'; // 解决defineProps作用域问题
72574
72574
  var __default__$s = {
72575
72575
  name: 'base-date-picker'
72576
72576
  };
@@ -72596,7 +72596,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
72596
72596
  clearIcon: { type: null, required: false },
72597
72597
  validateEvent: { type: Boolean, required: false },
72598
72598
  disabledDate: { type: Function, required: false },
72599
- shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$1, 'shortcuts', []); }) },
72599
+ shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$2, 'shortcuts', []); }) },
72600
72600
  cellClassName: { type: Function, required: false },
72601
72601
  teleported: { type: Boolean, required: false, default: true }
72602
72602
  }, emits: ["change", "visibleChange", "calendarChange", "update:modelValue"], setup: function (__props, _a) {
@@ -73129,9 +73129,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
73129
73129
 
73130
73130
  var BaseInput = script$s;
73131
73131
 
73132
- var _withScopeId$4 = function (n) { return (vue.pushScopeId("data-v-13bddb91"), n = n(), vue.popScopeId(), n); };
73132
+ var _withScopeId$5 = function (n) { return (vue.pushScopeId("data-v-13bddb91"), n = n(), vue.popScopeId(), n); };
73133
73133
  var _hoisted_1$e = ["src"];
73134
- var _hoisted_2$9 = /*#__PURE__*/ _withScopeId$4(function () { return vue.createElementVNode("svg", {
73134
+ var _hoisted_2$9 = /*#__PURE__*/ _withScopeId$5(function () { return vue.createElementVNode("svg", {
73135
73135
  xmlns: "http://www.w3.org/2000/svg",
73136
73136
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
73137
73137
  fill: "none",
@@ -74252,9 +74252,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74252
74252
  script$k.__scopeId = "data-v-17eda5db";
74253
74253
  script$k.__file = "packages/base/form/form-item.vue";
74254
74254
 
74255
- var _hoisted_1$c = { class: "btn-group" };
74256
- var _hoisted_2$8 = { class: "btn-group-left" };
74257
- var _hoisted_3$8 = { class: "btn-group-right" };
74255
+ var _withScopeId$4 = function (n) { return (vue.pushScopeId("data-v-a1781a06"), n = n(), vue.popScopeId(), n); };
74256
+ var _hoisted_1$c = { class: "btn-group-left" };
74257
+ var _hoisted_2$8 = {
74258
+ key: 0,
74259
+ class: "btn-group-right"
74260
+ };
74261
+ var _hoisted_3$8 = /*#__PURE__*/ _withScopeId$4(function () { return vue.createElementVNode("div", { style: { "clear": "both" } }, null, -1 /* HOISTED */); });
74258
74262
  var __default__$h = {
74259
74263
  name: 'xrk-search'
74260
74264
  };
@@ -74281,9 +74285,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74281
74285
  var searchBtn = vue.computed(function () { return (__assign({ text: '搜索', show: true }, props.searchBtn)); });
74282
74286
  var resetBtn = vue.computed(function () { return (__assign({ text: '重置', show: true }, props.resetBtn)); });
74283
74287
  var columnNum = vue.ref(5);
74284
- var searchStyle = vue.ref({
74285
- '--column-num': columnNum.value,
74286
- '--column-len': props.columns.length
74288
+ var searchStyle = vue.computed(function () {
74289
+ return {
74290
+ '--column-num': columnNum.value,
74291
+ '--column-len': props.columns.length
74292
+ };
74293
+ });
74294
+ var btnsFixed = vue.computed(function () {
74295
+ var _a, _b;
74296
+ if (!((_a = props === null || props === void 0 ? void 0 : props.otherComponents) === null || _a === void 0 ? void 0 : _a.length))
74297
+ return false;
74298
+ return (_b = props === null || props === void 0 ? void 0 : props.otherComponents) === null || _b === void 0 ? void 0 : _b.some(function (item) { return (item === null || item === void 0 ? void 0 : item.fixed) === 'right'; });
74287
74299
  });
74288
74300
  var isExpand = vue.ref(false);
74289
74301
  var getCurrentColumns = vue.computed(function () {
@@ -74428,12 +74440,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74428
74440
  handleResetClick: handleResetClick
74429
74441
  });
74430
74442
  return function (_ctx, _cache) {
74431
- var _a, _b;
74443
+ var _a, _b, _c, _d, _e, _f;
74432
74444
  return (vue.openBlock(), vue.createElementBlock("div", {
74433
74445
  class: vue.normalizeClass(["xrk-search", {
74434
- 'xrk-search-line': ((_a = __props.columns) === null || _a === void 0 ? void 0 : _a.length) < columnNum.value
74446
+ 'xrk-search-line': ((_a = __props.columns) === null || _a === void 0 ? void 0 : _a.length) && ((_b = __props.columns) === null || _b === void 0 ? void 0 : _b.length) < columnNum.value
74435
74447
  }]),
74436
- style: vue.normalizeStyle(searchStyle.value)
74448
+ style: vue.normalizeStyle(__assign({ marginBottom: ((_c = __props.columns) === null || _c === void 0 ? void 0 : _c.length) ? '16px' : 0 }, vue.unref(searchStyle)))
74437
74449
  }, [
74438
74450
  vue.createVNode(script$b, {
74439
74451
  model: searchValue,
@@ -74469,8 +74481,15 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74469
74481
  ]; }),
74470
74482
  _: 1 /* STABLE */
74471
74483
  }, 8 /* PROPS */, ["model"]),
74472
- vue.createElementVNode("div", _hoisted_1$c, [
74473
- vue.createElementVNode("div", _hoisted_2$8, [
74484
+ vue.createElementVNode("div", {
74485
+ class: vue.normalizeClass(["btn-group", {
74486
+ fixed: vue.unref(btnsFixed)
74487
+ }]),
74488
+ style: vue.normalizeStyle({
74489
+ marginTop: ((_d = __props.columns) === null || _d === void 0 ? void 0 : _d.length) ? '24px' : 0
74490
+ })
74491
+ }, [
74492
+ vue.createElementVNode("div", _hoisted_1$c, [
74474
74493
  (vue.unref(searchBtn).show)
74475
74494
  ? (vue.openBlock(), vue.createBlock(script$F, {
74476
74495
  key: 0,
@@ -74496,7 +74515,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74496
74515
  _: 1 /* STABLE */
74497
74516
  }))
74498
74517
  : vue.createCommentVNode("v-if", true),
74499
- (__props.columns && ((_b = __props.columns) === null || _b === void 0 ? void 0 : _b.length) > columnNum.value * 2)
74518
+ (__props.columns && ((_e = __props.columns) === null || _e === void 0 ? void 0 : _e.length) > columnNum.value * 2)
74500
74519
  ? (vue.openBlock(), vue.createBlock(script$F, {
74501
74520
  key: 2,
74502
74521
  type: "default",
@@ -74520,16 +74539,21 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74520
74539
  }))
74521
74540
  : vue.createCommentVNode("v-if", true)
74522
74541
  ]),
74523
- vue.createElementVNode("div", _hoisted_3$8, [
74524
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.otherComponents, function (_a, index) {
74525
- var render = _a.render;
74526
- return (vue.openBlock(), vue.createBlock(vue.unref(BaseSearchRender), {
74527
- render: render,
74528
- key: index
74529
- }, null, 8 /* PROPS */, ["render"]));
74530
- }), 128 /* KEYED_FRAGMENT */))
74531
- ])
74532
- ])
74542
+ ((_f = __props.otherComponents) === null || _f === void 0 ? void 0 : _f.length)
74543
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
74544
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.otherComponents, function (_a, index) {
74545
+ var render = _a.render, fixed = _a.fixed;
74546
+ return (vue.openBlock(), vue.createBlock(vue.unref(BaseSearchRender), {
74547
+ render: render,
74548
+ key: index,
74549
+ style: vue.normalizeStyle({ float: fixed || 'none' })
74550
+ }, null, 8 /* PROPS */, ["render", "style"]));
74551
+ }), 128 /* KEYED_FRAGMENT */)),
74552
+ vue.createCommentVNode(" 清除浮动 "),
74553
+ _hoisted_3$8
74554
+ ]))
74555
+ : vue.createCommentVNode("v-if", true)
74556
+ ], 6 /* CLASS, STYLE */)
74533
74557
  ], 6 /* CLASS, STYLE */));
74534
74558
  };
74535
74559
  } }));
@@ -76278,7 +76302,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76278
76302
  });
76279
76303
  };
76280
76304
 
76281
- var propsKey = 'table'; // 解决defineProps作用域问题
76305
+ var propsKey$1 = 'table'; // 解决defineProps作用域问题
76282
76306
  var __default__$a = {
76283
76307
  name: 'base-table'
76284
76308
  };
@@ -76288,7 +76312,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76288
76312
  height: { type: [String, Number], required: false, default: '100%' },
76289
76313
  maxHeight: { type: [String, Number], required: false },
76290
76314
  stripe: { type: Boolean, required: false, default: false },
76291
- border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey, 'border', false); }) },
76315
+ border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$1, 'border', true); }) },
76292
76316
  size: { type: String, required: false, default: 'large' },
76293
76317
  fit: { type: Boolean, required: false, default: true },
76294
76318
  rowClassName: { type: null, required: false },
@@ -76305,7 +76329,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76305
76329
  emptyText: { type: String, required: false, default: '暂无数据' },
76306
76330
  defaultSort: { type: Object, required: false },
76307
76331
  useBaseClass: { type: Boolean, required: false, default: (function () {
76308
- return useGetGlobalDefaultProp(propsKey, 'useBaseClass', true);
76332
+ return useGetGlobalDefaultProp(propsKey$1, 'useBaseClass', true);
76309
76333
  }) },
76310
76334
  spanMethod: { type: null, required: false },
76311
76335
  treeProps: { type: Object, required: false },
@@ -76395,7 +76419,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76395
76419
  : (vue.openBlock(), vue.createBlock(vue.unref(BaseEmpty), { key: 1 }))
76396
76420
  ]; }),
76397
76421
  default: vue.withCtx(function () { return [
76398
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, function (column, index) {
76422
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, function (column) {
76399
76423
  return (vue.openBlock(), vue.createBlock(vue.unref(BaseTableColumn), vue.mergeProps({
76400
76424
  key: column.prop,
76401
76425
  pageAllData: __props.data,
@@ -76405,12 +76429,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76405
76429
  getSelectionRows: vue.unref(getSelectionRows),
76406
76430
  addSelectionRow: vue.unref(addSelectionRow),
76407
76431
  removeSelectionRow: vue.unref(removeSelectionRow),
76408
- clearSelectionRows: vue.unref(clearSelectionRows),
76409
- isBothEnds: !index || index === __props.columns.length - 1
76432
+ clearSelectionRows: vue.unref(clearSelectionRows)
76410
76433
  }, column, {
76411
76434
  onSelect: handleColumnSelect,
76412
76435
  onSelectAll: handleColumnSelectAll
76413
- }), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows", "isBothEnds"]));
76436
+ }), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows"]));
76414
76437
  }), 128 /* KEYED_FRAGMENT */))
76415
76438
  ]; }),
76416
76439
  _: 1 /* STABLE */
@@ -76422,6 +76445,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76422
76445
  script$a.__file = "packages/base/table/table.vue";
76423
76446
 
76424
76447
  var _hoisted_1$6 = ["onClick"];
76448
+ var propsKey = 'table-column'; // 解决defineProps作用域问题
76425
76449
  var __default__$9 = {
76426
76450
  name: 'base-table-column'
76427
76451
  };
@@ -76445,7 +76469,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76445
76469
  className: { type: String, required: false },
76446
76470
  labelClassName: { type: String, required: false },
76447
76471
  children: { type: Array, required: false },
76448
- isBothEnds: { type: Boolean, required: false },
76449
76472
  renderHeader: { type: Function, required: false },
76450
76473
  renderHeaderSelectionLabel: { type: Function, required: false },
76451
76474
  formatter: { type: Function, required: false, default: function (_a) {
@@ -76479,9 +76502,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76479
76502
  var _selectionAllLoading = vue.ref(false);
76480
76503
  var _selectionRowLoading = vue.ref(false);
76481
76504
  var getAlign = vue.computed(function () {
76482
- if ((props === null || props === void 0 ? void 0 : props.isBothEnds) || (props === null || props === void 0 ? void 0 : props.type))
76505
+ if ((props === null || props === void 0 ? void 0 : props.type) || (props === null || props === void 0 ? void 0 : props.label) === '操作')
76483
76506
  return (props === null || props === void 0 ? void 0 : props.align) || 'center';
76484
- return (props === null || props === void 0 ? void 0 : props.align) || 'left';
76507
+ return (props === null || props === void 0 ? void 0 : props.align) || useGetGlobalDefaultProp(propsKey, 'align', 'center');
76485
76508
  });
76486
76509
  var BaseTableColumnHeaderSelectionLabelRender = vue.defineComponent({
76487
76510
  name: 'table-column-header-selection-label-render',
@@ -77327,6 +77350,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
77327
77350
  var menusRef = vue.ref();
77328
77351
  var activeMenus = vue.ref([]);
77329
77352
  var _menus = vue.ref([]);
77353
+ var paddingLeft = vue.computed(function () {
77354
+ if (props.level === 0)
77355
+ return (props.level + 1) * 12 + 'px';
77356
+ return (props.level + 1) * 16 + 'px';
77357
+ });
77330
77358
  var checkHasChild = function (menu) {
77331
77359
  return Array.isArray(menu.menuList) && menu.menuList.length > 0;
77332
77360
  };
@@ -77381,7 +77409,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
77381
77409
  title: vue.withCtx(function () { return [
77382
77410
  vue.createElementVNode("div", {
77383
77411
  style: vue.normalizeStyle({
77384
- paddingLeft: (__props.level + 1) * 12 + 'px'
77412
+ paddingLeft: vue.unref(paddingLeft)
77385
77413
  }),
77386
77414
  class: vue.normalizeClass(menuClassName),
77387
77415
  name: menu.url,
@@ -77426,7 +77454,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
77426
77454
  }, [
77427
77455
  vue.createElementVNode("div", {
77428
77456
  style: vue.normalizeStyle({
77429
- paddingLeft: (__props.level + 1) * 12 + 'px'
77457
+ paddingLeft: vue.unref(paddingLeft)
77430
77458
  }),
77431
77459
  class: vue.normalizeClass(menuClassName),
77432
77460
  name: menu.name
@@ -77900,7 +77928,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
77900
77928
  (!__props.searchConfig.hide)
77901
77929
  ? (vue.openBlock(), vue.createBlock(script$j, {
77902
77930
  key: 1,
77903
- style: { "margin-bottom": "16px" },
77904
77931
  ref_key: "XrkSearchRef",
77905
77932
  ref: XrkSearchRef,
77906
77933
  columns: __props.searchConfig.searchColumns,
@@ -76,10 +76,6 @@ declare const _default: import("vue").DefineComponent<{
76
76
  type: ArrayConstructor;
77
77
  required: false;
78
78
  };
79
- isBothEnds: {
80
- type: BooleanConstructor;
81
- required: false;
82
- };
83
79
  renderHeader: {
84
80
  type: FunctionConstructor;
85
81
  required: false;
@@ -235,10 +231,6 @@ declare const _default: import("vue").DefineComponent<{
235
231
  type: ArrayConstructor;
236
232
  required: false;
237
233
  };
238
- isBothEnds: {
239
- type: BooleanConstructor;
240
- required: false;
241
- };
242
234
  renderHeader: {
243
235
  type: FunctionConstructor;
244
236
  required: false;
@@ -319,7 +311,6 @@ declare const _default: import("vue").DefineComponent<{
319
311
  "onSelect-all"?: ((...args: any[]) => any) | undefined;
320
312
  }, {
321
313
  showOverflowTooltip: boolean;
322
- isBothEnds: boolean;
323
314
  formatter: Function;
324
315
  }>;
325
316
  export default _default;
@@ -150,7 +150,6 @@ export declare type BaseTableColumnProps<T extends Record<string, any> = any> =
150
150
  className?: string;
151
151
  labelClassName?: string;
152
152
  children?: Array<BaseTableColumnProps<T>>;
153
- isBothEnds?: boolean;
154
153
  /**
155
154
  * 自定义列头
156
155
  */
@@ -111,6 +111,7 @@ export declare type ResetBtnType<T extends Record<string, any> = any> = {
111
111
  afterReset?: (searchValue: T) => void | T | Promise<T>;
112
112
  };
113
113
  export interface ComponentRender<Q extends Record<string, any> = any> {
114
+ fixed?: 'left' | 'right';
114
115
  render: (renderInfo: {
115
116
  columns: Array<SearchColumnType<Q>>;
116
117
  searchValue: Q;
@@ -32,7 +32,11 @@ export declare type XrkTableRef<S extends Record<string, any> = any, T extends R
32
32
  /**
33
33
  * 刷新当前页,可传入自定义参数(只会作用与这次列表获取,相同变量会被search组件设置的值覆盖)
34
34
  */
35
- initCurrentList: (customQuery?: S) => Promise<void>;
35
+ initCurrentList: (customQuery?: S, config?: {
36
+ noToTop?: boolean;
37
+ noScroll?: boolean;
38
+ noChange?: boolean;
39
+ }) => Promise<void>;
36
40
  /**
37
41
  * 回到第一页,并刷新列表,可传入自定义参数(只会作用与这次列表获取,相同变量会被search组件设置的值覆盖)
38
42
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrk-components",
3
- "version": "2.0.0-beta.97",
3
+ "version": "2.0.0-beta.99",
4
4
  "description": "",
5
5
  "main": "lib/index.esm.js",
6
6
  "typings": "lib/packages/index.d.ts",