File tree Expand file tree Collapse file tree 7 files changed +44
-2
lines changed
Expand file tree Collapse file tree 7 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 1515
1616 <!-- 使用 dynamic direction 值 -->
1717 <tiny-space class =" tiny-space" :size =" [rowValue, columnValue]" :wrap =" true" >
18- <tiny-button style = " margin : 0 " v-for =" n in 15" :key =" n" >按钮 {{ n }}</tiny-button >
18+ <tiny-button v-for =" n in 15" :key =" n" >按钮 {{ n }}</tiny-button >
1919 </tiny-space >
2020 </div >
2121</template >
Original file line number Diff line number Diff line change 1515
1616 <!-- 使用 dynamic direction 值 -->
1717 <tiny-space class =" tiny-space" :size =" [rowValue, columnValue]" :wrap =" true" >
18- <tiny-button style = " margin : 0 " v-for =" n in 15" :key =" n" >按钮 {{ n }}</tiny-button >
18+ <tiny-button v-for =" n in 15" :key =" n" >按钮 {{ n }}</tiny-button >
1919 </tiny-space >
2020 </div >
2121</template >
Original file line number Diff line number Diff line change 123123@import ' ./skeleton-item/index.less' ;
124124@import ' ./slide-img/index.less' ;
125125@import ' ./slider/index.less' ;
126+ @import ' ./space/index.less' ;
126127@import ' ./split/index.less' ;
127128@import ' ./statistic/index.less' ;
128129@import ' ./steps/index.less' ;
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright (c) 2022 - present TinyVue Authors.
3+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
4+ *
5+ * Use of this source code is governed by an MIT-style license.
6+ *
7+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10+ *
11+ */
12+
13+ @import ' ../custom.less' ;
14+ @import ' ./vars.less' ;
15+
16+ @space-prefix-cls : ~ ' @{css-prefix} space' ;
17+
18+ .@{space-prefix-cls} {
19+ .inject-Space-vars ();
20+ // TODO: 需要和 button 组件的间距变量统一(button组件后续大版本变更,需要去除默认间距8px),变更后,再将此代码删除
21+ && .tiny-button + .tiny-button {
22+ margin-left : var (--tv-Space-margin );
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright (c) 2022 - present TinyVue Authors.
3+ * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
4+ *
5+ * Use of this source code is governed by an MIT-style license.
6+ *
7+ * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8+ * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9+ * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10+ *
11+ */
12+
13+ .inject-Space-vars () {
14+ --tv-Space-margin : 0px ;
15+ }
Original file line number Diff line number Diff line change 5252@import ' ./slide-bar/vars.less' ;
5353@import ' ./tooltip/vars.less' ;
5454@import ' ./split/vars.less' ;
55+ @import ' ./space/vars.less' ;
5556@import ' ./steps/vars.less' ;
5657@import ' ./switch/vars.less' ;
5758@import ' ./tabs/vars.less' ;
Original file line number Diff line number Diff line change 1111 */
1212
1313import Space from './src/index'
14+ import '@opentiny/vue-theme/space/index.less'
1415import { version } from './package.json'
1516
1617/* istanbul ignore next */
You can’t perform that action at this time.
0 commit comments