xrk-components 2.0.0-beta.98 → 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,15 +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;
19816
19818
  -webkit-box-align: end;
19817
19819
  -webkit-align-items: flex-end;
19818
19820
  -ms-flex-align: end;
19819
19821
  align-items: flex-end;
19822
+ -webkit-flex-wrap: wrap;
19823
+ -ms-flex-wrap: wrap;
19824
+ flex-wrap: wrap;
19820
19825
  }
19821
19826
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-form-item {
19827
+ width: calc((100% - 16px * (var(--column-num) - 1)) / var(--column-num));
19822
19828
  margin-bottom: 0px;
19823
19829
  }
19824
19830
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-form-item .xrk-form-item__label {
@@ -19849,6 +19855,51 @@
19849
19855
  .xrk-search[data-v-a1781a06] > .xrk-form .xrk-button + .xrk-button {
19850
19856
  margin-left: 0;
19851
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
+ }
19852
19903
  .xrk-search .btn-group[data-v-a1781a06] {
19853
19904
  display: -webkit-box;
19854
19905
  display: -webkit-flex;
@@ -19860,30 +19911,14 @@
19860
19911
  align-items: center;
19861
19912
  gap: 12px;
19862
19913
  }
19863
- .xrk-search.xrk-search-line[data-v-a1781a06] {
19864
- display: -webkit-box;
19865
- display: -webkit-flex;
19866
- display: -ms-flexbox;
19867
- display: flex;
19868
- -webkit-flex-wrap: wrap;
19869
- -ms-flex-wrap: wrap;
19870
- flex-wrap: wrap;
19871
- }
19872
- .xrk-search.xrk-search-line[data-v-a1781a06] > .xrk-form {
19873
- width: calc(var(--column-len) / var(--column-num) * 100%);
19874
- grid-template-columns: repeat(var(--column-len), 1fr);
19875
- margin-right: 16px;
19914
+ .xrk-search .btn-group.fixed[data-v-a1781a06] {
19915
+ width: 100%;
19876
19916
  }
19877
- .xrk-search.xrk-search-line .btn-group[data-v-a1781a06] {
19878
- min-width: calc((var(--column-num) - var(--column-len)) / var(--column-num) * 100% - 16px);
19879
- -webkit-box-align: end;
19880
- -webkit-align-items: flex-end;
19881
- -ms-flex-align: end;
19882
- align-items: flex-end;
19883
- -webkit-box-pack: end;
19884
- -webkit-justify-content: flex-end;
19885
- -ms-flex-pack: end;
19886
- 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;
19887
19922
  }
19888
19923
  .base_text_title {
19889
19924
  min-height: var(--base-text-title-min-height, 54px);
package/lib/index.esm.js CHANGED
@@ -71495,7 +71495,7 @@ script$F.__file = "packages/base/button/button.vue";
71495
71495
 
71496
71496
  var _hoisted_1$i = /*#__PURE__*/ createTextVNode("更多");
71497
71497
  var _hoisted_2$b = { class: "btn-group" };
71498
- var _hoisted_3$9 = ["onClick"];
71498
+ var _hoisted_3$a = ["onClick"];
71499
71499
  var __default__$C = {
71500
71500
  name: 'base-button-more'
71501
71501
  };
@@ -71614,7 +71614,7 @@ var script$E = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$C
71614
71614
  (_b = (_a = popoverRef.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
71615
71615
  (_c = (btn.onClick || btn.click)) === null || _c === void 0 ? void 0 : _c();
71616
71616
  }
71617
- }, toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$9));
71617
+ }, toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$a));
71618
71618
  }), 128 /* KEYED_FRAGMENT */))
71619
71619
  ])
71620
71620
  ]; }),
@@ -71830,7 +71830,7 @@ var _hoisted_2$a = {
71830
71830
  key: 0,
71831
71831
  style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
71832
71832
  };
71833
- var _hoisted_3$8 = {
71833
+ var _hoisted_3$9 = {
71834
71834
  key: 0,
71835
71835
  style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
71836
71836
  };
@@ -72074,7 +72074,7 @@ var script$C = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$A
72074
72074
  var _a;
72075
72075
  return [
72076
72076
  ((_a = unref(slots)) === null || _a === void 0 ? void 0 : _a.default)
72077
- ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
72077
+ ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
72078
72078
  renderSlot(_ctx.$slots, "default", {
72079
72079
  slotScope: { activeIndex: activeIndex.value }
72080
72080
  })
@@ -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,8 +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 _withScopeId$4 = function (n) { return (pushScopeId("data-v-a1781a06"), n = n(), popScopeId(), n); };
74252
74253
  var _hoisted_1$c = { class: "btn-group-left" };
74253
- var _hoisted_2$8 = { class: "btn-group-right" };
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 */); });
74254
74259
  var __default__$h = {
74255
74260
  name: 'xrk-search'
74256
74261
  };
@@ -74283,6 +74288,12 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74283
74288
  '--column-len': props.columns.length
74284
74289
  };
74285
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'; });
74296
+ });
74286
74297
  var isExpand = ref(false);
74287
74298
  var getCurrentColumns = computed(function () {
74288
74299
  var _a;
@@ -74426,7 +74437,7 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74426
74437
  handleResetClick: handleResetClick
74427
74438
  });
74428
74439
  return function (_ctx, _cache) {
74429
- var _a, _b, _c, _d, _e;
74440
+ var _a, _b, _c, _d, _e, _f;
74430
74441
  return (openBlock(), createElementBlock("div", {
74431
74442
  class: normalizeClass(["xrk-search", {
74432
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
@@ -74468,8 +74479,12 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74468
74479
  _: 1 /* STABLE */
74469
74480
  }, 8 /* PROPS */, ["model"]),
74470
74481
  createElementVNode("div", {
74471
- class: "btn-group",
74472
- style: normalizeStyle({ marginTop: ((_d = __props.columns) === null || _d === void 0 ? void 0 : _d.length) ? '24px' : 0 })
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
+ })
74473
74488
  }, [
74474
74489
  createElementVNode("div", _hoisted_1$c, [
74475
74490
  (unref(searchBtn).show)
@@ -74521,16 +74536,21 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
74521
74536
  }))
74522
74537
  : createCommentVNode("v-if", true)
74523
74538
  ]),
74524
- createElementVNode("div", _hoisted_2$8, [
74525
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.otherComponents, function (_a, index) {
74526
- var render = _a.render;
74527
- return (openBlock(), createBlock(unref(BaseSearchRender), {
74528
- render: render,
74529
- key: index
74530
- }, null, 8 /* PROPS */, ["render"]));
74531
- }), 128 /* KEYED_FRAGMENT */))
74532
- ])
74533
- ], 4 /* STYLE */)
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 */)
74534
74554
  ], 6 /* CLASS, STYLE */));
74535
74555
  };
74536
74556
  } }));
@@ -76279,7 +76299,7 @@ var addParentIds = function (_a) {
76279
76299
  });
76280
76300
  };
76281
76301
 
76282
- var propsKey = 'table'; // 解决defineProps作用域问题
76302
+ var propsKey$1 = 'table'; // 解决defineProps作用域问题
76283
76303
  var __default__$a = {
76284
76304
  name: 'base-table'
76285
76305
  };
@@ -76289,7 +76309,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76289
76309
  height: { type: [String, Number], required: false, default: '100%' },
76290
76310
  maxHeight: { type: [String, Number], required: false },
76291
76311
  stripe: { type: Boolean, required: false, default: false },
76292
- 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); }) },
76293
76313
  size: { type: String, required: false, default: 'large' },
76294
76314
  fit: { type: Boolean, required: false, default: true },
76295
76315
  rowClassName: { type: null, required: false },
@@ -76306,7 +76326,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76306
76326
  emptyText: { type: String, required: false, default: '暂无数据' },
76307
76327
  defaultSort: { type: Object, required: false },
76308
76328
  useBaseClass: { type: Boolean, required: false, default: (function () {
76309
- return useGetGlobalDefaultProp(propsKey, 'useBaseClass', true);
76329
+ return useGetGlobalDefaultProp(propsKey$1, 'useBaseClass', true);
76310
76330
  }) },
76311
76331
  spanMethod: { type: null, required: false },
76312
76332
  treeProps: { type: Object, required: false },
@@ -76396,7 +76416,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76396
76416
  : (openBlock(), createBlock(unref(BaseEmpty), { key: 1 }))
76397
76417
  ]; }),
76398
76418
  default: withCtx(function () { return [
76399
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column, index) {
76419
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column) {
76400
76420
  return (openBlock(), createBlock(unref(BaseTableColumn), mergeProps({
76401
76421
  key: column.prop,
76402
76422
  pageAllData: __props.data,
@@ -76406,12 +76426,11 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
76406
76426
  getSelectionRows: unref(getSelectionRows),
76407
76427
  addSelectionRow: unref(addSelectionRow),
76408
76428
  removeSelectionRow: unref(removeSelectionRow),
76409
- clearSelectionRows: unref(clearSelectionRows),
76410
- isBothEnds: !index || index === __props.columns.length - 1
76429
+ clearSelectionRows: unref(clearSelectionRows)
76411
76430
  }, column, {
76412
76431
  onSelect: handleColumnSelect,
76413
76432
  onSelectAll: handleColumnSelectAll
76414
- }), 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"]));
76415
76434
  }), 128 /* KEYED_FRAGMENT */))
76416
76435
  ]; }),
76417
76436
  _: 1 /* STABLE */
@@ -76423,6 +76442,7 @@ script$a.__scopeId = "data-v-968a9a5a";
76423
76442
  script$a.__file = "packages/base/table/table.vue";
76424
76443
 
76425
76444
  var _hoisted_1$6 = ["onClick"];
76445
+ var propsKey = 'table-column'; // 解决defineProps作用域问题
76426
76446
  var __default__$9 = {
76427
76447
  name: 'base-table-column'
76428
76448
  };
@@ -76446,7 +76466,6 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
76446
76466
  className: { type: String, required: false },
76447
76467
  labelClassName: { type: String, required: false },
76448
76468
  children: { type: Array, required: false },
76449
- isBothEnds: { type: Boolean, required: false },
76450
76469
  renderHeader: { type: Function, required: false },
76451
76470
  renderHeaderSelectionLabel: { type: Function, required: false },
76452
76471
  formatter: { type: Function, required: false, default: function (_a) {
@@ -76480,9 +76499,9 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
76480
76499
  var _selectionAllLoading = ref(false);
76481
76500
  var _selectionRowLoading = ref(false);
76482
76501
  var getAlign = computed(function () {
76483
- 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) === '操作')
76484
76503
  return (props === null || props === void 0 ? void 0 : props.align) || 'center';
76485
- 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');
76486
76505
  });
76487
76506
  var BaseTableColumnHeaderSelectionLabelRender = defineComponent({
76488
76507
  name: 'table-column-header-selection-label-render',
package/lib/index.umd.js CHANGED
@@ -71498,7 +71498,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
71498
71498
 
71499
71499
  var _hoisted_1$i = /*#__PURE__*/ vue.createTextVNode("更多");
71500
71500
  var _hoisted_2$b = { class: "btn-group" };
71501
- var _hoisted_3$9 = ["onClick"];
71501
+ var _hoisted_3$a = ["onClick"];
71502
71502
  var __default__$C = {
71503
71503
  name: 'base-button-more'
71504
71504
  };
@@ -71617,7 +71617,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
71617
71617
  (_b = (_a = popoverRef.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
71618
71618
  (_c = (btn.onClick || btn.click)) === null || _c === void 0 ? void 0 : _c();
71619
71619
  }
71620
- }, vue.toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$9));
71620
+ }, vue.toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$a));
71621
71621
  }), 128 /* KEYED_FRAGMENT */))
71622
71622
  ])
71623
71623
  ]; }),
@@ -71833,7 +71833,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
71833
71833
  key: 0,
71834
71834
  style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
71835
71835
  };
71836
- var _hoisted_3$8 = {
71836
+ var _hoisted_3$9 = {
71837
71837
  key: 0,
71838
71838
  style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
71839
71839
  };
@@ -72077,7 +72077,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
72077
72077
  var _a;
72078
72078
  return [
72079
72079
  ((_a = vue.unref(slots)) === null || _a === void 0 ? void 0 : _a.default)
72080
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$8, [
72080
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$9, [
72081
72081
  vue.renderSlot(_ctx.$slots, "default", {
72082
72082
  slotScope: { activeIndex: activeIndex.value }
72083
72083
  })
@@ -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,8 +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 _withScopeId$4 = function (n) { return (vue.pushScopeId("data-v-a1781a06"), n = n(), vue.popScopeId(), n); };
74255
74256
  var _hoisted_1$c = { class: "btn-group-left" };
74256
- var _hoisted_2$8 = { class: "btn-group-right" };
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 */); });
74257
74262
  var __default__$h = {
74258
74263
  name: 'xrk-search'
74259
74264
  };
@@ -74286,6 +74291,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74286
74291
  '--column-len': props.columns.length
74287
74292
  };
74288
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'; });
74299
+ });
74289
74300
  var isExpand = vue.ref(false);
74290
74301
  var getCurrentColumns = vue.computed(function () {
74291
74302
  var _a;
@@ -74429,7 +74440,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74429
74440
  handleResetClick: handleResetClick
74430
74441
  });
74431
74442
  return function (_ctx, _cache) {
74432
- var _a, _b, _c, _d, _e;
74443
+ var _a, _b, _c, _d, _e, _f;
74433
74444
  return (vue.openBlock(), vue.createElementBlock("div", {
74434
74445
  class: vue.normalizeClass(["xrk-search", {
74435
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
@@ -74471,8 +74482,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74471
74482
  _: 1 /* STABLE */
74472
74483
  }, 8 /* PROPS */, ["model"]),
74473
74484
  vue.createElementVNode("div", {
74474
- class: "btn-group",
74475
- style: vue.normalizeStyle({ marginTop: ((_d = __props.columns) === null || _d === void 0 ? void 0 : _d.length) ? '24px' : 0 })
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
+ })
74476
74491
  }, [
74477
74492
  vue.createElementVNode("div", _hoisted_1$c, [
74478
74493
  (vue.unref(searchBtn).show)
@@ -74524,16 +74539,21 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
74524
74539
  }))
74525
74540
  : vue.createCommentVNode("v-if", true)
74526
74541
  ]),
74527
- vue.createElementVNode("div", _hoisted_2$8, [
74528
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.otherComponents, function (_a, index) {
74529
- var render = _a.render;
74530
- return (vue.openBlock(), vue.createBlock(vue.unref(BaseSearchRender), {
74531
- render: render,
74532
- key: index
74533
- }, null, 8 /* PROPS */, ["render"]));
74534
- }), 128 /* KEYED_FRAGMENT */))
74535
- ])
74536
- ], 4 /* STYLE */)
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 */)
74537
74557
  ], 6 /* CLASS, STYLE */));
74538
74558
  };
74539
74559
  } }));
@@ -76282,7 +76302,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76282
76302
  });
76283
76303
  };
76284
76304
 
76285
- var propsKey = 'table'; // 解决defineProps作用域问题
76305
+ var propsKey$1 = 'table'; // 解决defineProps作用域问题
76286
76306
  var __default__$a = {
76287
76307
  name: 'base-table'
76288
76308
  };
@@ -76292,7 +76312,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76292
76312
  height: { type: [String, Number], required: false, default: '100%' },
76293
76313
  maxHeight: { type: [String, Number], required: false },
76294
76314
  stripe: { type: Boolean, required: false, default: false },
76295
- 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); }) },
76296
76316
  size: { type: String, required: false, default: 'large' },
76297
76317
  fit: { type: Boolean, required: false, default: true },
76298
76318
  rowClassName: { type: null, required: false },
@@ -76309,7 +76329,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76309
76329
  emptyText: { type: String, required: false, default: '暂无数据' },
76310
76330
  defaultSort: { type: Object, required: false },
76311
76331
  useBaseClass: { type: Boolean, required: false, default: (function () {
76312
- return useGetGlobalDefaultProp(propsKey, 'useBaseClass', true);
76332
+ return useGetGlobalDefaultProp(propsKey$1, 'useBaseClass', true);
76313
76333
  }) },
76314
76334
  spanMethod: { type: null, required: false },
76315
76335
  treeProps: { type: Object, required: false },
@@ -76399,7 +76419,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76399
76419
  : (vue.openBlock(), vue.createBlock(vue.unref(BaseEmpty), { key: 1 }))
76400
76420
  ]; }),
76401
76421
  default: vue.withCtx(function () { return [
76402
- (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) {
76403
76423
  return (vue.openBlock(), vue.createBlock(vue.unref(BaseTableColumn), vue.mergeProps({
76404
76424
  key: column.prop,
76405
76425
  pageAllData: __props.data,
@@ -76409,12 +76429,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76409
76429
  getSelectionRows: vue.unref(getSelectionRows),
76410
76430
  addSelectionRow: vue.unref(addSelectionRow),
76411
76431
  removeSelectionRow: vue.unref(removeSelectionRow),
76412
- clearSelectionRows: vue.unref(clearSelectionRows),
76413
- isBothEnds: !index || index === __props.columns.length - 1
76432
+ clearSelectionRows: vue.unref(clearSelectionRows)
76414
76433
  }, column, {
76415
76434
  onSelect: handleColumnSelect,
76416
76435
  onSelectAll: handleColumnSelectAll
76417
- }), 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"]));
76418
76437
  }), 128 /* KEYED_FRAGMENT */))
76419
76438
  ]; }),
76420
76439
  _: 1 /* STABLE */
@@ -76426,6 +76445,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76426
76445
  script$a.__file = "packages/base/table/table.vue";
76427
76446
 
76428
76447
  var _hoisted_1$6 = ["onClick"];
76448
+ var propsKey = 'table-column'; // 解决defineProps作用域问题
76429
76449
  var __default__$9 = {
76430
76450
  name: 'base-table-column'
76431
76451
  };
@@ -76449,7 +76469,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76449
76469
  className: { type: String, required: false },
76450
76470
  labelClassName: { type: String, required: false },
76451
76471
  children: { type: Array, required: false },
76452
- isBothEnds: { type: Boolean, required: false },
76453
76472
  renderHeader: { type: Function, required: false },
76454
76473
  renderHeaderSelectionLabel: { type: Function, required: false },
76455
76474
  formatter: { type: Function, required: false, default: function (_a) {
@@ -76483,9 +76502,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76483
76502
  var _selectionAllLoading = vue.ref(false);
76484
76503
  var _selectionRowLoading = vue.ref(false);
76485
76504
  var getAlign = vue.computed(function () {
76486
- 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) === '操作')
76487
76506
  return (props === null || props === void 0 ? void 0 : props.align) || 'center';
76488
- 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');
76489
76508
  });
76490
76509
  var BaseTableColumnHeaderSelectionLabelRender = vue.defineComponent({
76491
76510
  name: 'table-column-header-selection-label-render',
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrk-components",
3
- "version": "2.0.0-beta.98",
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",