@tmagic/tdesign-vue-next-adapter 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.
@@ -76,10 +76,8 @@ const _export_sfc = (sfc, props) => {
76
76
 
77
77
  const _sfc_main$5 = {};
78
78
 
79
- const _hoisted_1$1 = { style: {"width":"1em","height":"1em"} };
80
-
81
79
  function _sfc_render$2(_ctx, _cache) {
82
- return (openBlock(), createElementBlock("i", _hoisted_1$1, [
80
+ return (openBlock(), createElementBlock("i", null, [
83
81
  renderSlot(_ctx.$slots, "default")
84
82
  ]))
85
83
  }
@@ -188,14 +186,20 @@ const _sfc_main$2 = {};
188
186
 
189
187
  const _hoisted_1 = {
190
188
  class: "tdesign-scrollbar",
191
- style: {"overflow":"hidden","height":"100%"}
189
+ style: {"overflow":"hidden","position":"relative","height":"100%"}
190
+ };
191
+ const _hoisted_2 = {
192
+ class: "tdesign-scrollbar-wrap",
193
+ style: {"overflow":"auto","height":"100%"}
192
194
  };
193
- const _hoisted_2 = { style: {"overflow":"auto","height":"100%"} };
195
+ const _hoisted_3 = { class: "tdesign-scrollbar-view" };
194
196
 
195
197
  function _sfc_render$1(_ctx, _cache) {
196
198
  return (openBlock(), createElementBlock("div", _hoisted_1, [
197
199
  createElementVNode("div", _hoisted_2, [
198
- renderSlot(_ctx.$slots, "default")
200
+ createElementVNode("div", _hoisted_3, [
201
+ renderSlot(_ctx.$slots, "default")
202
+ ])
199
203
  ])
200
204
  ]))
201
205
  }
@@ -350,7 +354,8 @@ const adapter = {
350
354
  theme: props.type,
351
355
  size: props.size === "default" ? "medium" : props.size,
352
356
  icon: () => props.icon ? h(props.icon) : null,
353
- variant: props.link || props.text ? "text" : "base"
357
+ variant: props.link || props.text ? "text" : "base",
358
+ shape: props.circle ? "circle" : "rectangle"
354
359
  })
355
360
  },
356
361
  card: {
@@ -511,7 +516,7 @@ const adapter = {
511
516
  },
512
517
  icon: {
513
518
  component: Icon,
514
- props: () => ({})
519
+ props: (props) => props
515
520
  },
516
521
  input: {
517
522
  component: _sfc_main$4,
@@ -79,10 +79,8 @@
79
79
 
80
80
  const _sfc_main$5 = {};
81
81
 
82
- const _hoisted_1$1 = { style: {"width":"1em","height":"1em"} };
83
-
84
82
  function _sfc_render$2(_ctx, _cache) {
85
- return (vue.openBlock(), vue.createElementBlock("i", _hoisted_1$1, [
83
+ return (vue.openBlock(), vue.createElementBlock("i", null, [
86
84
  vue.renderSlot(_ctx.$slots, "default")
87
85
  ]))
88
86
  }
@@ -191,14 +189,20 @@
191
189
 
192
190
  const _hoisted_1 = {
193
191
  class: "tdesign-scrollbar",
194
- style: {"overflow":"hidden","height":"100%"}
192
+ style: {"overflow":"hidden","position":"relative","height":"100%"}
193
+ };
194
+ const _hoisted_2 = {
195
+ class: "tdesign-scrollbar-wrap",
196
+ style: {"overflow":"auto","height":"100%"}
195
197
  };
196
- const _hoisted_2 = { style: {"overflow":"auto","height":"100%"} };
198
+ const _hoisted_3 = { class: "tdesign-scrollbar-view" };
197
199
 
198
200
  function _sfc_render$1(_ctx, _cache) {
199
201
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
200
202
  vue.createElementVNode("div", _hoisted_2, [
201
- vue.renderSlot(_ctx.$slots, "default")
203
+ vue.createElementVNode("div", _hoisted_3, [
204
+ vue.renderSlot(_ctx.$slots, "default")
205
+ ])
202
206
  ])
203
207
  ]))
204
208
  }
@@ -353,7 +357,8 @@
353
357
  theme: props.type,
354
358
  size: props.size === "default" ? "medium" : props.size,
355
359
  icon: () => props.icon ? vue.h(props.icon) : null,
356
- variant: props.link || props.text ? "text" : "base"
360
+ variant: props.link || props.text ? "text" : "base",
361
+ shape: props.circle ? "circle" : "rectangle"
357
362
  })
358
363
  },
359
364
  card: {
@@ -514,7 +519,7 @@
514
519
  },
515
520
  icon: {
516
521
  component: Icon,
517
- props: () => ({})
522
+ props: (props) => props
518
523
  },
519
524
  input: {
520
525
  component: _sfc_main$4,
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/tdesign-vue-next-adapter",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -32,12 +32,12 @@
32
32
  "typescript"
33
33
  ],
34
34
  "dependencies": {
35
- "@tmagic/design": "1.4.0-beta.2",
35
+ "@tmagic/design": "1.4.0",
36
36
  "tdesign-vue-next": "^1.8.1",
37
37
  "vue": "^3.4.21"
38
38
  },
39
39
  "peerDependencies": {
40
- "@tmagic/design": "1.4.0-beta.2",
40
+ "@tmagic/design": "1.4.0",
41
41
  "tdesign-vue-next": "^1.8.1",
42
42
  "vue": "^3.4.21"
43
43
  },
package/src/Icon.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <i style="width: 1em; height: 1em">
2
+ <i>
3
3
  <slot></slot>
4
4
  </i>
5
5
  </template>
package/src/Scrollbar.vue CHANGED
@@ -1,7 +1,9 @@
1
1
  <template>
2
- <div class="tdesign-scrollbar" style="overflow: hidden; height: 100%">
3
- <div style="overflow: auto; height: 100%">
4
- <slot></slot>
2
+ <div class="tdesign-scrollbar" style="overflow: hidden; position: relative; height: 100%">
3
+ <div class="tdesign-scrollbar-wrap" style="overflow: auto; height: 100%">
4
+ <div class="tdesign-scrollbar-view">
5
+ <slot></slot>
6
+ </div>
5
7
  </div>
6
8
  </div>
7
9
  </template>
package/src/index.ts CHANGED
@@ -59,6 +59,7 @@ import type {
59
59
  DropdownProps,
60
60
  FormItemProps,
61
61
  FormProps,
62
+ IconProps,
62
63
  InputNumberProps,
63
64
  InputProps,
64
65
  OptionGroupProps,
@@ -125,6 +126,7 @@ const adapter: any = {
125
126
  size: props.size === 'default' ? 'medium' : props.size,
126
127
  icon: () => (props.icon ? h(props.icon) : null),
127
128
  variant: props.link || props.text ? 'text' : 'base',
129
+ shape: props.circle ? 'circle' : 'rectangle',
128
130
  }),
129
131
  },
130
132
 
@@ -303,7 +305,7 @@ const adapter: any = {
303
305
 
304
306
  icon: {
305
307
  component: Icon,
306
- props: () => ({}),
308
+ props: (props: IconProps) => props,
307
309
  },
308
310
 
309
311
  input: {