From 195022e4c97b2249e699becd33750d620f34b6b4 Mon Sep 17 00:00:00 2001 From: wangxueliang Date: Mon, 5 Mar 2018 19:06:44 +0800 Subject: [PATCH] add vc-pagination --- components/pagination/Pagination.vue | 493 ++-------------- components/pagination/demo/index.vue | 32 +- components/pagination/index.js | 1 + components/pagination/style/index.less | 4 +- components/switch/index.en-US.md | 2 +- components/switch/index.zh-CN.md | 2 +- .../{pagination => vc-pagination}/KeyCode.js | 0 .../{pagination => vc-pagination}/Options.vue | 50 +- .../{pagination => vc-pagination}/Pager.vue | 26 +- components/vc-pagination/Pagination.vue | 527 ++++++++++++++++++ components/vc-pagination/assets/index.less | 288 ++++++++++ components/vc-pagination/demo/default.vue | 27 + components/vc-pagination/demo/itemRender.vue | 41 ++ components/vc-pagination/demo/jumper.vue | 36 ++ .../vc-pagination/demo/jumperWithGoButton.vue | 41 ++ components/vc-pagination/demo/lessPages.vue | 31 ++ components/vc-pagination/demo/more.vue | 17 + components/vc-pagination/demo/showTitle.vue | 32 ++ components/vc-pagination/demo/showTotal.vue | 24 + components/vc-pagination/demo/simple.vue | 20 + components/vc-pagination/demo/sizer.vue | 42 ++ components/vc-pagination/demo/stupid.vue | 21 + components/vc-pagination/demo/styles.vue | 21 + components/vc-pagination/index.js | 1 + .../locale/ar_EG.js | 0 .../locale/bg_BG.js | 0 .../locale/ca_ES.js | 0 .../locale/cs_CZ.js | 0 .../locale/da_DK.js | 0 .../locale/de_DE.js | 0 .../locale/el_GR.js | 0 .../locale/en_GB.js | 0 .../locale/en_US.js | 0 .../locale/es_ES.js | 0 .../locale/et_EE.js | 0 .../locale/fa_IR.js | 0 .../locale/fi_FI.js | 0 .../locale/fr_BE.js | 0 .../locale/fr_FR.js | 0 components/vc-pagination/locale/hu_HU.js | 15 + .../locale/is_IS.js | 0 .../locale/it_IT.js | 0 .../locale/ja_JP.js | 0 .../locale/ko_KR.js | 0 components/vc-pagination/locale/ku_IQ.js | 15 + .../locale/nb_NO.js | 0 .../locale/nl_BE.js | 0 .../locale/nl_NL.js | 0 .../locale/pl_PL.js | 0 .../locale/pt_BR.js | 0 .../locale/pt_PT.js | 0 .../locale/ru_RU.js | 0 .../locale/sk_SK.js | 0 .../locale/sr_RS.js | 0 .../locale/sv_SE.js | 0 .../locale/th_TH.js | 0 components/vc-pagination/locale/ug_CN.js | 14 + .../locale/uk_UA.js | 0 .../locale/vi_VN.js | 0 .../locale/zh_CN.js | 0 .../locale/zh_TW.js | 0 examples/routes.js | 2 +- 62 files changed, 1337 insertions(+), 488 deletions(-) rename components/{pagination => vc-pagination}/KeyCode.js (100%) rename components/{pagination => vc-pagination}/Options.vue (67%) rename components/{pagination => vc-pagination}/Pager.vue (61%) create mode 100644 components/vc-pagination/Pagination.vue create mode 100644 components/vc-pagination/assets/index.less create mode 100644 components/vc-pagination/demo/default.vue create mode 100644 components/vc-pagination/demo/itemRender.vue create mode 100644 components/vc-pagination/demo/jumper.vue create mode 100644 components/vc-pagination/demo/jumperWithGoButton.vue create mode 100644 components/vc-pagination/demo/lessPages.vue create mode 100644 components/vc-pagination/demo/more.vue create mode 100644 components/vc-pagination/demo/showTitle.vue create mode 100644 components/vc-pagination/demo/showTotal.vue create mode 100644 components/vc-pagination/demo/simple.vue create mode 100644 components/vc-pagination/demo/sizer.vue create mode 100644 components/vc-pagination/demo/stupid.vue create mode 100644 components/vc-pagination/demo/styles.vue create mode 100644 components/vc-pagination/index.js rename components/{pagination => vc-pagination}/locale/ar_EG.js (100%) rename components/{pagination => vc-pagination}/locale/bg_BG.js (100%) rename components/{pagination => vc-pagination}/locale/ca_ES.js (100%) rename components/{pagination => vc-pagination}/locale/cs_CZ.js (100%) rename components/{pagination => vc-pagination}/locale/da_DK.js (100%) rename components/{pagination => vc-pagination}/locale/de_DE.js (100%) rename components/{pagination => vc-pagination}/locale/el_GR.js (100%) rename components/{pagination => vc-pagination}/locale/en_GB.js (100%) rename components/{pagination => vc-pagination}/locale/en_US.js (100%) rename components/{pagination => vc-pagination}/locale/es_ES.js (100%) rename components/{pagination => vc-pagination}/locale/et_EE.js (100%) rename components/{pagination => vc-pagination}/locale/fa_IR.js (100%) rename components/{pagination => vc-pagination}/locale/fi_FI.js (100%) rename components/{pagination => vc-pagination}/locale/fr_BE.js (100%) rename components/{pagination => vc-pagination}/locale/fr_FR.js (100%) create mode 100644 components/vc-pagination/locale/hu_HU.js rename components/{pagination => vc-pagination}/locale/is_IS.js (100%) rename components/{pagination => vc-pagination}/locale/it_IT.js (100%) rename components/{pagination => vc-pagination}/locale/ja_JP.js (100%) rename components/{pagination => vc-pagination}/locale/ko_KR.js (100%) create mode 100644 components/vc-pagination/locale/ku_IQ.js rename components/{pagination => vc-pagination}/locale/nb_NO.js (100%) rename components/{pagination => vc-pagination}/locale/nl_BE.js (100%) rename components/{pagination => vc-pagination}/locale/nl_NL.js (100%) rename components/{pagination => vc-pagination}/locale/pl_PL.js (100%) rename components/{pagination => vc-pagination}/locale/pt_BR.js (100%) rename components/{pagination => vc-pagination}/locale/pt_PT.js (100%) rename components/{pagination => vc-pagination}/locale/ru_RU.js (100%) rename components/{pagination => vc-pagination}/locale/sk_SK.js (100%) rename components/{pagination => vc-pagination}/locale/sr_RS.js (100%) rename components/{pagination => vc-pagination}/locale/sv_SE.js (100%) rename components/{pagination => vc-pagination}/locale/th_TH.js (100%) create mode 100644 components/vc-pagination/locale/ug_CN.js rename components/{pagination => vc-pagination}/locale/uk_UA.js (100%) rename components/{pagination => vc-pagination}/locale/vi_VN.js (100%) rename components/{pagination => vc-pagination}/locale/zh_CN.js (100%) rename components/{pagination => vc-pagination}/locale/zh_TW.js (100%) diff --git a/components/pagination/Pagination.vue b/components/pagination/Pagination.vue index 15e95a2f6..b2db32425 100644 --- a/components/pagination/Pagination.vue +++ b/components/pagination/Pagination.vue @@ -1,66 +1,39 @@ diff --git a/components/vc-pagination/assets/index.less b/components/vc-pagination/assets/index.less new file mode 100644 index 000000000..bb43a7324 --- /dev/null +++ b/components/vc-pagination/assets/index.less @@ -0,0 +1,288 @@ +@prefixClass: rc-pagination; + +.@{prefixClass} { + font-size: 12px; + font-family: 'Arial'; + user-select: none; + padding: 0; + + > li { + list-style: none; + } + + &-total-text { + float: left; + height: 30px; + line-height: 30px; + list-style: none; + padding: 0; + margin: 0 8px 0 0; + } + + &:after { + content: " "; + display: block; + height: 0; + clear: both; + overflow: hidden; + visibility: hidden; + } + + &-item { + cursor: pointer; + border-radius: 6px; + min-width: 28px; + height: 28px; + line-height: 28px; + text-align: center; + list-style: none; + float: left; + border: 1px solid #d9d9d9; + background-color: #fff; + margin-right: 8px; + + a { + text-decoration: none; + color: #666; + } + + &:hover { + border-color: #2db7f5; + a { + color: #2db7f5; + } + } + + &-active { + background-color: #2db7f5; + border-color: #2db7f5; + + a { + color: #fff; + } + + &:hover { + a { + color: #fff; + } + } + } + } + + &-jump-prev, &-jump-next { + &:after { + content: "•••"; + display: block; + letter-spacing: 2px; + color: #ccc; + font-size: 12px; + margin-top: 1px; + } + + &:hover { + &:after { + color: #2db7f5; + } + } + } + + &-jump-prev { + &:hover { + &:after { + content: "«"; + } + } + } + + &-jump-next { + &:hover { + &:after { + content: "»"; + } + } + } + + &-prev, &-jump-prev, &-jump-next { + margin-right: 8px; + } + &-prev, &-next, &-jump-prev, &-jump-next { + cursor: pointer; + color: #666; + font-size: 10px; + border-radius: 6px; + list-style: none; + min-width: 28px; + height: 28px; + line-height: 28px; + float: left; + text-align: center; + } + + &-prev { + a { + &:after { + content: "‹"; + display: block; + } + } + } + + &-next { + a { + &:after { + content: "›"; + display: block; + } + } + } + + &-prev, &-next { + border: 1px solid #d9d9d9; + font-size: 18px; + a { + color: #666; + &:after { + margin-top: -1px; + } + } + } + + &-disabled { + cursor: not-allowed; + a { + color: #ccc; + } + } + + &-options { + float: left; + margin-left: 15px; + &-size-changer { + float: left; + width: 80px; + } + + &-quick-jumper { + float: left; + margin-left: 16px; + height: 28px; + line-height: 28px; + + input { + margin: 0 8px; + box-sizing: border-box; + background-color: #fff; + border-radius: 6px; + border: 1px solid #d9d9d9; + outline: none; + padding: 3px 12px; + width: 50px; + height: 28px; + + &:hover { + border-color: #2db7f5; + } + } + + button { + display: inline-block; + margin: 0 8px; + font-weight: 500; + text-align: center; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 0 15px; + font-size: 12px; + border-radius: 6px; + height: 28px; + user-select: none; + transition: all .3s cubic-bezier(.645, .045, .355, 1); + position: relative; + color: rgba(0, 0, 0, .65); + background-color: #fff; + border-color: #d9d9d9; + + &:hover, &:active, &:focus { + color: #2db7f5; + background-color: #fff; + border-color: #2db7f5; + } + } + } + } + + &-simple { + .@{prefixClass}-prev, .@{prefixClass}-next { + border: none; + height: 24px; + line-height: 24px; + margin: 0; + font-size: 18px; + } + + .@{prefixClass}-simple-pager { + float: left; + margin-right: 8px; + list-style: none; + + .@{prefixClass}-slash { + margin: 0 10px; + } + + input { + margin: 0 8px; + box-sizing: border-box; + background-color: #fff; + border-radius: 6px; + border: 1px solid #d9d9d9; + outline: none; + padding: 5px 8px; + min-height: 20px; + + &:hover { + border-color: #2db7f5; + } + } + + button { + display: inline-block; + margin: 0 8px; + font-weight: 500; + text-align: center; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 0 8px; + font-size: 12px; + border-radius: 6px; + height: 26px; + user-select: none; + transition: all .3s cubic-bezier(.645, .045, .355, 1); + position: relative; + color: rgba(0, 0, 0, .65); + background-color: #fff; + border-color: #d9d9d9; + + &:hover, &:active, &:focus { + color: #2db7f5; + background-color: #fff; + border-color: #2db7f5; + } + } + } + } +} + +@media only screen and (max-width: 1024px) { + .@{prefixClass}-item { + &-after-jump-prev, + &-before-jump-next { + display: none; + } + } +} diff --git a/components/vc-pagination/demo/default.vue b/components/vc-pagination/demo/default.vue new file mode 100644 index 000000000..ec9be7a63 --- /dev/null +++ b/components/vc-pagination/demo/default.vue @@ -0,0 +1,27 @@ + diff --git a/components/vc-pagination/demo/itemRender.vue b/components/vc-pagination/demo/itemRender.vue new file mode 100644 index 000000000..1b0c42bf2 --- /dev/null +++ b/components/vc-pagination/demo/itemRender.vue @@ -0,0 +1,41 @@ + diff --git a/components/vc-pagination/demo/jumper.vue b/components/vc-pagination/demo/jumper.vue new file mode 100644 index 000000000..d2c048dec --- /dev/null +++ b/components/vc-pagination/demo/jumper.vue @@ -0,0 +1,36 @@ + diff --git a/components/vc-pagination/demo/jumperWithGoButton.vue b/components/vc-pagination/demo/jumperWithGoButton.vue new file mode 100644 index 000000000..a47bfa632 --- /dev/null +++ b/components/vc-pagination/demo/jumperWithGoButton.vue @@ -0,0 +1,41 @@ + diff --git a/components/vc-pagination/demo/lessPages.vue b/components/vc-pagination/demo/lessPages.vue new file mode 100644 index 000000000..85c40f40c --- /dev/null +++ b/components/vc-pagination/demo/lessPages.vue @@ -0,0 +1,31 @@ + diff --git a/components/vc-pagination/demo/more.vue b/components/vc-pagination/demo/more.vue new file mode 100644 index 000000000..1b3ef0ff2 --- /dev/null +++ b/components/vc-pagination/demo/more.vue @@ -0,0 +1,17 @@ + diff --git a/components/vc-pagination/demo/showTitle.vue b/components/vc-pagination/demo/showTitle.vue new file mode 100644 index 000000000..226548123 --- /dev/null +++ b/components/vc-pagination/demo/showTitle.vue @@ -0,0 +1,32 @@ + diff --git a/components/vc-pagination/demo/showTotal.vue b/components/vc-pagination/demo/showTotal.vue new file mode 100644 index 000000000..091f3f066 --- /dev/null +++ b/components/vc-pagination/demo/showTotal.vue @@ -0,0 +1,24 @@ + diff --git a/components/vc-pagination/demo/simple.vue b/components/vc-pagination/demo/simple.vue new file mode 100644 index 000000000..7585e74ed --- /dev/null +++ b/components/vc-pagination/demo/simple.vue @@ -0,0 +1,20 @@ + diff --git a/components/vc-pagination/demo/sizer.vue b/components/vc-pagination/demo/sizer.vue new file mode 100644 index 000000000..0b9276fe2 --- /dev/null +++ b/components/vc-pagination/demo/sizer.vue @@ -0,0 +1,42 @@ + diff --git a/components/vc-pagination/demo/stupid.vue b/components/vc-pagination/demo/stupid.vue new file mode 100644 index 000000000..309d687f8 --- /dev/null +++ b/components/vc-pagination/demo/stupid.vue @@ -0,0 +1,21 @@ + diff --git a/components/vc-pagination/demo/styles.vue b/components/vc-pagination/demo/styles.vue new file mode 100644 index 000000000..ea276d3de --- /dev/null +++ b/components/vc-pagination/demo/styles.vue @@ -0,0 +1,21 @@ + diff --git a/components/vc-pagination/index.js b/components/vc-pagination/index.js new file mode 100644 index 000000000..40ac52f2e --- /dev/null +++ b/components/vc-pagination/index.js @@ -0,0 +1 @@ +export { default } from './Pagination' diff --git a/components/pagination/locale/ar_EG.js b/components/vc-pagination/locale/ar_EG.js similarity index 100% rename from components/pagination/locale/ar_EG.js rename to components/vc-pagination/locale/ar_EG.js diff --git a/components/pagination/locale/bg_BG.js b/components/vc-pagination/locale/bg_BG.js similarity index 100% rename from components/pagination/locale/bg_BG.js rename to components/vc-pagination/locale/bg_BG.js diff --git a/components/pagination/locale/ca_ES.js b/components/vc-pagination/locale/ca_ES.js similarity index 100% rename from components/pagination/locale/ca_ES.js rename to components/vc-pagination/locale/ca_ES.js diff --git a/components/pagination/locale/cs_CZ.js b/components/vc-pagination/locale/cs_CZ.js similarity index 100% rename from components/pagination/locale/cs_CZ.js rename to components/vc-pagination/locale/cs_CZ.js diff --git a/components/pagination/locale/da_DK.js b/components/vc-pagination/locale/da_DK.js similarity index 100% rename from components/pagination/locale/da_DK.js rename to components/vc-pagination/locale/da_DK.js diff --git a/components/pagination/locale/de_DE.js b/components/vc-pagination/locale/de_DE.js similarity index 100% rename from components/pagination/locale/de_DE.js rename to components/vc-pagination/locale/de_DE.js diff --git a/components/pagination/locale/el_GR.js b/components/vc-pagination/locale/el_GR.js similarity index 100% rename from components/pagination/locale/el_GR.js rename to components/vc-pagination/locale/el_GR.js diff --git a/components/pagination/locale/en_GB.js b/components/vc-pagination/locale/en_GB.js similarity index 100% rename from components/pagination/locale/en_GB.js rename to components/vc-pagination/locale/en_GB.js diff --git a/components/pagination/locale/en_US.js b/components/vc-pagination/locale/en_US.js similarity index 100% rename from components/pagination/locale/en_US.js rename to components/vc-pagination/locale/en_US.js diff --git a/components/pagination/locale/es_ES.js b/components/vc-pagination/locale/es_ES.js similarity index 100% rename from components/pagination/locale/es_ES.js rename to components/vc-pagination/locale/es_ES.js diff --git a/components/pagination/locale/et_EE.js b/components/vc-pagination/locale/et_EE.js similarity index 100% rename from components/pagination/locale/et_EE.js rename to components/vc-pagination/locale/et_EE.js diff --git a/components/pagination/locale/fa_IR.js b/components/vc-pagination/locale/fa_IR.js similarity index 100% rename from components/pagination/locale/fa_IR.js rename to components/vc-pagination/locale/fa_IR.js diff --git a/components/pagination/locale/fi_FI.js b/components/vc-pagination/locale/fi_FI.js similarity index 100% rename from components/pagination/locale/fi_FI.js rename to components/vc-pagination/locale/fi_FI.js diff --git a/components/pagination/locale/fr_BE.js b/components/vc-pagination/locale/fr_BE.js similarity index 100% rename from components/pagination/locale/fr_BE.js rename to components/vc-pagination/locale/fr_BE.js diff --git a/components/pagination/locale/fr_FR.js b/components/vc-pagination/locale/fr_FR.js similarity index 100% rename from components/pagination/locale/fr_FR.js rename to components/vc-pagination/locale/fr_FR.js diff --git a/components/vc-pagination/locale/hu_HU.js b/components/vc-pagination/locale/hu_HU.js new file mode 100644 index 000000000..f8a3477e4 --- /dev/null +++ b/components/vc-pagination/locale/hu_HU.js @@ -0,0 +1,15 @@ +export default { + // Options.jsx + items_per_page: '/ oldal', // '/ page', + jump_to: 'Ugrás', // 'Goto', + jump_to_confirm: 'megerősít', // 'confirm', + page: '', + + // Pagination.jsx + prev_page: 'Előző oldal', // 'Previous Page', + next_page: 'Következő oldal', // 'Next Page', + prev_5: 'Előző 5 oldal', // 'Previous 5 Pages', + next_5: 'Következő 5 oldal', // 'Next 5 Pages', + prev_3: 'Előző 3 oldal', // 'Previous 3 Pages', + next_3: 'Következő 3 oldal', // 'Next 3 Pages', +}; diff --git a/components/pagination/locale/is_IS.js b/components/vc-pagination/locale/is_IS.js similarity index 100% rename from components/pagination/locale/is_IS.js rename to components/vc-pagination/locale/is_IS.js diff --git a/components/pagination/locale/it_IT.js b/components/vc-pagination/locale/it_IT.js similarity index 100% rename from components/pagination/locale/it_IT.js rename to components/vc-pagination/locale/it_IT.js diff --git a/components/pagination/locale/ja_JP.js b/components/vc-pagination/locale/ja_JP.js similarity index 100% rename from components/pagination/locale/ja_JP.js rename to components/vc-pagination/locale/ja_JP.js diff --git a/components/pagination/locale/ko_KR.js b/components/vc-pagination/locale/ko_KR.js similarity index 100% rename from components/pagination/locale/ko_KR.js rename to components/vc-pagination/locale/ko_KR.js diff --git a/components/vc-pagination/locale/ku_IQ.js b/components/vc-pagination/locale/ku_IQ.js new file mode 100644 index 000000000..7ce767c15 --- /dev/null +++ b/components/vc-pagination/locale/ku_IQ.js @@ -0,0 +1,15 @@ +export default { + // Options.jsx + items_per_page: '/ rûpel', + jump_to: 'Biçe', + jump_to_confirm: 'piştrast bike', + page: '', + + // Pagination.jsx + prev_page: 'Rûpelê Pêş', + next_page: 'Rûpelê Paş', + prev_5: '5 Rûpelên Pêş', + next_5: '5 Rûpelên Paş', + prev_3: '3 Rûpelên Pêş', + next_3: '3 Rûpelên Paş', +}; diff --git a/components/pagination/locale/nb_NO.js b/components/vc-pagination/locale/nb_NO.js similarity index 100% rename from components/pagination/locale/nb_NO.js rename to components/vc-pagination/locale/nb_NO.js diff --git a/components/pagination/locale/nl_BE.js b/components/vc-pagination/locale/nl_BE.js similarity index 100% rename from components/pagination/locale/nl_BE.js rename to components/vc-pagination/locale/nl_BE.js diff --git a/components/pagination/locale/nl_NL.js b/components/vc-pagination/locale/nl_NL.js similarity index 100% rename from components/pagination/locale/nl_NL.js rename to components/vc-pagination/locale/nl_NL.js diff --git a/components/pagination/locale/pl_PL.js b/components/vc-pagination/locale/pl_PL.js similarity index 100% rename from components/pagination/locale/pl_PL.js rename to components/vc-pagination/locale/pl_PL.js diff --git a/components/pagination/locale/pt_BR.js b/components/vc-pagination/locale/pt_BR.js similarity index 100% rename from components/pagination/locale/pt_BR.js rename to components/vc-pagination/locale/pt_BR.js diff --git a/components/pagination/locale/pt_PT.js b/components/vc-pagination/locale/pt_PT.js similarity index 100% rename from components/pagination/locale/pt_PT.js rename to components/vc-pagination/locale/pt_PT.js diff --git a/components/pagination/locale/ru_RU.js b/components/vc-pagination/locale/ru_RU.js similarity index 100% rename from components/pagination/locale/ru_RU.js rename to components/vc-pagination/locale/ru_RU.js diff --git a/components/pagination/locale/sk_SK.js b/components/vc-pagination/locale/sk_SK.js similarity index 100% rename from components/pagination/locale/sk_SK.js rename to components/vc-pagination/locale/sk_SK.js diff --git a/components/pagination/locale/sr_RS.js b/components/vc-pagination/locale/sr_RS.js similarity index 100% rename from components/pagination/locale/sr_RS.js rename to components/vc-pagination/locale/sr_RS.js diff --git a/components/pagination/locale/sv_SE.js b/components/vc-pagination/locale/sv_SE.js similarity index 100% rename from components/pagination/locale/sv_SE.js rename to components/vc-pagination/locale/sv_SE.js diff --git a/components/pagination/locale/th_TH.js b/components/vc-pagination/locale/th_TH.js similarity index 100% rename from components/pagination/locale/th_TH.js rename to components/vc-pagination/locale/th_TH.js diff --git a/components/vc-pagination/locale/ug_CN.js b/components/vc-pagination/locale/ug_CN.js new file mode 100644 index 000000000..298a089fd --- /dev/null +++ b/components/vc-pagination/locale/ug_CN.js @@ -0,0 +1,14 @@ +export default { + // Options.jsx + items_per_page: 'تال/ھەر بەت', + jump_to: 'بەتكە سەكرەش', + jump_to_confirm: 'مۇقىملاشتۇرۇش', + page: 'بەت', + // Pagination.jsx + prev_page: 'ئالدىنقى', + next_page: 'كېيىنكى', + prev_5: 'ئالدىغا 5 بەت', + next_5: 'كەينىگە 5 بەت', + prev_3: 'ئالدىغا 3 بەت', + next_3: 'كەينىگە 3 بەت', +}; diff --git a/components/pagination/locale/uk_UA.js b/components/vc-pagination/locale/uk_UA.js similarity index 100% rename from components/pagination/locale/uk_UA.js rename to components/vc-pagination/locale/uk_UA.js diff --git a/components/pagination/locale/vi_VN.js b/components/vc-pagination/locale/vi_VN.js similarity index 100% rename from components/pagination/locale/vi_VN.js rename to components/vc-pagination/locale/vi_VN.js diff --git a/components/pagination/locale/zh_CN.js b/components/vc-pagination/locale/zh_CN.js similarity index 100% rename from components/pagination/locale/zh_CN.js rename to components/vc-pagination/locale/zh_CN.js diff --git a/components/pagination/locale/zh_TW.js b/components/vc-pagination/locale/zh_TW.js similarity index 100% rename from components/pagination/locale/zh_TW.js rename to components/vc-pagination/locale/zh_TW.js diff --git a/examples/routes.js b/examples/routes.js index 401b22cbd..a559992ab 100644 --- a/examples/routes.js +++ b/examples/routes.js @@ -3,7 +3,7 @@ const AsyncComp = () => { const hashs = window.location.hash.split('/') const d = hashs[hashs.length - 1] return { - component: import(`../components/cascader/demo/${d}`), + component: import(`../components/pagination/demo/${d}.vue`), } } export default [