@xjw_/vue3-npm-system 1.2.0 → 1.3.0
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/index.es.js +118 -27
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +118 -27
- package/dist/index.umd.js.map +1 -1
- package/dist/types/components/XSwitch.vue.d.ts +137 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/vue3-npm-system.css +5 -0
- package/package.json +1 -1
- package/README.md +0 -275
package/dist/index.es.js
CHANGED
|
@@ -283,7 +283,7 @@ const directives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
283
283
|
throttle
|
|
284
284
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
285
285
|
const _hoisted_1$4 = ["href", "xlink:href"];
|
|
286
|
-
const _sfc_main$
|
|
286
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
287
287
|
__name: "SvgIcon",
|
|
288
288
|
props: {
|
|
289
289
|
iconClass: {
|
|
@@ -336,8 +336,8 @@ const _export_sfc = (sfc, props) => {
|
|
|
336
336
|
}
|
|
337
337
|
return target;
|
|
338
338
|
};
|
|
339
|
-
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
340
|
-
const _sfc_main$
|
|
339
|
+
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-bc56d70e"]]);
|
|
340
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
341
341
|
__name: "XDatePicker",
|
|
342
342
|
props: {
|
|
343
343
|
type: {
|
|
@@ -544,8 +544,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
|
-
const XDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
548
|
-
const _sfc_main$
|
|
547
|
+
const XDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-264a8a79"]]);
|
|
548
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
549
549
|
__name: "XElForm",
|
|
550
550
|
props: {
|
|
551
551
|
model: {
|
|
@@ -686,8 +686,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
|
-
const XElForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
690
|
-
const _sfc_main$
|
|
689
|
+
const XElForm = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-441b419b"]]);
|
|
690
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
691
691
|
__name: "XElFormItem",
|
|
692
692
|
props: {
|
|
693
693
|
label: {
|
|
@@ -770,8 +770,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
});
|
|
773
|
-
const XElFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
774
|
-
const _sfc_main$
|
|
773
|
+
const XElFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-50c1c717"]]);
|
|
774
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
775
775
|
__name: "XElOption",
|
|
776
776
|
props: {
|
|
777
777
|
label: {
|
|
@@ -831,7 +831,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
|
-
const _sfc_main$
|
|
834
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
835
835
|
__name: "XElSelect",
|
|
836
836
|
props: {
|
|
837
837
|
modelValue: {
|
|
@@ -955,7 +955,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
955
955
|
}
|
|
956
956
|
});
|
|
957
957
|
const _hoisted_1$3 = { class: "x-pagination" };
|
|
958
|
-
const _sfc_main$
|
|
958
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
959
959
|
__name: "XPagination",
|
|
960
960
|
props: {
|
|
961
961
|
currentPage: {
|
|
@@ -1027,8 +1027,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
});
|
|
1030
|
-
const XPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1031
|
-
const _sfc_main$
|
|
1030
|
+
const XPagination = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-bd405b6e"]]);
|
|
1031
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1032
1032
|
__name: "XVxeTable",
|
|
1033
1033
|
props: {
|
|
1034
1034
|
tableData: { type: Array, default: () => [] },
|
|
@@ -1292,7 +1292,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1292
1292
|
};
|
|
1293
1293
|
}
|
|
1294
1294
|
});
|
|
1295
|
-
const XVxeTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1295
|
+
const XVxeTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9111013e"]]);
|
|
1296
1296
|
const _hoisted_1$2 = { class: "x-report-table" };
|
|
1297
1297
|
const _hoisted_2$2 = { class: "report-header" };
|
|
1298
1298
|
const _hoisted_3$2 = { class: "report-title" };
|
|
@@ -1320,7 +1320,7 @@ const _hoisted_24 = { key: 0 };
|
|
|
1320
1320
|
const _hoisted_25 = { class: "" };
|
|
1321
1321
|
const _hoisted_26 = { class: "" };
|
|
1322
1322
|
const _hoisted_27 = { class: "" };
|
|
1323
|
-
const _sfc_main$
|
|
1323
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1324
1324
|
__name: "XReportTable",
|
|
1325
1325
|
props: {
|
|
1326
1326
|
tableData: { type: Array, default: () => [] },
|
|
@@ -1642,7 +1642,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
1644
|
});
|
|
1645
|
-
const XReportTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1645
|
+
const XReportTable = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-00481d7c"]]);
|
|
1646
1646
|
const _hoisted_1$1 = {
|
|
1647
1647
|
key: 0,
|
|
1648
1648
|
class: "search-top"
|
|
@@ -1687,7 +1687,7 @@ const _hoisted_14 = { class: "search-top-extra-content" };
|
|
|
1687
1687
|
const _hoisted_15 = { class: "search-top__actions" };
|
|
1688
1688
|
const _hoisted_16 = { class: "search-form__buttons" };
|
|
1689
1689
|
const _hoisted_17 = { class: "search-form__buttons" };
|
|
1690
|
-
const _sfc_main$
|
|
1690
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1691
1691
|
__name: "XSearchBar",
|
|
1692
1692
|
props: {
|
|
1693
1693
|
modelValue: {
|
|
@@ -2156,7 +2156,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2156
2156
|
};
|
|
2157
2157
|
}
|
|
2158
2158
|
});
|
|
2159
|
-
const XSearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2159
|
+
const XSearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-0c479461"]]);
|
|
2160
2160
|
const _hoisted_1 = { class: "x-split-layout__sidebar-menu" };
|
|
2161
2161
|
const _hoisted_2 = ["onClick"];
|
|
2162
2162
|
const _hoisted_3 = { class: "x-split-layout__menu-icon" };
|
|
@@ -2171,7 +2171,7 @@ const _hoisted_8 = {
|
|
|
2171
2171
|
key: 1,
|
|
2172
2172
|
class: "x-split-layout__content-footer"
|
|
2173
2173
|
};
|
|
2174
|
-
const _sfc_main$
|
|
2174
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2175
2175
|
__name: "XSplitLayout",
|
|
2176
2176
|
props: {
|
|
2177
2177
|
height: { type: String, default: "100%" },
|
|
@@ -2374,7 +2374,95 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2374
2374
|
};
|
|
2375
2375
|
}
|
|
2376
2376
|
});
|
|
2377
|
-
const XSplitLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2377
|
+
const XSplitLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c57f39a8"]]);
|
|
2378
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2379
|
+
__name: "XSwitch",
|
|
2380
|
+
props: {
|
|
2381
|
+
modelValue: {
|
|
2382
|
+
type: [Boolean, String, Number],
|
|
2383
|
+
default: void 0
|
|
2384
|
+
},
|
|
2385
|
+
activeColor: {
|
|
2386
|
+
type: String,
|
|
2387
|
+
default: "#67C23A"
|
|
2388
|
+
},
|
|
2389
|
+
inactiveColor: {
|
|
2390
|
+
type: String,
|
|
2391
|
+
default: void 0
|
|
2392
|
+
},
|
|
2393
|
+
activeText: {
|
|
2394
|
+
type: String,
|
|
2395
|
+
default: void 0
|
|
2396
|
+
},
|
|
2397
|
+
inactiveText: {
|
|
2398
|
+
type: String,
|
|
2399
|
+
default: void 0
|
|
2400
|
+
},
|
|
2401
|
+
activeValue: {
|
|
2402
|
+
type: [Boolean, String, Number],
|
|
2403
|
+
default: true
|
|
2404
|
+
},
|
|
2405
|
+
inactiveValue: {
|
|
2406
|
+
type: [Boolean, String, Number],
|
|
2407
|
+
default: false
|
|
2408
|
+
},
|
|
2409
|
+
activeIcon: {
|
|
2410
|
+
type: Object,
|
|
2411
|
+
default: void 0
|
|
2412
|
+
},
|
|
2413
|
+
inactiveIcon: {
|
|
2414
|
+
type: Object,
|
|
2415
|
+
default: void 0
|
|
2416
|
+
},
|
|
2417
|
+
width: {
|
|
2418
|
+
type: [String, Number],
|
|
2419
|
+
default: void 0
|
|
2420
|
+
},
|
|
2421
|
+
size: {
|
|
2422
|
+
type: String,
|
|
2423
|
+
default: void 0
|
|
2424
|
+
},
|
|
2425
|
+
disabled: {
|
|
2426
|
+
type: Boolean,
|
|
2427
|
+
default: false
|
|
2428
|
+
},
|
|
2429
|
+
loading: {
|
|
2430
|
+
type: Boolean,
|
|
2431
|
+
default: false
|
|
2432
|
+
},
|
|
2433
|
+
inlinePrompt: {
|
|
2434
|
+
type: Boolean,
|
|
2435
|
+
default: false
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
emits: ["update:modelValue", "change"],
|
|
2439
|
+
setup(__props, { emit: __emit }) {
|
|
2440
|
+
const props = __props;
|
|
2441
|
+
const emit = __emit;
|
|
2442
|
+
const switchAttrs = computed(() => {
|
|
2443
|
+
return {
|
|
2444
|
+
...props,
|
|
2445
|
+
"active-color": props.activeColor,
|
|
2446
|
+
"inactive-color": props.inactiveColor,
|
|
2447
|
+
"active-text": props.activeText,
|
|
2448
|
+
"inactive-text": props.inactiveText,
|
|
2449
|
+
"active-value": props.activeValue,
|
|
2450
|
+
"inactive-value": props.inactiveValue,
|
|
2451
|
+
"active-icon": props.activeIcon,
|
|
2452
|
+
"inactive-icon": props.inactiveIcon,
|
|
2453
|
+
"inline-prompt": props.inlinePrompt
|
|
2454
|
+
};
|
|
2455
|
+
});
|
|
2456
|
+
const handleChange = (val) => {
|
|
2457
|
+
emit("update:modelValue", val);
|
|
2458
|
+
emit("change", val);
|
|
2459
|
+
};
|
|
2460
|
+
return (_ctx, _cache) => {
|
|
2461
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
2462
|
+
return openBlock(), createBlock(_component_el_switch, mergeProps({ "model-value": __props.modelValue }, switchAttrs.value, { "onUpdate:modelValue": handleChange }), null, 16, ["model-value"]);
|
|
2463
|
+
};
|
|
2464
|
+
}
|
|
2465
|
+
});
|
|
2378
2466
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2379
2467
|
__name: "XVxeColumn",
|
|
2380
2468
|
props: {
|
|
@@ -2453,7 +2541,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2453
2541
|
return {
|
|
2454
2542
|
name,
|
|
2455
2543
|
fn: withCtx((slotData) => [
|
|
2456
|
-
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})))
|
|
2544
|
+
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData || {})), void 0, true)
|
|
2457
2545
|
])
|
|
2458
2546
|
};
|
|
2459
2547
|
})
|
|
@@ -2461,17 +2549,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2461
2549
|
};
|
|
2462
2550
|
}
|
|
2463
2551
|
});
|
|
2552
|
+
const XVxeColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ace2083"]]);
|
|
2464
2553
|
const components = {
|
|
2465
2554
|
XDatePicker,
|
|
2466
2555
|
XElForm,
|
|
2467
2556
|
XElFormItem,
|
|
2468
|
-
XElOption: _sfc_main$
|
|
2469
|
-
XElSelect: _sfc_main$
|
|
2557
|
+
XElOption: _sfc_main$8,
|
|
2558
|
+
XElSelect: _sfc_main$7,
|
|
2470
2559
|
XPagination,
|
|
2471
2560
|
XReportTable,
|
|
2472
2561
|
XSearchBar,
|
|
2473
2562
|
XSplitLayout,
|
|
2474
|
-
|
|
2563
|
+
XSwitch: _sfc_main$1,
|
|
2564
|
+
XVxeColumn,
|
|
2475
2565
|
XVxeTable
|
|
2476
2566
|
};
|
|
2477
2567
|
const install = (app) => {
|
|
@@ -2494,13 +2584,14 @@ export {
|
|
|
2494
2584
|
XDatePicker,
|
|
2495
2585
|
XElForm,
|
|
2496
2586
|
XElFormItem,
|
|
2497
|
-
_sfc_main$
|
|
2498
|
-
_sfc_main$
|
|
2587
|
+
_sfc_main$8 as XElOption,
|
|
2588
|
+
_sfc_main$7 as XElSelect,
|
|
2499
2589
|
XPagination,
|
|
2500
2590
|
XReportTable,
|
|
2501
2591
|
XSearchBar,
|
|
2502
2592
|
XSplitLayout,
|
|
2503
|
-
_sfc_main as
|
|
2593
|
+
_sfc_main$1 as XSwitch,
|
|
2594
|
+
XVxeColumn,
|
|
2504
2595
|
XVxeTable,
|
|
2505
2596
|
index as default,
|
|
2506
2597
|
directives,
|