Skip to content

Commit 8d2a9a2

Browse files
committed
feat: support react and add new components: rich-text-editor/color-picker/divider/calendar-view
1 parent 2041a44 commit 8d2a9a2

File tree

1,818 files changed

+32335
-24517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,818 files changed

+32335
-24517
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ coverage/
1414
/packages/vue/mobile.ts
1515
/packages/vue/mobile-first.ts
1616
/packages/vue/app.ts
17+
/packages/vue-icon-saas/src
18+
/packages/vue-icon-saas/index.ts
1719

1820
/packages/react/index.ts
1921
/packages/react/pc.ts

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"useTabs": false,
1212
"tabWidth": 2,
1313
"proseWrap": "preserve",
14+
"arrowParens": "always",
1415
"overrides": [
1516
{
1617
"files": ".prettierrc",
@@ -19,4 +20,4 @@
1920
}
2021
}
2122
]
22-
}
23+
}

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@
8181
"bold": false,
8282
"italic": false
8383
}
84-
]
84+
],
85+
"vue.codeActions.enabled": false
8586
}

examples/docs/newsrc/pc.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
</div>
9898
</tiny-floatbar>
9999
<!-- 切换主题 -->
100-
<tiny-dropdown class="!fixed bottom20 right140" @item-click="changeTheme">
100+
<tiny-dropdown class="!fixed bottom20 right140" :show-icon="false" @item-click="changeTheme">
101101
<span title="切换主题">
102102
<SvgTheme></SvgTheme>
103103
</span>

examples/docs/newsrc/uses/useMonaco.js

-31
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<tiny-badge data="我的待办" :value="0"></tiny-badge>
3+
</template>
4+
5+
<script>
6+
import { Badge } from '@opentiny/vue'
7+
8+
export default {
9+
components: {
10+
TinyBadge: Badge
11+
}
12+
}
13+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template>
2+
<div>
3+
<tiny-button type="primary" banner native-type="submit">默认按钮</tiny-button>
4+
<tiny-button type="primary" custom-class="mt-4" banner plain>线性按钮</tiny-button>
5+
</div>
6+
</template>
7+
8+
<script>
9+
import { Button } from '@opentiny/vue'
10+
11+
export default {
12+
components: {
13+
TinyButton: Button
14+
}
15+
}
16+
</script>

examples/docs/resources/mobile-first/app/button/button-class.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="demo">
33
<tiny-button>默认按钮</tiny-button>
4-
<tiny-button button-class="text-color-brand-active bg-color-bg-3"> 主要按钮 </tiny-button>
4+
<tiny-button custom-class="text-color-brand-active bg-color-bg-3"> 主要按钮 </tiny-button>
55
</div>
66
</template>
77

examples/docs/resources/mobile-first/app/button/image.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
},
1515
data() {
1616
return {
17-
image: 'webnova/static/images/hae-logo.png'
17+
image: '/static/images/hae-logo.png'
1818
}
1919
}
2020
}

examples/docs/resources/mobile-first/app/button/slot-default.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
},
2424
data() {
2525
return {
26-
image: 'webnova/static/images/hae-logo.png'
26+
image: '/static/images/hae-logo.png'
2727
}
2828
}
2929
}

examples/docs/resources/mobile-first/app/button/webdoc/button.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default {
115115
codeFiles: ['click.vue']
116116
},
117117
{
118-
demoId: 'dynamic-disable-button',
118+
demoId: 'dynamic-disabled',
119119
name: {
120120
'zh-CN': '动态禁用按钮',
121121
'en-US': 'events'
@@ -124,7 +124,19 @@ export default {
124124
'zh-CN': '<p>设置 <code>disabled</code>属性为 true 后,可以禁用按钮。<p>',
125125
'en-US': '<p>bbutton click</p>'
126126
},
127-
codeFiles: ['dynamic-disable-button.vue']
127+
codeFiles: ['dynamic-disabled.vue']
128+
},
129+
{
130+
demoId: 'banner',
131+
name: {
132+
'zh-CN': '通知栏按钮',
133+
'en-US': 'events'
134+
},
135+
desc: {
136+
'zh-CN': '<p>通过添加<code>banner</code>属性设置通栏按钮<p>',
137+
'en-US': '<p>bbutton click</p>'
138+
},
139+
codeFiles: ['banner.vue']
128140
}
129141
],
130142
apis: []

examples/docs/resources/mobile-first/app/carousel/close-loop.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
<div class="w-80">
33
<tiny-carousel aspect-ratio="2:1" :loop="false">
44
<tiny-carousel-item class="">
5-
<img src="webnova/static/images/dsj.png" alt="" />
5+
<img src="/static/images/dsj.png" alt="" />
66
</tiny-carousel-item>
77
<tiny-carousel-item class="">
8-
<img src="webnova/static/images/jz.png" alt="" />
8+
<img src="/static/images/jz.png" alt="" />
99
</tiny-carousel-item>
1010
<tiny-carousel-item class="">
11-
<img src="webnova/static/images/ld.png" alt="" />
11+
<img src="/static/images/ld.png" alt="" />
1212
</tiny-carousel-item>
1313
<tiny-carousel-item class="">
14-
<img src="webnova/static/images/px.png" alt="" />
14+
<img src="/static/images/px.png" alt="" />
1515
</tiny-carousel-item>
1616
</tiny-carousel>
1717
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div>
3+
<tiny-cell :data="data"></tiny-cell>
4+
</div>
5+
</template>
6+
7+
<script>
8+
import { Cell } from '@opentiny/vue'
9+
10+
export default {
11+
components: {
12+
TinyCell: Cell
13+
},
14+
data() {
15+
return {
16+
data: '进行中'
17+
}
18+
}
19+
}
20+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div>
3+
<tiny-cell :data="data" disabled></tiny-cell>
4+
</div>
5+
</template>
6+
7+
<script>
8+
import { Cell } from '@opentiny/vue'
9+
10+
export default {
11+
components: {
12+
TinyCell: Cell
13+
},
14+
data() {
15+
return {
16+
data: '进行中'
17+
}
18+
}
19+
}
20+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template>
2+
<div>
3+
<tiny-cell :data="data" :icon="icon"></tiny-cell>
4+
</div>
5+
</template>
6+
7+
<script>
8+
import { Cell } from '@opentiny/vue'
9+
import { IconWriting } from '@opentiny/vue-icon'
10+
11+
export default {
12+
components: {
13+
TinyCell: Cell
14+
},
15+
data() {
16+
return {
17+
data: '',
18+
icon: IconWriting()
19+
}
20+
}
21+
}
22+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div>
3+
<tiny-cell :data="data" placeholder="请选择日期"></tiny-cell>
4+
</div>
5+
</template>
6+
7+
<script>
8+
import { Cell } from '@opentiny/vue'
9+
10+
export default {
11+
components: {
12+
TinyCell: Cell
13+
},
14+
data() {
15+
return {
16+
data: ''
17+
}
18+
}
19+
}
20+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Cell 单元格
3+
---
4+
5+
# Cell 单元格
6+
7+
<div>
8+
此组件主要用于移动下拉选择组件(DatePickerMobile、SelectMobile 等)显示值的承载容器
9+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Cell 单元格
3+
---
4+
5+
# Cell 单元格
6+
7+
<div>
8+
此组件主要用于移动下拉选择组件(DatePickerMobile、SelectMobile 等)显示值的承载容器
9+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
export default {
2+
column: '2',
3+
owner: '',
4+
demos: [
5+
{
6+
demoId: 'basic-usage',
7+
name: {
8+
'zh-CN': '基本用法',
9+
'en-US': 'events'
10+
},
11+
desc: {
12+
'zh-CN': '<p><p>',
13+
'en-US': '<p>bbutton click</p>'
14+
},
15+
codeFiles: ['basic-usage.vue']
16+
},
17+
{
18+
demoId: 'with-date-picker',
19+
name: {
20+
'zh-CN': '结合日期选择一起使用',
21+
'en-US': 'events'
22+
},
23+
desc: {
24+
'zh-CN': '<p><p>',
25+
'en-US': '<p>bbutton click</p>'
26+
},
27+
codeFiles: ['with-date-picker.vue']
28+
},
29+
{
30+
demoId: 'placeholder',
31+
name: {
32+
'zh-CN': '占位文本',
33+
'en-US': 'events'
34+
},
35+
desc: {
36+
'zh-CN': '<p><p>',
37+
'en-US': '<p>bbutton click</p>'
38+
},
39+
codeFiles: ['placeholder.vue']
40+
},
41+
{
42+
demoId: 'disabled',
43+
name: {
44+
'zh-CN': '禁用',
45+
'en-US': 'events'
46+
},
47+
desc: {
48+
'zh-CN': '<p><p>',
49+
'en-US': '<p>bbutton click</p>'
50+
},
51+
codeFiles: ['disabled.vue']
52+
},
53+
{
54+
demoId: 'icon',
55+
name: {
56+
'zh-CN': 'icon 图标',
57+
'en-US': 'events'
58+
},
59+
desc: {
60+
'zh-CN': '<p>可以传入一个 svg 对象替换默认的下拉图标<p>',
61+
'en-US': '<p>bbutton click</p>'
62+
},
63+
codeFiles: ['icon.vue']
64+
}
65+
],
66+
apis: []
67+
}

0 commit comments

Comments
 (0)