@tmagic/form 1.4.0-beta.2 → 1.4.0

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.
@@ -818,14 +818,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
818
818
  createVNode(unref(TMagicButton), {
819
819
  link: "",
820
820
  disabled: _ctx.disabled,
821
- icon: expand.value ? unref(CaretBottom) : unref(CaretRight),
822
821
  onClick: expandHandler
823
822
  }, {
824
823
  default: withCtx(() => [
824
+ createVNode(unref(TMagicIcon), null, {
825
+ default: withCtx(() => [
826
+ expand.value ? (openBlock(), createBlock(unref(CaretBottom), { key: 0 })) : (openBlock(), createBlock(unref(CaretRight), { key: 1 }))
827
+ ]),
828
+ _: 1
829
+ }),
825
830
  createTextVNode(toDisplayString(title.value), 1)
826
831
  ]),
827
832
  _: 1
828
- }, 8, ["disabled", "icon"]),
833
+ }, 8, ["disabled"]),
829
834
  withDirectives(createVNode(unref(TMagicButton), {
830
835
  style: { "color": "#f56c6c" },
831
836
  link: "",
@@ -817,14 +817,19 @@
817
817
  vue.createVNode(vue.unref(design.TMagicButton), {
818
818
  link: "",
819
819
  disabled: _ctx.disabled,
820
- icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
821
820
  onClick: expandHandler
822
821
  }, {
823
822
  default: vue.withCtx(() => [
823
+ vue.createVNode(vue.unref(design.TMagicIcon), null, {
824
+ default: vue.withCtx(() => [
825
+ expand.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretBottom), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretRight), { key: 1 }))
826
+ ]),
827
+ _: 1
828
+ }),
824
829
  vue.createTextVNode(vue.toDisplayString(title.value), 1)
825
830
  ]),
826
831
  _: 1
827
- }, 8, ["disabled", "icon"]),
832
+ }, 8, ["disabled"]),
828
833
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
829
834
  style: { "color": "#f56c6c" },
830
835
  link: "",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.0-beta.2",
2
+ "version": "1.4.0",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@element-plus/icons-vue": "^2.3.1",
35
- "@tmagic/design": "1.4.0-beta.2",
36
- "@tmagic/utils": "1.4.0-beta.2",
35
+ "@tmagic/design": "1.4.0",
36
+ "@tmagic/utils": "1.4.0",
37
37
  "lodash-es": "^4.17.21",
38
38
  "sortablejs": "^1.14.0",
39
39
  "vue": "^3.4.21"
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="m-fields-group-list-item">
3
3
  <div>
4
- <TMagicButton link :disabled="disabled" :icon="expand ? CaretBottom : CaretRight" @click="expandHandler">{{
5
- title
6
- }}</TMagicButton>
4
+ <TMagicButton link :disabled="disabled" @click="expandHandler">
5
+ <TMagicIcon><CaretBottom v-if="expand" /><CaretRight v-else /></TMagicIcon>{{ title }}
6
+ </TMagicButton>
7
7
 
8
8
  <TMagicButton
9
9
  v-show="showDelete(parseInt(String(index)))"