@tmagic/tdesign-vue-next-adapter 1.7.0-beta.2 → 1.7.0-beta.3

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.
@@ -216,7 +216,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
216
216
  placeholder: {},
217
217
  rows: {},
218
218
  type: {},
219
- size: {}
219
+ size: {},
220
+ autosize: { type: [Boolean, Object] }
220
221
  },
221
222
  emits: ["change", "input", "blur", "focus", "update:modelValue"],
222
223
  setup(__props, { emit: __emit }) {
@@ -259,12 +260,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
259
260
  disabled: __props.disabled,
260
261
  placeholder: __props.placeholder,
261
262
  rows: __props.rows,
263
+ autosize: __props.autosize,
262
264
  onKeypress: inputHandler,
263
265
  onChange: changeHandler,
264
266
  onBlur: blurHandler,
265
267
  onFocus: focusHandler,
266
268
  "onUpdate:modelValue": updateModelValue
267
- }, null, 8, ["modelValue", "size", "disabled", "placeholder", "rows"])) : (openBlock(), createBlock(
269
+ }, null, 8, ["modelValue", "size", "disabled", "placeholder", "rows", "autosize"])) : (openBlock(), createBlock(
268
270
  unref(InputAdornment),
269
271
  { key: 1 },
270
272
  createSlots({
@@ -755,7 +757,7 @@ const adapter = {
755
757
  button: {
756
758
  component: Button,
757
759
  props: (props) => ({
758
- theme: props.type,
760
+ theme: props.type ? props.type : "default",
759
761
  size: props.size === "default" ? "medium" : props.size,
760
762
  icon: props.icon ? () => h(_sfc_main$8, null, { default: () => h(props.icon) }) : void 0,
761
763
  variant: props.link || props.text ? "text" : props.variant || "base",
@@ -219,7 +219,8 @@
219
219
  placeholder: {},
220
220
  rows: {},
221
221
  type: {},
222
- size: {}
222
+ size: {},
223
+ autosize: { type: [Boolean, Object] }
223
224
  },
224
225
  emits: ["change", "input", "blur", "focus", "update:modelValue"],
225
226
  setup(__props, { emit: __emit }) {
@@ -262,12 +263,13 @@
262
263
  disabled: __props.disabled,
263
264
  placeholder: __props.placeholder,
264
265
  rows: __props.rows,
266
+ autosize: __props.autosize,
265
267
  onKeypress: inputHandler,
266
268
  onChange: changeHandler,
267
269
  onBlur: blurHandler,
268
270
  onFocus: focusHandler,
269
271
  "onUpdate:modelValue": updateModelValue
270
- }, null, 8, ["modelValue", "size", "disabled", "placeholder", "rows"])) : (vue.openBlock(), vue.createBlock(
272
+ }, null, 8, ["modelValue", "size", "disabled", "placeholder", "rows", "autosize"])) : (vue.openBlock(), vue.createBlock(
271
273
  vue.unref(tdesignVueNext.InputAdornment),
272
274
  { key: 1 },
273
275
  vue.createSlots({
@@ -758,7 +760,7 @@
758
760
  button: {
759
761
  component: tdesignVueNext.Button,
760
762
  props: (props) => ({
761
- theme: props.type,
763
+ theme: props.type ? props.type : "default",
762
764
  size: props.size === "default" ? "medium" : props.size,
763
765
  icon: props.icon ? () => vue.h(_sfc_main$8, null, { default: () => vue.h(props.icon) }) : void 0,
764
766
  variant: props.link || props.text ? "text" : props.variant || "base",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0-beta.2",
2
+ "version": "1.7.0-beta.3",
3
3
  "name": "@tmagic/tdesign-vue-next-adapter",
4
4
  "type": "module",
5
5
  "main": "dist/tmagic-tdesign-vue-next-adapter.umd.cjs",
@@ -38,7 +38,7 @@
38
38
  "tdesign-vue-next": "^1.17.1",
39
39
  "vue": "^3.5.22",
40
40
  "typescript": "^5.9.3",
41
- "@tmagic/design": "1.7.0-beta.2"
41
+ "@tmagic/design": "1.7.0-beta.3"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "typescript": {
package/src/Input.vue CHANGED
@@ -7,6 +7,7 @@
7
7
  :disabled="disabled"
8
8
  :placeholder="placeholder"
9
9
  :rows="rows"
10
+ :autosize="autosize"
10
11
  @keypress="inputHandler"
11
12
  @change="changeHandler"
12
13
  @blur="blurHandler"
package/src/index.ts CHANGED
@@ -180,7 +180,7 @@ const adapter: any = {
180
180
  button: {
181
181
  component: TButton,
182
182
  props: (props: ButtonProps) => ({
183
- theme: props.type,
183
+ theme: props.type ? props.type : 'default',
184
184
  size: props.size === 'default' ? 'medium' : props.size,
185
185
  icon: props.icon ? () => h(Icon, null, { default: () => h(props.icon) }) : undefined,
186
186
  variant: props.link || props.text ? 'text' : props.variant || 'base',