br-dionysus 1.8.4 → 1.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +861 -88
  2. package/attributes.json +1 -1
  3. package/cypress/e2e/2-advanced-examples/actions.cy.js +3 -3
  4. package/cypress/e2e/2-advanced-examples/assertions.cy.js +2 -2
  5. package/cypress/e2e/2-advanced-examples/cypress_api.cy.js +5 -6
  6. package/cypress/e2e/2-advanced-examples/files.cy.js +1 -1
  7. package/cypress/e2e/2-advanced-examples/misc.cy.js +1 -1
  8. package/cypress/e2e/2-advanced-examples/navigation.cy.js +1 -1
  9. package/cypress/e2e/2-advanced-examples/network_requests.cy.js +22 -22
  10. package/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js +7 -7
  11. package/cypress/e2e/2-advanced-examples/storage.cy.js +8 -8
  12. package/cypress/e2e/2-advanced-examples/utilities.cy.js +15 -15
  13. package/dist/br-dionysus.es.js +4708 -4519
  14. package/dist/br-dionysus.umd.js +8 -8
  15. package/dist/index.css +1 -1
  16. package/dist/packages/Hook/useFormInline/useFormInline.d.ts +25 -0
  17. package/dist/packages/Hook/usePackageConfig/usePackageConfig.d.ts +1 -1
  18. package/dist/packages/MDialog/src/MDialog.vue.d.ts +1 -1
  19. package/dist/packages/MInline/src/MInline.vue.d.ts +7 -0
  20. package/dist/packages/MInputNumber/src/MInputNumber.vue.d.ts +2 -2
  21. package/dist/packages/MSelectTable/src/MSelectTable.vue.d.ts +2 -2
  22. package/dist/packages/MSelectTableV1/src/MSelectTableV1.vue.d.ts +3 -3
  23. package/dist/packages/MSelectV2/src/MSelectV2.vue.d.ts +1 -1
  24. package/dist/packages/MTableColumnSet/src/MTableColumnSet.vue.d.ts +1 -1
  25. package/dist/packages/MTableSuper/index.d.ts +4 -0
  26. package/dist/packages/MTableSuper/src/MTableSuper.vue.d.ts +11 -0
  27. package/dist/packages/MTableSuper/src/token.d.ts +23 -0
  28. package/dist/packages/MTableV2/src/MTableV2.vue.d.ts +7 -0
  29. package/dist/packages/Tool/slotsToData/slotsToData.d.ts +19 -0
  30. package/dist/packages/index.d.ts +1 -0
  31. package/package.json +1 -1
  32. package/packages/Hook/useFormInline/README.md +45 -0
  33. package/packages/Hook/useFormInline/demo.vue +141 -0
  34. package/packages/Hook/useFormInline/useFormInline.ts +60 -0
  35. package/packages/Hook/usePackageConfig/usePackageConfig.ts +1 -1
  36. package/packages/Hook/useTableConfig/demo.vue +1 -1
  37. package/packages/Hook/useTableConfig/useTableConfig.ts +10 -10
  38. package/packages/MDialog/src/MDialog.vue +12 -1
  39. package/packages/MInline/docs/README.md +7 -6
  40. package/packages/MInline/docs/demo.vue +16 -13
  41. package/packages/MInline/src/MInline.vue +127 -3
  42. package/packages/MInputNumber/docs/demo.vue +42 -2
  43. package/packages/MInputNumber/src/MInputNumber.vue +7 -7
  44. package/packages/MSelectTable/src/MSelectTable.vue +1 -1
  45. package/packages/MTable/src/MTable.vue +0 -32
  46. package/packages/MTableColumn/src/MTableColumn.vue +0 -41
  47. package/packages/MTableSuper/docs/README.md +48 -0
  48. package/packages/MTableSuper/docs/demo.vue +246 -0
  49. package/packages/MTableSuper/index.ts +10 -0
  50. package/packages/MTableSuper/src/MTableSuper.vue +140 -0
  51. package/packages/MTableSuper/src/token.ts +24 -0
  52. package/packages/MTableV2/docs/README.md +1 -0
  53. package/packages/MTableV2/docs/demo.vue +9 -7
  54. package/packages/MTableV2/src/MTableV2.vue +49 -5
  55. package/packages/SkinConfig/src/useSkin.ts +2 -2
  56. package/packages/Tool/slotsToData/README.md +26 -0
  57. package/packages/Tool/slotsToData/slotsToData.ts +38 -0
  58. package/packages/index.ts +3 -0
  59. package/packages/list.json +6 -0
  60. package/packages/typings/global.d.ts +2 -2
  61. package/src/router.ts +5 -0
  62. package/tags.json +1 -1
  63. package/web-types.json +1 -1
package/attributes.json CHANGED
@@ -1 +1 @@
1
- {"m-dialog/modelValue":{"type":"boolean","description":""},"m-dialog/width":{"type":"string | number","description":"对话框的宽度,默认值为 50%"},"m-dialog/insideHeight":{"type":"number | null","description":"对话框内部空间的高度,默认为null"},"m-dialog/minInsideHeight":{"type":"number","description":"对话框内部空间的最小高度,默认为0(当同时存在maxHeight和minInsideHeight时,以maxHeight为准)"},"m-dialog/maxInsideHeight":{"type":"number","description":"对话框内部空间的最大高度,默认为Infinity"},"m-dialog/resize":{"type":"boolean","description":"是否开启拖拽改变大小"},"m-dialog/draggable":{"type":"boolean","description":"是否可拖动"},"m-dialog/insideClassName":{"type":"string","description":"对话框内部空间的className"},"m-dialog/resized":{"type":"[contentsSize: { width: number, height: number }]","description":"窗口大小改变完成事件"},"m-dialog/update:insideHeight":{"type":"[number]","description":"更新内部容器高度"},"m-dialog/update:modelValue":{"type":"[boolean]","description":""},"m-inline/minWidth":{"type":"number","description":"列最小宽度"},"m-inline/maxWidth":{"type":"number","description":"列最大宽度"},"m-inline/size":{"type":"Size","description":"组件尺寸"},"m-inline/switch":{"type":"[status: boolean]","description":"切换折叠展开事件"},"m-input-number/modelValue":{"type":"string | number","description":""},"m-input-number/placeholder":{"type":"string","description":""},"m-input-number/disabled":{"type":"boolean","description":"是否禁用数值输入框"},"m-input-number/size":{"type":"string","description":"数值输入框尺寸"},"m-input-number/min":{"type":"number","description":"设置数值输入框允许的最小值"},"m-input-number/max":{"type":"number","description":"设置数值输入框允许的最大值"},"m-input-number/step":{"type":"number","description":"数值输入框步长"},"m-input-number/stepStrictly":{"type":"boolean","description":"是否只能输入 step 的倍数"},"m-input-number/thousandthPlace":{"type":"boolean","description":"输入框是否显示千分位"},"m-input-number/noBorder":{"type":"boolean","description":"是否不要边框"},"m-input-number/noSpacing":{"type":"boolean","description":"不要边距"},"m-input-number/update:modelValue":{"type":"any","description":""},"m-input-number/change":{"type":"any","description":""},"m-input-number/focus":{"type":"any","description":""},"m-input-number/blur":{"type":"any","description":""},"m-select/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select/multiple":{"type":"boolean","description":"多选"},"m-select-table/modelValue":{"type":"string | number | Array<number | string>","description":""},"m-select-table/name":{"type":"string | number | Array<number | string>","description":"显示值"},"m-select-table/placeholder":{"type":"string","description":""},"m-select-table/disabled":{"type":"boolean","description":""},"m-select-table/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table/total":{"type":"number | null","description":"总数据量,当有值时,出现分页器"},"m-select-table/filterMethod":{"type":"Function | null","description":"自定义搜索"},"m-select-table/filterable":{"type":"boolean","description":"是否使用搜索"},"m-select-table/remote":{"type":"boolean","description":"是否使用 远程搜索"},"m-select-table/remoteMethod":{"type":"Function","description":"自定义远程搜索"},"m-select-table/options":{"type":"Option[]","description":""},"m-select-table/tableTitle":{"type":"TableTitle[]","description":""},"m-select-table/multiple":{"type":"boolean","description":"是否多选"},"m-select-table/keywords":{"type":"Option","description":"定义默认的 label 和value"},"m-select-table/reserveSelection":{"type":"boolean","description":"是否开启翻页多选"},"m-select-table/tableHeight":{"type":"string | number","description":""},"m-select-table/isAffirmBtn":{"type":"boolean","description":"是否有确认按钮"},"m-select-table/scrollbarAlwaysOn":{"type":"boolean","description":"是否常态显示滚动条"},"m-select-table/allowCreate":{"type":"boolean","description":"是否能够创建条目"},"m-select-table/border":{"type":"boolean","description":"表格边框"},"m-select-table/popupWidth":{"type":"number | string","description":"弹窗的宽度"},"m-select-table/selected":{"type":"[values: string | number | Array<string | number>, rows: Option[] | Option]","description":"单选或多选之后的回调"},"m-select-table/selectMultiple":{"type":"[values: Array<string | number>, rows: Option[]]","description":"多选确认按钮时的回调 配合isAffirmBtn使用"},"m-select-table/toPage":{"type":"[page: Page, query?: string]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/update:modelValue":{"type":"[value: string | number | Array<string | number>]","description":""},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[tag: any]","description":"多选模式下移除tag时触发"},"m-select-table-v1/modelValue":{"type":"string | number","description":""},"m-select-table-v1/placeholder":{"type":"string","description":""},"m-select-table-v1/disabled":{"type":"boolean","description":""},"m-select-table-v1/options":{"type":"Option[]","description":""},"m-select-table-v1/tableTitle":{"type":"any[]","description":""},"m-select-table-v1/remoteMethod":{"type":"Function","description":""},"m-select-table-v1/allowCreate":{"type":"boolean","description":""},"m-select-table-v1/focusShow":{"type":"boolean","description":""},"m-select-table-v1/isSelect":{"type":"boolean","description":""},"m-select-table-v1/clearable":{"type":"boolean","description":""},"m-select-table-v1/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table-v1/labelKey":{"type":"string","description":""},"m-select-table-v1/scrollbarAlwaysOn":{"type":"boolean","description":""},"m-select-table-v1/total":{"type":"number | null","description":""},"m-select-table-v1/update:modelValue":{"type":"any","description":""},"m-select-table-v1/selectMultiple":{"type":"any","description":""},"m-select-table-v1/change":{"type":"any","description":""},"m-select-table-v1/selected":{"type":"any","description":""},"m-select-table-v1/clear":{"type":"any","description":""},"m-select-v2/modelValue":{"type":"ValueType","description":""},"m-select-v2/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select-v2/multiple":{"type":"boolean","description":"多选"},"m-select-v2/showAll":{"type":"boolean","description":"是否显示全选"},"m-select-v2/options":{"type":"Option[]","description":"选项"},"m-select-v2/update:modelValue":{"type":"[data: ValueType]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table/expandProp":{"type":"string","description":"展开图标列(如使用这个属性则必须存在rowKey属性) (标记,约束条件后面解决)"},"m-table/expandRowKeys":{"type":"any[]","description":"可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。"},"m-table/rowKey":{"type":"Function | string","description":"行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。"},"m-table/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"m-table/privateExpandChange":{"type":"[row: any, expandedRows: any[]]","description":"expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件"},"m-table-column/filtersValue":{"type":"FilterValue | null","description":"列筛选过滤条件(当为null时,不显示筛选图标)"},"m-table-column/filters":{"type":"Array<{ text: string | number, value: string | number }>","description":"过滤选项"},"m-table-column/filterMethod":{"type":"Function | null","description":"过滤方法"},"m-table-column/children":{"type":"Array<PropChildren>","description":""},"m-table-column/update:filtersValue":{"type":"any","description":""},"m-table-column-set/modelValue":{"type":"TableConfig","description":"配置"},"m-table-column-set/foldMode":{"type":"boolean","description":"是否为折叠模式"},"m-table-column-set/link":{"type":"boolean","description":"是否为链接按钮"},"m-table-column-set/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-column-set/update:modelValue":{"type":"any","description":""},"m-table-column-set/change":{"type":"any","description":""},"m-table-v2/size":{"type":"'small' | 'large' | 'default'","description":""},"m-table-v2/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table-v2/height":{"type":"number","description":"表格高度"},"m-table-v2/border":{"type":"boolean","description":"显示边框"},"m-table-v2/columns":{"type":"TableV2Title[]","description":"表格列配置"},"m-table-v2/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table-v2/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table-v2/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-v2/fixed":{"type":"boolean","description":"单元格宽度是自适应还是固定"},"m-table-v2/estimatedRowHeight":{"type":"number | null","description":"渲染动态的单元格的预估高度"},"m-table-v2/headerHeight":{"type":"number | number[] | null","description":"Header 的高度由height设置。 如果传入数组,它会使 header row 等于数组长度"},"m-table-v2/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table-v2/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"skin-config/change":{"type":"any","description":""},"tab-page/modelValue":{"type":"MenuItem[]","description":""},"tab-page/activeKey":{"type":"string","description":""},"tab-page/showRightClickMenu":{"type":"boolean","description":""},"tab-page/primaryColor":{"type":"string","description":""},"tab-page/primaryBackgroundColor":{"type":"string | null","description":""},"tab-page/close":{"type":"any","description":""},"tab-page/click":{"type":"any","description":""}}
1
+ {"m-dialog/modelValue":{"type":"boolean","description":""},"m-dialog/width":{"type":"string | number","description":"对话框的宽度,默认值为 50%"},"m-dialog/insideHeight":{"type":"number | null","description":"对话框内部空间的高度,默认为null"},"m-dialog/minInsideHeight":{"type":"number","description":"对话框内部空间的最小高度,默认为0(当同时存在maxHeight和minInsideHeight时,以maxHeight为准)"},"m-dialog/maxInsideHeight":{"type":"number","description":"对话框内部空间的最大高度,默认为Infinity"},"m-dialog/resize":{"type":"boolean","description":"是否开启拖拽改变大小"},"m-dialog/draggable":{"type":"boolean","description":"是否可拖动"},"m-dialog/insideClassName":{"type":"string","description":"对话框内部空间的className"},"m-dialog/resized":{"type":"[contentsSize: { width: number, height: number }]","description":"窗口大小改变完成事件"},"m-dialog/update:insideHeight":{"type":"[number]","description":"更新内部容器高度"},"m-dialog/update:modelValue":{"type":"[boolean]","description":""},"m-inline/minWidth":{"type":"number","description":"列最小宽度"},"m-inline/maxWidth":{"type":"number","description":"列最大宽度"},"m-inline/size":{"type":"Size","description":"组件尺寸"},"m-inline/configKey":{"type":"string","description":"配置key"},"m-inline/switch":{"type":"[status: boolean]","description":"切换折叠展开事件"},"m-input-number/modelValue":{"type":"string | number","description":""},"m-input-number/placeholder":{"type":"string","description":""},"m-input-number/disabled":{"type":"boolean","description":"是否禁用数值输入框"},"m-input-number/size":{"type":"string","description":"数值输入框尺寸"},"m-input-number/min":{"type":"number","description":"设置数值输入框允许的最小值"},"m-input-number/max":{"type":"number","description":"设置数值输入框允许的最大值"},"m-input-number/step":{"type":"number","description":"数值输入框步长"},"m-input-number/stepStrictly":{"type":"boolean","description":"是否只能输入 step 的倍数"},"m-input-number/thousandthPlace":{"type":"boolean","description":"输入框是否显示千分位"},"m-input-number/noBorder":{"type":"boolean","description":"是否不要边框"},"m-input-number/noSpacing":{"type":"boolean","description":"不要边距"},"m-input-number/update:modelValue":{"type":"any","description":""},"m-input-number/change":{"type":"any","description":""},"m-input-number/focus":{"type":"any","description":""},"m-input-number/blur":{"type":"any","description":""},"m-select/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select/multiple":{"type":"boolean","description":"多选"},"m-select-table/modelValue":{"type":"string | number | Array<number | string>","description":""},"m-select-table/name":{"type":"string | number | Array<number | string>","description":"显示值"},"m-select-table/placeholder":{"type":"string","description":""},"m-select-table/disabled":{"type":"boolean","description":""},"m-select-table/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table/total":{"type":"number | null","description":"总数据量,当有值时,出现分页器"},"m-select-table/filterMethod":{"type":"Function | null","description":"自定义搜索"},"m-select-table/filterable":{"type":"boolean","description":"是否使用搜索"},"m-select-table/remote":{"type":"boolean","description":"是否使用 远程搜索"},"m-select-table/remoteMethod":{"type":"Function","description":"自定义远程搜索"},"m-select-table/options":{"type":"Option[]","description":""},"m-select-table/tableTitle":{"type":"TableTitle[]","description":""},"m-select-table/multiple":{"type":"boolean","description":"是否多选"},"m-select-table/keywords":{"type":"Option","description":"定义默认的 label 和value"},"m-select-table/reserveSelection":{"type":"boolean","description":"是否开启翻页多选"},"m-select-table/tableHeight":{"type":"string | number","description":""},"m-select-table/isAffirmBtn":{"type":"boolean","description":"是否有确认按钮"},"m-select-table/scrollbarAlwaysOn":{"type":"boolean","description":"是否常态显示滚动条"},"m-select-table/allowCreate":{"type":"boolean","description":"是否能够创建条目"},"m-select-table/border":{"type":"boolean","description":"表格边框"},"m-select-table/popupWidth":{"type":"number | string","description":"弹窗的宽度"},"m-select-table/selected":{"type":"[values: string | number | Array<string | number>, rows: Option[] | Option]","description":"单选或多选之后的回调"},"m-select-table/selectMultiple":{"type":"[values: Array<string | number>, rows: Option[]]","description":"多选确认按钮时的回调 配合isAffirmBtn使用"},"m-select-table/toPage":{"type":"[page: Page, query?: string]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/update:modelValue":{"type":"[value: string | number | Array<string | number>]","description":""},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[tag: any]","description":"多选模式下移除tag时触发"},"m-select-table-v1/modelValue":{"type":"string | number","description":""},"m-select-table-v1/placeholder":{"type":"string","description":""},"m-select-table-v1/disabled":{"type":"boolean","description":""},"m-select-table-v1/options":{"type":"Option[]","description":""},"m-select-table-v1/tableTitle":{"type":"any[]","description":""},"m-select-table-v1/remoteMethod":{"type":"Function","description":""},"m-select-table-v1/allowCreate":{"type":"boolean","description":""},"m-select-table-v1/focusShow":{"type":"boolean","description":""},"m-select-table-v1/isSelect":{"type":"boolean","description":""},"m-select-table-v1/clearable":{"type":"boolean","description":""},"m-select-table-v1/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table-v1/labelKey":{"type":"string","description":""},"m-select-table-v1/scrollbarAlwaysOn":{"type":"boolean","description":""},"m-select-table-v1/total":{"type":"number | null","description":""},"m-select-table-v1/update:modelValue":{"type":"any","description":""},"m-select-table-v1/selectMultiple":{"type":"any","description":""},"m-select-table-v1/change":{"type":"any","description":""},"m-select-table-v1/selected":{"type":"any","description":""},"m-select-table-v1/clear":{"type":"any","description":""},"m-select-v2/modelValue":{"type":"ValueType","description":""},"m-select-v2/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select-v2/multiple":{"type":"boolean","description":"多选"},"m-select-v2/showAll":{"type":"boolean","description":"是否显示全选"},"m-select-v2/options":{"type":"Option[]","description":"选项"},"m-select-v2/update:modelValue":{"type":"[data: ValueType]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table/expandProp":{"type":"string","description":"展开图标列(如使用这个属性则必须存在rowKey属性) (标记,约束条件后面解决)"},"m-table/expandRowKeys":{"type":"any[]","description":"可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。"},"m-table/rowKey":{"type":"Function | string","description":"行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。"},"m-table/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"m-table/privateExpandChange":{"type":"[row: any, expandedRows: any[]]","description":"expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件"},"m-table-column/filtersValue":{"type":"FilterValue | null","description":"列筛选过滤条件(当为null时,不显示筛选图标)"},"m-table-column/filters":{"type":"Array<{ text: string | number, value: string | number }>","description":"过滤选项"},"m-table-column/filterMethod":{"type":"Function | null","description":"过滤方法"},"m-table-column/children":{"type":"Array<PropChildren>","description":""},"m-table-column/update:filtersValue":{"type":"any","description":""},"m-table-column-set/modelValue":{"type":"TableConfig","description":"配置"},"m-table-column-set/foldMode":{"type":"boolean","description":"是否为折叠模式"},"m-table-column-set/link":{"type":"boolean","description":"是否为链接按钮"},"m-table-column-set/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-column-set/update:modelValue":{"type":"any","description":""},"m-table-column-set/change":{"type":"any","description":""},"m-table-v2/size":{"type":"'small' | 'large' | 'default'","description":""},"m-table-v2/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table-v2/height":{"type":"number","description":"表格高度"},"m-table-v2/border":{"type":"boolean","description":"显示边框"},"m-table-v2/columns":{"type":"TableV2Title[]","description":"表格列配置"},"m-table-v2/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table-v2/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table-v2/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-v2/fixed":{"type":"boolean","description":"单元格宽度是自适应还是固定"},"m-table-v2/estimatedRowHeight":{"type":"number | null","description":"渲染动态的单元格的预估高度"},"m-table-v2/headerHeight":{"type":"number | number[] | null","description":"Header 的高度由height设置。 如果传入数组,它会使 header row 等于数组长度"},"m-table-v2/cellWidthAdaptive":{"type":"boolean","description":"单元格宽度自适应"},"m-table-v2/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table-v2/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"skin-config/change":{"type":"any","description":""},"tab-page/modelValue":{"type":"MenuItem[]","description":""},"tab-page/activeKey":{"type":"string","description":""},"tab-page/showRightClickMenu":{"type":"boolean","description":""},"tab-page/primaryColor":{"type":"string","description":""},"tab-page/primaryBackgroundColor":{"type":"string | null","description":""},"tab-page/close":{"type":"any","description":""},"tab-page/click":{"type":"any","description":""}}
@@ -17,9 +17,9 @@ context('Actions', () => {
17
17
  cy.get('.action-email').type('{del}{selectall}{backspace}')
18
18
 
19
19
  // .type() with key modifiers
20
- cy.get('.action-email').type('{alt}{option}') //these are equivalent
21
- cy.get('.action-email').type('{ctrl}{control}') //these are equivalent
22
- cy.get('.action-email').type('{meta}{command}{cmd}') //these are equivalent
20
+ cy.get('.action-email').type('{alt}{option}') // these are equivalent
21
+ cy.get('.action-email').type('{ctrl}{control}') // these are equivalent
22
+ cy.get('.action-email').type('{meta}{command}{cmd}') // these are equivalent
23
23
  cy.get('.action-email').type('{shift}')
24
24
 
25
25
  // Delay each keypress by 0.1 sec
@@ -84,7 +84,7 @@ context('Assertions', () => {
84
84
  expect(paragraphs, 'has expected text in each paragraph').to.deep.eq([
85
85
  'Some text from first p',
86
86
  'More text from second p',
87
- 'And even more text from third p',
87
+ 'And even more text from third p'
88
88
  ])
89
89
  })
90
90
  })
@@ -158,7 +158,7 @@ context('Assertions', () => {
158
158
  it('assert - assert shape of an object', () => {
159
159
  const person = {
160
160
  name: 'Joe',
161
- age: 20,
161
+ age: 20
162
162
  }
163
163
 
164
164
  assert.isObject(person, 'value is object')
@@ -1,7 +1,6 @@
1
1
  /// <reference types="cypress" />
2
2
 
3
3
  context('Cypress APIs', () => {
4
-
5
4
  context('Cypress.Commands', () => {
6
5
  beforeEach(() => {
7
6
  cy.visit('https://example.cypress.io/cypress-api')
@@ -11,7 +10,7 @@ context('Cypress APIs', () => {
11
10
 
12
11
  it('.add() - create a custom command', () => {
13
12
  Cypress.Commands.add('console', {
14
- prevSubject: true,
13
+ prevSubject: true
15
14
  }, (subject, method) => {
16
15
  // the previous subject is automatically received
17
16
  // and the commands arguments are shifted
@@ -71,7 +70,7 @@ context('Cypress APIs', () => {
71
70
 
72
71
  it('Get and set configuration options', () => {
73
72
  // https://on.cypress.io/config
74
- let myConfig = Cypress.config()
73
+ const myConfig = Cypress.config()
75
74
 
76
75
  expect(myConfig).to.have.property('animationDistanceThreshold', 5)
77
76
  expect(myConfig).to.have.property('baseUrl', null)
@@ -101,8 +100,8 @@ context('Cypress APIs', () => {
101
100
 
102
101
  // https://on.cypress.io/dom
103
102
  it('.isHidden() - determine if a DOM element is hidden', () => {
104
- let hiddenP = Cypress.$('.dom-p p.hidden').get(0)
105
- let visibleP = Cypress.$('.dom-p p.visible').get(0)
103
+ const hiddenP = Cypress.$('.dom-p p.hidden').get(0)
104
+ const visibleP = Cypress.$('.dom-p p.visible').get(0)
106
105
 
107
106
  // our first paragraph has css class 'hidden'
108
107
  expect(Cypress.dom.isHidden(hiddenP)).to.be.true
@@ -123,7 +122,7 @@ context('Cypress APIs', () => {
123
122
  // set multiple environment variables
124
123
  Cypress.env({
125
124
  host: 'veronica.dev.local',
126
- api_server: 'http://localhost:8888/v1/',
125
+ api_server: 'http://localhost:8888/v1/'
127
126
  })
128
127
 
129
128
  // get environment variable
@@ -75,7 +75,7 @@ context('Files', () => {
75
75
  cy.writeFile('cypress/fixtures/profile.json', {
76
76
  id: 8739,
77
77
  name: 'Jane',
78
- email: 'jane@example.com',
78
+ email: 'jane@example.com'
79
79
  })
80
80
 
81
81
  cy.fixture('profile').should((profile) => {
@@ -76,7 +76,7 @@ context('Misc', () => {
76
76
  disableTimersAndAnimations: true,
77
77
  screenshotOnRunFailure: true,
78
78
  onBeforeScreenshot () { },
79
- onAfterScreenshot () { },
79
+ onAfterScreenshot () { }
80
80
  })
81
81
  })
82
82
  })
@@ -49,7 +49,7 @@ context('Navigation', () => {
49
49
  onLoad (contentWindow) {
50
50
  // contentWindow is the remote page's window object
51
51
  expect(typeof contentWindow === 'object').to.be.true
52
- },
52
+ }
53
53
  })
54
54
  })
55
55
  })
@@ -22,12 +22,12 @@ context('Network Requests', () => {
22
22
 
23
23
  it('cy.request() - verify response using BDD syntax', () => {
24
24
  cy.request('https://jsonplaceholder.cypress.io/comments')
25
- .then((response) => {
25
+ .then((response) => {
26
26
  // https://on.cypress.io/assertions
27
- expect(response).property('status').to.equal(200)
28
- expect(response).property('body').to.have.property('length').and.be.oneOf([500, 501])
29
- expect(response).to.include.keys('headers', 'duration')
30
- })
27
+ expect(response).property('status').to.equal(200)
28
+ expect(response).property('body').to.have.property('length').and.be.oneOf([500, 501])
29
+ expect(response).to.include.keys('headers', 'duration')
30
+ })
31
31
  })
32
32
 
33
33
  it('cy.request() with query parameters', () => {
@@ -37,17 +37,17 @@ context('Network Requests', () => {
37
37
  url: 'https://jsonplaceholder.cypress.io/comments',
38
38
  qs: {
39
39
  postId: 1,
40
- id: 3,
41
- },
42
- })
43
- .its('body')
44
- .should('be.an', 'array')
45
- .and('have.length', 1)
46
- .its('0') // yields first element of the array
47
- .should('contain', {
48
- postId: 1,
49
- id: 3,
40
+ id: 3
41
+ }
50
42
  })
43
+ .its('body')
44
+ .should('be.an', 'array')
45
+ .and('have.length', 1)
46
+ .its('0') // yields first element of the array
47
+ .should('contain', {
48
+ postId: 1,
49
+ id: 3
50
+ })
51
51
  })
52
52
 
53
53
  it('cy.request() - pass result to the second request', () => {
@@ -64,7 +64,7 @@ context('Network Requests', () => {
64
64
  cy.request('POST', 'https://jsonplaceholder.cypress.io/posts', {
65
65
  userId: user.id,
66
66
  title: 'Cypress Test Runner',
67
- body: 'Fast, easy and reliable testing for anything that runs in a browser.',
67
+ body: 'Fast, easy and reliable testing for anything that runs in a browser.'
68
68
  })
69
69
  })
70
70
  // note that the value here is the returned value of the 2nd request
@@ -72,7 +72,7 @@ context('Network Requests', () => {
72
72
  .then((response) => {
73
73
  expect(response).property('status').to.equal(201) // new entity created
74
74
  expect(response).property('body').to.contain({
75
- title: 'Cypress Test Runner',
75
+ title: 'Cypress Test Runner'
76
76
  })
77
77
 
78
78
  // we don't know the exact post id - only that it will be > 100
@@ -101,9 +101,9 @@ context('Network Requests', () => {
101
101
  cy.request('POST', 'https://jsonplaceholder.cypress.io/posts', {
102
102
  userId: this.user.id,
103
103
  title: 'Cypress Test Runner',
104
- body: 'Fast, easy and reliable testing for anything that runs in a browser.',
104
+ body: 'Fast, easy and reliable testing for anything that runs in a browser.'
105
105
  })
106
- .its('body').as('post') // save the new post from the response
106
+ .its('body').as('post') // save the new post from the response
107
107
  })
108
108
  .then(function () {
109
109
  // When this callback runs, both "cy.request" API commands have finished
@@ -116,7 +116,7 @@ context('Network Requests', () => {
116
116
  it('cy.intercept() - route responses to matching requests', () => {
117
117
  // https://on.cypress.io/intercept
118
118
 
119
- let message = 'whoa, this comment does not exist'
119
+ const message = 'whoa, this comment does not exist'
120
120
 
121
121
  // Listen to GET to comments/1
122
122
  cy.intercept('GET', '**/comments/*').as('getComment')
@@ -143,12 +143,12 @@ context('Network Requests', () => {
143
143
  // Stub a response to PUT comments/ ****
144
144
  cy.intercept({
145
145
  method: 'PUT',
146
- url: '**/comments/*',
146
+ url: '**/comments/*'
147
147
  }, {
148
148
  statusCode: 404,
149
149
  body: { error: message },
150
150
  headers: { 'access-control-allow-origin': '*' },
151
- delayMs: 500,
151
+ delayMs: 500
152
152
  }).as('putComment')
153
153
 
154
154
  // we have code that puts a comment when
@@ -6,7 +6,7 @@ context('Spies, Stubs, and Clock', () => {
6
6
  cy.visit('https://example.cypress.io/commands/spies-stubs-clocks')
7
7
 
8
8
  const obj = {
9
- foo () {},
9
+ foo () {}
10
10
  }
11
11
 
12
12
  const spy = cy.spy(obj, 'foo').as('anyArgs')
@@ -26,7 +26,7 @@ context('Spies, Stubs, and Clock', () => {
26
26
  */
27
27
  foo (x) {
28
28
  console.log('obj.foo called with', x)
29
- },
29
+ }
30
30
  }
31
31
 
32
32
  cy.spy(obj, 'foo').as('foo')
@@ -54,7 +54,7 @@ context('Spies, Stubs, and Clock', () => {
54
54
  */
55
55
  foo (a, b) {
56
56
  console.log('a', a, 'b', b)
57
- },
57
+ }
58
58
  }
59
59
 
60
60
  const stub = cy.stub(obj, 'foo').as('foo')
@@ -107,7 +107,7 @@ context('Spies, Stubs, and Clock', () => {
107
107
  */
108
108
  greet (name) {
109
109
  return `Hello, ${name}!`
110
- },
110
+ }
111
111
  }
112
112
 
113
113
  cy.stub(greeter, 'greet')
@@ -134,7 +134,7 @@ context('Spies, Stubs, and Clock', () => {
134
134
  */
135
135
  add (a, b) {
136
136
  return a + b
137
- },
137
+ }
138
138
  }
139
139
 
140
140
  const spy = cy.spy(calculator, 'add').as('add')
@@ -184,12 +184,12 @@ context('Spies, Stubs, and Clock', () => {
184
184
  // you can combine several matchers using "and", "or"
185
185
  expect(spy).to.be.calledWith(
186
186
  Cypress.sinon.match.number,
187
- Cypress.sinon.match(isGreaterThan(2), '> 2').and(Cypress.sinon.match(isLessThan(4), '< 4')),
187
+ Cypress.sinon.match(isGreaterThan(2), '> 2').and(Cypress.sinon.match(isLessThan(4), '< 4'))
188
188
  )
189
189
 
190
190
  expect(spy).to.be.calledWith(
191
191
  Cypress.sinon.match.number,
192
- Cypress.sinon.match(isGreaterThan(200), '> 200').or(Cypress.sinon.match(3)),
192
+ Cypress.sinon.match(isGreaterThan(200), '> 200').or(Cypress.sinon.match(3))
193
193
  )
194
194
 
195
195
  // matchers can be used from BDD assertions
@@ -64,10 +64,10 @@ context('Local Storage / Session Storage', () => {
64
64
  expect(storageMap).to.deep.equal({
65
65
  // other origins will also be present if localStorage is set on them
66
66
  'https://example.cypress.io': {
67
- 'prop1': 'red',
68
- 'prop2': 'blue',
69
- 'prop3': 'magenta',
70
- },
67
+ prop1: 'red',
68
+ prop2: 'blue',
69
+ prop3: 'magenta'
70
+ }
71
71
  })
72
72
  })
73
73
  })
@@ -94,10 +94,10 @@ context('Local Storage / Session Storage', () => {
94
94
  expect(storageMap).to.deep.equal({
95
95
  // other origins will also be present if sessionStorage is set on them
96
96
  'https://example.cypress.io': {
97
- 'prop4': 'cyan',
98
- 'prop5': 'yellow',
99
- 'prop6': 'black',
100
- },
97
+ prop4: 'cyan',
98
+ prop5: 'yellow',
99
+ prop6: 'black'
100
+ }
101
101
  })
102
102
  })
103
103
  })
@@ -9,7 +9,7 @@ context('Utilities', () => {
9
9
  // https://on.cypress.io/_
10
10
  cy.request('https://jsonplaceholder.cypress.io/users')
11
11
  .then((response) => {
12
- let ids = Cypress._.chain(response.body).map('id').take(3).value()
12
+ const ids = Cypress._.chain(response.body).map('id').take(3).value()
13
13
 
14
14
  expect(ids).to.deep.eq([1, 2, 3])
15
15
  })
@@ -17,7 +17,7 @@ context('Utilities', () => {
17
17
 
18
18
  it('Cypress.$ - call a jQuery method', () => {
19
19
  // https://on.cypress.io/$
20
- let $li = Cypress.$('.utility-jquery li:first')
20
+ const $li = Cypress.$('.utility-jquery li:first')
21
21
 
22
22
  cy.wrap($li).should('not.have.class', 'active')
23
23
  cy.wrap($li).click()
@@ -30,38 +30,38 @@ context('Utilities', () => {
30
30
  // https://github.com/nolanlawson/blob-util#imgSrcToDataURL
31
31
  // get the dataUrl string for the javascript-logo
32
32
  return Cypress.Blob.imgSrcToDataURL('https://example.cypress.io/assets/img/javascript-logo.png', undefined, 'anonymous')
33
- .then((dataUrl) => {
33
+ .then((dataUrl) => {
34
34
  // create an <img> element and set its src to the dataUrl
35
- let img = Cypress.$('<img />', { src: dataUrl })
35
+ const img = Cypress.$('<img />', { src: dataUrl })
36
36
 
37
- // need to explicitly return cy here since we are initially returning
38
- // the Cypress.Blob.imgSrcToDataURL promise to our test
39
- // append the image
40
- $div.append(img)
37
+ // need to explicitly return cy here since we are initially returning
38
+ // the Cypress.Blob.imgSrcToDataURL promise to our test
39
+ // append the image
40
+ $div.append(img)
41
41
 
42
- cy.get('.utility-blob img').click()
43
- cy.get('.utility-blob img').should('have.attr', 'src', dataUrl)
44
- })
42
+ cy.get('.utility-blob img').click()
43
+ cy.get('.utility-blob img').should('have.attr', 'src', dataUrl)
44
+ })
45
45
  })
46
46
  })
47
47
 
48
48
  it('Cypress.minimatch - test out glob patterns against strings', () => {
49
49
  // https://on.cypress.io/minimatch
50
50
  let matching = Cypress.minimatch('/users/1/comments', '/users/*/comments', {
51
- matchBase: true,
51
+ matchBase: true
52
52
  })
53
53
 
54
54
  expect(matching, 'matching wildcard').to.be.true
55
55
 
56
56
  matching = Cypress.minimatch('/users/1/comments/2', '/users/*/comments', {
57
- matchBase: true,
57
+ matchBase: true
58
58
  })
59
59
 
60
60
  expect(matching, 'comments').to.be.false
61
61
 
62
62
  // ** matches against all downstream path segments
63
63
  matching = Cypress.minimatch('/foo/bar/baz/123/quux?a=b&c=2', '/foo/**', {
64
- matchBase: true,
64
+ matchBase: true
65
65
  })
66
66
 
67
67
  expect(matching, 'comments').to.be.true
@@ -69,7 +69,7 @@ context('Utilities', () => {
69
69
  // whereas * matches only the next path segment
70
70
 
71
71
  matching = Cypress.minimatch('/foo/bar/baz/123/quux?a=b&c=2', '/foo/*', {
72
- matchBase: false,
72
+ matchBase: false
73
73
  })
74
74
 
75
75
  expect(matching, 'comments').to.be.false