@blueking/ediatable 0.0.1-beta.21 → 0.0.1-beta.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ediatable",
3
- "version": "0.0.1-beta.21",
3
+ "version": "0.0.1-beta.22",
4
4
  "description": "蓝鲸 Ediatable",
5
5
  "keywords": [
6
6
  "ediatable",
@@ -1,5 +1,5 @@
1
1
  interface Props {
2
- fixed?: 'right' | 'left';
2
+ fixed?: 'left' | 'right';
3
3
  }
4
4
  declare function __VLS_template(): {
5
5
  default?(_: {}): any;
@@ -9,7 +9,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
9
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
10
10
  fixed: string;
11
11
  }>>>, {
12
- fixed: "right" | "left";
12
+ fixed: "left" | "right";
13
13
  }, {}>;
14
14
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
15
15
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'vue/jsx-runtime';
2
2
  export interface Props {
3
- fixed?: 'right' | 'left';
3
+ fixed?: 'left' | 'right';
4
4
  maxWidth?: number;
5
5
  minWidth?: number;
6
6
  required?: boolean;
@@ -35,7 +35,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
35
35
  minWidth: number;
36
36
  width: number;
37
37
  maxWidth: number;
38
- fixed: "right" | "left";
38
+ fixed: "left" | "right";
39
39
  required: boolean;
40
40
  renderAppend: () => JSX.Element;
41
41
  memo: string;
@@ -7,7 +7,7 @@ export interface IListItem {
7
7
  [key: string]: any;
8
8
  }
9
9
  interface Props {
10
- list: Array<IListItem>;
10
+ list?: Array<IListItem>;
11
11
  placeholder?: string;
12
12
  rules?: Rules;
13
13
  disabled?: boolean;
@@ -22,7 +22,13 @@ declare let __VLS_typeProps: Props;
22
22
  type __VLS_PublicProps = {
23
23
  modelValue?: IKey;
24
24
  } & typeof __VLS_typeProps;
25
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
25
+ declare function __VLS_template(): Readonly<{
26
+ optionRender: any;
27
+ }> & {
28
+ optionRender: any;
29
+ };
30
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
31
+ list: () => never[];
26
32
  placeholder: string;
27
33
  textarea: boolean;
28
34
  rules: () => never[];
@@ -40,6 +46,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
40
46
  change: (value: IKey) => void;
41
47
  error: (result: boolean) => void;
42
48
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
49
+ list: () => never[];
43
50
  placeholder: string;
44
51
  textarea: boolean;
45
52
  rules: () => never[];
@@ -62,9 +69,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
62
69
  multiple: boolean;
63
70
  showSelectAll: boolean;
64
71
  multipleMode: string;
72
+ list: Array<IListItem>;
65
73
  idKey: string;
66
74
  displayKey: string;
67
75
  }, {}>;
76
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
68
77
  export default _default;
69
78
  type __VLS_WithDefaults<P, D> = {
70
79
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -74,6 +83,11 @@ type __VLS_WithDefaults<P, D> = {
74
83
  type __VLS_Prettify<T> = {
75
84
  [K in keyof T]: T[K];
76
85
  } & {};
86
+ type __VLS_WithTemplateSlots<T, S> = T & {
87
+ new (): {
88
+ $slots: S;
89
+ };
90
+ };
77
91
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
78
92
  type __VLS_TypePropsToOption<T> = {
79
93
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "@blueking/bkui-library";
2
- import { ref, provide, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, unref, computed, watch, getCurrentInstance, defineComponent, useSlots, inject, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, withDirectives, renderSlot, createCommentVNode, createBlock, Fragment, renderList, withCtx, createTextVNode, toDisplayString, reactive, toRefs, h as h$1, mergeModels, useModel, useAttrs, createVNode, mergeProps, createSlots, nextTick, createApp } from "@blueking/bkui-library";
2
+ import { ref, provide, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, unref, computed, watch, getCurrentInstance, defineComponent, useSlots, inject, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, withDirectives, renderSlot, createCommentVNode, createBlock, Fragment, renderList, withCtx, createTextVNode, toDisplayString, reactive, toRefs, h as h$1, mergeModels, useModel, useAttrs, createVNode, mergeProps, createSlots, nextTick, createApp } from "@blueking/bkui-library";
3
3
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
4
4
  function getDefaultExportFromCjs(x3) {
5
5
  return x3 && x3.__esModule && Object.prototype.hasOwnProperty.call(x3, "default") ? x3["default"] : x3;
@@ -5628,6 +5628,74 @@ function useColumnResize(tableRef, tableColumnResizeRef, mouseupCallback) {
5628
5628
  handleMouseMove
5629
5629
  };
5630
5630
  }
5631
+ function tryOnScopeDispose(fn2) {
5632
+ if (getCurrentScope()) {
5633
+ onScopeDispose(fn2);
5634
+ return true;
5635
+ }
5636
+ return false;
5637
+ }
5638
+ function toValue(r2) {
5639
+ return typeof r2 === "function" ? r2() : unref(r2);
5640
+ }
5641
+ const isClient = typeof window !== "undefined" && typeof document !== "undefined";
5642
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
5643
+ function unrefElement(elRef) {
5644
+ var _a;
5645
+ const plain = toValue(elRef);
5646
+ return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
5647
+ }
5648
+ const defaultWindow = isClient ? window : void 0;
5649
+ function useMounted() {
5650
+ const isMounted = ref(false);
5651
+ const instance2 = getCurrentInstance();
5652
+ if (instance2) {
5653
+ onMounted(() => {
5654
+ isMounted.value = true;
5655
+ }, instance2);
5656
+ }
5657
+ return isMounted;
5658
+ }
5659
+ function useSupported(callback) {
5660
+ const isMounted = useMounted();
5661
+ return computed(() => {
5662
+ isMounted.value;
5663
+ return Boolean(callback());
5664
+ });
5665
+ }
5666
+ function useResizeObserver(target, callback, options = {}) {
5667
+ const { window: window2 = defaultWindow, ...observerOptions } = options;
5668
+ let observer;
5669
+ const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
5670
+ const cleanup = () => {
5671
+ if (observer) {
5672
+ observer.disconnect();
5673
+ observer = void 0;
5674
+ }
5675
+ };
5676
+ const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);
5677
+ const stopWatch = watch(
5678
+ targets,
5679
+ (els) => {
5680
+ cleanup();
5681
+ if (isSupported.value && window2) {
5682
+ observer = new ResizeObserver(callback);
5683
+ for (const _el of els)
5684
+ _el && observer.observe(_el, observerOptions);
5685
+ }
5686
+ },
5687
+ { immediate: true, flush: "post" }
5688
+ );
5689
+ const stop = () => {
5690
+ cleanup();
5691
+ stopWatch();
5692
+ };
5693
+ tryOnScopeDispose(stop);
5694
+ return {
5695
+ isSupported,
5696
+ stop
5697
+ };
5698
+ }
5631
5699
  var top = "top";
5632
5700
  var bottom = "bottom";
5633
5701
  var right = "right";
@@ -41640,74 +41708,6 @@ const overflowTips = {
41640
41708
  }
41641
41709
  };
41642
41710
  const random2 = () => `${_$1.random(0, 999999)}_${Date.now()}_${_$1.random(0, 999999)}`;
41643
- function tryOnScopeDispose(fn2) {
41644
- if (getCurrentScope()) {
41645
- onScopeDispose(fn2);
41646
- return true;
41647
- }
41648
- return false;
41649
- }
41650
- function toValue(r2) {
41651
- return typeof r2 === "function" ? r2() : unref(r2);
41652
- }
41653
- const isClient = typeof window !== "undefined" && typeof document !== "undefined";
41654
- typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
41655
- function unrefElement(elRef) {
41656
- var _a;
41657
- const plain = toValue(elRef);
41658
- return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
41659
- }
41660
- const defaultWindow = isClient ? window : void 0;
41661
- function useMounted() {
41662
- const isMounted = ref(false);
41663
- const instance2 = getCurrentInstance();
41664
- if (instance2) {
41665
- onMounted(() => {
41666
- isMounted.value = true;
41667
- }, instance2);
41668
- }
41669
- return isMounted;
41670
- }
41671
- function useSupported(callback) {
41672
- const isMounted = useMounted();
41673
- return computed(() => {
41674
- isMounted.value;
41675
- return Boolean(callback());
41676
- });
41677
- }
41678
- function useResizeObserver(target, callback, options = {}) {
41679
- const { window: window2 = defaultWindow, ...observerOptions } = options;
41680
- let observer;
41681
- const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
41682
- const cleanup = () => {
41683
- if (observer) {
41684
- observer.disconnect();
41685
- observer = void 0;
41686
- }
41687
- };
41688
- const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);
41689
- const stopWatch = watch(
41690
- targets,
41691
- (els) => {
41692
- cleanup();
41693
- if (isSupported.value && window2) {
41694
- observer = new ResizeObserver(callback);
41695
- for (const _el of els)
41696
- _el && observer.observe(_el, observerOptions);
41697
- }
41698
- },
41699
- { immediate: true, flush: "post" }
41700
- );
41701
- const stop = () => {
41702
- cleanup();
41703
- stopWatch();
41704
- };
41705
- tryOnScopeDispose(stop);
41706
- return {
41707
- isSupported,
41708
- stop
41709
- };
41710
- }
41711
41711
  const _hoisted_1$6 = ["data-fixed", "data-maxWidth", "data-minWidth", "data-width"];
41712
41712
  const _hoisted_2$2 = { class: "th-cell" };
41713
41713
  const _hoisted_3$1 = { style: { "display": "inline-block", "line-height": "40px", "vertical-align": "top" } };
@@ -41762,7 +41762,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
41762
41762
  minWidth: props2.width ? `${props2.width}px` : "120px"
41763
41763
  };
41764
41764
  });
41765
- const RenderAppendElement = computed(() => props2.renderAppend && props2.renderAppend());
41765
+ const RenderAppendElement = computed(() => {
41766
+ var _a;
41767
+ return (_a = props2.renderAppend) == null ? void 0 : _a.call(props2);
41768
+ });
41766
41769
  watch(
41767
41770
  () => [props2.width, rowWidth == null ? void 0 : rowWidth.value, currentWidth.value],
41768
41771
  ([width, rowWidth2, currentWidth2]) => {
@@ -41803,6 +41806,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
41803
41806
  return openBlock(), createElementBlock("th", {
41804
41807
  ref_key: "columnRef",
41805
41808
  ref: columnRef,
41809
+ style: normalizeStyle(styles.value),
41806
41810
  class: normalizeClass(["bk-ediatable-head-column", {
41807
41811
  [`column-${unref(columnKey)}`]: true,
41808
41812
  "is-right-fixed": unref(isMinimize) && isFixedRight.value && !unref(isScrollToRight),
@@ -41812,7 +41816,6 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
41812
41816
  "data-maxWidth": _ctx.maxWidth,
41813
41817
  "data-minWidth": finalMinWidth.value,
41814
41818
  "data-width": _ctx.width,
41815
- style: normalizeStyle(styles.value),
41816
41819
  onMousedown: handleMouseDown,
41817
41820
  onMousemove: handleMouseMove
41818
41821
  }, [
@@ -42424,7 +42427,7 @@ const _hoisted_1$2 = {
42424
42427
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42425
42428
  __name: "select-column",
42426
42429
  props: /* @__PURE__ */ mergeModels({
42427
- list: {},
42430
+ list: { default: () => [] },
42428
42431
  placeholder: { default: "请选择" },
42429
42432
  rules: { default: () => [] },
42430
42433
  disabled: { type: Boolean, default: false },
@@ -42441,6 +42444,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42441
42444
  emits: /* @__PURE__ */ mergeModels(["change", "error"], ["update:modelValue"]),
42442
42445
  setup(__props, { expose: __expose, emit: __emit }) {
42443
42446
  const { Option } = __webpack_exports__default$2;
42447
+ const slots = useSlots();
42444
42448
  const props2 = __props;
42445
42449
  const emits = __emit;
42446
42450
  const modelValue = useModel(__props, "modelValue");
@@ -42518,6 +42522,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42518
42522
  clearable: _ctx.clearable,
42519
42523
  disabled: _ctx.disabled,
42520
42524
  "input-search": false,
42525
+ list: slots.optionRender ? _ctx.list : [],
42521
42526
  "model-value": localValue.value,
42522
42527
  multiple: _ctx.multiple,
42523
42528
  "multiple-mode": _ctx.multipleMode,
@@ -42528,11 +42533,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42528
42533
  }, _ctx.$attrs, {
42529
42534
  onChange: handleSelect,
42530
42535
  onClear: handleRemove
42531
- }), {
42536
+ }), createSlots({
42532
42537
  default: withCtx(() => [
42533
- (openBlock(true), createElementBlock(
42538
+ !slots.optionRender ? (openBlock(true), createElementBlock(
42534
42539
  Fragment,
42535
- null,
42540
+ { key: 0 },
42536
42541
  renderList(_ctx.list, (item, index2) => {
42537
42542
  return openBlock(), createBlock(unref(Option), {
42538
42543
  disabled: item.disabled,
@@ -42543,11 +42548,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42543
42548
  }),
42544
42549
  128
42545
42550
  /* KEYED_FRAGMENT */
42546
- ))
42551
+ )) : createCommentVNode("v-if", true)
42547
42552
  ]),
42548
- _: 1
42549
- /* STABLE */
42550
- }, 16, ["clearable", "disabled", "model-value", "multiple", "multiple-mode", "placeholder", "show-select-all"]),
42553
+ _: 2
42554
+ /* DYNAMIC */
42555
+ }, [
42556
+ slots.optionRender ? {
42557
+ name: "optionRender",
42558
+ fn: withCtx(({ item }) => [
42559
+ renderSlot(_ctx.$slots, "optionRender", { item })
42560
+ ]),
42561
+ key: "0"
42562
+ } : void 0
42563
+ ]), 1040, ["clearable", "disabled", "list", "model-value", "multiple", "multiple-mode", "placeholder", "show-select-all"]),
42551
42564
  unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
42552
42565
  withDirectives(createVNode(
42553
42566
  unref(DbIcon),
@@ -12495,6 +12495,74 @@ var lesscodeCustomComponentLibrary = function(exports) {
12495
12495
  handleMouseMove
12496
12496
  };
12497
12497
  }
12498
+ function tryOnScopeDispose(fn) {
12499
+ if (getCurrentScope()) {
12500
+ onScopeDispose(fn);
12501
+ return true;
12502
+ }
12503
+ return false;
12504
+ }
12505
+ function toValue(r2) {
12506
+ return typeof r2 === "function" ? r2() : unref(r2);
12507
+ }
12508
+ const isClient = typeof window !== "undefined" && typeof document !== "undefined";
12509
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
12510
+ function unrefElement(elRef) {
12511
+ var _a;
12512
+ const plain = toValue(elRef);
12513
+ return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
12514
+ }
12515
+ const defaultWindow = isClient ? window : void 0;
12516
+ function useMounted() {
12517
+ const isMounted = ref(false);
12518
+ const instance2 = getCurrentInstance();
12519
+ if (instance2) {
12520
+ onMounted(() => {
12521
+ isMounted.value = true;
12522
+ }, instance2);
12523
+ }
12524
+ return isMounted;
12525
+ }
12526
+ function useSupported(callback) {
12527
+ const isMounted = useMounted();
12528
+ return computed(() => {
12529
+ isMounted.value;
12530
+ return Boolean(callback());
12531
+ });
12532
+ }
12533
+ function useResizeObserver(target, callback, options = {}) {
12534
+ const { window: window2 = defaultWindow, ...observerOptions } = options;
12535
+ let observer;
12536
+ const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
12537
+ const cleanup = () => {
12538
+ if (observer) {
12539
+ observer.disconnect();
12540
+ observer = void 0;
12541
+ }
12542
+ };
12543
+ const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);
12544
+ const stopWatch = watch(
12545
+ targets,
12546
+ (els) => {
12547
+ cleanup();
12548
+ if (isSupported.value && window2) {
12549
+ observer = new ResizeObserver(callback);
12550
+ for (const _el of els)
12551
+ _el && observer.observe(_el, observerOptions);
12552
+ }
12553
+ },
12554
+ { immediate: true, flush: "post" }
12555
+ );
12556
+ const stop = () => {
12557
+ cleanup();
12558
+ stopWatch();
12559
+ };
12560
+ tryOnScopeDispose(stop);
12561
+ return {
12562
+ isSupported,
12563
+ stop
12564
+ };
12565
+ }
12498
12566
  var top = "top";
12499
12567
  var bottom = "bottom";
12500
12568
  var right = "right";
@@ -48507,74 +48575,6 @@ ${$(r2)}`), n2;
48507
48575
  }
48508
48576
  };
48509
48577
  const random = () => `${_$1.random(0, 999999)}_${Date.now()}_${_$1.random(0, 999999)}`;
48510
- function tryOnScopeDispose(fn) {
48511
- if (getCurrentScope()) {
48512
- onScopeDispose(fn);
48513
- return true;
48514
- }
48515
- return false;
48516
- }
48517
- function toValue(r2) {
48518
- return typeof r2 === "function" ? r2() : unref(r2);
48519
- }
48520
- const isClient = typeof window !== "undefined" && typeof document !== "undefined";
48521
- typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
48522
- function unrefElement(elRef) {
48523
- var _a;
48524
- const plain = toValue(elRef);
48525
- return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
48526
- }
48527
- const defaultWindow = isClient ? window : void 0;
48528
- function useMounted() {
48529
- const isMounted = ref(false);
48530
- const instance2 = getCurrentInstance();
48531
- if (instance2) {
48532
- onMounted(() => {
48533
- isMounted.value = true;
48534
- }, instance2);
48535
- }
48536
- return isMounted;
48537
- }
48538
- function useSupported(callback) {
48539
- const isMounted = useMounted();
48540
- return computed(() => {
48541
- isMounted.value;
48542
- return Boolean(callback());
48543
- });
48544
- }
48545
- function useResizeObserver(target, callback, options = {}) {
48546
- const { window: window2 = defaultWindow, ...observerOptions } = options;
48547
- let observer;
48548
- const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
48549
- const cleanup = () => {
48550
- if (observer) {
48551
- observer.disconnect();
48552
- observer = void 0;
48553
- }
48554
- };
48555
- const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);
48556
- const stopWatch = watch(
48557
- targets,
48558
- (els) => {
48559
- cleanup();
48560
- if (isSupported.value && window2) {
48561
- observer = new ResizeObserver(callback);
48562
- for (const _el of els)
48563
- _el && observer.observe(_el, observerOptions);
48564
- }
48565
- },
48566
- { immediate: true, flush: "post" }
48567
- );
48568
- const stop = () => {
48569
- cleanup();
48570
- stopWatch();
48571
- };
48572
- tryOnScopeDispose(stop);
48573
- return {
48574
- isSupported,
48575
- stop
48576
- };
48577
- }
48578
48578
  const _hoisted_1$6 = ["data-fixed", "data-maxWidth", "data-minWidth", "data-width"];
48579
48579
  const _hoisted_2$2 = { class: "th-cell" };
48580
48580
  const _hoisted_3$1 = { style: { "display": "inline-block", "line-height": "40px", "vertical-align": "top" } };
@@ -48629,7 +48629,10 @@ ${$(r2)}`), n2;
48629
48629
  minWidth: props2.width ? `${props2.width}px` : "120px"
48630
48630
  };
48631
48631
  });
48632
- const RenderAppendElement = computed(() => props2.renderAppend && props2.renderAppend());
48632
+ const RenderAppendElement = computed(() => {
48633
+ var _a;
48634
+ return (_a = props2.renderAppend) == null ? void 0 : _a.call(props2);
48635
+ });
48633
48636
  watch(
48634
48637
  () => [props2.width, rowWidth == null ? void 0 : rowWidth.value, currentWidth.value],
48635
48638
  ([width, rowWidth2, currentWidth2]) => {
@@ -48670,6 +48673,7 @@ ${$(r2)}`), n2;
48670
48673
  return openBlock(), createElementBlock("th", {
48671
48674
  ref_key: "columnRef",
48672
48675
  ref: columnRef,
48676
+ style: normalizeStyle(styles.value),
48673
48677
  class: normalizeClass(["bk-ediatable-head-column", {
48674
48678
  [`column-${unref(columnKey)}`]: true,
48675
48679
  "is-right-fixed": unref(isMinimize) && isFixedRight.value && !unref(isScrollToRight),
@@ -48679,7 +48683,6 @@ ${$(r2)}`), n2;
48679
48683
  "data-maxWidth": _ctx.maxWidth,
48680
48684
  "data-minWidth": finalMinWidth.value,
48681
48685
  "data-width": _ctx.width,
48682
- style: normalizeStyle(styles.value),
48683
48686
  onMousedown: handleMouseDown,
48684
48687
  onMousemove: handleMouseMove
48685
48688
  }, [
@@ -49291,7 +49294,7 @@ ${$(r2)}`), n2;
49291
49294
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
49292
49295
  __name: "select-column",
49293
49296
  props: /* @__PURE__ */ mergeModels({
49294
- list: {},
49297
+ list: { default: () => [] },
49295
49298
  placeholder: { default: "请选择" },
49296
49299
  rules: { default: () => [] },
49297
49300
  disabled: { type: Boolean, default: false },
@@ -49308,6 +49311,7 @@ ${$(r2)}`), n2;
49308
49311
  emits: /* @__PURE__ */ mergeModels(["change", "error"], ["update:modelValue"]),
49309
49312
  setup(__props, { expose: __expose, emit: __emit }) {
49310
49313
  const { Option } = __webpack_exports__default$2;
49314
+ const slots = useSlots();
49311
49315
  const props2 = __props;
49312
49316
  const emits = __emit;
49313
49317
  const modelValue = useModel(__props, "modelValue");
@@ -49385,6 +49389,7 @@ ${$(r2)}`), n2;
49385
49389
  clearable: _ctx.clearable,
49386
49390
  disabled: _ctx.disabled,
49387
49391
  "input-search": false,
49392
+ list: slots.optionRender ? _ctx.list : [],
49388
49393
  "model-value": localValue.value,
49389
49394
  multiple: _ctx.multiple,
49390
49395
  "multiple-mode": _ctx.multipleMode,
@@ -49395,11 +49400,11 @@ ${$(r2)}`), n2;
49395
49400
  }, _ctx.$attrs, {
49396
49401
  onChange: handleSelect,
49397
49402
  onClear: handleRemove
49398
- }), {
49403
+ }), createSlots({
49399
49404
  default: withCtx(() => [
49400
- (openBlock(true), createElementBlock(
49405
+ !slots.optionRender ? (openBlock(true), createElementBlock(
49401
49406
  Fragment,
49402
- null,
49407
+ { key: 0 },
49403
49408
  renderList(_ctx.list, (item, index2) => {
49404
49409
  return openBlock(), createBlock(unref(Option), {
49405
49410
  disabled: item.disabled,
@@ -49410,11 +49415,19 @@ ${$(r2)}`), n2;
49410
49415
  }),
49411
49416
  128
49412
49417
  /* KEYED_FRAGMENT */
49413
- ))
49418
+ )) : createCommentVNode("v-if", true)
49414
49419
  ]),
49415
- _: 1
49416
- /* STABLE */
49417
- }, 16, ["clearable", "disabled", "model-value", "multiple", "multiple-mode", "placeholder", "show-select-all"]),
49420
+ _: 2
49421
+ /* DYNAMIC */
49422
+ }, [
49423
+ slots.optionRender ? {
49424
+ name: "optionRender",
49425
+ fn: withCtx(({ item }) => [
49426
+ renderSlot(_ctx.$slots, "optionRender", { item })
49427
+ ]),
49428
+ key: "0"
49429
+ } : void 0
49430
+ ]), 1040, ["clearable", "disabled", "list", "model-value", "multiple", "multiple-mode", "placeholder", "show-select-all"]),
49418
49431
  unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
49419
49432
  withDirectives(createVNode(
49420
49433
  unref(DbIcon),