@ftjs/antd 2.0.0 → 2.1.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getField, useFormItem, useLocale, unrefs, useFormInject, toValueWithForm, useForm, set, useTable, get } from "@ftjs/core";
2
- import { computed, toValue, createVNode, mergeProps, unref, createTextVNode, isVNode, defineComponent, createBlock, openBlock, resolveDynamicComponent, createElementBlock, Fragment, renderList, ref, useId, withCtx, renderSlot, createCommentVNode, toDisplayString, createElementVNode, onMounted, h, useTemplateRef, normalizeStyle, createSlots, normalizeProps } from "vue";
2
+ import { computed, toValue, createVNode, mergeProps, unref, createTextVNode, isVNode, defineComponent, createBlock, openBlock, resolveDynamicComponent, createElementBlock, Fragment, renderList, normalizeClass, ref, useId, withCtx, renderSlot, createCommentVNode, toDisplayString, createElementVNode, onMounted, h, useTemplateRef, normalizeStyle, createSlots, normalizeProps } from "vue";
3
3
  import { FormItem, Input, Select, DatePicker, RangePicker, Radio, Textarea, Upload, Cascader, AutoComplete, CheckboxGroup, InputNumber, Mentions, Rate, Slider, Switch, TreeSelect, Form, Button, Modal, Tree, Divider, Spin, Pagination } from "ant-design-vue";
4
4
  import dayjs from "dayjs";
5
5
  import { SwapOutlined, SettingOutlined } from "@ant-design/icons-vue";
@@ -496,8 +496,7 @@ function registerForm(type, Component) {
496
496
  }
497
497
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
498
498
  ...{
499
- name: "FtAntdFormContentItem",
500
- inheritAttrs: false
499
+ name: "FtAntdFormContentItem"
501
500
  },
502
501
  __name: "form-content-item",
503
502
  props: {
@@ -541,8 +540,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
541
540
  return openBlock(), createBlock(_sfc_main$4, {
542
541
  key: unref(getField)(column),
543
542
  column,
544
- "is-view": _ctx.isView
545
- }, null, 8, ["column", "is-view"]);
543
+ "is-view": _ctx.isView,
544
+ class: normalizeClass({
545
+ "ftjs-form-is-view": _ctx.isView
546
+ })
547
+ }, null, 8, ["column", "is-view", "class"]);
546
548
  }), 128);
547
549
  };
548
550
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ftjs/antd",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -30,12 +30,12 @@
30
30
  "vite": "^6.1.0",
31
31
  "vite-plugin-dts": "^4.5.0",
32
32
  "vue-tsc": "2.2.0",
33
- "@ftjs/core": "1.3.0"
33
+ "@ftjs/core": "1.3.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@ant-design/icons-vue": ">=7.0.0",
37
37
  "vue": ">=3.3.0",
38
- "@ftjs/core": "^1.3.0",
38
+ "@ftjs/core": "^1.3.1",
39
39
  "ant-design-vue": ">=4.0.0",
40
40
  "dayjs": ">=1.0.0",
41
41
  "vxe-table": ">=4.0.0"