xt-element-ui 1.3.2 → 1.3.4

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 (112) hide show
  1. package/CHANGELOG.md +72 -72
  2. package/LICENSE +21 -21
  3. package/README.md +240 -240
  4. package/docs/README.md +100 -100
  5. package/docs/components/base/xt-button.md +114 -114
  6. package/docs/components/base/xt-card-item.md +104 -104
  7. package/docs/components/base/xt-card.md +108 -108
  8. package/docs/components/base/xt-config-provider.md +199 -199
  9. package/docs/components/base/xt-flex-box.md +115 -115
  10. package/docs/components/base/xt-grid-box.md +302 -302
  11. package/docs/components/base/xt-input.md +150 -150
  12. package/docs/components/base/xt-map-provider.md +23 -0
  13. package/docs/components/base/xt-map.md +331 -331
  14. package/docs/components/base/xt-step-price.md +165 -165
  15. package/docs/components/base/xt-text.md +212 -212
  16. package/docs/components/base/xt-time.md +165 -165
  17. package/docs/components/extend/ex-bar.md +67 -67
  18. package/docs/components/extend/ex-button.md +62 -62
  19. package/docs/components/extend/ex-card.md +86 -86
  20. package/docs/components/extend/ex-chart.md +463 -463
  21. package/docs/components/extend/ex-icon.md +189 -189
  22. package/docs/components/extend/ex-line.md +70 -70
  23. package/docs/components/extend/ex-multi.md +155 -155
  24. package/docs/components/extend/ex-pie.md +69 -69
  25. package/docs/components/extend/ex-select-tree.md +210 -210
  26. package/docs/components/extend/ex-table.md +590 -590
  27. package/docs/components/extend/ex-upload.md +134 -134
  28. package/docs/components/utils/size.md +147 -147
  29. package/docs/components/utils/theme.md +182 -182
  30. package/lib/index.common.js +4131 -4162
  31. package/lib/index.css +1 -1
  32. package/lib/index.umd.js +4099 -4129
  33. package/lib/index.umd.min.js +3 -3
  34. package/package.json +80 -81
  35. package/src/components/ex-button/index.js +7 -7
  36. package/src/components/ex-button/index.vue +66 -66
  37. package/src/components/ex-button/style/index.scss +67 -67
  38. package/src/components/ex-card/index.js +7 -7
  39. package/src/components/ex-card/index.vue +68 -68
  40. package/src/components/ex-card/style/index.scss +73 -73
  41. package/src/components/ex-chart/index.js +7 -7
  42. package/src/components/ex-chart/index.vue +136 -136
  43. package/src/components/ex-date-picker/index.js +7 -7
  44. package/src/components/ex-icon/index.js +7 -7
  45. package/src/components/ex-icon/index.vue +168 -168
  46. package/src/components/ex-icon/style/index.scss +7 -7
  47. package/src/components/ex-page/index.js +7 -7
  48. package/src/components/ex-select-tree/index.js +7 -7
  49. package/src/components/ex-table/ExTableCell.vue +22 -22
  50. package/src/components/ex-table/index.js +7 -7
  51. package/src/components/ex-table/virtualScrollData.js +35 -35
  52. package/src/components/ex-upload/index.js +7 -7
  53. package/src/components/index.scss +39 -39
  54. package/src/components/xt-button/index.js +7 -7
  55. package/src/components/xt-button/index.vue +97 -97
  56. package/src/components/xt-card/index.js +7 -7
  57. package/src/components/xt-card/style/index.scss +48 -48
  58. package/src/components/xt-card-item/index.js +7 -7
  59. package/src/components/xt-card-item/style/index copy.scss +71 -71
  60. package/src/components/xt-card-item/style/index.scss +82 -82
  61. package/src/components/xt-config-provider/index.js +7 -7
  62. package/src/components/xt-config-provider/index.vue +362 -362
  63. package/src/components/xt-config-provider/style/index.scss +11 -11
  64. package/src/components/xt-flex-box/index.js +7 -7
  65. package/src/components/xt-flex-box/style/index.scss +81 -81
  66. package/src/components/xt-grid-box/index.js +7 -7
  67. package/src/components/xt-grid-box/style/index.scss +92 -92
  68. package/src/components/xt-grid-item/index.js +7 -7
  69. package/src/components/xt-grid-item/index.vue +106 -106
  70. package/src/components/xt-input/index.js +7 -7
  71. package/src/components/xt-input/index.vue +66 -66
  72. package/src/components/xt-input/style/index.scss +84 -84
  73. package/src/components/xt-map/adapters/amap.js +235 -235
  74. package/src/components/xt-map/adapters/baidu.js +254 -254
  75. package/src/components/xt-map/adapters/base.js +267 -267
  76. package/src/components/xt-map/adapters/index.js +29 -29
  77. package/src/components/xt-map/adapters/tianditu.js +242 -242
  78. package/src/components/xt-map/config/xt-map-config.js +197 -197
  79. package/src/components/xt-map/index.js +8 -30
  80. package/src/components/xt-map/index.vue +351 -351
  81. package/src/components/xt-map/loaders/script-loader.js +114 -114
  82. package/src/components/xt-map/provider.vue +200 -200
  83. package/src/components/xt-map/style/index.scss +77 -77
  84. package/src/components/xt-map-provider/index.js +8 -0
  85. package/src/components/xt-step-price/index.js +10 -10
  86. package/src/components/xt-step-price/index.vue +272 -272
  87. package/src/components/xt-step-price/style/index.scss +123 -123
  88. package/src/components/xt-step-price-item/index.js +7 -7
  89. package/src/components/xt-step-price-item/index.vue +187 -187
  90. package/src/components/xt-text/index.js +7 -7
  91. package/src/components/xt-text/index.vue +1 -1
  92. package/src/components/xt-text/style/index.scss +92 -92
  93. package/src/components/xt-time/index.js +7 -7
  94. package/src/components/xt-time/index.vue +313 -313
  95. package/src/components/xt-time/style/index.scss +23 -23
  96. package/src/config/element-registry.js +135 -135
  97. package/src/index.js +162 -178
  98. package/src/styles/css-variables.scss +257 -257
  99. package/src/styles/theme/background.scss +5 -5
  100. package/src/styles/theme/border-radius.scss +3 -3
  101. package/src/styles/theme/borders.scss +3 -3
  102. package/src/styles/theme/colors.scss +101 -101
  103. package/src/styles/theme/component-variables.scss +69 -69
  104. package/src/styles/theme/dark-variables.scss +28 -28
  105. package/src/styles/theme/font.scss +12 -12
  106. package/src/styles/theme/index.scss +11 -11
  107. package/src/styles/theme/shadows.scss +2 -2
  108. package/src/styles/theme/spacing.scss +4 -4
  109. package/src/styles/theme/transitions.scss +2 -2
  110. package/src/styles/theme/typography.scss +4 -4
  111. package/src/styles/variables-export.scss +85 -85
  112. package/src/utils/index.js +191 -202
@@ -1,150 +1,150 @@
1
- ## XtInput 输入框组件
2
-
3
- 输入框组件用于收集用户输入的信息。
4
-
5
- ## 基本用法
6
-
7
- ::: demo 基本用法
8
- ```vue
9
- <template>
10
- <XtInput v-model="inputValue" placeholder="请输入内容"></XtInput>
11
- </template>
12
-
13
- <script>
14
- export default {
15
- data() {
16
- return {
17
- inputValue: ''
18
- }
19
- }
20
- }
21
- </script>
22
- ```
23
- :::
24
-
25
- ## 属性说明
26
- | 属性 | 类型 | 默认值 | 说明 |
27
- |------|------|--------|------|
28
- | `value` | String / Number | - | 输入值(支持 v-model) |
29
- | `placeholder` | String | '请输入内容' | 占位提示文本 |
30
- | `color` | String | - | 自定义聚焦颜色 |
31
-
32
- ## 示例
33
-
34
- ### 基础输入框
35
- ::: demo 基础输入框
36
- ```vue
37
- <template>
38
- <XtInput v-model="username" placeholder="请输入用户名"></XtInput>
39
- </template>
40
-
41
- <script>
42
- export default {
43
- data() {
44
- return {
45
- username: ''
46
- }
47
- }
48
- }
49
- </script>
50
- ```
51
- :::
52
-
53
- ### 自定义占位符
54
-
55
- ::: demo 自定义占位符
56
- ```vue
57
- <template>
58
- <XtInput v-model="email" placeholder="请输入您的邮箱地址"></XtInput>
59
- </template>
60
-
61
- <script>
62
- export default {
63
- data() {
64
- return {
65
- email: ''
66
- }
67
- }
68
- }
69
- </script>
70
- ```
71
- :::
72
-
73
- ### 自定义聚焦颜色
74
- ::: demo 自定义聚焦颜色
75
- ```vue
76
- <template>
77
- <div style="display: flex; gap: 16px;">
78
- <XtInput v-model="input1" placeholder="默认颜色"></XtInput>
79
- <XtInput v-model="input2" placeholder="绿色主题" color="#52c41a"></XtInput>
80
- <XtInput v-model="input3" placeholder="橙色主题" color="#faad14"></XtInput>
81
- </div>
82
- </template>
83
-
84
- <script>
85
- export default {
86
- data() {
87
- return {
88
- input1: '',
89
- input2: '',
90
- input3: ''
91
- }
92
- }
93
- }
94
- </script>
95
- ```
96
- :::
97
-
98
- ### 输入框组
99
-
100
- ::: demo 输入框组
101
- ```vue
102
- <template>
103
- <div style="display: flex; flex-direction: column; gap: 12px;">
104
- <XtInput v-model="name" placeholder="姓名"></XtInput>
105
- <XtInput v-model="phone" placeholder="手机"></XtInput>
106
- <XtInput v-model="address" placeholder="地址"></XtInput>
107
- </div>
108
- </template>
109
-
110
- <script>
111
- export default {
112
- data() {
113
- return {
114
- name: '',
115
- phone: '',
116
- address: ''
117
- }
118
- }
119
- }
120
- </script>
121
- ```
122
- :::
123
-
124
- ### 监听输入事件
125
-
126
- ::: demo 监听输入事件
127
- ```vue
128
- <template>
129
- <div>
130
- <XtInput :value="inputValue" placeholder="实时监听输入" @input="handleInput"></XtInput>
131
- <p style="margin-top: 12px;">输入长度: {{ inputValue.length }}</p>
132
- </div>
133
- </template>
134
-
135
- <script>
136
- export default {
137
- data() {
138
- return {
139
- inputValue: ''
140
- }
141
- },
142
- methods: {
143
- handleInput(value) {
144
- this.inputValue = value
145
- }
146
- }
147
- }
148
- </script>
149
- ```
150
- :::
1
+ ## XtInput 输入框组件
2
+
3
+ 输入框组件用于收集用户输入的信息。
4
+
5
+ ## 基本用法
6
+
7
+ ::: demo 基本用法
8
+ ```vue
9
+ <template>
10
+ <XtInput v-model="inputValue" placeholder="请输入内容"></XtInput>
11
+ </template>
12
+
13
+ <script>
14
+ export default {
15
+ data() {
16
+ return {
17
+ inputValue: ''
18
+ }
19
+ }
20
+ }
21
+ </script>
22
+ ```
23
+ :::
24
+
25
+ ## 属性说明
26
+ | 属性 | 类型 | 默认值 | 说明 |
27
+ |------|------|--------|------|
28
+ | `value` | String / Number | - | 输入值(支持 v-model) |
29
+ | `placeholder` | String | '请输入内容' | 占位提示文本 |
30
+ | `color` | String | - | 自定义聚焦颜色 |
31
+
32
+ ## 示例
33
+
34
+ ### 基础输入框
35
+ ::: demo 基础输入框
36
+ ```vue
37
+ <template>
38
+ <XtInput v-model="username" placeholder="请输入用户名"></XtInput>
39
+ </template>
40
+
41
+ <script>
42
+ export default {
43
+ data() {
44
+ return {
45
+ username: ''
46
+ }
47
+ }
48
+ }
49
+ </script>
50
+ ```
51
+ :::
52
+
53
+ ### 自定义占位符
54
+
55
+ ::: demo 自定义占位符
56
+ ```vue
57
+ <template>
58
+ <XtInput v-model="email" placeholder="请输入您的邮箱地址"></XtInput>
59
+ </template>
60
+
61
+ <script>
62
+ export default {
63
+ data() {
64
+ return {
65
+ email: ''
66
+ }
67
+ }
68
+ }
69
+ </script>
70
+ ```
71
+ :::
72
+
73
+ ### 自定义聚焦颜色
74
+ ::: demo 自定义聚焦颜色
75
+ ```vue
76
+ <template>
77
+ <div style="display: flex; gap: 16px;">
78
+ <XtInput v-model="input1" placeholder="默认颜色"></XtInput>
79
+ <XtInput v-model="input2" placeholder="绿色主题" color="#52c41a"></XtInput>
80
+ <XtInput v-model="input3" placeholder="橙色主题" color="#faad14"></XtInput>
81
+ </div>
82
+ </template>
83
+
84
+ <script>
85
+ export default {
86
+ data() {
87
+ return {
88
+ input1: '',
89
+ input2: '',
90
+ input3: ''
91
+ }
92
+ }
93
+ }
94
+ </script>
95
+ ```
96
+ :::
97
+
98
+ ### 输入框组
99
+
100
+ ::: demo 输入框组
101
+ ```vue
102
+ <template>
103
+ <div style="display: flex; flex-direction: column; gap: 12px;">
104
+ <XtInput v-model="name" placeholder="姓名"></XtInput>
105
+ <XtInput v-model="phone" placeholder="手机"></XtInput>
106
+ <XtInput v-model="address" placeholder="地址"></XtInput>
107
+ </div>
108
+ </template>
109
+
110
+ <script>
111
+ export default {
112
+ data() {
113
+ return {
114
+ name: '',
115
+ phone: '',
116
+ address: ''
117
+ }
118
+ }
119
+ }
120
+ </script>
121
+ ```
122
+ :::
123
+
124
+ ### 监听输入事件
125
+
126
+ ::: demo 监听输入事件
127
+ ```vue
128
+ <template>
129
+ <div>
130
+ <XtInput :value="inputValue" placeholder="实时监听输入" @input="handleInput"></XtInput>
131
+ <p style="margin-top: 12px;">输入长度: {{ inputValue.length }}</p>
132
+ </div>
133
+ </template>
134
+
135
+ <script>
136
+ export default {
137
+ data() {
138
+ return {
139
+ inputValue: ''
140
+ }
141
+ },
142
+ methods: {
143
+ handleInput(value) {
144
+ this.inputValue = value
145
+ }
146
+ }
147
+ }
148
+ </script>
149
+ ```
150
+ :::
@@ -0,0 +1,23 @@
1
+ ## XtMapProvider 统一地图提供组件
2
+
3
+ ### 全局配置(推荐)
4
+
5
+ 使用 `XtMapProvider` 统一配置项目中所有地图,无需在每个 `<XtMap>` 上重复写密钥:
6
+
7
+ ```vue
8
+ <template>
9
+ <XtMapProvider
10
+ provider="amap"
11
+ api-key="你的高德密钥"
12
+ security-js-code="你的安全密钥"
13
+ theme="light"
14
+ >
15
+ <div style="width: 100%; height: 500px;">
16
+ <XtMap :center="[116.397428, 39.90923]" :zoom="11" />
17
+ </div>
18
+ <div style="width: 100%; height: 300px; margin-top: 12px;">
19
+ <XtMap :center="[121.473701, 31.230416]" :zoom="12" map-type="satellite" />
20
+ </div>
21
+ </XtMapProvider>
22
+ </template>
23
+ ```