Skip to content

Commit

Permalink
feat: support react and add new components: rich-text-editor/color-pi…
Browse files Browse the repository at this point in the history
…cker/divider/calendar-view
  • Loading branch information
kagol committed Oct 11, 2023
1 parent 2041a44 commit 8d2a9a2
Show file tree
Hide file tree
Showing 1,818 changed files with 32,335 additions and 24,517 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ coverage/
/packages/vue/mobile.ts
/packages/vue/mobile-first.ts
/packages/vue/app.ts
/packages/vue-icon-saas/src
/packages/vue-icon-saas/index.ts

/packages/react/index.ts
/packages/react/pc.ts
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"useTabs": false,
"tabWidth": 2,
"proseWrap": "preserve",
"arrowParens": "always",
"overrides": [
{
"files": ".prettierrc",
Expand All @@ -19,4 +20,4 @@
}
}
]
}
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@
"bold": false,
"italic": false
}
]
],
"vue.codeActions.enabled": false
}
2 changes: 1 addition & 1 deletion examples/docs/newsrc/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</div>
</tiny-floatbar>
<!-- 切换主题 -->
<tiny-dropdown class="!fixed bottom20 right140" @item-click="changeTheme">
<tiny-dropdown class="!fixed bottom20 right140" :show-icon="false" @item-click="changeTheme">
<span title="切换主题">
<SvgTheme></SvgTheme>
</span>
Expand Down
31 changes: 0 additions & 31 deletions examples/docs/newsrc/uses/useMonaco.js

This file was deleted.

13 changes: 13 additions & 0 deletions examples/docs/resources/mobile-first/app/badge/props-content.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<tiny-badge data="我的待办" :value="0"></tiny-badge>
</template>

<script>
import { Badge } from '@opentiny/vue'
export default {
components: {
TinyBadge: Badge
}
}
</script>
16 changes: 16 additions & 0 deletions examples/docs/resources/mobile-first/app/button/banner.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<div>
<tiny-button type="primary" banner native-type="submit">默认按钮</tiny-button>
<tiny-button type="primary" custom-class="mt-4" banner plain>线性按钮</tiny-button>
</div>
</template>

<script>
import { Button } from '@opentiny/vue'
export default {
components: {
TinyButton: Button
}
}
</script>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="demo">
<tiny-button>默认按钮</tiny-button>
<tiny-button button-class="text-color-brand-active bg-color-bg-3"> 主要按钮 </tiny-button>
<tiny-button custom-class="text-color-brand-active bg-color-bg-3"> 主要按钮 </tiny-button>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion examples/docs/resources/mobile-first/app/button/image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
},
data() {
return {
image: 'webnova/static/images/hae-logo.png'
image: '/static/images/hae-logo.png'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
data() {
return {
image: 'webnova/static/images/hae-logo.png'
image: '/static/images/hae-logo.png'
}
}
}
Expand Down
16 changes: 14 additions & 2 deletions examples/docs/resources/mobile-first/app/button/webdoc/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
codeFiles: ['click.vue']
},
{
demoId: 'dynamic-disable-button',
demoId: 'dynamic-disabled',
name: {
'zh-CN': '动态禁用按钮',
'en-US': 'events'
Expand All @@ -124,7 +124,19 @@ export default {
'zh-CN': '<p>设置 <code>disabled</code>属性为 true 后,可以禁用按钮。<p>',
'en-US': '<p>bbutton click</p>'
},
codeFiles: ['dynamic-disable-button.vue']
codeFiles: ['dynamic-disabled.vue']
},
{
demoId: 'banner',
name: {
'zh-CN': '通知栏按钮',
'en-US': 'events'
},
desc: {
'zh-CN': '<p>通过添加<code>banner</code>属性设置通栏按钮<p>',
'en-US': '<p>bbutton click</p>'
},
codeFiles: ['banner.vue']
}
],
apis: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<div class="w-80">
<tiny-carousel aspect-ratio="2:1" :loop="false">
<tiny-carousel-item class="">
<img src="webnova/static/images/dsj.png" alt="" />
<img src="/static/images/dsj.png" alt="" />
</tiny-carousel-item>
<tiny-carousel-item class="">
<img src="webnova/static/images/jz.png" alt="" />
<img src="/static/images/jz.png" alt="" />
</tiny-carousel-item>
<tiny-carousel-item class="">
<img src="webnova/static/images/ld.png" alt="" />
<img src="/static/images/ld.png" alt="" />
</tiny-carousel-item>
<tiny-carousel-item class="">
<img src="webnova/static/images/px.png" alt="" />
<img src="/static/images/px.png" alt="" />
</tiny-carousel-item>
</tiny-carousel>
</div>
Expand Down
20 changes: 20 additions & 0 deletions examples/docs/resources/mobile-first/app/cell/basic-usage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<div>
<tiny-cell :data="data"></tiny-cell>
</div>
</template>

<script>
import { Cell } from '@opentiny/vue'
export default {
components: {
TinyCell: Cell
},
data() {
return {
data: '进行中'
}
}
}
</script>
20 changes: 20 additions & 0 deletions examples/docs/resources/mobile-first/app/cell/disabled.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<div>
<tiny-cell :data="data" disabled></tiny-cell>
</div>
</template>

<script>
import { Cell } from '@opentiny/vue'
export default {
components: {
TinyCell: Cell
},
data() {
return {
data: '进行中'
}
}
}
</script>
22 changes: 22 additions & 0 deletions examples/docs/resources/mobile-first/app/cell/icon.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<div>
<tiny-cell :data="data" :icon="icon"></tiny-cell>
</div>
</template>

<script>
import { Cell } from '@opentiny/vue'
import { IconWriting } from '@opentiny/vue-icon'
export default {
components: {
TinyCell: Cell
},
data() {
return {
data: '',
icon: IconWriting()
}
}
}
</script>
20 changes: 20 additions & 0 deletions examples/docs/resources/mobile-first/app/cell/placeholder.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<div>
<tiny-cell :data="data" placeholder="请选择日期"></tiny-cell>
</div>
</template>

<script>
import { Cell } from '@opentiny/vue'
export default {
components: {
TinyCell: Cell
},
data() {
return {
data: ''
}
}
}
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Cell 单元格
---

# Cell 单元格

<div>
此组件主要用于移动下拉选择组件(DatePickerMobile、SelectMobile 等)显示值的承载容器
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Cell 单元格
---

# Cell 单元格

<div>
此组件主要用于移动下拉选择组件(DatePickerMobile、SelectMobile 等)显示值的承载容器
</div>
67 changes: 67 additions & 0 deletions examples/docs/resources/mobile-first/app/cell/webdoc/cell.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
export default {
column: '2',
owner: '',
demos: [
{
demoId: 'basic-usage',
name: {
'zh-CN': '基本用法',
'en-US': 'events'
},
desc: {
'zh-CN': '<p><p>',
'en-US': '<p>bbutton click</p>'
},
codeFiles: ['basic-usage.vue']
},
{
demoId: 'with-date-picker',
name: {
'zh-CN': '结合日期选择一起使用',
'en-US': 'events'
},
desc: {
'zh-CN': '<p><p>',
'en-US': '<p>bbutton click</p>'
},
codeFiles: ['with-date-picker.vue']
},
{
demoId: 'placeholder',
name: {
'zh-CN': '占位文本',
'en-US': 'events'
},
desc: {
'zh-CN': '<p><p>',
'en-US': '<p>bbutton click</p>'
},
codeFiles: ['placeholder.vue']
},
{
demoId: 'disabled',
name: {
'zh-CN': '禁用',
'en-US': 'events'
},
desc: {
'zh-CN': '<p><p>',
'en-US': '<p>bbutton click</p>'
},
codeFiles: ['disabled.vue']
},
{
demoId: 'icon',
name: {
'zh-CN': 'icon 图标',
'en-US': 'events'
},
desc: {
'zh-CN': '<p>可以传入一个 svg 对象替换默认的下拉图标<p>',
'en-US': '<p>bbutton click</p>'
},
codeFiles: ['icon.vue']
}
],
apis: []
}
Loading

0 comments on commit 8d2a9a2

Please sign in to comment.