vue-amazing-ui 0.0.0 → 0.0.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/dist/style.css +1 -1
- package/dist/vue-amazing-ui.js +83 -62
- package/dist/vue-amazing-ui.umd.cjs +1 -1
- package/package.json +4 -2
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-pagination[data-v-
|
|
1
|
+
.m-pagination[data-v-c3c66db5]{margin:16px 0}.hidden[data-v-c3c66db5]{display:none}.left[data-v-c3c66db5]{text-align:left}.center[data-v-c3c66db5]{text-align:center}.right[data-v-c3c66db5]{text-align:right}.m-pagination-wrap[data-v-c3c66db5]{display:inline-block;height:32px;line-height:30px;font-size:14px;color:#000000a6;text-align:center}.m-pagination-wrap .mr8[data-v-c3c66db5]{margin-right:8px}.m-pagination-wrap .u-item[data-v-c3c66db5]{min-width:30px;height:30px;display:inline-block;user-select:none;border:1px solid #d9d9d9;border-radius:4px;cursor:pointer;transition:all .3s}.m-pagination-wrap .u-item[data-v-c3c66db5]:hover{font-weight:500;color:#1890ff;border-color:#1890ff}.m-pagination-wrap .u-item:hover .u-arrow[data-v-c3c66db5]{fill:#1890ff}.m-pagination-wrap .u-item .u-arrow[data-v-c3c66db5]{fill:#000000a6;width:12px;height:12px;transition:all .3s}.m-pagination-wrap .u-item[data-v-c3c66db5]:not(:last-child){margin-right:8px}.m-pagination-wrap .active[data-v-c3c66db5]{font-weight:500;color:#1890ff;border-color:#1890ff}.m-pagination-wrap .active .u-arrow[data-v-c3c66db5]{fill:#1890ff}.m-pagination-wrap .disabled[data-v-c3c66db5]{color:#00000040;background:#fff;border-color:#d9d9d9;cursor:not-allowed}.m-pagination-wrap .disabled[data-v-c3c66db5]:hover{font-weight:400;color:#000000a6;border-color:#d9d9d9}.m-pagination-wrap .disabled:hover .u-arrow[data-v-c3c66db5],.m-pagination-wrap .disabled .u-arrow[data-v-c3c66db5]{fill:#00000040}.m-pagination-wrap .m-arrow[data-v-c3c66db5]{display:inline-block;vertical-align:middle;margin-right:8px;min-width:32px;height:32px;letter-spacing:2px;font-size:12px;color:#00000040;transition:all .3s;cursor:pointer}.m-pagination-wrap .m-arrow .u-ellipsis[data-v-c3c66db5]{transition:all .3s}.m-pagination-wrap .m-arrow .u-icon[data-v-c3c66db5]{fill:#1890ff;width:12px;height:12px}.m-pagination-wrap .u-jump-page[data-v-c3c66db5]{margin-left:8px;line-height:32px;font-size:14px;color:#000000a6}.m-pagination-wrap .u-jump-page input[data-v-c3c66db5]{vertical-align:top;width:26px;height:20px;padding:5px 11px;margin:0 8px;border:1px solid #d9d9d9;border-radius:4px;background:transparent;text-align:left;outline:none;transition:all .3s}.m-pagination-wrap .u-jump-page input[data-v-c3c66db5]:hover{border-color:#1890ff}.m-pagination-wrap .u-jump-page input[data-v-c3c66db5]:focus{border-color:#1890ff;box-shadow:0 0 0 2px #1890ff33}.m-breadcrumb .m-bread[data-v-1d6e54dc]{display:inline-block;vertical-align:middle}.m-breadcrumb .m-bread .u-route[data-v-1d6e54dc]{height:22px;font-size:16px;font-weight:400;line-height:22px;color:#333;display:inline-block;vertical-align:middle;max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.m-breadcrumb .m-bread .u-route[data-v-1d6e54dc]:hover{color:#1890ff}.m-breadcrumb .m-bread .active[data-v-1d6e54dc]{color:#1890ff;cursor:default}.m-breadcrumb .m-bread .u-separator[data-v-1d6e54dc]{display:inline-block;vertical-align:middle;margin:0 6px}.m-breadcrumb .m-bread .u-arrow[data-v-1d6e54dc]{display:inline-block;vertical-align:middle;margin:0 5px;width:12px;height:12px}.m-breadcrumb .assist[data-v-1d6e54dc]{height:100%;width:0;display:inline-block;vertical-align:middle}
|
package/dist/vue-amazing-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, withDirectives, vShow, Fragment, renderList, createTextVNode, vModelText, pushScopeId, popScopeId, normalizeStyle } from "vue";
|
|
2
|
-
const
|
|
1
|
+
import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, withDirectives, vShow, Fragment, renderList, createTextVNode, vModelText, pushScopeId, popScopeId, inject, defineComponent, computed, normalizeStyle, unref } from "vue";
|
|
2
|
+
const Pagination_vue_vue_type_style_index_0_scoped_c3c66db5_lang = "";
|
|
3
3
|
const _export_sfc = (sfc, props) => {
|
|
4
4
|
const target = sfc.__vccOpts || sfc;
|
|
5
5
|
for (const [key, val] of props) {
|
|
@@ -81,6 +81,7 @@ const _sfc_main$1 = {
|
|
|
81
81
|
},
|
|
82
82
|
currentPage(to) {
|
|
83
83
|
this.loading = true;
|
|
84
|
+
console.log("change:", to);
|
|
84
85
|
this.$emit("change", {
|
|
85
86
|
page: to,
|
|
86
87
|
pageSize: this.pageSize
|
|
@@ -157,7 +158,7 @@ const _sfc_main$1 = {
|
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
};
|
|
160
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
161
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-c3c66db5"), n = n(), popScopeId(), n);
|
|
161
162
|
const _hoisted_1$1 = { class: "m-pagination-wrap" };
|
|
162
163
|
const _hoisted_2$1 = {
|
|
163
164
|
key: 0,
|
|
@@ -216,7 +217,7 @@ const _hoisted_16 = {
|
|
|
216
217
|
key: 1,
|
|
217
218
|
class: "u-jump-page"
|
|
218
219
|
};
|
|
219
|
-
function _sfc_render
|
|
220
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
220
221
|
return openBlock(), createElementBlock("div", {
|
|
221
222
|
class: normalizeClass([`m-pagination ${$props.placement}`, { hidden: $props.hideOnSinglePage && $props.total <= $props.pageSize }])
|
|
222
223
|
}, [
|
|
@@ -292,45 +293,42 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
292
293
|
])
|
|
293
294
|
], 2);
|
|
294
295
|
}
|
|
295
|
-
const Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render
|
|
296
|
+
const Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-c3c66db5"]]);
|
|
296
297
|
Pagination.install = (app) => {
|
|
297
298
|
app.component(Pagination.name, Pagination);
|
|
298
299
|
};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
const _withScopeId = (n) => (pushScopeId("data-v-988f5a63"), n = n(), popScopeId(), n);
|
|
300
|
+
/*!
|
|
301
|
+
* vue-router v4.1.6
|
|
302
|
+
* (c) 2022 Eduardo San Martin Morote
|
|
303
|
+
* @license MIT
|
|
304
|
+
*/
|
|
305
|
+
var NavigationType;
|
|
306
|
+
(function(NavigationType2) {
|
|
307
|
+
NavigationType2["pop"] = "pop";
|
|
308
|
+
NavigationType2["push"] = "push";
|
|
309
|
+
})(NavigationType || (NavigationType = {}));
|
|
310
|
+
var NavigationDirection;
|
|
311
|
+
(function(NavigationDirection2) {
|
|
312
|
+
NavigationDirection2["back"] = "back";
|
|
313
|
+
NavigationDirection2["forward"] = "forward";
|
|
314
|
+
NavigationDirection2["unknown"] = "";
|
|
315
|
+
})(NavigationDirection || (NavigationDirection = {}));
|
|
316
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
317
|
+
var NavigationFailureType;
|
|
318
|
+
(function(NavigationFailureType2) {
|
|
319
|
+
NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
|
|
320
|
+
NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
|
|
321
|
+
NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
|
|
322
|
+
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
323
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
324
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
325
|
+
const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
326
|
+
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
327
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
328
|
+
function useRouter() {
|
|
329
|
+
return inject(routerKey);
|
|
330
|
+
}
|
|
331
|
+
const _withScopeId = (n) => (pushScopeId("data-v-1d6e54dc"), n = n(), popScopeId(), n);
|
|
334
332
|
const _hoisted_1 = ["onClick", "title"];
|
|
335
333
|
const _hoisted_2 = {
|
|
336
334
|
key: 0,
|
|
@@ -349,30 +347,53 @@ const _hoisted_5 = [
|
|
|
349
347
|
_hoisted_4
|
|
350
348
|
];
|
|
351
349
|
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "assist" }, null, -1));
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
350
|
+
const __default__ = {
|
|
351
|
+
// 导出组件name
|
|
352
|
+
name: "Breadcrumb"
|
|
353
|
+
};
|
|
354
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
355
|
+
...__default__,
|
|
356
|
+
props: {
|
|
357
|
+
routes: { default: () => [] },
|
|
358
|
+
height: { default: 60 },
|
|
359
|
+
separator: { default: "" }
|
|
360
|
+
},
|
|
361
|
+
setup(__props) {
|
|
362
|
+
const props = __props;
|
|
363
|
+
const len = computed(() => {
|
|
364
|
+
return props.routes.length;
|
|
365
|
+
});
|
|
366
|
+
const router = useRouter();
|
|
367
|
+
function goRouter(route) {
|
|
368
|
+
router.push({ path: route.path, query: route.query || {} });
|
|
369
|
+
}
|
|
370
|
+
return (_ctx, _cache) => {
|
|
358
371
|
return openBlock(), createElementBlock("div", {
|
|
359
|
-
class: "m-
|
|
360
|
-
|
|
372
|
+
class: "m-breadcrumb",
|
|
373
|
+
style: normalizeStyle(`height: ${__props.height}px;`)
|
|
361
374
|
}, [
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
375
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.routes, (route, index) => {
|
|
376
|
+
return openBlock(), createElementBlock("div", {
|
|
377
|
+
class: "m-bread",
|
|
378
|
+
key: index
|
|
379
|
+
}, [
|
|
380
|
+
createElementVNode("a", {
|
|
381
|
+
class: normalizeClass(["u-route", { active: index === unref(len) - 1 }]),
|
|
382
|
+
onClick: ($event) => index === unref(len) - 1 ? ($event2) => $event2.preventDefault() : goRouter(route),
|
|
383
|
+
title: route.name
|
|
384
|
+
}, toDisplayString(route.name || "--"), 11, _hoisted_1),
|
|
385
|
+
index !== unref(len) - 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
386
|
+
__props.separator ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.separator), 1)) : (openBlock(), createElementBlock("svg", _hoisted_3, _hoisted_5))
|
|
387
|
+
], 64)) : createCommentVNode("", true)
|
|
388
|
+
]);
|
|
389
|
+
}), 128)),
|
|
390
|
+
_hoisted_6
|
|
391
|
+
], 4);
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
const Breadcrumb_vue_vue_type_style_index_0_scoped_1d6e54dc_lang = "";
|
|
396
|
+
const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1d6e54dc"]]);
|
|
376
397
|
Breadcrumb.install = (app) => {
|
|
377
398
|
app.component(Breadcrumb.name, Breadcrumb);
|
|
378
399
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VueAmazingUI={},e.Vue)}(this,(function(e,t){"use strict";const a=(e,t)=>{const a=e.__vccOpts||e;for(const[r,o]of t)a[r]=o;return a},r={name:"Pagination",props:{current:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0},pageListNum:{type:Number,default:5},hideOnSinglePage:{type:Boolean,default:!1},showQuickJumper:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},placement:{type:String,default:"right"}},data(){return{currentPage:this.current,jumpNumber:"",forwardMore:!1,backwardMore:!1,forwardArrow:!1,backwardArrow:!1}},computed:{totalPage(){return Math.ceil(this.total/this.pageSize)},pageList(){return this.dealPageList(this.currentPage).filter((e=>1!==e&&e!==this.totalPage))}},watch:{current(e){this.currentPage=e},currentPage(e){this.loading=!0,this.$emit("change",{page:e,pageSize:this.pageSize})}},created(){document.onkeydown=e=>{const t=e||window.event;t&&13===t.keyCode&&this.jumpNumber&&this.jumpPage(this.jumpNumber)}},methods:{dealPageList(e){var t=[],a=Math.floor(this.pageListNum/2),r={start:e-a,end:e+a};r.start<1&&(r.end=r.end+(1-r.start),r.start=1),r.end>this.totalPage&&(r.start=r.start-(r.end-this.totalPage),r.end=this.totalPage),r.start<1&&(r.start=1),r.start>1?this.forwardMore=!0:this.forwardMore=!1,r.end<this.totalPage?this.backwardMore=!0:this.backwardMore=!1;for(let o=r.start;o<=r.end;o++)t.push(o);return t},onForward(){this.currentPage=this.currentPage-this.pageListNum>0?this.currentPage-this.pageListNum:1},onBackward(){this.currentPage=this.currentPage+this.pageListNum<this.totalPage?this.currentPage+this.pageListNum:this.totalPage},jumpPage(e){Number(e)&&(Number(e)<1&&(e=1),Number(e)>this.totalPage&&(e=this.totalPage),this.changePage(Number(e))),this.jumpNumber=""},changePage(e){if(0===e||e===this.totalPage+1)return!1;this.currentPage!==e&&(this.currentPage=e)}}},o=e=>(t.pushScopeId("data-v-
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VueAmazingUI={},e.Vue)}(this,(function(e,t){"use strict";const a=(e,t)=>{const a=e.__vccOpts||e;for(const[r,o]of t)a[r]=o;return a},r={name:"Pagination",props:{current:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0},pageListNum:{type:Number,default:5},hideOnSinglePage:{type:Boolean,default:!1},showQuickJumper:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},placement:{type:String,default:"right"}},data(){return{currentPage:this.current,jumpNumber:"",forwardMore:!1,backwardMore:!1,forwardArrow:!1,backwardArrow:!1}},computed:{totalPage(){return Math.ceil(this.total/this.pageSize)},pageList(){return this.dealPageList(this.currentPage).filter((e=>1!==e&&e!==this.totalPage))}},watch:{current(e){this.currentPage=e},currentPage(e){this.loading=!0,this.$emit("change",{page:e,pageSize:this.pageSize})}},created(){document.onkeydown=e=>{const t=e||window.event;t&&13===t.keyCode&&this.jumpNumber&&this.jumpPage(this.jumpNumber)}},methods:{dealPageList(e){var t=[],a=Math.floor(this.pageListNum/2),r={start:e-a,end:e+a};r.start<1&&(r.end=r.end+(1-r.start),r.start=1),r.end>this.totalPage&&(r.start=r.start-(r.end-this.totalPage),r.end=this.totalPage),r.start<1&&(r.start=1),r.start>1?this.forwardMore=!0:this.forwardMore=!1,r.end<this.totalPage?this.backwardMore=!0:this.backwardMore=!1;for(let o=r.start;o<=r.end;o++)t.push(o);return t},onForward(){this.currentPage=this.currentPage-this.pageListNum>0?this.currentPage-this.pageListNum:1},onBackward(){this.currentPage=this.currentPage+this.pageListNum<this.totalPage?this.currentPage+this.pageListNum:this.totalPage},jumpPage(e){Number(e)&&(Number(e)<1&&(e=1),Number(e)>this.totalPage&&(e=this.totalPage),this.changePage(Number(e))),this.jumpNumber=""},changePage(e){if(0===e||e===this.totalPage+1)return!1;this.currentPage!==e&&(this.currentPage=e)}}},o=e=>(t.pushScopeId("data-v-c3c66db5"),e=e(),t.popScopeId(),e),n={class:"m-pagination-wrap"},c={key:0,class:"mr8"},l=[o((()=>t.createElementVNode("svg",{class:"u-arrow",viewBox:"64 64 896 896","data-icon":"left","aria-hidden":"true",focusable:"false"},[t.createElementVNode("path",{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"})],-1)))],s={class:"u-ellipsis"},i={class:"u-icon",viewBox:"64 64 896 896","data-icon":"double-left","aria-hidden":"true",focusable:"false"},d=[o((()=>t.createElementVNode("path",{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"},null,-1)))],u=["onClick"],p={class:"u-ellipsis"},m={class:"u-icon",viewBox:"64 64 896 896","data-icon":"double-right","aria-hidden":"true",focusable:"false"},h=[o((()=>t.createElementVNode("path",{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"},null,-1)))],g=[o((()=>t.createElementVNode("svg",{class:"u-arrow",viewBox:"64 64 896 896","data-icon":"right","aria-hidden":"true",focusable:"false"},[t.createElementVNode("path",{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"})],-1)))],w={key:1,class:"u-jump-page"};const f=a(r,[["render",function(e,a,r,o,f,k){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([`m-pagination ${r.placement}`,{hidden:r.hideOnSinglePage&&r.total<=r.pageSize}])},[t.createElementVNode("div",n,[r.showTotal?(t.openBlock(),t.createElementBlock("span",c,"共 "+t.toDisplayString(k.totalPage)+" 页 / "+t.toDisplayString(r.total)+" 条",1)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass(["u-item",{disabled:1===f.currentPage}]),onClick:a[0]||(a[0]=e=>k.changePage(f.currentPage-1))},l,2),t.createElementVNode("span",{class:t.normalizeClass(["u-item",{active:1===f.currentPage}]),onClick:a[1]||(a[1]=e=>k.changePage(1))},"1",2),t.withDirectives(t.createElementVNode("span",{class:"m-arrow",ref:"forward",onClick:a[2]||(a[2]=(...e)=>k.onForward&&k.onForward(...e)),onMouseenter:a[3]||(a[3]=e=>f.forwardArrow=!0),onMouseleave:a[4]||(a[4]=e=>f.forwardArrow=!1)},[t.withDirectives(t.createElementVNode("span",s,"•••",512),[[t.vShow,!f.forwardArrow]]),t.withDirectives((t.openBlock(),t.createElementBlock("svg",i,d,512)),[[t.vShow,f.forwardArrow]])],544),[[t.vShow,f.forwardMore&&k.pageList[0]-1>1]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.pageList,((e,a)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["u-item",{active:f.currentPage===e}]),key:a,onClick:t=>k.changePage(e)},t.toDisplayString(e),11,u)))),128)),t.withDirectives(t.createElementVNode("span",{class:"m-arrow",ref:"backward",onClick:a[5]||(a[5]=(...e)=>k.onBackward&&k.onBackward(...e)),onMouseenter:a[6]||(a[6]=e=>f.backwardArrow=!0),onMouseleave:a[7]||(a[7]=e=>f.backwardArrow=!1)},[t.withDirectives(t.createElementVNode("span",p,"•••",512),[[t.vShow,!f.backwardArrow]]),t.withDirectives((t.openBlock(),t.createElementBlock("svg",m,h,512)),[[t.vShow,f.backwardArrow]])],544),[[t.vShow,f.backwardMore&&k.pageList[k.pageList.length-1]+1<k.totalPage]]),t.withDirectives(t.createElementVNode("span",{class:t.normalizeClass(["u-item",{active:f.currentPage===k.totalPage}]),onClick:a[8]||(a[8]=e=>k.changePage(k.totalPage))},t.toDisplayString(k.totalPage),3),[[t.vShow,1!==k.totalPage]]),t.createElementVNode("span",{class:t.normalizeClass(["u-item",{disabled:f.currentPage===k.totalPage}]),onClick:a[9]||(a[9]=e=>k.changePage(f.currentPage+1))},g,2),r.showQuickJumper?(t.openBlock(),t.createElementBlock("span",w,[t.createTextVNode("跳至"),t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":a[10]||(a[10]=e=>f.jumpNumber=e)},null,512),[[t.vModelText,f.jumpNumber]]),t.createTextVNode("页")])):t.createCommentVNode("",!0)])],2)}],["__scopeId","data-v-c3c66db5"]]);var k,v,N,b,P,E;f.install=e=>{e.component(f.name,f)},(v=k||(k={})).pop="pop",v.push="push",(b=N||(N={})).back="back",b.forward="forward",b.unknown="",Symbol("production"!==process.env.NODE_ENV?"navigation failure":""),(E=P||(P={}))[E.aborted=4]="aborted",E[E.cancelled=8]="cancelled",E[E.duplicated=16]="duplicated",Symbol("production"!==process.env.NODE_ENV?"router view location matched":""),Symbol("production"!==process.env.NODE_ENV?"router view depth":"");const y=Symbol("production"!==process.env.NODE_ENV?"router":"");Symbol("production"!==process.env.NODE_ENV?"route location":""),Symbol("production"!==process.env.NODE_ENV?"router view location":"");const B=e=>(t.pushScopeId("data-v-1d6e54dc"),e=e(),t.popScopeId(),e),V=["onClick","title"],S={key:0,class:"u-separator"},L={key:1,class:"u-arrow",viewBox:"64 64 896 896","data-icon":"right","aria-hidden":"true",focusable:"false"},C=[B((()=>t.createElementVNode("path",{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"},null,-1)))],M=B((()=>t.createElementVNode("div",{class:"assist"},null,-1))),z=a(t.defineComponent({name:"Breadcrumb",props:{routes:{default:()=>[]},height:{default:60},separator:{default:""}},setup(e){const a=e,r=t.computed((()=>a.routes.length)),o=t.inject(y);return(a,n)=>(t.openBlock(),t.createElementBlock("div",{class:"m-breadcrumb",style:t.normalizeStyle(`height: ${e.height}px;`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.routes,((a,n)=>(t.openBlock(),t.createElementBlock("div",{class:"m-bread",key:n},[t.createElementVNode("a",{class:t.normalizeClass(["u-route",{active:n===t.unref(r)-1}]),onClick:e=>n===t.unref(r)-1?e=>e.preventDefault():function(e){o.push({path:e.path,query:e.query||{}})}(a),title:a.name},t.toDisplayString(a.name||"--"),11,V),n!==t.unref(r)-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.separator?(t.openBlock(),t.createElementBlock("span",S,t.toDisplayString(e.separator),1)):(t.openBlock(),t.createElementBlock("svg",L,C))],64)):t.createCommentVNode("",!0)])))),128)),M],4))}}),[["__scopeId","data-v-1d6e54dc"]]);z.install=e=>{e.component(z.name,z)};const D=[f,z],A={install:e=>{D.forEach((t=>e.component(t.name,t)))}};e.Breadcrumb=z,e.Pagination=f,e.default=A,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-amazing-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"
|
|
26
|
+
"core-js": "^3.28.0",
|
|
27
|
+
"vue": "^3.2.45",
|
|
28
|
+
"vue-router": "^4.1.6"
|
|
27
29
|
},
|
|
28
30
|
"devDependencies": {
|
|
29
31
|
"@rushstack/eslint-patch": "^1.1.4",
|