kui-vue 3.2.8-rc1 → 3.2.8-rc4
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/components/drawer/drawer.jsx +2 -1
- package/components/locale/lang/de.js +1 -1
- package/components/locale/lang/el.js +1 -1
- package/components/locale/lang/en.js +1 -1
- package/components/locale/lang/fr.js +1 -1
- package/components/locale/lang/it.js +1 -1
- package/components/locale/lang/ja.js +1 -1
- package/components/locale/lang/ko.js +1 -1
- package/components/locale/lang/ru.js +1 -1
- package/components/locale/lang/th.js +2 -2
- package/components/locale/lang/ua.js +1 -1
- package/components/locale/lang/vi.js +1 -1
- package/components/locale/lang/zh-CN.js +1 -1
- package/components/locale/lang/zh-TW.js +1 -1
- package/components/page/page.jsx +9 -2
- package/dist/k-ui.css +1 -1
- package/dist/k-ui.js +2 -2
- package/dist/locale/de.js +2 -2
- package/dist/locale/el.js +2 -2
- package/dist/locale/en.js +2 -2
- package/dist/locale/fr.js +2 -2
- package/dist/locale/it.js +2 -2
- package/dist/locale/ja.js +2 -2
- package/dist/locale/ko.js +2 -2
- package/dist/locale/ru.js +2 -2
- package/dist/locale/th.js +2 -2
- package/dist/locale/ua.js +2 -2
- package/dist/locale/vi.js +2 -2
- package/dist/locale/zhCN.js +2 -2
- package/dist/locale/zhTW.js +2 -2
- package/package.json +1 -1
|
@@ -93,6 +93,7 @@ export default {
|
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
95
|
render() {
|
|
96
|
+
if (this.$isServer) return null;
|
|
96
97
|
const { title, visible, cancelText, okText, ok,
|
|
97
98
|
placement, cancel, $slots,
|
|
98
99
|
closable, close, } = this
|
|
@@ -134,7 +135,7 @@ export default {
|
|
|
134
135
|
<div class="k-drawer-box" v-show={visible} style={styles}>
|
|
135
136
|
<div class="k-drawer-content">
|
|
136
137
|
{closeNode}
|
|
137
|
-
{title!==null&&title!==false
|
|
138
|
+
{title !== null && title !== false && <div class="k-drawer-header"><div class="k-drawer-header-inner">{title}</div></div>}
|
|
138
139
|
<div class="k-drawer-body">
|
|
139
140
|
{$slots.default}
|
|
140
141
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
module.exports = {
|
|
2
2
|
k: {
|
|
3
3
|
datePicker: {
|
|
4
4
|
startDate: 'วันที่เริ่มต้น',
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
ok: 'ตกลง',
|
|
32
32
|
selectDate: 'เลือกวันที่',
|
|
33
33
|
selectTime: 'เลือกเวลา',
|
|
34
|
-
back:'เบื้องหลัง'
|
|
34
|
+
back: 'เบื้องหลัง'
|
|
35
35
|
},
|
|
36
36
|
drawer: {
|
|
37
37
|
ok: 'ตกลง',
|
package/components/page/page.jsx
CHANGED
|
@@ -30,18 +30,25 @@ export default {
|
|
|
30
30
|
watch: {
|
|
31
31
|
pageSize(v) {
|
|
32
32
|
this.defaultPageSize = v
|
|
33
|
+
this.resetPage()
|
|
33
34
|
},
|
|
34
35
|
current(v) {
|
|
35
|
-
this.
|
|
36
|
+
this.resetPage()
|
|
36
37
|
},
|
|
37
38
|
total(v) {
|
|
38
|
-
this.
|
|
39
|
+
this.resetPage()
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
mounted() {
|
|
42
43
|
this.pageCount = Math.ceil(this.total / this.defaultPageSize) || 1;
|
|
43
44
|
},
|
|
44
45
|
methods: {
|
|
46
|
+
resetPage() {
|
|
47
|
+
this.pageCount = Math.ceil(this.total / this.defaultPageSize) || 1;
|
|
48
|
+
if (this.page > this.pageCount) {
|
|
49
|
+
this.page = this.pageCount
|
|
50
|
+
}
|
|
51
|
+
},
|
|
45
52
|
renderPage() {
|
|
46
53
|
const groupCount = 7,
|
|
47
54
|
page = Number(this.page),
|
package/dist/k-ui.css
CHANGED