@varlet/ui 1.23.0 → 1.23.4-alpha.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.23.3](https://github.com/haoziqaq/varlet/compare/v1.23.2...v1.23.3) (2021-11-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli/jest:** add watchAll mode ([84ebb4e](https://github.com/haoziqaq/varlet/commit/84ebb4efe823cb9d7f22995d429b82d8fc3e05c8))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.23.2](https://github.com/haoziqaq/varlet/compare/v1.23.0...v1.23.2) (2021-11-20)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **ui/space:** modify the behavior of space in space-around and space-between modes ([5abf617](https://github.com/haoziqaq/varlet/commit/5abf617b009fbb63409724a3394b207949cc3a2c))
23
+
24
+
25
+
26
+
27
+
6
28
  # [1.23.0](https://github.com/haoziqaq/varlet/compare/v1.22.10...v1.23.0) (2021-11-19)
7
29
 
8
30
 
package/README.en-US.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
  <a href="https://varlet.gitee.io/varlet-ui/">
3
- <img src="https://varlet.gitee.io/varlet-ui/varlet_icon.png" width="150">
3
+ <img src="https://varlet.gitee.io/varlet-ui/logo.svg" width="150">
4
4
  </a>
5
5
  <h1>VARLET</h1>
6
6
  <p>Material design mobile component library for Vue3</p>
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
  <a href="https://varlet.gitee.io/varlet-ui/">
3
- <img src="https://varlet.gitee.io/varlet-ui/varlet_icon.png" width="150">
3
+ <img src="https://varlet.gitee.io/varlet-ui/logo.svg" width="150">
4
4
  </a>
5
5
  <h1>VARLET</h1>
6
6
  <p>基于Vue3的Material design风格移动端组件库</p>
package/es/space/Space.js CHANGED
@@ -41,12 +41,22 @@ export default defineComponent({
41
41
  var margin = '0';
42
42
 
43
43
  if (direction === 'row') {
44
- if (index === 0) {
45
- margin = y / 2 + "px " + x / 2 + "px " + y / 2 + "px 0";
46
- } else if (index === lastIndex) {
47
- margin = y / 2 + "px 0 " + y / 2 + "px " + x / 2 + "px";
48
- } else {
44
+ if (justify === 'start' || justify === 'center' || justify === 'end') {
45
+ if (index !== lastIndex) {
46
+ margin = y / 2 + "px " + x + "px " + y / 2 + "px 0";
47
+ } else {
48
+ margin = y / 2 + "px 0";
49
+ }
50
+ } else if (justify === 'space-around') {
49
51
  margin = y / 2 + "px " + x / 2 + "px";
52
+ } else if (justify === 'space-between') {
53
+ if (index === 0) {
54
+ margin = y / 2 + "px " + x / 2 + "px " + y / 2 + "px 0";
55
+ } else if (index === lastIndex) {
56
+ margin = y / 2 + "px 0 " + y / 2 + "px " + x / 2 + "px";
57
+ } else {
58
+ margin = y / 2 + "px " + x / 2 + "px";
59
+ }
50
60
  }
51
61
  }
52
62
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "1.22.10",
4
+ "version": "1.23.3",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
package/lib/index.js ADDED
@@ -0,0 +1,195 @@
1
+ const ActionSheet = require('./action-sheet')
2
+ const AppBar = require('./app-bar')
3
+ const BackTop = require('./back-top')
4
+ const Badge = require('./badge')
5
+ const Button = require('./button')
6
+ const Card = require('./card')
7
+ const Cell = require('./cell')
8
+ const Checkbox = require('./checkbox')
9
+ const CheckboxGroup = require('./checkbox-group')
10
+ const Chip = require('./chip')
11
+ const Col = require('./col')
12
+ const Collapse = require('./collapse')
13
+ const CollapseItem = require('./collapse-item')
14
+ const Context = require('./context')
15
+ const Countdown = require('./countdown')
16
+ const Counter = require('./counter')
17
+ const DatePicker = require('./date-picker')
18
+ const Dialog = require('./dialog')
19
+ const Divider = require('./divider')
20
+ const Form = require('./form')
21
+ const FormDetails = require('./form-details')
22
+ const Icon = require('./icon')
23
+ const Image = require('./image')
24
+ const ImagePreview = require('./image-preview')
25
+ const IndexAnchor = require('./index-anchor')
26
+ const IndexBar = require('./index-bar')
27
+ const Input = require('./input')
28
+ const Lazy = require('./lazy')
29
+ const List = require('./list')
30
+ const Loading = require('./loading')
31
+ const Locale = require('./locale')
32
+ const Menu = require('./menu')
33
+ const Option = require('./option')
34
+ const Pagination = require('./pagination')
35
+ const Picker = require('./picker')
36
+ const Popup = require('./popup')
37
+ const Progress = require('./progress')
38
+ const PullRefresh = require('./pull-refresh')
39
+ const Radio = require('./radio')
40
+ const RadioGroup = require('./radio-group')
41
+ const Rate = require('./rate')
42
+ const Ripple = require('./ripple')
43
+ const Row = require('./row')
44
+ const Select = require('./select')
45
+ const Skeleton = require('./skeleton')
46
+ const Slider = require('./slider')
47
+ const Snackbar = require('./snackbar')
48
+ const Space = require('./space')
49
+ const Step = require('./step')
50
+ const Steps = require('./steps')
51
+ const Sticky = require('./sticky')
52
+ const StyleProvider = require('./style-provider')
53
+ const Swipe = require('./swipe')
54
+ const SwipeItem = require('./swipe-item')
55
+ const Switch = require('./switch')
56
+ const Tab = require('./tab')
57
+ const TabItem = require('./tab-item')
58
+ const Table = require('./table')
59
+ const Tabs = require('./tabs')
60
+ const TabsItems = require('./tabs-items')
61
+ const TimePicker = require('./time-picker')
62
+ const Uploader = require('./uploader')
63
+
64
+
65
+ function install(app) {
66
+ ActionSheet.install && app.use(ActionSheet)
67
+ AppBar.install && app.use(AppBar)
68
+ BackTop.install && app.use(BackTop)
69
+ Badge.install && app.use(Badge)
70
+ Button.install && app.use(Button)
71
+ Card.install && app.use(Card)
72
+ Cell.install && app.use(Cell)
73
+ Checkbox.install && app.use(Checkbox)
74
+ CheckboxGroup.install && app.use(CheckboxGroup)
75
+ Chip.install && app.use(Chip)
76
+ Col.install && app.use(Col)
77
+ Collapse.install && app.use(Collapse)
78
+ CollapseItem.install && app.use(CollapseItem)
79
+ Context.install && app.use(Context)
80
+ Countdown.install && app.use(Countdown)
81
+ Counter.install && app.use(Counter)
82
+ DatePicker.install && app.use(DatePicker)
83
+ Dialog.install && app.use(Dialog)
84
+ Divider.install && app.use(Divider)
85
+ Form.install && app.use(Form)
86
+ FormDetails.install && app.use(FormDetails)
87
+ Icon.install && app.use(Icon)
88
+ Image.install && app.use(Image)
89
+ ImagePreview.install && app.use(ImagePreview)
90
+ IndexAnchor.install && app.use(IndexAnchor)
91
+ IndexBar.install && app.use(IndexBar)
92
+ Input.install && app.use(Input)
93
+ Lazy.install && app.use(Lazy)
94
+ List.install && app.use(List)
95
+ Loading.install && app.use(Loading)
96
+ Locale.install && app.use(Locale)
97
+ Menu.install && app.use(Menu)
98
+ Option.install && app.use(Option)
99
+ Pagination.install && app.use(Pagination)
100
+ Picker.install && app.use(Picker)
101
+ Popup.install && app.use(Popup)
102
+ Progress.install && app.use(Progress)
103
+ PullRefresh.install && app.use(PullRefresh)
104
+ Radio.install && app.use(Radio)
105
+ RadioGroup.install && app.use(RadioGroup)
106
+ Rate.install && app.use(Rate)
107
+ Ripple.install && app.use(Ripple)
108
+ Row.install && app.use(Row)
109
+ Select.install && app.use(Select)
110
+ Skeleton.install && app.use(Skeleton)
111
+ Slider.install && app.use(Slider)
112
+ Snackbar.install && app.use(Snackbar)
113
+ Space.install && app.use(Space)
114
+ Step.install && app.use(Step)
115
+ Steps.install && app.use(Steps)
116
+ Sticky.install && app.use(Sticky)
117
+ StyleProvider.install && app.use(StyleProvider)
118
+ Swipe.install && app.use(Swipe)
119
+ SwipeItem.install && app.use(SwipeItem)
120
+ Switch.install && app.use(Switch)
121
+ Tab.install && app.use(Tab)
122
+ TabItem.install && app.use(TabItem)
123
+ Table.install && app.use(Table)
124
+ Tabs.install && app.use(Tabs)
125
+ TabsItems.install && app.use(TabsItems)
126
+ TimePicker.install && app.use(TimePicker)
127
+ Uploader.install && app.use(Uploader)
128
+ }
129
+
130
+
131
+ module.exports = {
132
+ install,
133
+ ActionSheet,
134
+ AppBar,
135
+ BackTop,
136
+ Badge,
137
+ Button,
138
+ Card,
139
+ Cell,
140
+ Checkbox,
141
+ CheckboxGroup,
142
+ Chip,
143
+ Col,
144
+ Collapse,
145
+ CollapseItem,
146
+ Context,
147
+ Countdown,
148
+ Counter,
149
+ DatePicker,
150
+ Dialog,
151
+ Divider,
152
+ Form,
153
+ FormDetails,
154
+ Icon,
155
+ Image,
156
+ ImagePreview,
157
+ IndexAnchor,
158
+ IndexBar,
159
+ Input,
160
+ Lazy,
161
+ List,
162
+ Loading,
163
+ Locale,
164
+ Menu,
165
+ Option,
166
+ Pagination,
167
+ Picker,
168
+ Popup,
169
+ Progress,
170
+ PullRefresh,
171
+ Radio,
172
+ RadioGroup,
173
+ Rate,
174
+ Ripple,
175
+ Row,
176
+ Select,
177
+ Skeleton,
178
+ Slider,
179
+ Snackbar,
180
+ Space,
181
+ Step,
182
+ Steps,
183
+ Sticky,
184
+ StyleProvider,
185
+ Swipe,
186
+ SwipeItem,
187
+ Switch,
188
+ Tab,
189
+ TabItem,
190
+ Table,
191
+ Tabs,
192
+ TabsItems,
193
+ TimePicker,
194
+ Uploader
195
+ }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "1.23.0",
3
+ "version": "1.23.4-alpha.0+4a424d4c",
4
4
  "description": "A material like components library",
5
5
  "module": "es/index.js",
6
+ "main": "lib/index.js",
6
7
  "typings": "types/index.d.ts",
7
8
  "vetur": {
8
9
  "tags": "highlight/tags.json",
@@ -41,14 +42,15 @@
41
42
  "compile": "varlet-cli compile",
42
43
  "create": "varlet-cli create",
43
44
  "test": "varlet-cli jest",
44
- "test:watch": "varlet-cli jest -w"
45
+ "test:watch": "varlet-cli jest -w",
46
+ "test:watchAll": "varlet-cli jest -wa"
45
47
  },
46
48
  "peerDependencies": {
47
49
  "vue": "^3.2.0"
48
50
  },
49
- "gitHead": "6ed02c99899e1c2d716c303be1a860b0ed2feff5",
51
+ "gitHead": "4a424d4c066f7de69cbf561a5bc9279862739637",
50
52
  "devDependencies": {
51
- "@varlet/cli": "^1.23.0"
53
+ "@varlet/cli": "^1.23.4-alpha.0+4a424d4c"
52
54
  },
53
55
  "dependencies": {
54
56
  "dayjs": "^1.10.4",