diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7629e4196e..d5df99d7ea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,8 +66,8 @@ The commit message should be in the form of a `type(scope): description of the m 3. Example title: - Supplement alert component document: `docs(alert): [alert] xxxxxxxxxxxxxxx`, `docs(site): [alert] xxxxxxxxxxxxxxx` -- Supplement alet component test case: `test(alert): [alert] xxxxxxxxxxxxxx` -- Fixed bug in alet component @opentiny/vue-renderless: `fix(vue-renderless/alert): [alert] xxxxxxxxxxxxxx` +- Supplement alert component test case: `test(alert): [alert] xxxxxxxxxxxxxx` +- Fixed bug in alert component @opentiny/vue-renderless: `fix(vue-renderless/alert): [alert] xxxxxxxxxxxxxx` #### Pull Request Description @@ -135,3 +135,14 @@ If you have submitted Issue or PR to OpenTiny, you can comment on Issue or Pull ``` For detailed rules, please refer to [https://allcontributors.org/docs/en/bot/usage](https://allcontributors.org/docs/en/bot/usage) + +## Contributors + +We sincerely thank all the contributors who have participated in the TinyVue project! +In recognition of the contributions of our contributors, we have added a 'Contributors' section at the bottom of each component documentation, displaying the GitHub information of each contributor, including their profile picture, username, and GitHub personal page. +Due to the current manpower constraints, only information of internal members (or former members) of the TinyVue team is currently being recorded. Open source contributors are welcome to supplement their own information. +The file that record contributors info is: + +``` +/examples/sites/src/data/contributorMap.js +``` diff --git a/CONTRIBUTING.zh-CN.md b/CONTRIBUTING.zh-CN.md index a8627d6124..0eaf7a7d99 100644 --- a/CONTRIBUTING.zh-CN.md +++ b/CONTRIBUTING.zh-CN.md @@ -66,8 +66,8 @@ commit 信息要以 `type(scope): 描述信息` 的形式填写,例如 `fix(vu 3. 标题示例: - 补充 alert 组件文档: `docs(alert): [alert] xxxxxxxxxxxxxxx`, `docs(site): [alert] xxxxxxxxxxxxxxx` -- 补充 alet 组件测试用例: `test(alert): [alert] xxxxxxxxxxxxxx` -- 修复 alet 组件 @opentiny/vue-renderless 下的缺陷: `fix(vue-renderless/alert): [alert] xxxxxxxxxxxxxx` +- 补充 alert 组件测试用例: `test(alert): [alert] xxxxxxxxxxxxxx` +- 修复 alert 组件 @opentiny/vue-renderless 下的缺陷: `fix(vue-renderless/alert): [alert] xxxxxxxxxxxxxx` #### Pull Request 的描述 @@ -135,3 +135,13 @@ pnpm dev:vue2 ``` 详细规则可以参考:[https://allcontributors.org/docs/en/bot/usage](https://allcontributors.org/docs/en/bot/usage) + +## 贡献者 + +我们诚挚感谢每位参与过TinyVue项目的贡献者们! +为彰显贡献者们的付出,我们在每个组件文档底部增加“贡献者”模块,陈列各位贡献者的github信息,包括头像、昵称、github个人主页等。由于当前团队人力较为紧张,目前只录入TinyVue团队内部成员(或前组员)信息,欢迎各位开源贡献者自行补充信息。 +贡献者信息记录的文件路径为: + +``` +/examples/sites/src/data/contributorMap.js +``` diff --git a/examples/docs/newsrc/mobile-first.vue b/examples/docs/newsrc/mobile-first.vue index 025e2a55ab..90c04c79ab 100644 --- a/examples/docs/newsrc/mobile-first.vue +++ b/examples/docs/newsrc/mobile-first.vue @@ -23,11 +23,9 @@
-
diff --git a/examples/react-site/src/tools/utils.js b/examples/react-site/src/tools/utils.js index 1bb0016f82..42f41b6cac 100644 --- a/examples/react-site/src/tools/utils.js +++ b/examples/react-site/src/tools/utils.js @@ -17,13 +17,13 @@ const $split = (target, splitor = '/', pos = 0) => target.split(splitor).slice(p /** * 延时函数 - * @example $delay(300).then(()=>{ }) + * @example $delay(300).then(() =>{ }) */ const $delay = time => new Promise(resolve => setTimeout(resolve, time)); /** * 空闲函数 - * @example $idle().then(()=>{ }) + * @example $idle().then(() =>{ }) */ const $idle = () => new Promise(resolve => (window.requestIdleCallback || window.requestAnimationFrame)(resolve)); diff --git a/examples/sites/demos/apis/action-sheet.js b/examples/sites/demos/apis/action-sheet.js index df09070c19..0ce53952f1 100644 --- a/examples/sites/demos/apis/action-sheet.js +++ b/examples/sites/demos/apis/action-sheet.js @@ -132,7 +132,7 @@ export default { 'en-US': 'Panel Title' }, mode: ['mobile-first'], - mfDemo: 'actoin' + mfDemo: 'action' }, { name: 'type', diff --git a/examples/sites/demos/apis/autocomplete.js b/examples/sites/demos/apis/autocomplete.js index 3ab4467eb6..07a4cda39e 100644 --- a/examples/sites/demos/apis/autocomplete.js +++ b/examples/sites/demos/apis/autocomplete.js @@ -22,7 +22,7 @@ export default { defaultValue: '300', desc: { 'zh-CN': '获取输入建议的去抖延时', - 'en-US': 'Obtain the recommended input dejitter delay.' + 'en-US': 'Obtain the recommended input debounce delay' }, mode: ['pc'], pcDemo: 'debounce' @@ -90,7 +90,7 @@ export default { defaultValue: '', desc: { 'zh-CN': '等价于原生 input aria-label 属性', - 'en-US': 'Equiphorus input aria-label attribute' + 'en-US': 'Equals input aria-label attribute' }, mode: ['pc'], pcDemo: '' @@ -319,6 +319,7 @@ export default { { name: 'IAutocompleteFetchSuggestions', type: 'type', + depTypes: ['IAutocompleteSuggestionItem'], code: `type IAutocompleteFetchSuggestions = (queryString: string, callback: (suggestions: IAutocompleteSuggestionItem[]) => void) => void` } ] diff --git a/examples/sites/demos/apis/base-select.js b/examples/sites/demos/apis/base-select.js index a9f77350af..bb73a348fb 100644 --- a/examples/sites/demos/apis/base-select.js +++ b/examples/sites/demos/apis/base-select.js @@ -880,8 +880,8 @@ interface ICacheOp { highlightClass?: string // 个性化高亮 class 名称,默认:memorize-highlight highlightNum?: number // 高亮个性化的条数,默认:Infinity cacheNum?: number // 存储个性化的条数,默认:Infinity - serialize?: ()=> string // 本地存储序列化方法,默认:JSON.stringify - deserialize?: ()=> ICacheItem[] // 本地存储序反列化方法,默认:JSON.parse + serialize?: () => string // 本地存储序列化方法,默认:JSON.stringify + deserialize?: () => ICacheItem[] // 本地存储序反列化方法,默认:JSON.parse } ` }, diff --git a/examples/sites/demos/apis/breadcrumb.js b/examples/sites/demos/apis/breadcrumb.js index 67c67368c7..cd932d69fb 100644 --- a/examples/sites/demos/apis/breadcrumb.js +++ b/examples/sites/demos/apis/breadcrumb.js @@ -170,6 +170,7 @@ interface IOptionsItemTo { { name: 'IOptionsItem', type: 'interface', + depTypes: ['IOptionsItemTo'], code: ` interface IOptionsItem { label?: string @@ -181,6 +182,7 @@ interface IOptionsItem { { name: 'ISelectValue', type: 'interface', + depTypes: ['IOptionsItem', 'IOptionsItemTo'], code: ` interface ISelectValue { event: Event diff --git a/examples/sites/demos/apis/button-group.js b/examples/sites/demos/apis/button-group.js index 431fd9a59a..502f094497 100644 --- a/examples/sites/demos/apis/button-group.js +++ b/examples/sites/demos/apis/button-group.js @@ -181,6 +181,9 @@ export default { 'zh-CN': '自定义数据为空时展示内容', 'en-US': 'customize content when data is empty' }, + metaData: { + new: '3.17.0' + }, mode: ['pc'], pcDemo: 'slot-empty' } diff --git a/examples/sites/demos/apis/calendar.js b/examples/sites/demos/apis/calendar.js index 84becc5835..f8785f8c8b 100644 --- a/examples/sites/demos/apis/calendar.js +++ b/examples/sites/demos/apis/calendar.js @@ -7,8 +7,8 @@ export default { props: [ { name: 'events', - typeAnchorName: 'eventLists', - type: 'eventLists[]', + typeAnchorName: 'ICalendarEvent', + type: 'ICalendarEvent[]', defaultValue: '', desc: { 'zh-CN': '事件列表', @@ -90,15 +90,17 @@ export default { ], types: [ { - name: 'eventLists', + name: 'ICalendarEvent', type: 'interface', code: ` - interface eventLists [{ - time: 1534297845236, // 指定需要展示事件的日期 - title: '消息', // 指定事件标题 - content: '这是一条消息', // 指定事件的具体内容 - type: 'info' // 事件主题类型,包括 warning、error、info、success。 - }]` +type ICalendarEventType = 'info' | 'warning' | 'error' | 'info' | 'success' + +interface ICalendarEvent { + time: number, // 指定需要展示事件的日期的时间戳 + title: string, // 指定事件标题 + content: string, // 指定事件的具体内容 + type: ICalendarEventType // 事件主题类型 +}` } ] } diff --git a/examples/sites/demos/apis/cascader-panel.js b/examples/sites/demos/apis/cascader-panel.js index 7a6a391a37..3d7b6cfe17 100644 --- a/examples/sites/demos/apis/cascader-panel.js +++ b/examples/sites/demos/apis/cascader-panel.js @@ -252,6 +252,7 @@ export default { { name: 'ICascaderPanelNodePropValue', type: 'type', + depTypes: ['ICascaderPanelNodeValue'], code: ` type ICascaderPanelNodePropValue = | ICascaderPanelNodeValue @@ -261,6 +262,7 @@ type ICascaderPanelNodePropValue = { name: 'ICascaderPanelData', type: 'type', + depTypes: ['ICascaderPanelNodeValue'], code: ` type ICascaderPanelData = { value?: ICascaderPanelNodeValue @@ -274,6 +276,7 @@ type ICascaderPanelData = { { name: 'ICascaderPanelConfig', type: 'interface', + depTypes: ['ICascaderPanelNode', 'ICascaderPanelData'], code: ` interface ICascaderPanelConfig { emitPath: boolean @@ -296,6 +299,7 @@ interface ICascaderPanelConfig { { name: 'ICascaderPanelNode', type: 'type', + depTypes: ['ICascaderPanelData', 'ICascaderPanelConfig', 'ICascaderPanelNodeValue'], code: ` type ICascaderPanelNode = { parent: ICascaderPanelNode | null @@ -320,6 +324,7 @@ type ICascaderPanelNode = { { name: 'ICascaderPanelLazyLoad', type: 'type', + depTypes: ['ICascaderPanelNode', 'ICascaderPanelData'], code: ` type ICascaderPanelLazyLoad = (node: ICascaderPanelNode, resolve: (dataList: ICascaderPanelData[]) => void) => void ` diff --git a/examples/sites/demos/apis/cascader.js b/examples/sites/demos/apis/cascader.js index b5e6e8f62f..e0aa1c1def 100644 --- a/examples/sites/demos/apis/cascader.js +++ b/examples/sites/demos/apis/cascader.js @@ -59,7 +59,7 @@ export default { defaultValue: '300', desc: { 'zh-CN': '搜索关键词输入的去抖延迟,单位毫秒', - 'en-US': 'Dejitter delay of the search keyword, in milliseconds.' + 'en-US': 'Debounce delay of the search keyword, in milliseconds.' }, mode: ['pc'], pcDemo: 'filterable' @@ -536,6 +536,7 @@ export default { { name: 'ICascaderPanelNodePropValue', type: 'type', + depTypes: ['ICascaderPanelNodeValue'], code: ` type ICascaderPanelNodePropValue = | ICascaderPanelNodeValue @@ -545,6 +546,7 @@ type ICascaderPanelNodePropValue = { name: 'ICascaderPanelData', type: 'type', + depTypes: ['ICascaderPanelNodeValue'], code: ` type ICascaderPanelData = { value?: ICascaderPanelNodeValue @@ -558,6 +560,7 @@ type ICascaderPanelData = { { name: 'ICascaderPanelConfig', type: 'interface', + depTypes: ['ICascaderPanelNode', 'ICascaderPanelData'], code: ` interface ICascaderPanelConfig { emitPath: boolean @@ -580,6 +583,7 @@ interface ICascaderPanelConfig { { name: 'ICascaderPanelNode', type: 'type', + depTypes: ['ICascaderPanelNode', 'ICascaderPanelData', 'ICascaderPanelConfig', 'ICascaderPanelNodeValue'], code: ` type ICascaderPanelNode = { parent: ICascaderPanelNode | null @@ -604,6 +608,7 @@ type ICascaderPanelNode = { { name: 'ICascaderPanelLazyLoad', type: 'type', + depTypes: ['ICascaderPanelNode', 'ICascaderPanelData'], code: ` type ICascaderPanelLazyLoad = (node: ICascaderPanelNode, resolve: (dataList: ICascaderPanelData[]) => void) => void ` diff --git a/examples/sites/demos/apis/color-picker.js b/examples/sites/demos/apis/color-picker.js index f9b2fa9d47..49302ed02c 100644 --- a/examples/sites/demos/apis/color-picker.js +++ b/examples/sites/demos/apis/color-picker.js @@ -65,7 +65,7 @@ export default { events: [ { name: 'cancel', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '按下取消或点击外部的时触发该事件', diff --git a/examples/sites/demos/apis/color-select-panel.js b/examples/sites/demos/apis/color-select-panel.js index a41c53d956..024dfdefb0 100644 --- a/examples/sites/demos/apis/color-select-panel.js +++ b/examples/sites/demos/apis/color-select-panel.js @@ -52,7 +52,7 @@ export default { events: [ { name: 'cancel', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '按下取消或点击外部的时触发该事件', diff --git a/examples/sites/demos/apis/dialog-box.js b/examples/sites/demos/apis/dialog-box.js index f39dbd9d89..0782c04090 100644 --- a/examples/sites/demos/apis/dialog-box.js +++ b/examples/sites/demos/apis/dialog-box.js @@ -227,7 +227,7 @@ export default { { name: 'visible', type: 'boolean', - defaultValue: 'true', + defaultValue: 'false', desc: { 'zh-CN': '控制弹出框显示与关闭', 'en-US': 'Control pop-up display and closing' diff --git a/examples/sites/demos/apis/dialog-select.js b/examples/sites/demos/apis/dialog-select.js index 18e49ad0c2..652492222e 100644 --- a/examples/sites/demos/apis/dialog-select.js +++ b/examples/sites/demos/apis/dialog-select.js @@ -502,6 +502,7 @@ interface IDialogOption { { name: 'IGridOption', type: 'interface', + depTypes: ['IColumnConfig'], code: ` interface IGridOption { // 表格列配置 diff --git a/examples/sites/demos/apis/directives.js b/examples/sites/demos/apis/directives.js new file mode 100644 index 0000000000..f1bd8639ea --- /dev/null +++ b/examples/sites/demos/apis/directives.js @@ -0,0 +1,3 @@ +export default { + apis: [] +} diff --git a/examples/sites/demos/apis/dropdown.js b/examples/sites/demos/apis/dropdown.js index cf2a6975bf..eb85d50922 100644 --- a/examples/sites/demos/apis/dropdown.js +++ b/examples/sites/demos/apis/dropdown.js @@ -486,6 +486,7 @@ export default { { name: 'IMenuOption', type: 'interface', + depTypes: ['IItemData'], code: ` interface IMenuOption { options: IItemData[] @@ -498,6 +499,7 @@ interface IMenuOption { { name: 'IItemClickParam', type: 'interface', + depTypes: ['IItemData'], code: ` interface IItemClickParam { itemData: IItemData diff --git a/examples/sites/demos/apis/file-upload.js b/examples/sites/demos/apis/file-upload.js index 8605b18526..0b4fa48a18 100644 --- a/examples/sites/demos/apis/file-upload.js +++ b/examples/sites/demos/apis/file-upload.js @@ -177,7 +177,7 @@ export default { type: 'Object', defaultValue: '', desc: { - 'zh-CN': '配置 EDM 下载功能所需的参数,例如:edm:{download:{token:()=>{}}},token为鉴权token', + 'zh-CN': '配置 EDM 下载功能所需的参数,例如:edm:{download:{token:() =>{}}},token为鉴权token', 'en-US': '' }, mode: ['mobile-first'], @@ -369,7 +369,7 @@ export default { defaultValue: '', desc: { 'zh-CN': - '配置为 true,启用 EDM 上传文件夹的功能,最多只能上传 5 层;{edm:upload:{isFolder:true,token:()=>{}}}', + '配置为 true,启用 EDM 上传文件夹的功能,最多只能上传 5 层;{edm:upload:{isFolder:true,token:() =>{}}}', 'en-US': '' }, mode: ['mobile-first'], @@ -524,7 +524,7 @@ export default { type: 'Function', defaultValue: '', desc: { - 'zh-CN': '配置 EDM 批量打包下载的 token;配置结构为 edm:{download:packageToken:()=>{}},返回一个 Promise', + 'zh-CN': '配置 EDM 批量打包下载的 token;配置结构为 edm:{download:packageToken:() =>{}},返回一个 Promise', 'en-US': '' }, mode: ['mobile-first'], @@ -559,7 +559,7 @@ export default { defaultValue: '', desc: { 'zh-CN': - "配置 EDM 预览功能所需的参数,例如:edm:{preview:{plugin:util.default,previewUrl:./_index.html?appid=应用Id,packageName: 'jslib',token:()=>{}}}", + "配置 EDM 预览功能所需的参数,例如:edm:{preview:{plugin:util.default,previewUrl:./_index.html?appid=应用Id,packageName: 'jslib',token:() =>{}}}", 'en-US': '' }, mode: ['mobile-first'], @@ -718,7 +718,7 @@ export default { type: 'Object', defaultValue: '', desc: { - 'zh-CN': '配置 EDM 上传功能所需的参数,例如:edm:{upload:{token:()=>{}}}', + 'zh-CN': '配置 EDM 上传功能所需的参数,例如:edm:{upload:{token:() =>{}}}', 'en-US': '' }, mode: ['mobile-first'], diff --git a/examples/sites/demos/apis/fluent-editor.js b/examples/sites/demos/apis/fluent-editor.js new file mode 100644 index 0000000000..5a27195b83 --- /dev/null +++ b/examples/sites/demos/apis/fluent-editor.js @@ -0,0 +1,58 @@ +export default { + mode: ['pc', 'mobile-first'], + apis: [ + { + name: 'fluent-editor', + type: 'component', + props: [ + { + name: 'data-type', + type: 'boolean', + defaultValue: 'true', + desc: { + 'zh-CN': '初始化的富文本数据格式是否为 Delta 格式,默认为 Delta 格式,设置成 false,则为 HTML 格式', + 'en-US': '' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'data-switch' + }, + { + name: 'data-upgrade', + type: 'boolean', + defaultValue: 'true', + desc: { + 'zh-CN': '富文本数据输出格式是否为 Delta 格式,默认为 Delta 格式,设置成 false,则为 HTML 格式', + 'en-US': '' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'data-switch' + }, + { + name: 'disabled', + type: 'boolean', + defaultValue: 'false', + desc: { + 'zh-CN': '是否为不可编辑状态', + 'en-US': '' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'disabled' + }, + { + name: 'modelValue / v-model', + type: 'string', + defaultValue: "''", + desc: { + 'zh-CN': '绑定值', + 'en-US': 'Bound Value' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'basic-usage' + } + ], + events: [], + methods: [], + slots: [] + } + ] +} diff --git a/examples/sites/demos/apis/form.js b/examples/sites/demos/apis/form.js index 18b3d9a4bc..7b27cd8f2e 100644 --- a/examples/sites/demos/apis/form.js +++ b/examples/sites/demos/apis/form.js @@ -170,7 +170,7 @@ export default { }, { name: 'popper-options', - typeAnchorName: 'popover#IPopperOption', + linkTo: 'popover#IPopperOption', type: 'Popover.IPopperOption', defaultValue: '', desc: { @@ -639,7 +639,7 @@ interface IFormRules { trigger?: IFormTrigger | IFormTrigger[] // 同步检验函数,调用回调传递错误信息。 validator?: ( - rule: IFormInnerRule, // from内部处理后的rule + rule: IFormInnerRule, // form内部处理后的rule value: any, // 表单model对应的值,根据表单项prop获取 callback: (e: Error) => void data: object, // prop和value构造的对象 @@ -679,6 +679,7 @@ interface IFormErrorField { { name: 'IFormValidateMethod', type: 'function', + depTypes: ['IFormError'], code: ` function IFormValidateMethod(callback: (isValid: boolean, fields: IFormError) => void ): Promise ` @@ -686,6 +687,7 @@ function IFormValidateMethod(callback: (isValid: boolean, fields: IFormError) => { name: 'IFormValidateFieldMethod', type: 'function', + depTypes: ['IFormError'], code: ` function IFormValidateFieldMethod( prop: string | string[], diff --git a/examples/sites/demos/apis/grid.js b/examples/sites/demos/apis/grid.js index 67d4286f99..f883c38d6f 100644 --- a/examples/sites/demos/apis/grid.js +++ b/examples/sites/demos/apis/grid.js @@ -148,16 +148,7 @@ export default { type: 'string[]', defaultValue: "['TinyGridColumn']", metaData: { - experimental: { - version: '3.17.0' - } - }, - versionTipOption: { - extendTip: { - 'zh-CN': '该属性于3.17版本新增,封装 grid-column 时需要配置此字段,提供给表格收集配置', - 'en-US': - 'This field needs to be configured when encapsulating grid-column and is provided for table collection configuration' - } + new: '3.17.0' }, desc: { 'zh-CN': '封装 grid-column 时需要配置此字段,提供给表格收集配置', @@ -699,7 +690,7 @@ export default { }, { name: 'render-empty', - type: '()=> string | VNode', + type: '() => string | VNode', defaultValue: '', desc: { 'zh-CN': '空数据渲染', @@ -1305,7 +1296,7 @@ export default { }, { name: 'fullscreen', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '全屏时或关闭全屏时触发的时间', @@ -1422,8 +1413,7 @@ export default { }, { name: 'select-change', - typeAnchorName: 'ISelectChangeArgs', - type: '(args: ISelectChangeArgs, event: Event)=> void', + type: '(args: object, event: Event)=> void', defaultValue: '', desc: { 'zh-CN': '只对 type=selection 有效,当手动勾选并且值发生改变时触发的事件', @@ -1462,17 +1452,10 @@ export default { }, { name: 'toggle-group-change', - typeAnchorName: 'IToggleGroupChangeArgs', - type: '(row: IRow)=> void', + type: '(row: IRow) => void', defaultValue: '', metaData: { - experimental: '3.17.0' - }, - versionTipOption: { - extendTip: { - 'zh-CN': '该特性于3.17版本新增', - 'en-US': 'This feature was added in version 3.17' - } + new: '3.17.0' }, desc: { 'zh-CN': '当分组的展开和收起时会触发该事件', @@ -1526,7 +1509,7 @@ export default { methods: [ { name: 'clearActived', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动清除单元格激活状态', @@ -1548,7 +1531,7 @@ export default { }, { name: 'clearAll', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': @@ -1573,7 +1556,7 @@ export default { }, { name: 'clearCurrentColumn', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '用于当前列,手动清空当前高亮的状态', @@ -1595,7 +1578,7 @@ export default { }, { name: 'clearCurrentRow', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '用于当前行,手动清空当前高亮的状态', @@ -1666,7 +1649,7 @@ export default { }, { name: 'clearRadioRow', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '用于单选行,手动清空用户的选择', @@ -1688,7 +1671,7 @@ export default { }, { name: 'clearRowExpand', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动清空展开行状态,数据会恢复成未展开的状态', @@ -1710,7 +1693,7 @@ export default { }, { name: 'clearScroll', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动清除滚动相关信息,还原到初始状态', @@ -1732,7 +1715,7 @@ export default { }, { name: 'clearSelected', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动清除单元格选中状态', @@ -1754,7 +1737,7 @@ export default { }, { name: 'clearSelection', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '用于多选行,手动清空用户的选择', @@ -1776,7 +1759,7 @@ export default { }, { name: 'clearSort', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动清空排序条件,数据会恢复成未排序的状态', @@ -1798,7 +1781,7 @@ export default { }, { name: 'clearTreeExpand', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动清空树形节点的展开状态,数据会恢复成未展开的状态', @@ -1821,7 +1804,7 @@ export default { }, { name: 'closeFilter', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动关闭筛选面板(某些特殊场景可能会用到)', @@ -1843,7 +1826,7 @@ export default { }, { name: 'closeMenu', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动关闭快捷菜单(某些特殊场景可能会用到)', @@ -1925,7 +1908,7 @@ export default { { name: 'fullValidate', typeAnchorName: 'IRow', - type: '(rows: IRow[], callback: ()=> void)=> Promise', + type: '(rows: IRow[], callback: () => void)=> Promise', defaultValue: '', desc: { 'zh-CN': '表格完整校验函数,和 validate 的区别就是会对全量数据的所有规则进行完整校验', @@ -1949,7 +1932,7 @@ export default { { name: 'getActiveRow', typeAnchorName: 'IRow', - type: '()=> IRow', + type: '() => IRow', defaultValue: '', desc: { 'zh-CN': '获取已激活的行数据', @@ -2087,7 +2070,7 @@ export default { { name: 'getCurrentRow', typeAnchorName: 'IRow', - type: '()=> IRow', + type: '() => IRow', defaultValue: '', desc: { 'zh-CN': '用于当前行,获取当前行的数据', @@ -2134,7 +2117,7 @@ export default { { name: 'getInsertRecords', typeAnchorName: 'IRow', - type: '()=> IRow[]', + type: '() => IRow[]', defaultValue: '', desc: { 'zh-CN': '获取新增的数据', @@ -2157,7 +2140,7 @@ export default { { name: 'getRadioRow', typeAnchorName: 'IRow', - type: '()=> IRow', + type: '() => IRow', defaultValue: '', desc: { 'zh-CN': '用于单选行,获取当已选中的数据', @@ -2180,7 +2163,7 @@ export default { { name: 'getRecordset', typeAnchorName: 'IRecordset', - type: '()=> IRecordset', + type: '() => IRecordset', defaultValue: '', desc: { 'zh-CN': '获取表格数据集(获取新增、删除、更改的数据,对于增删改查表格非常方便)', @@ -2204,7 +2187,7 @@ export default { { name: 'getRemoveRecords', typeAnchorName: 'IRow', - type: '()=> IRow[]', + type: '() => IRow[]', defaultValue: '', desc: { 'zh-CN': '获取已删除的数据', @@ -2296,7 +2279,7 @@ export default { { name: 'getSelectRecords', typeAnchorName: 'IRow', - type: '()=> IRow[]', + type: '() => IRow[]', defaultValue: '', desc: { 'zh-CN': '用于多选行,获取已选中的数据', @@ -2319,7 +2302,7 @@ export default { { name: 'getTableColumn', typeAnchorName: 'IRow', - type: '()=> IRow[]', + type: '() => IRow[]', defaultValue: '', desc: { 'zh-CN': '获取当前表格的列(完整的全量表头列、处理条件之后的全量表头列、当前渲染中的表头列)', @@ -2343,7 +2326,7 @@ export default { { name: 'getTableData', typeAnchorName: 'IRow', - type: '()=> IRow[]', + type: '() => IRow[]', defaultValue: '', desc: { 'zh-CN': @@ -2369,7 +2352,7 @@ export default { { name: 'getUpdateRecords', typeAnchorName: 'IRow', - type: '()=> IRow[]', + type: '() => IRow[]', defaultValue: '', desc: { 'zh-CN': '获取已修改的数据', @@ -2391,7 +2374,7 @@ export default { }, { name: 'handleFetch', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': '触发表格的 fetch-data ', @@ -2626,7 +2609,7 @@ export default { }, { name: 'recalculate', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': '重新计算表格(对于某些特殊场景可能会用到,比如隐藏的表格、更新列宽...等)', @@ -2649,7 +2632,7 @@ export default { }, { name: 'refreshColumn', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': '刷新列配置(对于显示/隐藏列场景下可能会用到)', @@ -2672,7 +2655,7 @@ export default { }, { name: 'refreshData', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': @@ -2746,7 +2729,7 @@ export default { }, { name: 'removeSelecteds', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': '删除已选中的所有行数据', @@ -2768,7 +2751,7 @@ export default { }, { name: 'resetAll', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '手动重置列的所有操作,还原到初始状态(如果已关联工具栏,则会同步更新)', @@ -2791,7 +2774,7 @@ export default { }, { name: 'resetCustoms', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': '手动重置列的显示/隐藏操作,还原到初始状态(如果已关联工具栏,则会同步更新)', @@ -2814,7 +2797,7 @@ export default { }, { name: 'resetResizable', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': '手动重置列宽拖动的操作,还原到初始状态(如果已关联工具栏,则会同步更新)', @@ -3202,7 +3185,7 @@ export default { }, { name: 'toggleAllSelection', - type: '()=> Promise', + type: '() => Promise', defaultValue: '', desc: { 'zh-CN': '用于多选行,切换所有行的选中状态', @@ -3294,7 +3277,7 @@ export default { { name: 'validate', typeAnchorName: 'IRow', - type: '(rows: IRow | IRow[], callback: ()=> void)=> Promise', + type: '(rows: IRow | IRow[], callback: () => void)=> Promise', defaultValue: '', desc: { 'zh-CN': @@ -3408,6 +3391,17 @@ export default { mode: ['pc'], pcDemo: 'grid-editor#editor-custom-editor-select' }, + { + name: 'filed', + type: 'string', + defaultValue: '', + desc: { + 'zh-CN': '设置表格列的单元格显示字段', + 'en-US': 'Set the cell display field for table columns' + }, + mode: ['pc'], + pcDemo: 'grid#base-basic-usage' + }, { name: 'filter', type: 'boolean | IFilterConfig', @@ -3810,7 +3804,7 @@ export default { props: [ { name: 'before-close-full-screen', - type: '()=> boolean', + type: '() => boolean', defaultValue: '', desc: { 'zh-CN': '关闭全屏前的拦截方法,返回 false 则阻止关闭全屏,返回 true 则不阻止', @@ -3822,7 +3816,7 @@ export default { }, { name: 'before-open-full-screen', - type: '()=> boolean', + type: '() => boolean', defaultValue: '', desc: { 'zh-CN': '全屏前的拦截方法,返回 false 则阻止全屏,返回 true 则不阻止', @@ -3942,7 +3936,7 @@ export default { }, { name: 'reset-setting', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '点击个性化面板的重置按钮触发该事件', @@ -4004,6 +3998,7 @@ interface IRow { { name: 'IColumnConfig', type: 'interface', + depTypes: ['IValidRules'], code: ` interface IColumnConfig { type: 'index' | 'radio' | 'checkbox' @@ -4053,7 +4048,7 @@ interface IPagerConfig { type: 'type', code: ` interface IDataHandler { - api: ()=> Promise + api: () => Promise } ` }, @@ -4099,7 +4094,7 @@ interface IToolTipConfig { type?: 'normal' | 'warning' | 'error' | 'info' | 'success' effect?: 'dark' | 'light' // 自定义提示内容 - contentMethod?: ()=> string | VNode + contentMethod?: () => string | VNode } ` }, @@ -4121,7 +4116,7 @@ interface IContextMenuConfig { footer?: { options: IMenuOptions } - visibleMethod?: ()=> boolean + visibleMethod?: () => boolean } ` }, @@ -4230,7 +4225,7 @@ interface IRadioConfig { // 默认选中指定行(只会在初始化时被触发一次,需要有 row-id) checkRowKey?: string // 是否允许选中的方法,该方法的返回值用来决定这一行的 Radio 是否可以选中 - checkMethod?: ()=> boolean + checkMethod?: () => boolean } ` }, @@ -4246,7 +4241,7 @@ interface ISelectConfig { // 默认勾选开指定行(只会在初始化时被触发一次,需要有 row-id) checkRowKeys?: string[] // 是否允许选中的方法,该方法的返回值用来决定这一行的 checkbox 是否可以勾选 - checkMethod?: ()=> boolean + checkMethod?: () => boolean // 默认勾选所有(只会在初始化时被触发一次)} checkAll?: boolean // 是否显示全选按钮(如果 checkStrictly=true 则默认为 false) @@ -4333,7 +4328,7 @@ interface IScrollLoadConfig { type: 'type', code: ` interface IEventsConfig { - [field: string]: ()=> void + [field: string]: () => void } ` }, @@ -4349,7 +4344,7 @@ interface IDropConfig { // 开启列拖拽 column: boolean // 拖拽前函数,返回 false 取消拖动 - onBeforeMove?: ()=> boolean + onBeforeMove?: () => boolean // 拖拽触发源选择器一般是class类名 trigger?: string // 根据行的类名来控制是否可以拖动 @@ -4420,9 +4415,9 @@ interface IBeforePageChangeArgs { //当前的页大小 currentPageSize: number //生效回调 - callback: ()=> void + callback: () => void //失效回调 - rollback: ()=> void + rollback: () => void } ` }, @@ -4446,6 +4441,7 @@ interface IToolbarButtonClickArgs { { name: 'ICellClickArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface ICellClickArgs { // 当前行 @@ -4472,6 +4468,7 @@ interface ICellContextMenuArgs { { name: 'ICellArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface ICellArgs { //当前行 @@ -4498,6 +4495,7 @@ interface ICurrentChangeArgs { { name: 'IEditActivedArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IEditActivedArgs { // 当前行 @@ -4510,6 +4508,7 @@ interface IEditActivedArgs { { name: 'IEditClosedArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IEditClosedArgs { // 当前行 @@ -4522,6 +4521,7 @@ interface IEditClosedArgs { { name: 'IEditDisabledArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IEditDisabledArgs { //当前行 @@ -4546,6 +4546,7 @@ interface IFilterChangeArgs { { name: 'IFooterCellClickArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IFooterCellClickArgs { $columnIndex: number @@ -4563,6 +4564,7 @@ interface IFooterCellClickArgs { { name: 'IContextMenuArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IContextMenuArgs { $columnIndex: number @@ -4584,6 +4586,7 @@ interface IContextMenuArgs { { name: 'IFooterCellDblClickArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IFooterCellDblClickArgs { $columnIndex: number @@ -4601,6 +4604,7 @@ interface IFooterCellDblClickArgs { { name: 'IHeaderCellClickArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IHeaderCellClickArgs { $columnIndex: number @@ -4622,6 +4626,7 @@ interface IHeaderCellClickArgs { { name: 'IHeaderCellDblClickArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IHeaderCellDblClickArgs { // 列数据 @@ -4638,6 +4643,7 @@ interface IHeaderCellDblClickArgs { { name: 'IResizableChangeArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IResizableChangeArgs { // table组件的vue 实例 @@ -4674,6 +4680,7 @@ interface IScrollArgs { { name: 'ISelectAllArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface ISelectAllArgs { $columnIndex: number @@ -4733,6 +4740,7 @@ interface IToggleTreeChangeArgs { { name: 'IValidErrorArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IValidErrorArgs { // 校验的单元格信息对象 @@ -4749,6 +4757,7 @@ interface IValidErrorArgs { { name: 'ISortChangeArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface ISortChangeArgs { // 表格实例对象信息 @@ -4767,6 +4776,7 @@ interface ISortChangeArgs { { name: 'IClassNameArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IClassNameArgs { seq: number @@ -4782,6 +4792,7 @@ interface IClassNameArgs { { name: 'IIndexMethodArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IIndexMethodArgs { row: IRow @@ -4794,6 +4805,7 @@ interface IIndexMethodArgs { { name: 'IFormatConfig', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface IFormatConfig { // 列数据源 @@ -4845,6 +4857,7 @@ interface ISettingConfigs { { name: 'ISpanMethodArgs', type: 'type', + depTypes: ['IColumnConfig'], code: ` interface ISpanMethodArgs { // 行标 @@ -4860,6 +4873,7 @@ interface ISpanMethodArgs { }, { name: 'IExportCsvOptions', + depTypes: ['IRow'], type: 'type', code: ` interface IExportCsvOptions { @@ -4879,7 +4893,7 @@ interface IEditorConfig { component: 'input' | 'select' | Component // 传递给组件的事件集合 events?: { - [event]: ()=> void + [event]: () => void } // 传递给编辑器组件的属性集合 attrs?: { @@ -4909,19 +4923,7 @@ interface IFilterConfig { label: string // 设置枚举数据的实际值属性字段, 默认'value' value: string - }[] | ()=> Promise -} - ` - }, - { - name: 'IOPConfig', - type: 'type', - code: ` -interface IOPConfig { - editConfig?: IEditConfig - pagerConfig?: IPagerConfig - columns: IColumnConfig[] - data: IRow[] + }[] | () => Promise } ` }, diff --git a/examples/sites/demos/apis/mind-map.js b/examples/sites/demos/apis/mind-map.js index 0f973574ec..a6b8c54d91 100644 --- a/examples/sites/demos/apis/mind-map.js +++ b/examples/sites/demos/apis/mind-map.js @@ -60,7 +60,7 @@ export default { { name: 'expandNode', typeAnchorName: 'IMindExpandNode', - type: 'IMindnExpandNode', + type: 'IMindExpandNode', desc: { 'zh-CN': '展开节点时会触发该事件', 'en-US': 'This event will be triggered when expanding a node' diff --git a/examples/sites/demos/apis/modal.js b/examples/sites/demos/apis/modal.js index 203f0b4bf6..e5807647d3 100644 --- a/examples/sites/demos/apis/modal.js +++ b/examples/sites/demos/apis/modal.js @@ -18,7 +18,7 @@ export default { }, { name: 'cancel-btn-props', - typeAnchorName: 'button#API', + linkTo: 'button#API', type: 'Button.props', defaultValue: '{}', desc: { @@ -43,7 +43,7 @@ export default { }, { name: 'confirm-btn-props', - typeAnchorName: 'button#API', + linkTo: 'button#API', type: 'Button.props', defaultValue: '{}', desc: { diff --git a/examples/sites/demos/apis/multi-select.js b/examples/sites/demos/apis/multi-select.js index db6558ae48..40b4c1a045 100644 --- a/examples/sites/demos/apis/multi-select.js +++ b/examples/sites/demos/apis/multi-select.js @@ -161,6 +161,7 @@ export default { { name: 'IMultiSelectMenu', type: 'interface', + depTypes: ['IMultiSelectOption'], code: ` interface IMultiSelectMenu { title: string, // 菜单项标题 diff --git a/examples/sites/demos/apis/numeric.js b/examples/sites/demos/apis/numeric.js index 06f7a134d7..1a741fcbf9 100644 --- a/examples/sites/demos/apis/numeric.js +++ b/examples/sites/demos/apis/numeric.js @@ -281,7 +281,7 @@ export default { defaultValue: '', desc: { 'zh-CN': '计数器尺寸,该属性的可选值为 medium | small | mini', - 'en-US': 'Counter size.The optional values of this attribute are medium | small | mini' + 'en-US': 'Counter size,The optional values of this attribute are medium | small | mini' }, mode: ['pc', 'mobile-first'], pcDemo: 'numeric-size', diff --git a/examples/sites/demos/apis/pop-upload.js b/examples/sites/demos/apis/pop-upload.js index c4374ffcbd..7f0969a1da 100644 --- a/examples/sites/demos/apis/pop-upload.js +++ b/examples/sites/demos/apis/pop-upload.js @@ -29,7 +29,7 @@ export default { }, { name: 'before-remove', - typeAnchorName: 'file-upload#IFile', + linkTo: 'file-upload#IFile', type: '(file: IFile) => void', defaultValue: '', desc: { @@ -43,7 +43,7 @@ export default { }, { name: 'before-upload', - typeAnchorName: 'file-upload#IFile', + linkTo: 'file-upload#IFile', type: '(file: IFile) => void', defaultValue: '', desc: { @@ -227,7 +227,7 @@ export default { events: [ { name: 'error', - typeAnchorName: 'file-upload#IFile', + linkTo: 'file-upload#IFile', type: '(file: IFile) => void', defaultValue: '', desc: { @@ -239,7 +239,7 @@ export default { }, { name: 'exceed', - typeAnchorName: 'file-upload#IFile', + linkTo: 'file-upload#IFile', type: '(files: File | File[], fileList: IFile[]) => void', defaultValue: '', desc: { @@ -251,7 +251,7 @@ export default { }, { name: 'progress', - typeAnchorName: 'file-upload#IFile', + linkTo: 'file-upload#IFile', type: '(file: IFile) => void', defaultValue: '', desc: { @@ -263,7 +263,7 @@ export default { }, { name: 'remove', - typeAnchorName: 'file-upload#IFile', + linkTo: 'file-upload#IFile', type: '(file: IFile, fileList: IFile[]) => void', defaultValue: '', desc: { @@ -276,7 +276,7 @@ export default { }, { name: 'success', - typeAnchorName: 'IFile', + linkTo: 'file-upload#IFile', type: '(res: ProgressEvent, file: IFile) => void', defaultValue: '', desc: { diff --git a/examples/sites/demos/apis/popconfirm.js b/examples/sites/demos/apis/popconfirm.js index 000c070e19..bd5376c8f6 100644 --- a/examples/sites/demos/apis/popconfirm.js +++ b/examples/sites/demos/apis/popconfirm.js @@ -43,7 +43,7 @@ export default { }, { name: 'placement', - typeAnchorName: 'popover#IPopperPlacement', + linkTo: 'popover#IPopperPlacement', type: 'IPopperPlacement', defaultValue: "'top'", desc: { diff --git a/examples/sites/demos/apis/popeditor.js b/examples/sites/demos/apis/popeditor.js index 0f5a9a72a0..2c8e9e4c0f 100644 --- a/examples/sites/demos/apis/popeditor.js +++ b/examples/sites/demos/apis/popeditor.js @@ -96,7 +96,7 @@ export default { }, { name: 'grid-op', - typeAnchorName: 'grid#API', + linkTo: 'grid#API', type: `InstanceType<typeof TinyGrid>['$props']`, defaultValue: '', desc: { @@ -141,8 +141,8 @@ export default { }, { name: 'pager-op', - typeAnchorName: 'pager#API', - type: `InstanceType<typeof TinyPager>['$props']`, + linkTo: 'pager#API', + type: `InstanceType['$props']`, defaultValue: '', desc: { 'zh-CN': '设置分页配置', @@ -221,7 +221,7 @@ export default { }, { name: 'selected-box-op', - typeAnchorName: 'dialog-select#ISelectedBoxOption', + linkTo: 'dialog-select#ISelectedBoxOption', type: 'ISelectedBoxOption', defaultValue: '', desc: { diff --git a/examples/sites/demos/apis/popover.js b/examples/sites/demos/apis/popover.js index 1a77b73df3..6a41240fd2 100644 --- a/examples/sites/demos/apis/popover.js +++ b/examples/sites/demos/apis/popover.js @@ -169,7 +169,8 @@ export default { }, { name: 'popper-options', - type: 'object', + type: 'IPopperOption', + typeAnchorName: 'IPopperOption', defaultValue: '{}', desc: { 'zh-CN': '弹出层参数', @@ -283,7 +284,7 @@ export default { events: [ { name: 'after-enter', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '进入的动画播放完毕后触发', @@ -296,7 +297,7 @@ export default { }, { name: 'after-leave', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '离开的动画播放完毕后触发', @@ -309,7 +310,7 @@ export default { }, { name: 'hide', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '隐藏时触发', @@ -322,7 +323,7 @@ export default { }, { name: 'show', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '显示时触发', diff --git a/examples/sites/demos/apis/qr-code.js b/examples/sites/demos/apis/qr-code.js index ea01d0ec69..98049c1606 100644 --- a/examples/sites/demos/apis/qr-code.js +++ b/examples/sites/demos/apis/qr-code.js @@ -86,7 +86,7 @@ export default { events: [ { name: 'change', - type: '()=> void', + type: '() => void', desc: { 'zh-CN': '二维码发生变化后的回调', 'en-US': 'chang callback' diff --git a/examples/sites/demos/apis/search.js b/examples/sites/demos/apis/search.js index 01c8099365..8a794fa46d 100644 --- a/examples/sites/demos/apis/search.js +++ b/examples/sites/demos/apis/search.js @@ -62,6 +62,17 @@ export default { mode: ['mobile-first'], mfDemo: '' }, + { + name: 'disabled', + type: 'boolean', + defaultValue: 'false', + desc: { + 'zh-CN': '设置是否禁用【3.18.0新增】', + 'en-US': '' + }, + mode: ['pc'], + pcDemo: 'slot-prefix' + }, { name: 'is-enter-search', type: 'boolean', diff --git a/examples/sites/demos/apis/select.js b/examples/sites/demos/apis/select.js index e206acd281..3805102820 100644 --- a/examples/sites/demos/apis/select.js +++ b/examples/sites/demos/apis/select.js @@ -936,8 +936,8 @@ interface ICacheOp { highlightClass?: string // 个性化高亮 class 名称,默认:memorize-highlight highlightNum?: number // 高亮个性化的条数,默认:Infinity cacheNum?: number // 存储个性化的条数,默认:Infinity - serialize?: ()=> string // 本地存储序列化方法,默认:JSON.stringify - deserialize?: ()=> ICacheItem[] // 本地存储序反列化方法,默认:JSON.parse + serialize?: () => string // 本地存储序列化方法,默认:JSON.stringify + deserialize?: () => ICacheItem[] // 本地存储序反列化方法,默认:JSON.parse } ` }, diff --git a/examples/sites/demos/apis/split.js b/examples/sites/demos/apis/split.js index cee3d0f4bf..7ee7ed4460 100644 --- a/examples/sites/demos/apis/split.js +++ b/examples/sites/demos/apis/split.js @@ -114,7 +114,7 @@ export default { events: [ { name: 'left-top-click', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '左箭头收起时触发', @@ -125,7 +125,7 @@ export default { }, { name: 'moveend', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '拖拽结束的事件', @@ -136,7 +136,7 @@ export default { }, { name: 'movestart', - type: '()=> void', + type: '() => void', defaultValue: '', desc: { 'zh-CN': '拖拽开始的事件', diff --git a/examples/sites/demos/apis/steps.js b/examples/sites/demos/apis/steps.js index 3cd02a7b55..669f3be30f 100644 --- a/examples/sites/demos/apis/steps.js +++ b/examples/sites/demos/apis/steps.js @@ -225,6 +225,7 @@ export default { { name: 'IStepsItem', type: 'interface', + depTypes: ['IStepsStatus'], code: ` interface IStepsItem { // 节点数据 diff --git a/examples/sites/demos/apis/switch.js b/examples/sites/demos/apis/switch.js index 5c1b26ea04..1626bbdc2e 100644 --- a/examples/sites/demos/apis/switch.js +++ b/examples/sites/demos/apis/switch.js @@ -175,6 +175,30 @@ export default { mode: ['pc', 'mobile-first'], pcDemo: 'custom-open-close', mfDemo: '' + }, + { + name: 'active-icon', + type: '', + defaultValue: '', + desc: { + 'zh-CN': '开启时开关的图标', + 'en-US': 'Icon of the switch when turned on' + }, + mode: ['pc'], + pcDemo: 'custom-open-close-icon', + mfDemo: '' + }, + { + name: 'inactive-icon', + type: '', + defaultValue: '', + desc: { + 'zh-CN': '关闭时开关的图标', + 'en-US': 'Icon of the switch when turned off' + }, + mode: ['pc'], + pcDemo: 'custom-open-close-icon', + mfDemo: '' } ] } diff --git a/examples/sites/demos/apis/tabs.js b/examples/sites/demos/apis/tabs.js index f4ed92bca3..b12370d640 100644 --- a/examples/sites/demos/apis/tabs.js +++ b/examples/sites/demos/apis/tabs.js @@ -178,13 +178,11 @@ export default { type: "'small' | 'large'", defaultValue: '', desc: { - 'zh-CN': - '设置 tabs 页签尺寸,该属性可选值为 large 或 small,其中 small 在 tabStyle 为 card 或者 border-card 时生效', - 'en-US': - 'Sets the tab size. The value can be large or small. This parameter is valid only when tabStyle is set to card or border-card' + 'zh-CN': '设置 tabs 页签尺寸,该属性可选值为 large 或 small', + 'en-US': 'Sets the tab size. The value can be large or small' }, mode: ['pc', 'mobile-first'], - pcDemo: 'tab-style-card', + pcDemo: 'size', mfDemo: '' }, { diff --git a/examples/sites/demos/apis/tag-group.js b/examples/sites/demos/apis/tag-group.js index ba385d9826..600b34b433 100644 --- a/examples/sites/demos/apis/tag-group.js +++ b/examples/sites/demos/apis/tag-group.js @@ -70,6 +70,7 @@ export default { }, { name: 'ITagGroupItemClick', + depTypes: ['ITagGroupDataItem'], type: 'type', code: `type ITagGroupItemClick = (item: ITagGroupDataItem, index: number, event: Event) => void` } diff --git a/examples/sites/demos/apis/transfer.js b/examples/sites/demos/apis/transfer.js index c5357e78f3..35aaa0d950 100644 --- a/examples/sites/demos/apis/transfer.js +++ b/examples/sites/demos/apis/transfer.js @@ -19,7 +19,7 @@ export default { }, { name: 'columns', - typeAnchorName: 'grid#IColumnConfig', + linkTo: 'grid#IColumnConfig', type: 'IColumnConfig', defaultValue: '', desc: { @@ -102,7 +102,7 @@ export default { }, { name: 'left-columns', - typeAnchorName: 'grid#IColumnConfig', + linkTo: 'grid#IColumnConfig', type: 'IColumnConfig', defaultValue: '', desc: { @@ -173,7 +173,7 @@ export default { }, { name: 'right-columns', - typeAnchorName: 'grid#IColumnConfig', + linkTo: 'grid#IColumnConfig', type: 'IColumnConfig', defaultValue: '', desc: { @@ -267,7 +267,7 @@ export default { }, { name: 'tree-op', - typeAnchorName: 'tree#API', + linkTo: 'tree#API', type: 'Tree props', defaultValue: '', desc: { diff --git a/examples/sites/demos/apis/tree-menu.js b/examples/sites/demos/apis/tree-menu.js index ec0e59e7a3..3b70c20a43 100644 --- a/examples/sites/demos/apis/tree-menu.js +++ b/examples/sites/demos/apis/tree-menu.js @@ -283,17 +283,6 @@ export default { mode: ['pc'], pcDemo: 'only-check-children' }, - { - name: 'prefix-icon', - type: 'Component', - defaultValue: '', - desc: { - 'zh-CN': '自定义前置图标', - 'en-US': 'Customize the front icon' - }, - mode: ['pc'], - pcDemo: 'custom-icon' - }, { name: 'props', typeAnchorName: 'IProps', @@ -381,8 +370,8 @@ export default { type: 'Component', defaultValue: '', desc: { - 'zh-CN': '自定义后置图标', - 'en-US': 'Customize the post icon' + 'zh-CN': '全局设置带图标树形菜单', + 'en-US': 'Global settings with icon tree menu' }, mode: ['pc'], pcDemo: 'custom-icon' diff --git a/examples/sites/demos/apis/tree-select.js b/examples/sites/demos/apis/tree-select.js index 9b8c4e66f1..da57527e2e 100644 --- a/examples/sites/demos/apis/tree-select.js +++ b/examples/sites/demos/apis/tree-select.js @@ -6,37 +6,109 @@ export default { type: 'component', props: [ { - name: 'clearable', + name: 'autocomplete', + type: 'string', + defaultValue: "'off'", + desc: { + 'zh-CN': '输入框的原生 autocomplete 属性', + 'en-US': 'The native autocomplete attribute of the input box' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'native-properties', + mfDemo: 'native-properties' + }, + { + name: 'click-expand', + type: 'boolean', + defaultValue: 'false', + desc: { + 'zh-CN': '点击可展开或收起显示不全的选项。仅用于多选', + 'en-US': 'Click to expand or collapse options. Only applicable to multiple selections' + }, + pcDemo: 'collapse-tags' + }, + { + name: 'collapse-tags', + type: 'boolean', + defaultValue: 'false', + desc: { + 'zh-CN': '是否将多个标签折叠显示。仅适用多选', + 'en-US': 'Whether to collapse multiple labels for display. Only applicable to multiple selections' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'collapse-tags', + mfDemo: 'collapse-tags' + }, + { + name: 'copyable', + type: 'boolean', + defaultValue: 'false', + desc: { + 'zh-CN': '是否启用一键复制的功能。点击复制按钮一键复制所有标签的文本内容并以逗号分隔,仅适用于多选', + 'en-US': + 'Is the one click copy function enabled. Click the copy button to copy the text content of all labels with one click, separated by commas, only applicable to multiple selections' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'copy-multi', + mfDemo: 'copy-multi' + }, + { + name: 'disabled', type: 'boolean', defaultValue: 'false', desc: { - 'zh-CN': '是否启用一键清除的功能', - 'en-US': 'Whether to display the one click clear button, only applicable to radio selection' + 'zh-CN': '是否禁用', + 'en-US': 'Is it disabled' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'disabled', + mfDemo: 'disabled' + }, + { + name: 'dropdown-icon', + type: 'Component', + defaultValue: '', + desc: { + 'zh-CN': '自定义下拉图标', + 'en-US': 'Custom drop-down icon' }, mode: ['pc'], - pcDemo: 'filter' + pcDemo: 'multiple' }, { - name: 'filter-method', - type: '(query: string) => void', + name: 'drop-style', + type: 'String', defaultValue: '', desc: { - 'zh-CN': '自定义过滤方法', - 'en-US': 'Custom filtering method' + 'zh-CN': '自定义下拉选项样式', + 'en-US': 'Custom drop-down options style' }, mode: ['pc'], - pcDemo: 'filter' + pcDemo: 'multiple' }, { - name: 'filterable', - type: 'boolean', - defaultValue: 'false', + name: 'input-box-type', + type: "'input' | 'underline'", + defaultValue: "'input'", + desc: { + 'zh-CN': '输入框的显示类型', + 'en-US': 'Display type of input box' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'input-box-type', + mfDemo: 'input-box-type' + }, + { + name: 'max-visible-rows', + type: 'number', + defaultValue: '1', desc: { - 'zh-CN': '是否可搜索', - 'en-US': 'Is it searchable' + 'zh-CN': '多行默认最大显示行数,超出后选项自动隐藏', + 'en-US': + 'Default maximum display lines for multiple lines, with automatic hiding option for exceeding lines' }, mode: ['pc'], - pcDemo: 'filter' + pcDemo: 'collapse-tags' }, { name: 'modelValue / v-model', @@ -60,6 +132,92 @@ export default { mode: ['pc'], pcDemo: 'multiple' }, + { + name: 'name', + type: 'string', + defaultValue: '', + desc: { + 'zh-CN': '输入框的原生 name 属性', + 'en-US': 'The native name attribute of the input box' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'native-properties', + mfDemo: 'native-properties' + }, + { + name: 'placeholder', + type: 'string', + defaultValue: "'请选择'", + desc: { + 'zh-CN': '占位符', + 'en-US': 'Placeholder' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'native-properties', + mfDemo: 'native-properties' + }, + { + name: 'placement', + typeAnchorName: 'IPlacement', + type: 'IPlacement', + defaultValue: "'bottom-start'", + desc: { + 'zh-CN': '下拉弹框相对于触发源的弹出位置', + 'en-US': 'The pop-up position of the pull-down pop-up box relative to the trigger source' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'popup-style-position', + mfDemo: 'popup-style-position' + }, + { + name: 'popper-append-to-body', + type: 'boolean', + defaultValue: 'true', + desc: { + 'zh-CN': '是否将弹出框的 dom 元素插入至 body 元素', + 'en-US': 'Whether to insert the dom element of the pop-up box into the body element' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'popup-style-position', + mfDemo: 'popup-style-position' + }, + { + name: 'popper-class', + type: 'string', + defaultValue: '', + desc: { + 'zh-CN': '自定义下拉框的类名,用于自定义样式', + 'en-US': 'The class name of the custom dropdown box, used for customizing styles' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'popup-style-position', + mfDemo: 'popup-style-position' + }, + { + name: 'size', + type: "'medium' | 'small' | 'mini'", + defaultValue: '', + desc: { + 'zh-CN': '输入框尺寸。', + 'en-US': 'Text box size' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'size', + mfDemo: 'size' + }, + { + name: 'tag-type', + type: "'success' | 'info' | 'warning' | 'danger'", + defaultValue: '', + desc: { + 'zh-CN': '标签类型,仅多选适用。使用 aurora 主题时设置该属性为 info', + 'en-US': + 'Label type, only applicable for multiple choices. Set this property to info when using the aurora theme' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'tag-type', + mfDemo: 'tag-type' + }, { name: 'text-field', type: 'string', @@ -71,6 +229,18 @@ export default { mode: ['pc'], pcDemo: 'map-field' }, + { + name: 'text-split', + type: 'string', + defaultValue: "','", + desc: { + 'zh-CN': '自定义复制文本的分隔符,需结合 copyable 属性使用', + 'en-US': 'The separator for custom copied text needs to be used in conjunction with the copyable attribute' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'copy-multi', + mfDemo: 'copy-multi' + }, { name: 'tree-op', typeAnchorName: 'ITreeOption', @@ -112,6 +282,13 @@ interface ITreeNode { interface ITreeOption { data: ITreeNode[] // 树数据,用法同 Tree } +` + }, + { + name: 'IPlacement', + type: 'type', + code: ` +type IPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' ` } ] diff --git a/examples/sites/demos/apis/tree.js b/examples/sites/demos/apis/tree.js index 4fd2f2e740..bd9ada2b55 100644 --- a/examples/sites/demos/apis/tree.js +++ b/examples/sites/demos/apis/tree.js @@ -546,7 +546,7 @@ export default { }, { name: 'close-edit', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '关闭编辑的事件', @@ -741,7 +741,7 @@ export default { }, { name: 'open-edit', - type: '()=>void', + type: '() =>void', defaultValue: '', desc: { 'zh-CN': '进入编辑的事件', diff --git a/examples/sites/demos/mobile-first/app/fluent-editor/basic-usage.vue b/examples/sites/demos/mobile-first/app/fluent-editor/basic-usage.vue new file mode 100644 index 0000000000..d08482596d --- /dev/null +++ b/examples/sites/demos/mobile-first/app/fluent-editor/basic-usage.vue @@ -0,0 +1,22 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.cn.md b/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.cn.md new file mode 100644 index 0000000000..487b3e2f16 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.cn.md @@ -0,0 +1,9 @@ +--- +title: FluentEditor 富文本 +--- + +# FluentEditor 富文本 + +
+用于创建和编辑富文本内容。 +
diff --git a/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.en.md b/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.en.md new file mode 100644 index 0000000000..d4ee24a5a1 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.en.md @@ -0,0 +1,9 @@ +--- +title: FluentEditor +--- + +# FluentEditor + +
+FluentEditor is a rich text component used to create and edit rich text content. +
diff --git a/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.js b/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.js new file mode 100644 index 0000000000..6b8c7cc4de --- /dev/null +++ b/examples/sites/demos/mobile-first/app/fluent-editor/webdoc/fluent-editor.js @@ -0,0 +1,18 @@ +export default { + column: '2', + owner: '', + demos: [ + { + demoId: 'basic-usage', + name: { + 'zh-CN': '基本用法', + 'en-US': 'Basic Usage' + }, + desc: { + 'zh-CN': '通过 v-model 设置绑定值,默认数据保存格式为 Delta 数据格式。', + 'en-US': 'You can refer to component label.' + }, + codeFiles: ['basic-usage.vue'] + } + ] +} diff --git a/examples/sites/demos/mobile-first/app/grid/basic-usage.vue b/examples/sites/demos/mobile-first/app/grid/basic-usage.vue index dae1ef2308..98ce58af1c 100644 --- a/examples/sites/demos/mobile-first/app/grid/basic-usage.vue +++ b/examples/sites/demos/mobile-first/app/grid/basic-usage.vue @@ -43,6 +43,7 @@ :image="row.logo" :flex-grow="[0, 0]" :flex-basis="['50%', '50%']" + operate-flex-basis="80px" :options="listOptions" class="mb-3" > @@ -176,7 +177,12 @@ export default { }, operationConfig: { buttons: [ - { name: '操作1', icon: IconAreaChart(), click: this.clickHandler, disabled: true }, + { + name: '操作', + icon: IconAreaChart(), + click: this.clickHandler, + disabled: true + }, { name: '操作2', icon: IconBarChart(), click: this.clickHandler, disabled: (row) => row.id === '1' }, { name: '操作3', icon: IconDotChart(), click: this.clickHandler, hidden: true }, { name: '操作4', icon: IconLineChart(), click: this.clickHandler, hidden: (row) => row.id === '2' }, diff --git a/examples/sites/demos/mobile-first/app/time-line-new/auto-slot.vue b/examples/sites/demos/mobile-first/app/time-line-new/auto-slot.vue new file mode 100644 index 0000000000..320417ac9d --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/auto-slot.vue @@ -0,0 +1,50 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/basic-usage.vue b/examples/sites/demos/mobile-first/app/time-line-new/basic-usage.vue new file mode 100644 index 0000000000..5f3378235c --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/basic-usage.vue @@ -0,0 +1,23 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/fold-time.vue b/examples/sites/demos/mobile-first/app/time-line-new/fold-time.vue new file mode 100644 index 0000000000..2516d125ba --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/fold-time.vue @@ -0,0 +1,29 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/limited-nodes.vue b/examples/sites/demos/mobile-first/app/time-line-new/limited-nodes.vue new file mode 100644 index 0000000000..d0002f78eb --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/limited-nodes.vue @@ -0,0 +1,29 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/many-status.vue b/examples/sites/demos/mobile-first/app/time-line-new/many-status.vue new file mode 100644 index 0000000000..a9db0ac72f --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/many-status.vue @@ -0,0 +1,24 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/node-max.vue b/examples/sites/demos/mobile-first/app/time-line-new/node-max.vue new file mode 100644 index 0000000000..f9d67946b0 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/node-max.vue @@ -0,0 +1,26 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/node-toset.vue b/examples/sites/demos/mobile-first/app/time-line-new/node-toset.vue new file mode 100644 index 0000000000..1fb93923b8 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/node-toset.vue @@ -0,0 +1,32 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/single-status.vue b/examples/sites/demos/mobile-first/app/time-line-new/single-status.vue new file mode 100644 index 0000000000..e3e7c73ab4 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/single-status.vue @@ -0,0 +1,40 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/sub-field.vue b/examples/sites/demos/mobile-first/app/time-line-new/sub-field.vue new file mode 100644 index 0000000000..bec6907eef --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/sub-field.vue @@ -0,0 +1,23 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.cn.md b/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.cn.md new file mode 100644 index 0000000000..3cee5f4486 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.cn.md @@ -0,0 +1,9 @@ +--- +title: TimeLine 时间线 +--- + +# TimeLine 时间线 + +
+ +
diff --git a/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.en.md b/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.en.md new file mode 100644 index 0000000000..3cee5f4486 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.en.md @@ -0,0 +1,9 @@ +--- +title: TimeLine 时间线 +--- + +# TimeLine 时间线 + +
+ +
diff --git a/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.js b/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.js new file mode 100644 index 0000000000..cf7fbab3d5 --- /dev/null +++ b/examples/sites/demos/mobile-first/app/time-line-new/webdoc/time-line-new.js @@ -0,0 +1,120 @@ +export default { + column: '2', + owner: '', + demos: [ + { + demoId: 'basic-usage', + name: { + 'zh-CN': '基本用法', + 'en-US': 'Basic Usage' + }, + desc: { + 'zh-CN': '

通过 `data` 属性设置时间线步骤条数据

', + 'en-US': '

Set the timeline step bar data through the `data` property.

' + }, + codeFiles: ['basic-usage.vue'] + }, + { + demoId: 'sub-field', + name: { + 'zh-CN': '两侧分布', + 'en-US': 'Bilateral distribution' + }, + desc: { + 'zh-CN': '

通过 `sub-field` 属性设置时间线两侧展示。

', + 'en-US': '

Use the `sub-field` attribute to set the display on both sides of the timeline.

' + }, + codeFiles: ['sub-field.vue'] + }, + { + demoId: 'single-status', + name: { + 'zh-CN': '单状态时间轴', + 'en-US': 'Single-state timeline' + }, + desc: { + 'zh-CN': '

通过在`data`里面的属性`autoColor`设置自定义图标

', + 'en-US': '

Set the customized icon through the `autoColor` attribute in `data`.

' + }, + codeFiles: ['single-status.vue'] + }, + { + demoId: 'many-status', + name: { + 'zh-CN': '多状态时间轴', + 'en-US': 'Multi-state timeline' + }, + desc: { + 'zh-CN': + '

通过在`data`里面的属性`autoColor`设置自定义状态。对应场景: `success` :成功 `error` :失败 `info` :等待

', + 'en-US': + '

Set the user-defined state through the `autoColor` attribute in `data`. Scenario: `success`: success; error`: failure; info`: waiting

' + }, + codeFiles: ['many-status.vue'] + }, + { + demoId: 'node-toset', + name: { + 'zh-CN': '节点配置图标', + 'en-US': 'Node configuration icon' + }, + desc: { + 'zh-CN': '

通过在`data`里面的属性`autoColor`设置自定义图标

', + 'en-US': '

Set the customized icon through the `autoColor` attribute in `data`.

' + }, + codeFiles: ['node-toset.vue'] + }, + { + demoId: 'fold-time', + name: { + 'zh-CN': '折叠时间轴', + 'en-US': 'Collapse Timeline' + }, + desc: { + 'zh-CN': '

当节点个数达到七项时,自动折叠节点,仅展示最近三项,点击后展开。

', + 'en-US': + '

When there are more than seven nodes, the system automatically collapses the nodes and displays only the latest three nodes.

' + }, + codeFiles: ['fold-time.vue'] + }, + { + demoId: 'node-max', + name: { + 'zh-CN': '触发折叠节点数', + 'en-US': 'Number of Nodes Triggering Folding' + }, + desc: { + 'zh-CN': '

通过 node-max 属性可以配置节点达到指定个数后自动折叠节点。

', + 'en-US': + '

Use node-max to automatically collapse nodes after reaching a specified number of nodes.

' + }, + codeFiles: ['node-max.vue'] + }, + { + demoId: 'limited-nodes', + name: { + 'zh-CN': '折叠后节点数', + 'en-US': 'Number of Nodes After Folding' + }, + desc: { + 'zh-CN': '

通过 limited-nodes 属性可以设置折叠后展示的节点个数。

', + 'en-US': '

Use node-max to set the number of nodes displayed after folding.

' + }, + codeFiles: ['limited-nodes.vue'] + }, + { + demoId: 'auto-slot', + name: { + 'zh-CN': '自定义插槽', + 'en-US': 'Custom Slots' + }, + desc: { + 'zh-CN': + '

通过 `slot` 为 `left` 可以自定义步骤条右侧内容。`data`中自定义属性名应避免`name`(正标题)、`tips`(副标题)、`time`(时间)属性

', + 'en-US': + '

You can set `slot` to `left` to customize the content on the right of the step bar. User-defined attribute names in `data` should avoid `name` (head title), `tips` (subtitle), and `time` (time) attributes.

' + }, + codeFiles: ['auto-slot.vue'] + } + ] +} diff --git a/examples/sites/demos/mobile-first/menus.js b/examples/sites/demos/mobile-first/menus.js index 8633f318fc..937c8edc1f 100644 --- a/examples/sites/demos/mobile-first/menus.js +++ b/examples/sites/demos/mobile-first/menus.js @@ -11,7 +11,7 @@ export const cmpMenus = [ { label: '导航组件', labelEn: 'Navigation', - key: 'cmp_navigation_components', + key: 'cmp-navigation-components', children: [ { name: 'Tabbar', nameCn: '标签栏', key: 'tabbar' }, { name: 'CalendarBar', nameCn: '日历栏', key: 'calendar-bar' }, @@ -21,6 +21,8 @@ export const cmpMenus = [ { name: 'Tabs ', nameCn: '标签页', key: 'tabs' }, { name: 'Menu ', nameCn: '菜单', key: 'menu' }, { name: 'TimeLine ', nameCn: '时间线', key: 'time-line' }, + // 测试时打开该行--------------- + // { name: 'TimeLineNew ', nameCn: '时间线AUI', key: 'time-line-new' }, { name: 'Dropdown ', nameCn: '下拉菜单', key: 'dropdown' }, { name: 'Flowchart ', nameCn: '流程图', key: 'flowchart' } ] @@ -28,7 +30,7 @@ export const cmpMenus = [ { label: '容器组件', labelEn: 'Container', - key: 'cmp_container_components', + key: 'cmp-container-components', children: [ { name: 'Cell', nameCn: '单元格', key: 'cell' }, { name: 'ActionSheet', nameCn: '动作面板', key: 'action-sheet' }, @@ -46,13 +48,14 @@ export const cmpMenus = [ { label: '表单组件', labelEn: 'Form', - key: 'cmp_form_components', + key: 'cmp-form-components', children: [ { name: 'DatePickerMobile', nameCn: '日期选择器', key: 'date-picker-mobile' }, { name: 'DatePicker', nameCn: '日期选择器多端', key: 'date-picker' }, { name: 'TimePickerMobile', nameCn: '时间选择器', key: 'time-picker-mobile' }, { name: 'Button', nameCn: '按钮', key: 'button' }, { name: 'Checkbox', nameCn: '复选框', key: 'checkbox' }, + { name: 'FluentEditor', nameCn: '富文本', key: 'fluent-editor' }, { name: 'Form', nameCn: '表单', key: 'form' }, { name: 'Input', nameCn: '输入框', key: 'input' }, { name: 'Numeric', nameCn: '计数器', key: 'numeric' }, @@ -74,7 +77,7 @@ export const cmpMenus = [ { label: '数据组件', labelEn: 'Data', - key: 'cmp_data_components', + key: 'cmp-data-components', children: [ { name: 'ColumnListItem', nameCn: '分区列表项', key: 'column-list-item' }, { name: 'StandardListItem', nameCn: '标准列表项', key: 'standard-list-item' }, @@ -86,13 +89,13 @@ export const cmpMenus = [ { 'label': '表格组件', 'labelEn': 'Table Components', - 'key': 'cmp_table_components', + 'key': 'cmp-table-components', 'children': [{ 'nameCn': '基本用法', 'name': 'Grid', 'key': 'grid' }] }, { label: '提示组件', labelEn: 'Tooltip', - key: 'cmp_tips_components', + key: 'cmp-tips-components', children: [ { name: 'Alert', nameCn: '警告', key: 'alert' }, { name: 'Badge', nameCn: '标记', key: 'badge' }, @@ -108,7 +111,7 @@ export const cmpMenus = [ { label: '其它组件', labelEn: 'Others', - key: 'cmp_other_components', + key: 'cmp-other-components', children: [ { name: 'Exception', nameCn: '缺省页', key: 'exception' }, { name: 'Image', nameCn: '图片预览', key: 'image' }, diff --git a/examples/sites/demos/pc/app/anchor/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/anchor/basic-usage-composition-api.vue index e18fc638a3..e42653844f 100644 --- a/examples/sites/demos/pc/app/anchor/basic-usage-composition-api.vue +++ b/examples/sites/demos/pc/app/anchor/basic-usage-composition-api.vue @@ -1,7 +1,7 @@ @@ -53,4 +53,8 @@ const type = ref('dot') display: flex; align-items: center; } +.demo-anchor { + margin-left: 8px; + font-size: 14px; +} diff --git a/examples/sites/demos/pc/app/anchor/basic-usage.vue b/examples/sites/demos/pc/app/anchor/basic-usage.vue index 61fc732908..fb9b859ee6 100644 --- a/examples/sites/demos/pc/app/anchor/basic-usage.vue +++ b/examples/sites/demos/pc/app/anchor/basic-usage.vue @@ -2,7 +2,7 @@
- 当前类型:{{ type }} + 当前类型:{{ type }}
@@ -63,4 +63,8 @@ export default { display: flex; align-items: center; } +.demo-anchor { + margin-left: 8px; + font-size: 14px; +} diff --git a/examples/sites/demos/pc/app/anchor/is-affix-composition-api.vue b/examples/sites/demos/pc/app/anchor/is-affix-composition-api.vue index 5453906eec..d3fee640b1 100644 --- a/examples/sites/demos/pc/app/anchor/is-affix-composition-api.vue +++ b/examples/sites/demos/pc/app/anchor/is-affix-composition-api.vue @@ -2,7 +2,7 @@
- {{ isAffix ? '固定模式' : '非固定模式' }} + {{ isAffix ? '固定模式' : '非固定模式' }}
@@ -57,4 +57,8 @@ const links = ref([ display: flex; align-items: center; } +.demo-anchor { + margin-left: 8px; + font-size: 14px; +} diff --git a/examples/sites/demos/pc/app/anchor/is-affix.vue b/examples/sites/demos/pc/app/anchor/is-affix.vue index 6ea7357774..00e0cb6662 100644 --- a/examples/sites/demos/pc/app/anchor/is-affix.vue +++ b/examples/sites/demos/pc/app/anchor/is-affix.vue @@ -2,7 +2,7 @@
- {{ isAffix ? '固定模式' : '非固定模式' }} + {{ isAffix ? '固定模式' : '非固定模式' }}
@@ -66,4 +66,8 @@ export default { display: flex; align-items: center; } +.demo-anchor { + margin-left: 8px; + font-size: 14px; +} diff --git a/examples/sites/demos/pc/app/badge/offset-composition-api.vue b/examples/sites/demos/pc/app/badge/offset-composition-api.vue index a695a54dd5..80890cce32 100644 --- a/examples/sites/demos/pc/app/badge/offset-composition-api.vue +++ b/examples/sites/demos/pc/app/badge/offset-composition-api.vue @@ -1,8 +1,11 @@ diff --git a/examples/sites/demos/pc/app/badge/offset.vue b/examples/sites/demos/pc/app/badge/offset.vue index 109b42eaf1..80217124cd 100644 --- a/examples/sites/demos/pc/app/badge/offset.vue +++ b/examples/sites/demos/pc/app/badge/offset.vue @@ -1,8 +1,11 @@ diff --git a/examples/sites/demos/pc/app/base-select/automatic-dropdown-composition-api.vue b/examples/sites/demos/pc/app/base-select/automatic-dropdown-composition-api.vue index e86522b7b1..8fac27b319 100644 --- a/examples/sites/demos/pc/app/base-select/automatic-dropdown-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/automatic-dropdown-composition-api.vue @@ -44,6 +44,7 @@ const handleFocus2 = () => { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } .tiny-button { margin-right: 10px; diff --git a/examples/sites/demos/pc/app/base-select/automatic-dropdown.vue b/examples/sites/demos/pc/app/base-select/automatic-dropdown.vue index 8ce56e852a..4c98f18e35 100644 --- a/examples/sites/demos/pc/app/base-select/automatic-dropdown.vue +++ b/examples/sites/demos/pc/app/base-select/automatic-dropdown.vue @@ -52,6 +52,7 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } .tiny-button { margin-right: 10px; diff --git a/examples/sites/demos/pc/app/base-select/binding-obj-composition-api.vue b/examples/sites/demos/pc/app/base-select/binding-obj-composition-api.vue index 991904adc7..e2626f811e 100644 --- a/examples/sites/demos/pc/app/base-select/binding-obj-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/binding-obj-composition-api.vue @@ -30,5 +30,6 @@ const value = ref({ val: '选项3', id: 3 }) p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/binding-obj.vue b/examples/sites/demos/pc/app/base-select/binding-obj.vue index 342d16d4fa..0539b406d1 100644 --- a/examples/sites/demos/pc/app/base-select/binding-obj.vue +++ b/examples/sites/demos/pc/app/base-select/binding-obj.vue @@ -39,5 +39,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/clear-no-match-value-composition-api.vue b/examples/sites/demos/pc/app/base-select/clear-no-match-value-composition-api.vue index 08e422df27..b4854e5696 100644 --- a/examples/sites/demos/pc/app/base-select/clear-no-match-value-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/clear-no-match-value-composition-api.vue @@ -39,5 +39,6 @@ const multiVal = ref(['选项2', '11']) p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/clear-no-match-value.vue b/examples/sites/demos/pc/app/base-select/clear-no-match-value.vue index ec76936c92..8af03b11e2 100644 --- a/examples/sites/demos/pc/app/base-select/clear-no-match-value.vue +++ b/examples/sites/demos/pc/app/base-select/clear-no-match-value.vue @@ -47,5 +47,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/copy-multi-composition-api.vue b/examples/sites/demos/pc/app/base-select/copy-multi-composition-api.vue index 691d263b1c..1cc595d44f 100644 --- a/examples/sites/demos/pc/app/base-select/copy-multi-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/copy-multi-composition-api.vue @@ -40,5 +40,6 @@ const copyValue = ref('') p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/copy-multi.vue b/examples/sites/demos/pc/app/base-select/copy-multi.vue index 2bb4a5e16e..bd5e0f37b4 100644 --- a/examples/sites/demos/pc/app/base-select/copy-multi.vue +++ b/examples/sites/demos/pc/app/base-select/copy-multi.vue @@ -50,5 +50,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/copy-single-composition-api.vue b/examples/sites/demos/pc/app/base-select/copy-single-composition-api.vue index 6fd7094350..7720f50384 100644 --- a/examples/sites/demos/pc/app/base-select/copy-single-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/copy-single-composition-api.vue @@ -146,5 +146,6 @@ onMounted(() => { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/copy-single.vue b/examples/sites/demos/pc/app/base-select/copy-single.vue index 340ed0cd89..bcced5d5cd 100644 --- a/examples/sites/demos/pc/app/base-select/copy-single.vue +++ b/examples/sites/demos/pc/app/base-select/copy-single.vue @@ -152,5 +152,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/filter-method-composition-api.vue b/examples/sites/demos/pc/app/base-select/filter-method-composition-api.vue index 0236ec70e9..0b1b13878a 100644 --- a/examples/sites/demos/pc/app/base-select/filter-method-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/filter-method-composition-api.vue @@ -68,5 +68,6 @@ const customFilterMethod = (searchValue) => { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/filter-method.vue b/examples/sites/demos/pc/app/base-select/filter-method.vue index 4703e0f769..e4fa323aeb 100644 --- a/examples/sites/demos/pc/app/base-select/filter-method.vue +++ b/examples/sites/demos/pc/app/base-select/filter-method.vue @@ -78,5 +78,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/input-box-type-composition-api.vue b/examples/sites/demos/pc/app/base-select/input-box-type-composition-api.vue index 171756ec40..ee42905564 100644 --- a/examples/sites/demos/pc/app/base-select/input-box-type-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/input-box-type-composition-api.vue @@ -39,5 +39,6 @@ const value3 = ref([]) p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/input-box-type.vue b/examples/sites/demos/pc/app/base-select/input-box-type.vue index 70b81ad97e..66d7752d5b 100644 --- a/examples/sites/demos/pc/app/base-select/input-box-type.vue +++ b/examples/sites/demos/pc/app/base-select/input-box-type.vue @@ -48,5 +48,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/is-drop-inherit-width-composition-api.vue b/examples/sites/demos/pc/app/base-select/is-drop-inherit-width-composition-api.vue index ef88543db5..a3925d81ae 100644 --- a/examples/sites/demos/pc/app/base-select/is-drop-inherit-width-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/is-drop-inherit-width-composition-api.vue @@ -35,5 +35,6 @@ const value = ref('') p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/is-drop-inherit-width.vue b/examples/sites/demos/pc/app/base-select/is-drop-inherit-width.vue index 05a57af408..36628dc703 100644 --- a/examples/sites/demos/pc/app/base-select/is-drop-inherit-width.vue +++ b/examples/sites/demos/pc/app/base-select/is-drop-inherit-width.vue @@ -44,5 +44,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/map-field-composition-api.vue b/examples/sites/demos/pc/app/base-select/map-field-composition-api.vue index 8e3a90d928..764e66d7a5 100644 --- a/examples/sites/demos/pc/app/base-select/map-field-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/map-field-composition-api.vue @@ -29,5 +29,6 @@ const options = ref([ p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/map-field.vue b/examples/sites/demos/pc/app/base-select/map-field.vue index e88c886f47..e34cb89db5 100644 --- a/examples/sites/demos/pc/app/base-select/map-field.vue +++ b/examples/sites/demos/pc/app/base-select/map-field.vue @@ -61,5 +61,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/memoize-usage-composition-api.vue b/examples/sites/demos/pc/app/base-select/memoize-usage-composition-api.vue index ed7b8e6248..20472b3368 100644 --- a/examples/sites/demos/pc/app/base-select/memoize-usage-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/memoize-usage-composition-api.vue @@ -47,5 +47,6 @@ const clickItem = (value) => { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/memoize-usage.vue b/examples/sites/demos/pc/app/base-select/memoize-usage.vue index d004cfb645..c14abf8bde 100644 --- a/examples/sites/demos/pc/app/base-select/memoize-usage.vue +++ b/examples/sites/demos/pc/app/base-select/memoize-usage.vue @@ -61,5 +61,6 @@ export default { p { font-size: 14px; line-height: 1.5; + padding: 16px 0; } diff --git a/examples/sites/demos/pc/app/base-select/multiple-mix-composition-api.vue b/examples/sites/demos/pc/app/base-select/multiple-mix-composition-api.vue index c2777a2151..a4b37bb82c 100644 --- a/examples/sites/demos/pc/app/base-select/multiple-mix-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/multiple-mix-composition-api.vue @@ -1,6 +1,7 @@