xt-element-ui 2.1.6 → 2.1.7

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 (54) hide show
  1. package/docs/components/base/xt-badge.md +0 -2
  2. package/docs/components/base/xt-bar.md +5 -32
  3. package/docs/components/base/xt-button.md +0 -2
  4. package/docs/components/base/xt-card-item.md +0 -2
  5. package/docs/components/base/xt-card.md +17 -19
  6. package/docs/components/base/xt-chart.md +5 -31
  7. package/docs/components/base/xt-config-provider.md +0 -2
  8. package/docs/components/base/xt-date-picker.md +267 -269
  9. package/docs/components/base/xt-flex-box.md +25 -25
  10. package/docs/components/base/xt-form-schema.md +0 -2
  11. package/docs/components/base/xt-grid-box.md +0 -2
  12. package/docs/components/base/xt-icon.md +0 -2
  13. package/docs/components/base/xt-input.md +0 -2
  14. package/docs/components/base/xt-line.md +4 -30
  15. package/docs/components/base/xt-list.md +0 -2
  16. package/docs/components/base/xt-map-provider.md +0 -2
  17. package/docs/components/base/xt-map.md +0 -2
  18. package/docs/components/base/xt-multi.md +5 -44
  19. package/docs/components/base/xt-page.md +17 -6
  20. package/docs/components/base/xt-pie.md +5 -30
  21. package/docs/components/base/xt-progress.md +0 -2
  22. package/docs/components/base/xt-scroll-arrow.md +0 -2
  23. package/docs/components/base/xt-select-tree.md +0 -2
  24. package/docs/components/base/xt-step-price.md +0 -2
  25. package/docs/components/base/xt-table.md +2 -2
  26. package/docs/components/base/xt-tabs.md +0 -2
  27. package/docs/components/base/xt-text.md +0 -2
  28. package/docs/components/base/xt-time.md +0 -2
  29. package/docs/components/base/xt-transfer-tree.md +0 -2
  30. package/docs/components/base/xt-upload.md +11 -8
  31. package/package.json +2 -1
  32. package/src/components/xt-badge/style/index.scss +0 -22
  33. package/src/components/xt-chart/XtBar.vue +0 -3
  34. package/src/components/xt-layout/ExFieldset.vue +4 -4
  35. package/src/components/xt-page/index.vue +148 -75
  36. package/src/components/xt-progress/style/index.scss +0 -14
  37. package/src/components/xt-tab-pane/index.js +10 -0
  38. package/src/components/{xt-tabs/TabPane.vue → xt-tab-pane/index.vue} +14 -1
  39. package/src/components/xt-table/XtTableCell.vue +2 -2
  40. package/src/components/xt-table/index.vue +5 -7
  41. package/src/components/xt-tabs/index.js +1 -3
  42. package/src/components/xt-tabs/index.vue +303 -44
  43. package/src/components/xt-tabs/style/index.scss +0 -40
  44. package/src/components/xt-text/style/index.scss +0 -15
  45. package/src/components/xt-upload/index.vue +12 -6
  46. package/src/enhance/index.scss +13 -0
  47. package/src/index.js +2 -0
  48. package/src/styles/theme/colors.scss +0 -44
  49. package/src/styles/theme/dark-variables.scss +0 -29
  50. package/lib/demo.html +0 -10
  51. package/lib/index.common.js +0 -120529
  52. package/lib/index.css +0 -1
  53. package/lib/index.umd.js +0 -120539
  54. package/lib/index.umd.min.js +0 -1
@@ -1,5 +1,3 @@
1
- ## XtBadge 徽标组件
2
-
3
1
  徽标组件,用于标记数字或状态。
4
2
 
5
3
  ## 基本用法
@@ -1,5 +1,3 @@
1
- ## XtBar 柱状图组件
2
-
3
1
  基于 ECharts 封装的柱状图组件,支持数据标记、缩放、反转、长标签等功能。
4
2
 
5
3
  ## 基本用法
@@ -7,7 +5,7 @@
7
5
  ::: demo 基本用法
8
6
  ```vue
9
7
  <template>
10
- <XtBar :chart-data="chartData" width="600px" height="400px" />
8
+ <div class="demo-container"><XtBar :chart-data="chartData" /></div>
11
9
  </template>
12
10
 
13
11
  <script>
@@ -39,7 +37,6 @@ export default {
39
37
  |------|------|--------|------|
40
38
  | `chartData` | Array | - | 图表数据,格式为 `[{ label, value }]` |
41
39
  | `fieldKeys` | Object | `{ label: "label", value: "value", data: "data" }` | 字段映射配置 |
42
- | `theme` | String | - | 主题,`dark` 或 `default` |
43
40
  | `size` | String | `medium` | 尺寸,`small` / `medium` / `large` |
44
41
  | `markPoint` | Boolean | `false` | 是否显示最大值/最小值标记 |
45
42
  | `unit` | String | `""` | 数据单位 |
@@ -58,7 +55,7 @@ export default {
58
55
  ::: demo 横向柱状图
59
56
  ```vue
60
57
  <template>
61
- <XtBar :chart-data="chartData" reverse />
58
+ <div class="demo-container"><XtBar :chart-data="chartData" reverse /></div>
62
59
  </template>
63
60
 
64
61
  <script>
@@ -83,7 +80,7 @@ export default {
83
80
  ::: demo 显示数据标记
84
81
  ```vue
85
82
  <template>
86
- <XtBar :chart-data="chartData" :mark-point="true" />
83
+ <div class="demo-container"><XtBar :chart-data="chartData" :mark-point="true" /></div>
87
84
  </template>
88
85
 
89
86
  <script>
@@ -109,7 +106,7 @@ export default {
109
106
  ::: demo 极简模式
110
107
  ```vue
111
108
  <template>
112
- <XtBar :chart-data="chartData" simple-mode />
109
+ <div class="demo-container"><XtBar :chart-data="chartData" simple-mode /></div>
113
110
  </template>
114
111
 
115
112
  <script>
@@ -133,7 +130,7 @@ export default {
133
130
  ::: demo 自定义字段映射
134
131
  ```vue
135
132
  <template>
136
- <XtBar :chart-data="chartData" :field-keys="{ label: 'name', value: 'score' }" />
133
+ <div class="demo-container"><XtBar :chart-data="chartData" :field-keys="{ label: 'name', value: 'score' }" /></div>
137
134
  </template>
138
135
 
139
136
  <script>
@@ -152,30 +149,6 @@ export default {
152
149
  ```
153
150
  :::
154
151
 
155
- ### 暗色主题
156
-
157
- ::: demo 暗色主题
158
- ```vue
159
- <template>
160
- <XtBar :chart-data="chartData" theme="dark" />
161
- </template>
162
-
163
- <script>
164
- export default {
165
- data() {
166
- return {
167
- chartData: [
168
- { value: 65, label: "张三" },
169
- { value: 78, label: "李四" },
170
- { value: 95, label: "王五" }
171
- ]
172
- }
173
- }
174
- }
175
- </script>
176
- ```
177
- :::
178
-
179
152
  ## 注意事项
180
153
 
181
154
  - 数据值大于等于 10000 时会自动转换为"万"单位显示
@@ -1,5 +1,3 @@
1
- ## XtButton 按钮组件
2
-
3
1
  按钮用于触发一个操作,如提交表单、打开对话框等。
4
2
 
5
3
  ## 基本用法
@@ -1,5 +1,3 @@
1
- ## XtCardItem 卡片项组件
2
-
3
1
  卡片项组件用于在卡片内展示一行数据,支持标签、数值和单位的展示。
4
2
 
5
3
  ## 基本用法
@@ -1,5 +1,3 @@
1
- ## XtCard 卡片组件
2
-
3
1
  卡片组件用于展示信息,通常包含标题和内容区域。
4
2
 
5
3
  ## 基本用法
@@ -12,23 +10,6 @@
12
10
  ```
13
11
  :::
14
12
 
15
- ## 属性说明
16
-
17
- | 属性 | 类型 | 默认值 | 说明 |
18
- |------|------|--------|------|
19
- | `title` | String | - | 卡片标题 |
20
- | `value` | String / Number | - | 卡片数值 |
21
- | `unit` | String | - | 数值单位 |
22
- | `noPadding` | Boolean | false | 是否取消内边距 |
23
-
24
- ## 插槽说明
25
-
26
- | 插槽名 | 说明 |
27
- |--------|------|
28
- | `default` | 自定义内容区域 |
29
- | `title` | 自定义标题区域 |
30
- | `value` | 自定义数值区域 |
31
-
32
13
  ## 示例
33
14
 
34
15
  ### 基础卡片
@@ -106,3 +87,20 @@
106
87
  </template>
107
88
  ```
108
89
  :::
90
+
91
+ ## 属性说明
92
+
93
+ | 属性 | 类型 | 默认值 | 说明 |
94
+ |------|------|--------|------|
95
+ | `title` | String | - | 卡片标题 |
96
+ | `value` | String / Number | - | 卡片数值 |
97
+ | `unit` | String | - | 数值单位 |
98
+ | `noPadding` | Boolean | false | 是否取消内边距 |
99
+
100
+ ## 插槽说明
101
+
102
+ | 插槽名 | 说明 |
103
+ |--------|------|
104
+ | `default` | 自定义内容区域 |
105
+ | `title` | 自定义标题区域 |
106
+ | `value` | 自定义数值区域 |
@@ -1,5 +1,3 @@
1
- ## XtChart 图表容器组件
2
-
3
1
  基于 ECharts 封装的图表容器组件,通过 `type` 属性切换不同图表类型(柱状图、折线图、饼图、组合图)。
4
2
 
5
3
  ## 基本用法
@@ -7,7 +5,7 @@
7
5
  ::: demo 基本用法
8
6
  ```vue
9
7
  <template>
10
- <XtChart type="bar" :chart-data="chartData" />
8
+ <div class="demo-container"><XtChart type="bar" :chart-data="chartData" /></div>
11
9
  </template>
12
10
 
13
11
  <script>
@@ -41,7 +39,7 @@ export default {
41
39
  ::: demo 柱状图
42
40
  ```vue
43
41
  <template>
44
- <XtChart type="bar" :chart-data="chartData" />
42
+ <div class="demo-container"><XtChart type="bar" :chart-data="chartData" /></div>
45
43
  </template>
46
44
 
47
45
  <script>
@@ -67,7 +65,7 @@ export default {
67
65
  ::: demo 折线图
68
66
  ```vue
69
67
  <template>
70
- <XtChart type="line" :chart-data="chartData" />
68
+ <div class="demo-container"><XtChart type="line" :chart-data="chartData" /></div>
71
69
  </template>
72
70
 
73
71
  <script>
@@ -93,7 +91,7 @@ export default {
93
91
  ::: demo 饼图
94
92
  ```vue
95
93
  <template>
96
- <XtChart type="pie" :chart-data="chartData" />
94
+ <div class="demo-container"><XtChart type="pie" :chart-data="chartData" /></div>
97
95
  </template>
98
96
 
99
97
  <script>
@@ -118,7 +116,7 @@ export default {
118
116
  ::: demo 组合图
119
117
  ```vue
120
118
  <template>
121
- <XtChart type="multi" :chart-data="chartData" />
119
+ <div class="demo-container"><XtChart type="multi" :chart-data="chartData" /></div>
122
120
  </template>
123
121
 
124
122
  <script>
@@ -152,30 +150,6 @@ export default {
152
150
  ```
153
151
  :::
154
152
 
155
- ### 暗色主题
156
-
157
- ::: demo 暗色主题
158
- ```vue
159
- <template>
160
- <XtChart type="bar" :chart-data="chartData" theme="dark" />
161
- </template>
162
-
163
- <script>
164
- export default {
165
- data() {
166
- return {
167
- chartData: [
168
- { value: 65, label: "张三" },
169
- { value: 78, label: "李四" },
170
- { value: 95, label: "王五" }
171
- ]
172
- }
173
- }
174
- }
175
- </script>
176
- ```
177
- :::
178
-
179
153
  ## 注意事项
180
154
 
181
155
  - `XtChart` 是一个容器组件,会根据 `type` 属性渲染对应的子组件(XtBar/XtLine/XtPie/XtMulti)
@@ -1,5 +1,3 @@
1
- ## XtConfigProvider 配置提供者
2
-
3
1
  配置提供者组件用于全局配置主题和样式变量。
4
2
 
5
3
  ## 基本用法