@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.
- package/CHANGELOG.md +47 -0
- package/es/action-sheet/actionSheet.css +1 -1
- package/es/action-sheet/actionSheet.less +1 -1
- package/es/back-top/BackTop.js +1 -1
- package/es/back-top/backTop.css +1 -1
- package/es/back-top/backTop.less +1 -1
- package/es/button/button.css +1 -1
- package/es/button/button.less +1 -2
- package/es/checkbox/checkbox.css +1 -1
- package/es/checkbox/checkbox.less +1 -1
- package/es/counter/Counter.js +1 -1
- package/es/counter/counter.css +1 -1
- package/es/counter/counter.less +1 -1
- package/es/index.js +10 -0
- package/es/input/input.css +1 -1
- package/es/input/input.less +3 -1
- package/es/less.js +2 -0
- package/es/locale/en-US.js +5 -1
- package/es/locale/zh-CN.js +5 -1
- package/es/menu/Menu.js +1 -2
- package/es/pagination/Pagination.js +353 -0
- package/es/pagination/PaginationSfc.css +0 -0
- package/es/pagination/PaginationSfc.less +0 -0
- package/es/pagination/index.js +8 -0
- package/es/pagination/pagination.css +1 -0
- package/es/pagination/pagination.less +163 -0
- package/es/pagination/porps.js +43 -0
- package/es/pagination/style/index.js +8 -0
- package/es/pagination/style/less.js +8 -0
- package/es/radio/radio.css +1 -1
- package/es/radio/radio.less +1 -1
- package/es/rate/rate.css +1 -1
- package/es/rate/rate.less +1 -1
- package/es/ripple/ripple.css +1 -1
- package/es/ripple/ripple.less +7 -1
- package/es/select/select.css +1 -1
- package/es/select/select.less +1 -1
- package/es/skeleton/skeleton.css +1 -1
- package/es/skeleton/skeleton.less +3 -1
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/es/style.js +2 -0
- package/es/styles/common.css +1 -1
- package/es/styles/common.less +1 -0
- package/es/styles/var.less +1 -0
- package/es/tab/tab.css +1 -1
- package/es/tab/tab.less +1 -1
- package/es/table/Table.js +43 -0
- package/es/table/TableSfc.css +0 -0
- package/es/table/TableSfc.less +0 -0
- package/es/table/index.js +8 -0
- package/es/table/style/index.js +4 -0
- package/es/table/style/less.js +4 -0
- package/es/table/table.css +1 -0
- package/es/table/table.less +109 -0
- package/es/umdIndex.js +10 -0
- package/es/utils/elements.js +6 -6
- package/highlight/attributes.json +46 -2
- package/highlight/tags.json +19 -0
- package/highlight/web-types.json +138 -2
- package/package.json +4 -3
- package/types/index.d.ts +2 -0
- package/types/pagination.d.ts +23 -0
- package/types/table.d.ts +11 -0
- 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.
|
|
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": "
|
|
49
|
+
"gitHead": "d00f12743ec90eb1f64e063082750873c38bee0d",
|
|
49
50
|
"devDependencies": {
|
|
50
|
-
"@varlet/cli": "^1.22.
|
|
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 {}
|
package/types/table.d.ts
ADDED