@varlet/ui 1.22.0-alpha.7 → 1.22.1

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 (65) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/es/action-sheet/actionSheet.css +1 -1
  3. package/es/action-sheet/actionSheet.less +1 -1
  4. package/es/back-top/BackTop.js +1 -1
  5. package/es/back-top/backTop.css +1 -1
  6. package/es/back-top/backTop.less +1 -1
  7. package/es/button/button.css +1 -1
  8. package/es/button/button.less +1 -2
  9. package/es/checkbox/checkbox.css +1 -1
  10. package/es/checkbox/checkbox.less +1 -1
  11. package/es/counter/Counter.js +1 -1
  12. package/es/counter/counter.css +1 -1
  13. package/es/counter/counter.less +1 -1
  14. package/es/index.js +10 -0
  15. package/es/input/input.css +1 -1
  16. package/es/input/input.less +3 -1
  17. package/es/less.js +2 -0
  18. package/es/locale/en-US.js +5 -1
  19. package/es/locale/zh-CN.js +5 -1
  20. package/es/menu/Menu.js +1 -2
  21. package/es/pagination/Pagination.js +353 -0
  22. package/es/pagination/PaginationSfc.css +0 -0
  23. package/es/pagination/PaginationSfc.less +0 -0
  24. package/es/pagination/index.js +8 -0
  25. package/es/pagination/pagination.css +1 -0
  26. package/es/pagination/pagination.less +163 -0
  27. package/es/pagination/porps.js +43 -0
  28. package/es/pagination/style/index.js +8 -0
  29. package/es/pagination/style/less.js +8 -0
  30. package/es/radio/radio.css +1 -1
  31. package/es/radio/radio.less +1 -1
  32. package/es/rate/rate.css +1 -1
  33. package/es/rate/rate.less +1 -1
  34. package/es/ripple/ripple.css +1 -1
  35. package/es/ripple/ripple.less +7 -1
  36. package/es/select/select.css +1 -1
  37. package/es/select/select.less +1 -1
  38. package/es/skeleton/skeleton.css +1 -1
  39. package/es/skeleton/skeleton.less +3 -1
  40. package/es/snackbar/style/index.js +1 -1
  41. package/es/snackbar/style/less.js +1 -1
  42. package/es/style.js +2 -0
  43. package/es/styles/common.css +1 -1
  44. package/es/styles/common.less +1 -0
  45. package/es/styles/var.less +1 -0
  46. package/es/tab/tab.css +1 -1
  47. package/es/tab/tab.less +1 -1
  48. package/es/table/Table.js +43 -0
  49. package/es/table/TableSfc.css +0 -0
  50. package/es/table/TableSfc.less +0 -0
  51. package/es/table/index.js +8 -0
  52. package/es/table/style/index.js +4 -0
  53. package/es/table/style/less.js +4 -0
  54. package/es/table/table.css +1 -0
  55. package/es/table/table.less +109 -0
  56. package/es/umdIndex.js +10 -0
  57. package/es/utils/elements.js +6 -6
  58. package/highlight/attributes.json +46 -2
  59. package/highlight/tags.json +19 -0
  60. package/highlight/web-types.json +138 -2
  61. package/package.json +4 -3
  62. package/types/index.d.ts +2 -0
  63. package/types/pagination.d.ts +23 -0
  64. package/types/table.d.ts +11 -0
  65. package/umd/varlet.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "1.22.0-alpha.7+63386141",
3
+ "version": "1.22.1",
4
4
  "description": "A material like components library",
5
5
  "module": "es/index.js",
6
6
  "typings": "types/index.d.ts",
@@ -37,6 +37,7 @@
37
37
  "scripts": {
38
38
  "dev": "varlet-cli dev",
39
39
  "build": "varlet-cli build",
40
+ "preview": "varlet-cli preview",
40
41
  "compile": "varlet-cli compile",
41
42
  "create": "varlet-cli create",
42
43
  "test": "varlet-cli jest",
@@ -45,9 +46,9 @@
45
46
  "peerDependencies": {
46
47
  "vue": "^3.2.0"
47
48
  },
48
- "gitHead": "63386141058b9268358eda5956cd7c3fd52cf9b5",
49
+ "gitHead": "d00f12743ec90eb1f64e063082750873c38bee0d",
49
50
  "devDependencies": {
50
- "@varlet/cli": "^1.22.0-alpha.7+63386141"
51
+ "@varlet/cli": "^1.22.1"
51
52
  },
52
53
  "dependencies": {
53
54
  "dayjs": "^1.10.4",
package/types/index.d.ts CHANGED
@@ -32,6 +32,7 @@ export * from './loading'
32
32
  export * from './locale'
33
33
  export * from './menu'
34
34
  export * from './option'
35
+ export * from './pagination'
35
36
  export * from './picker'
36
37
  export * from './popup'
37
38
  export * from './progress'
@@ -53,6 +54,7 @@ export * from './swipeItem'
53
54
  export * from './switch'
54
55
  export * from './tab'
55
56
  export * from './tabItem'
57
+ export * from './table'
56
58
  export * from './tabs'
57
59
  export * from './tabsItems'
58
60
  export * from './timePicker'
@@ -0,0 +1,23 @@
1
+ import { VarComponent } from './varComponent'
2
+
3
+ type Range = [number, number]
4
+
5
+ export interface PaginationProps {
6
+ current?: string | number
7
+ size?: string | number
8
+ total?: string | number
9
+ maxPagerCount?: number
10
+ disabled?: boolean
11
+ simple?: boolean
12
+ showSizeChanger?: boolean
13
+ showQuickJumper?: boolean
14
+ sizeOption?: Array<number>
15
+ showTotal?: (total: number, range: Range) => string
16
+ onChange?: (current: number, size: number) => void
17
+ }
18
+
19
+ export class Pagination extends VarComponent {
20
+ $props: PaginationProps
21
+ }
22
+
23
+ export class _PaginationComponent extends Pagination {}
@@ -0,0 +1,11 @@
1
+ import { VarComponent } from './varComponent'
2
+
3
+ export interface TableProps {
4
+ fullWidth?: string | number
5
+ }
6
+
7
+ export class Table extends VarComponent {
8
+ $props: TableProps
9
+ }
10
+
11
+ export class _TableComponent extends Table {}