3h1-ui 1.2.0-beta.2 → 1.2.0-beta.4

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/es/index.js CHANGED
@@ -19568,6 +19568,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19568
19568
  api: null,
19569
19569
  columns: { default: () => [] },
19570
19570
  isSeq: { type: Boolean, default: true },
19571
+ isCompatible: { type: Boolean, default: false },
19571
19572
  actionColumn: { default: () => {
19572
19573
  return {
19573
19574
  title: "\u64CD\u4F5C",
@@ -19591,7 +19592,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19591
19592
  };
19592
19593
  const innerProps = ref({});
19593
19594
  const getProps = computed(() => {
19594
- return { ...props2, ...innerProps.value };
19595
+ if (props2.isCompatible) {
19596
+ const tempProps = { ...props2, ...innerProps };
19597
+ tempProps.columns.forEach((column) => {
19598
+ column.field = column.dataIndex;
19599
+ });
19600
+ return tempProps;
19601
+ } else {
19602
+ return { ...props2, ...innerProps.value };
19603
+ }
19595
19604
  });
19596
19605
  const setProps = (props22) => {
19597
19606
  innerProps.value = props22;
package/lib/index.js CHANGED
@@ -19573,6 +19573,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19573
19573
  api: null,
19574
19574
  columns: { default: () => [] },
19575
19575
  isSeq: { type: Boolean, default: true },
19576
+ isCompatible: { type: Boolean, default: false },
19576
19577
  actionColumn: { default: () => {
19577
19578
  return {
19578
19579
  title: "\u64CD\u4F5C",
@@ -19596,7 +19597,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19596
19597
  };
19597
19598
  const innerProps = vue.ref({});
19598
19599
  const getProps = vue.computed(() => {
19599
- return { ...props2, ...innerProps.value };
19600
+ if (props2.isCompatible) {
19601
+ const tempProps = { ...props2, ...innerProps };
19602
+ tempProps.columns.forEach((column) => {
19603
+ column.field = column.dataIndex;
19604
+ });
19605
+ return tempProps;
19606
+ } else {
19607
+ return { ...props2, ...innerProps.value };
19608
+ }
19600
19609
  });
19601
19610
  const setProps = (props22) => {
19602
19611
  innerProps.value = props22;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.2.0-beta.2",
3
+ "version": "1.2.0-beta.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",