wx-screen-ui 1.0.6 → 1.0.8
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/example/ExampleIndex.vue +86 -0
- package/dist/example/WxDescriptionExample.vue +202 -0
- package/dist/example/WxEchartsExample.vue +152 -0
- package/dist/example/WxEmptyExample.vue +56 -0
- package/dist/example/WxMessageExample.vue +84 -0
- package/dist/example/WxPaginationExample.vue +85 -0
- package/dist/example/WxRadioExample.vue +81 -0
- package/dist/example/WxSelectExample.vue +132 -0
- package/dist/example/WxTableExample.vue +90 -0
- package/dist/wx-screen-ui.css +1 -1
- package/dist/wx-screen-ui.es.js +182 -39
- package/dist/wx-screen-ui.umd.js +23 -23
- package/package.json +2 -2
package/dist/wx-screen-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment, TransitionGroup, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
1
|
+
import { Fragment, TransitionGroup, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useModel, watch, withCtx, withKeys, withModifiers } from "vue";
|
|
2
2
|
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (t, n) => () => (n || t((n = { exports: {} }).exports, n), n.exports), __export = (t) => {
|
|
3
3
|
let n = {};
|
|
4
4
|
for (var r in t) __defProp(n, r, {
|
|
@@ -26754,7 +26754,7 @@ var PlaylistLoader = class {
|
|
|
26754
26754
|
}
|
|
26755
26755
|
};
|
|
26756
26756
|
Hls.defaultConfig = void 0;
|
|
26757
|
-
var _hoisted_1$
|
|
26757
|
+
var _hoisted_1$9 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
26758
26758
|
__name: "index",
|
|
26759
26759
|
props: {
|
|
26760
26760
|
url: {
|
|
@@ -26812,7 +26812,7 @@ var _hoisted_1$8 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin
|
|
|
26812
26812
|
muted: "",
|
|
26813
26813
|
autoplay: "",
|
|
26814
26814
|
controls: t.controls
|
|
26815
|
-
}, null, 8, _hoisted_1$
|
|
26815
|
+
}, null, 8, _hoisted_1$9)], 512));
|
|
26816
26816
|
}
|
|
26817
26817
|
}, [["__scopeId", "data-v-e27925c4"]]), extendStatics$1 = function(t, n) {
|
|
26818
26818
|
return extendStatics$1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
|
|
@@ -70667,7 +70667,7 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70667
70667
|
class: "echarts-container"
|
|
70668
70668
|
}, null, 4));
|
|
70669
70669
|
}
|
|
70670
|
-
}, [["__scopeId", "data-v-80e0b5bd"]]), 无数据_default$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e", _hoisted_1$
|
|
70670
|
+
}, [["__scopeId", "data-v-80e0b5bd"]]), 无数据_default$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e", _hoisted_1$8 = { class: "wx_empty" }, _hoisted_2$7 = ["src"], empty_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
70671
70671
|
__name: "index",
|
|
70672
70672
|
props: {
|
|
70673
70673
|
img: {
|
|
@@ -70687,31 +70687,31 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70687
70687
|
default: () => "暂无数据"
|
|
70688
70688
|
},
|
|
70689
70689
|
textStyle: {
|
|
70690
|
-
type:
|
|
70690
|
+
type: Object,
|
|
70691
70691
|
default: () => ({})
|
|
70692
70692
|
}
|
|
70693
70693
|
},
|
|
70694
70694
|
setup(t) {
|
|
70695
|
-
return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$
|
|
70695
|
+
return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$8, [createElementVNode("div", {
|
|
70696
70696
|
class: "wx_empty_img_box",
|
|
70697
70697
|
style: normalizeStyle({ width: t.imgSize })
|
|
70698
70698
|
}, [renderSlot(n.$slots, "img", {}, () => [createElementVNode("img", {
|
|
70699
70699
|
src: t.img,
|
|
70700
70700
|
alt: "",
|
|
70701
70701
|
class: "wx_empty_img"
|
|
70702
|
-
}, null, 8, _hoisted_2$
|
|
70702
|
+
}, null, 8, _hoisted_2$7)], !0)], 4), t.showText ? (openBlock(), createElementBlock("div", {
|
|
70703
70703
|
key: 0,
|
|
70704
70704
|
class: "wx_empty_text",
|
|
70705
70705
|
style: normalizeStyle(t.textStyle)
|
|
70706
70706
|
}, [renderSlot(n.$slots, "text", {}, () => [createTextVNode(toDisplayString(t.text), 1)], !0)], 4)) : createCommentVNode("", !0)]));
|
|
70707
70707
|
}
|
|
70708
|
-
}, [["__scopeId", "data-v-
|
|
70708
|
+
}, [["__scopeId", "data-v-3895cb60"]]), _hoisted_1$7 = {
|
|
70709
70709
|
key: 0,
|
|
70710
70710
|
class: "item-icon"
|
|
70711
|
-
}, _hoisted_2$
|
|
70711
|
+
}, _hoisted_2$6 = ["viewBox"], _hoisted_3$5 = ["d"], _hoisted_4$5 = { class: "item-content" }, _hoisted_5$4 = {
|
|
70712
70712
|
key: 0,
|
|
70713
70713
|
class: "item-content-inline"
|
|
70714
|
-
}, _hoisted_6$
|
|
70714
|
+
}, _hoisted_6$3 = { key: 1 }, _hoisted_7$2 = {
|
|
70715
70715
|
key: 1,
|
|
70716
70716
|
class: "item-actions"
|
|
70717
70717
|
}, _hoisted_8$1 = ["onClick"], descriptionItem_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
@@ -70781,12 +70781,12 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70781
70781
|
class: normalizeClass(["description-item", { "has-divider": n.hasDivider }]),
|
|
70782
70782
|
style: normalizeStyle(p.value)
|
|
70783
70783
|
}, [
|
|
70784
|
-
n.item.icon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
70784
|
+
n.item.icon ? (openBlock(), createElementBlock("div", _hoisted_1$7, [typeof n.item.icon == "string" ? (openBlock(), createElementBlock("svg", {
|
|
70785
70785
|
key: 0,
|
|
70786
70786
|
viewBox: n.item.iconViewBox || "0 0 16 16",
|
|
70787
70787
|
fill: "currentColor"
|
|
70788
|
-
}, [createElementVNode("path", { d: n.item.icon }, null, 8, _hoisted_3$
|
|
70789
|
-
createElementVNode("div", _hoisted_4$
|
|
70788
|
+
}, [createElementVNode("path", { d: n.item.icon }, null, 8, _hoisted_3$5)], 8, _hoisted_2$6)) : (openBlock(), createBlock(resolveDynamicComponent(n.item.icon), { key: 1 }))])) : createCommentVNode("", !0),
|
|
70789
|
+
createElementVNode("div", _hoisted_4$5, [f.value ? (openBlock(), createElementBlock("div", _hoisted_5$4, [n.label || n.item.label ? (openBlock(), createElementBlock("span", {
|
|
70790
70790
|
key: 0,
|
|
70791
70791
|
class: "item-label",
|
|
70792
70792
|
style: normalizeStyle({ textAlign: n.labelAlign || "left" })
|
|
@@ -70802,7 +70802,7 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70802
70802
|
key: 3,
|
|
70803
70803
|
class: "item-value",
|
|
70804
70804
|
style: normalizeStyle({ textAlign: n.contentAlign || "left" })
|
|
70805
|
-
}, toDisplayString(n.item.value), 5)) : createCommentVNode("", !0)])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
70805
|
+
}, toDisplayString(n.item.value), 5)) : createCommentVNode("", !0)])) : (openBlock(), createElementBlock("div", _hoisted_6$3, [n.label || n.item.label ? (openBlock(), createElementBlock("div", {
|
|
70806
70806
|
key: 0,
|
|
70807
70807
|
class: "item-label",
|
|
70808
70808
|
style: normalizeStyle({ textAlign: n.labelAlign || "left" })
|
|
@@ -70819,23 +70819,23 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70819
70819
|
class: "item-value",
|
|
70820
70820
|
style: normalizeStyle({ textAlign: n.contentAlign || "left" })
|
|
70821
70821
|
}, toDisplayString(n.item.value), 5)) : createCommentVNode("", !0)]))]),
|
|
70822
|
-
n.item.actions ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
70822
|
+
n.item.actions ? (openBlock(), createElementBlock("div", _hoisted_7$2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.item.actions, (t, r) => (openBlock(), createElementBlock("button", {
|
|
70823
70823
|
key: r,
|
|
70824
70824
|
class: normalizeClass(["action-btn", t.type || "default"]),
|
|
70825
70825
|
onClick: (r) => h(t, n.item)
|
|
70826
70826
|
}, toDisplayString(t.text), 11, _hoisted_8$1))), 128))])) : createCommentVNode("", !0)
|
|
70827
70827
|
], 6));
|
|
70828
70828
|
}
|
|
70829
|
-
}, [["__scopeId", "data-v-f84ae34f"]]), _hoisted_1$
|
|
70829
|
+
}, [["__scopeId", "data-v-f84ae34f"]]), _hoisted_1$6 = {
|
|
70830
70830
|
key: 0,
|
|
70831
70831
|
class: "description-header"
|
|
70832
|
-
}, _hoisted_2$
|
|
70832
|
+
}, _hoisted_2$5 = {
|
|
70833
70833
|
key: 0,
|
|
70834
70834
|
class: "description-title"
|
|
70835
|
-
}, _hoisted_3$
|
|
70835
|
+
}, _hoisted_3$4 = {
|
|
70836
70836
|
key: 1,
|
|
70837
70837
|
class: "description-extra"
|
|
70838
|
-
}, _hoisted_4$
|
|
70838
|
+
}, _hoisted_4$4 = { class: "description-body" }, _hoisted_5$3 = {
|
|
70839
70839
|
key: 0,
|
|
70840
70840
|
class: "empty-state"
|
|
70841
70841
|
}, description_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
@@ -70929,7 +70929,7 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70929
70929
|
console.error("处理操作时出错:", t);
|
|
70930
70930
|
}
|
|
70931
70931
|
};
|
|
70932
|
-
return (r, a) => (openBlock(), createElementBlock("div", { class: normalizeClass(["my-description", p.value]) }, [n.title || n.extra ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
70932
|
+
return (r, a) => (openBlock(), createElementBlock("div", { class: normalizeClass(["my-description", p.value]) }, [n.title || n.extra ? (openBlock(), createElementBlock("div", _hoisted_1$6, [n.title && n.showTitle ? (openBlock(), createElementBlock("div", _hoisted_2$5, [createElementVNode("h3", null, toDisplayString(n.title), 1), a[0] ||= createElementVNode("div", { class: "title-line" }, null, -1)])) : createCommentVNode("", !0), n.extra ? (openBlock(), createElementBlock("div", _hoisted_3$4, toDisplayString(n.extra), 1)) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("div", _hoisted_4$4, [createElementVNode("div", {
|
|
70933
70933
|
class: "description-list",
|
|
70934
70934
|
style: normalizeStyle(h.value)
|
|
70935
70935
|
}, [renderSlot(r.$slots, "default", {}, () => [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.items, (t, r) => (openBlock(), createBlock(descriptionItem_default, {
|
|
@@ -70946,13 +70946,13 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70946
70946
|
"label-align",
|
|
70947
70947
|
"content-align",
|
|
70948
70948
|
"span"
|
|
70949
|
-
]))), 128))], !0), n.items.length === 0 && r.$slots.default === void 0 ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
70949
|
+
]))), 128))], !0), n.items.length === 0 && r.$slots.default === void 0 ? (openBlock(), createElementBlock("div", _hoisted_5$3, [renderSlot(r.$slots, "empty", {}, () => [createTextVNode(toDisplayString(n.emptyText), 1)], !0)])) : createCommentVNode("", !0)], 4)])], 2));
|
|
70950
70950
|
}
|
|
70951
|
-
}, [["__scopeId", "data-v-43d5daef"]]), _hoisted_1$
|
|
70951
|
+
}, [["__scopeId", "data-v-43d5daef"]]), _hoisted_1$5 = ["disabled"], _hoisted_2$4 = {
|
|
70952
70952
|
key: 0,
|
|
70953
70953
|
class: "pagination-item pagination-ellipsis",
|
|
70954
70954
|
disabled: ""
|
|
70955
|
-
}, _hoisted_3$
|
|
70955
|
+
}, _hoisted_3$3 = ["disabled", "onClick"], _hoisted_4$3 = ["disabled"], pagination_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
70956
70956
|
__name: "index",
|
|
70957
70957
|
props: {
|
|
70958
70958
|
current: {
|
|
@@ -70984,9 +70984,9 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
70984
70984
|
set: (t) => s("update:current", t)
|
|
70985
70985
|
}), f = computed(() => {
|
|
70986
70986
|
let t = [], n = o.showSize, r = Math.floor(n / 2);
|
|
70987
|
-
if (
|
|
70987
|
+
if (u.value <= n) {
|
|
70988
70988
|
for (let n = 1; n <= u.value; n++) t.push(n);
|
|
70989
|
-
return
|
|
70989
|
+
return t;
|
|
70990
70990
|
}
|
|
70991
70991
|
let a = d.value - r, s = d.value + r;
|
|
70992
70992
|
a < 1 && (a = 1, s = n), s > u.value && (s = u.value, a = u.value - n + 1), a > 1 && (t.push(1), a > 2 && t.push("..."));
|
|
@@ -71000,21 +71000,21 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
71000
71000
|
class: "pagination-item pagination-prev",
|
|
71001
71001
|
disabled: d.value === 1 || n.disabled,
|
|
71002
71002
|
onClick: a[0] ||= (t) => p(d.value - 1)
|
|
71003
|
-
}, " < ", 8, _hoisted_1$
|
|
71004
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.value, (r) => (openBlock(), createElementBlock(Fragment, { key: r }, [r === "..." ? (openBlock(), createElementBlock("button", _hoisted_2$
|
|
71003
|
+
}, " < ", 8, _hoisted_1$5),
|
|
71004
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.value, (r) => (openBlock(), createElementBlock(Fragment, { key: r }, [r === "..." ? (openBlock(), createElementBlock("button", _hoisted_2$4, toDisplayString(r), 1)) : (openBlock(), createElementBlock("button", {
|
|
71005
71005
|
key: 1,
|
|
71006
71006
|
class: normalizeClass(["pagination-item", { active: r === d.value }]),
|
|
71007
71007
|
disabled: n.disabled,
|
|
71008
71008
|
onClick: (t) => p(r)
|
|
71009
|
-
}, toDisplayString(r), 11, _hoisted_3$
|
|
71009
|
+
}, toDisplayString(r), 11, _hoisted_3$3))], 64))), 128)),
|
|
71010
71010
|
createElementVNode("button", {
|
|
71011
71011
|
class: "pagination-item pagination-next",
|
|
71012
71012
|
disabled: d.value === u.value || n.disabled,
|
|
71013
71013
|
onClick: a[1] ||= (t) => p(d.value + 1)
|
|
71014
|
-
}, " > ", 8, _hoisted_4$
|
|
71014
|
+
}, " > ", 8, _hoisted_4$3)
|
|
71015
71015
|
], 2));
|
|
71016
71016
|
}
|
|
71017
|
-
}, [["__scopeId", "data-v-
|
|
71017
|
+
}, [["__scopeId", "data-v-1028d67a"]]), _hoisted_1$4 = { class: "my-radio-box" }, _hoisted_2$3 = ["onClick"], radio_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
71018
71018
|
__name: "index",
|
|
71019
71019
|
props: /* @__PURE__ */ mergeModels({ options: {
|
|
71020
71020
|
type: Object,
|
|
@@ -71028,13 +71028,156 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
71028
71028
|
let a = useModel(n, "modelValue"), o = n, s = r, l = (t) => {
|
|
71029
71029
|
a.value = t, s("change", t);
|
|
71030
71030
|
};
|
|
71031
|
-
return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$
|
|
71031
|
+
return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(o.options, (t, n) => (openBlock(), createElementBlock("div", {
|
|
71032
71032
|
class: normalizeClass(["item", { active: t.value === a.value }]),
|
|
71033
71033
|
key: n,
|
|
71034
71034
|
onClick: (n) => l(t.value)
|
|
71035
|
-
}, toDisplayString(t.label), 11, _hoisted_2$
|
|
71035
|
+
}, toDisplayString(t.label), 11, _hoisted_2$3))), 128))]));
|
|
71036
71036
|
}
|
|
71037
|
-
}, [["__scopeId", "data-v-56421a98"]])
|
|
71037
|
+
}, [["__scopeId", "data-v-56421a98"]]), _hoisted_1$3 = [
|
|
71038
|
+
"value",
|
|
71039
|
+
"placeholder",
|
|
71040
|
+
"disabled"
|
|
71041
|
+
], _hoisted_2$2 = {
|
|
71042
|
+
key: 0,
|
|
71043
|
+
class: "wx-select__dropdown"
|
|
71044
|
+
}, _hoisted_3$2 = { class: "wx-select__options" }, _hoisted_4$2 = {
|
|
71045
|
+
key: 0,
|
|
71046
|
+
class: "wx-select__loading"
|
|
71047
|
+
}, _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = ["onClick", "onMouseenter"], _hoisted_7$1 = {
|
|
71048
|
+
key: 0,
|
|
71049
|
+
class: "wx-select__empty"
|
|
71050
|
+
}, select_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
71051
|
+
__name: "index",
|
|
71052
|
+
props: {
|
|
71053
|
+
modelValue: {
|
|
71054
|
+
type: [
|
|
71055
|
+
String,
|
|
71056
|
+
Number,
|
|
71057
|
+
Boolean
|
|
71058
|
+
],
|
|
71059
|
+
default: ""
|
|
71060
|
+
},
|
|
71061
|
+
options: {
|
|
71062
|
+
type: Array,
|
|
71063
|
+
default: () => []
|
|
71064
|
+
},
|
|
71065
|
+
placeholder: {
|
|
71066
|
+
type: String,
|
|
71067
|
+
default: "请选择"
|
|
71068
|
+
},
|
|
71069
|
+
disabled: {
|
|
71070
|
+
type: Boolean,
|
|
71071
|
+
default: !1
|
|
71072
|
+
},
|
|
71073
|
+
clearable: {
|
|
71074
|
+
type: Boolean,
|
|
71075
|
+
default: !0
|
|
71076
|
+
},
|
|
71077
|
+
filterable: {
|
|
71078
|
+
type: Boolean,
|
|
71079
|
+
default: !1
|
|
71080
|
+
},
|
|
71081
|
+
remote: {
|
|
71082
|
+
type: Boolean,
|
|
71083
|
+
default: !1
|
|
71084
|
+
},
|
|
71085
|
+
loading: {
|
|
71086
|
+
type: Boolean,
|
|
71087
|
+
default: !1
|
|
71088
|
+
}
|
|
71089
|
+
},
|
|
71090
|
+
emits: [
|
|
71091
|
+
"update:modelValue",
|
|
71092
|
+
"change",
|
|
71093
|
+
"filter-change"
|
|
71094
|
+
],
|
|
71095
|
+
setup(n, { emit: a }) {
|
|
71096
|
+
let o = n, u = a, d = ref(!1), f = ref(!1), p = ref(-1), h = ref(null), g = ref(null), _ = ref(""), y = computed(() => {
|
|
71097
|
+
if (!o.modelValue) return "";
|
|
71098
|
+
let t = o.options.find((t) => t.value === o.modelValue);
|
|
71099
|
+
return t ? t.label : "";
|
|
71100
|
+
}), T = computed(() => {
|
|
71101
|
+
if (o.remote || !_.value) return o.options;
|
|
71102
|
+
let t = _.value.toLowerCase();
|
|
71103
|
+
return o.options.filter((n) => n.label.toLowerCase().includes(t));
|
|
71104
|
+
}), E = (t) => {
|
|
71105
|
+
t && t.stopPropagation(), !o.disabled && (d.value = !d.value, d.value && (_.value = "", p.value = o.options.findIndex((t) => t.value === o.modelValue), setTimeout(() => {
|
|
71106
|
+
h.value?.focus();
|
|
71107
|
+
}, 0)));
|
|
71108
|
+
}, O = (t) => {
|
|
71109
|
+
o.disabled || (u("update:modelValue", t.value), u("change", t.value), d.value = !1, f.value = !0);
|
|
71110
|
+
}, A = () => {
|
|
71111
|
+
o.disabled || (u("update:modelValue", ""), u("change", ""), d.value = !1, f.value = !0);
|
|
71112
|
+
}, j = (t) => {
|
|
71113
|
+
o.filterable && (_.value = t.target.value, p.value = -1, o.remote && u("filter-change", _.value));
|
|
71114
|
+
}, M = () => {
|
|
71115
|
+
d.value = !1, _.value = "";
|
|
71116
|
+
}, F = () => {
|
|
71117
|
+
o.disabled || (f.value = !0);
|
|
71118
|
+
}, I = () => {
|
|
71119
|
+
o.disabled || (f.value = !1, setTimeout(() => {
|
|
71120
|
+
d.value = !1;
|
|
71121
|
+
}, 200));
|
|
71122
|
+
}, L = () => {
|
|
71123
|
+
o.disabled || (d.value && p.value >= 0 && p.value < T.value.length ? O(T.value[p.value]) : E());
|
|
71124
|
+
}, R = () => {
|
|
71125
|
+
o.disabled || (d.value ? T.value.length > 0 && (p.value = (p.value + 1) % T.value.length, p.value < 0 && (p.value = T.value.length - 1)) : E());
|
|
71126
|
+
}, z = () => {
|
|
71127
|
+
o.disabled || (d.value ? T.value.length > 0 && (p.value = (p.value - 1) % T.value.length, p.value < 0 && (p.value = T.value.length - 1)) : E());
|
|
71128
|
+
}, B = (t) => {
|
|
71129
|
+
g.value && !g.value.contains(t.target) && (d.value = !1);
|
|
71130
|
+
};
|
|
71131
|
+
return onMounted(() => {
|
|
71132
|
+
document.addEventListener("click", B);
|
|
71133
|
+
}), onUnmounted(() => {
|
|
71134
|
+
document.removeEventListener("click", B);
|
|
71135
|
+
}), (r, a) => (openBlock(), createElementBlock("div", {
|
|
71136
|
+
ref_key: "selectRef",
|
|
71137
|
+
ref: g,
|
|
71138
|
+
class: normalizeClass(["wx-select", {
|
|
71139
|
+
"is-open": d.value,
|
|
71140
|
+
"is-disabled": n.disabled
|
|
71141
|
+
}])
|
|
71142
|
+
}, [createElementVNode("div", {
|
|
71143
|
+
class: normalizeClass(["wx-select__input-wrapper", { "is-focus": f.value }]),
|
|
71144
|
+
onClick: E
|
|
71145
|
+
}, [
|
|
71146
|
+
createElementVNode("input", {
|
|
71147
|
+
ref_key: "inputRef",
|
|
71148
|
+
ref: h,
|
|
71149
|
+
type: "text",
|
|
71150
|
+
class: "wx-select__input",
|
|
71151
|
+
value: d.value ? _.value : y.value,
|
|
71152
|
+
placeholder: n.placeholder,
|
|
71153
|
+
disabled: n.disabled,
|
|
71154
|
+
onFocus: F,
|
|
71155
|
+
onBlur: I,
|
|
71156
|
+
onInput: j,
|
|
71157
|
+
onKeydown: [
|
|
71158
|
+
withKeys(L, ["enter"]),
|
|
71159
|
+
withKeys(R, ["down"]),
|
|
71160
|
+
withKeys(z, ["up"]),
|
|
71161
|
+
withKeys(M, ["esc"])
|
|
71162
|
+
]
|
|
71163
|
+
}, null, 40, _hoisted_1$3),
|
|
71164
|
+
(n.modelValue || _.value) && !n.disabled && n.clearable ? (openBlock(), createElementBlock("div", {
|
|
71165
|
+
key: 0,
|
|
71166
|
+
class: "wx-select__clear",
|
|
71167
|
+
onClick: withModifiers(A, ["stop"])
|
|
71168
|
+
}, " × ")) : createCommentVNode("", !0),
|
|
71169
|
+
createElementVNode("div", { class: normalizeClass(["wx-select__caret", { "is-reverse": d.value }]) }, null, 2)
|
|
71170
|
+
], 2), d.value ? (openBlock(), createElementBlock("div", _hoisted_2$2, [createElementVNode("div", _hoisted_3$2, [o.loading ? (openBlock(), createElementBlock("div", _hoisted_4$2, "加载中...")) : (openBlock(), createElementBlock("div", _hoisted_5$2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(T.value, (t, r) => (openBlock(), createElementBlock("div", {
|
|
71171
|
+
key: r,
|
|
71172
|
+
class: normalizeClass(["wx-select__option", {
|
|
71173
|
+
"is-selected": t.value === n.modelValue,
|
|
71174
|
+
"is-highlighted": p.value === r
|
|
71175
|
+
}]),
|
|
71176
|
+
onClick: withModifiers((n) => O(t), ["stop"]),
|
|
71177
|
+
onMouseenter: (t) => p.value = r
|
|
71178
|
+
}, toDisplayString(t.label), 43, _hoisted_6$2))), 128)), T.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_7$1, "无匹配选项")) : createCommentVNode("", !0)]))])])) : createCommentVNode("", !0)], 2));
|
|
71179
|
+
}
|
|
71180
|
+
}, [["__scopeId", "data-v-682e88e7"]]);
|
|
71038
71181
|
function throttle(t, n) {
|
|
71039
71182
|
let r = 0;
|
|
71040
71183
|
return function(...a) {
|
|
@@ -71964,7 +72107,7 @@ var message_default$1 = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_
|
|
|
71964
72107
|
clear: () => {
|
|
71965
72108
|
messageInstance && messageInstance.clearAll();
|
|
71966
72109
|
}
|
|
71967
|
-
}, WxVideoFromFlv = VideoFromFlv_default, WxVideoFromHls = VideoFromHls_default, WxEcharts = echarts_default, WxEmpty = empty_default, WxDescription = description_default, WxDescriptionItem = descriptionItem_default, WxPagination = pagination_default, WxRadio = radio_default, WxTable = table_default, WxMessage = message_default, components =
|
|
72110
|
+
}, WxVideoFromFlv = VideoFromFlv_default, WxVideoFromHls = VideoFromHls_default, WxEcharts = echarts_default, WxEmpty = empty_default, WxDescription = description_default, WxDescriptionItem = descriptionItem_default, WxPagination = pagination_default, WxRadio = radio_default, WxSelect = select_default, WxTable = table_default, WxMessage = message_default, components = {
|
|
71968
72111
|
WxVideoFromFlv,
|
|
71969
72112
|
WxVideoFromHls,
|
|
71970
72113
|
WxEcharts,
|
|
@@ -71973,10 +72116,10 @@ var message_default$1 = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_
|
|
|
71973
72116
|
WxDescriptionItem,
|
|
71974
72117
|
WxPagination,
|
|
71975
72118
|
WxRadio,
|
|
72119
|
+
WxSelect,
|
|
71976
72120
|
WxTable
|
|
71977
|
-
|
|
71978
|
-
components.
|
|
71979
|
-
|
|
71980
|
-
}), t.config.globalProperties.$message = WxMessage;
|
|
72121
|
+
}, src_default = { install: (t) => {
|
|
72122
|
+
for (let [n, r] of Object.entries(components)) t.component(n, r);
|
|
72123
|
+
t.config.globalProperties.$message = WxMessage;
|
|
71981
72124
|
} };
|
|
71982
|
-
export { WxDescription, WxDescriptionItem, WxEcharts, WxEmpty, WxMessage, WxPagination, WxRadio, WxTable, WxVideoFromFlv, WxVideoFromHls, src_default as default };
|
|
72125
|
+
export { WxDescription, WxDescriptionItem, WxEcharts, WxEmpty, WxMessage, WxPagination, WxRadio, WxSelect, WxTable, WxVideoFromFlv, WxVideoFromHls, src_default as default };
|