tiny-vue/examples/sites/demos/mobile-first/app/calendar-view/webdoc/calendar-view.js

168 lines
5.3 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
column: '1',
owner: '',
demos: [
{
demoId: 'basic-usage',
name: {
'zh-CN': '基本用法',
'en-US': 'Basic Usage'
},
desc: {
'zh-CN': '<p>默认以月的形式展示当月的每一天。</p>\n',
'en-US': '<p>By default, each day of the current month is displayed in the form of month. </p>\n'
},
codeFiles: ['basic-usage.vue']
},
{
demoId: 'calendar-mode',
name: {
'zh-CN': '显示模式',
'en-US': 'Display mode'
},
desc: {
'zh-CN':
'<p>通过 <code>mode</code> 属性指定以年的形式显示,将展示当年的每个月份。可选值有 <code>month</code> / <code>timeline</code> / <code>schedule</code>。</p>\n',
'en-US':
'<p>The <code>mode</code> attribute specifies that each month of the current year is displayed. The options are <code>month</code> / <code>timeline</code> / <code>schedule</code>. </p>\n'
},
codeFiles: ['calendar-mode.vue']
},
{
demoId: 'calendar-disabled-day',
name: {
'zh-CN': '日期禁用',
'en-US': ''
},
desc: {
'zh-CN': '<p>通过 <code>disabled</code> 回调函数来禁用某些日期。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['calendar-disabled-day.vue']
},
{
demoId: 'calendar-schedule-slot',
name: {
'zh-CN': '日程模式插槽',
'en-US': ''
},
desc: {
'zh-CN': '<p>日程模式下内容区提供 weekday1-weekday7 这 7 个插槽,方便用户自定义日程展示。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['calendar-schedule-slot.vue']
},
{
demoId: 'calendar-timeline-slot',
name: {
'zh-CN': '时间线插槽',
'en-US': ''
},
desc: {
'zh-CN': '<p>时间下模式下提供 timeline1-timeline7 这 7 个插槽,方便用户自定义日程展示。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['calendar-timeline-slot.vue']
},
{
demoId: 'calendar-timeline-range',
name: {
'zh-CN': '时间线范围配置',
'en-US': ''
},
desc: {
'zh-CN': '<p>通过dayTimes属性配置时间线模式下所展示的时间范围默认为[8,18],可配范围[0,23]。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['calendar-timeline-range.vue']
},
{
demoId: 'multi-select',
name: {
'zh-CN': '日期多选',
'en-US': ''
},
desc: {
'zh-CN': '<p>设置 mult-select = true 属性后,可开启日期多选。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['multi-select.vue']
},
{
demoId: 'calendar-day-mark',
name: {
'zh-CN': '日期标记',
'en-US': ''
},
desc: {
'zh-CN':
'<p>通过showMark回调函数来标记某些日期markColor属性设置标记的颜色此功能只在时间线模式和日程模式生效。markColor可选颜色同 theme</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['calendar-day-mark.vue']
},
{
demoId: 'custom-header',
name: {
'zh-CN': '自定义头部显示',
'en-US': 'Display Selected Date'
},
desc: {
'zh-CN': '<p>通过作用域插槽 header 自定义需要显示的头部区域。</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['custom-header.vue']
},
{
demoId: 'custom-calendar-toolbar',
name: {
'zh-CN': '自定义工具栏',
'en-US': 'Custom Toolbar'
},
desc: {
'zh-CN': '<p>通过作用域插槽 tool 自定义需要的工具栏。</p>\n',
'en-US': '<p>Customize the required toolbar through the scope slot tool.</p>\n'
},
codeFiles: ['custom-calendar-toolbar.vue']
},
{
demoId: 'custom-day-bg-color',
name: {
'zh-CN': '自定义单元格背景色',
'en-US': 'Add Schedule Event'
},
desc: {
'zh-CN':
'<p>自定义日期单元格背景色。</p>\n<p>目前只支持预置的颜色可选颜色blue、green、red、yellow、purple、cyan、grey</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['custom-day-bg-color.vue']
},
{
demoId: 'set-working-day',
name: {
'zh-CN': '设置工作日或节假日',
'en-US': ''
},
desc: {
'zh-CN': '<p>可以结合日期多选,自定义背景色,工具栏插槽等功能实现设置工作日或节假日的功能</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['set-working-day.vue']
},
{
demoId: 'calendar-event',
name: {
'zh-CN': '事件',
'en-US': ''
},
desc: {
'zh-CN':
'<p>日历抛出的事件有以下这些:</p>\n<p>new-schedule:新增日程按钮点击事件</p>\n<p>selected-date-change:选中日期改变事件</p>\n<p>prev-week-click上一周按钮点击事件</p>\n<p>next-week-click下一周按钮点击事件</p>\n<p>week-change周改变事件</p>\n<p>year-change年改变事件</p>\n<p>month-change月改变事件</p>\n',
'en-US': '<p></p>\n'
},
codeFiles: ['calendar-event.vue']
}
]
}