flamingo-ui
Version:
火烈鸟UI组件库
226 lines (225 loc) • 8.37 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var stdin_exports = {};
__export(stdin_exports, {
default: () => stdin_default
});
module.exports = __toCommonJS(stdin_exports);
var import_index_sfc = require("./index-sfc.css");
var import_vue = require("vue");
var import_vant = require("vant");
var import_style = require("vant/es/popup/style");
var import_vue2 = require("vue");
const __default__ = {
components: {
[import_vant.Popup.name]: import_vant.Popup
},
name: "NoSupport"
};
const __vue_sfc__ = /* @__PURE__ */ Object.assign(__default__, {
props: {
showPopUpStare: {
type: Boolean,
default: false
},
limitGameList: {
type: String,
default: ""
},
emptyIcon: {
type: String,
default: "https://gres.guopan.cn/png/20230419/no_support-66.png"
}
},
emits: ["closePopUpState"],
setup(__props, { expose, emit }) {
expose();
const props = __props;
const data = (0, import_vue.reactive)({
showBackIcon: false,
searchGame: ""
});
function closeLimitGamePopup() {
emit("closePopUpState");
}
const filterGameList = (0, import_vue.computed)(() => {
if (data.searchGame === "") {
return props.limitGameList;
}
return props.limitGameList.split("\uFF0C").filter((item) => {
return item.indexOf(data.searchGame) != -1;
});
});
const showLimitGame = (0, import_vue.computed)({
get: () => {
return props.showPopUpStare;
},
set: (value) => {
emit("closePopUpState", value);
}
});
const __returned__ = { emit, props, data, closeLimitGamePopup, filterGameList, showLimitGame, get Popup() {
return import_vant.Popup;
}, computed: import_vue.computed, reactive: import_vue.reactive };
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
return __returned__;
}
});
const _hoisted_1 = { class: "fmg-limit_game" };
const _hoisted_2 = { class: "limit_game" };
const _hoisted_3 = /* @__PURE__ */ (0, import_vue2.createElementVNode)(
"p",
{ class: "limit_game_title" },
"\u4E0D\u652F\u6301\u6E38\u620F",
-1
/* HOISTED */
);
const _hoisted_4 = { class: "limit_game_search" };
const _hoisted_5 = /* @__PURE__ */ (0, import_vue2.createElementVNode)(
"a",
null,
"\u641C\u7D22",
-1
/* HOISTED */
);
const _hoisted_6 = {
key: 0,
class: "limit_game_tip"
};
const _hoisted_7 = {
key: 1,
class: "limit_game_con"
};
const _hoisted_8 = { key: 0 };
const _hoisted_9 = { class: "limit_game_list" };
const _hoisted_10 = /* @__PURE__ */ (0, import_vue2.createElementVNode)(
"div",
{ class: "limit_game_nomore" },
[
/* @__PURE__ */ (0, import_vue2.createElementVNode)("p", null, "\u6CA1\u6709\u66F4\u591A\u4E86~")
],
-1
/* HOISTED */
);
const _hoisted_11 = {
key: 2,
class: "limit_game_nodata"
};
const _hoisted_12 = ["src"];
const _hoisted_13 = /* @__PURE__ */ (0, import_vue2.createElementVNode)(
"p",
null,
"\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A",
-1
/* HOISTED */
);
function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) {
const _component_van_popup = (0, import_vue2.resolveComponent)("van-popup");
return (0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)(
import_vue2.Fragment,
null,
[
(0, import_vue2.createCommentVNode)(" \u67E5\u8BE2\u4E0D\u652F\u6301\u7684\u6E38\u620F\u4E1A\u52A1\u7EC4\u4EF6 "),
(0, import_vue2.createElementVNode)("div", _hoisted_1, [
(0, import_vue2.createElementVNode)("div", _hoisted_2, [
(0, import_vue2.createVNode)(_component_van_popup, {
show: $setup.showLimitGame,
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => $setup.showLimitGame = $event),
position: "bottom",
"safe-area-inset-top": "",
"close-on-click-overlay": false,
onClosed: _cache[3] || (_cache[3] = ($event) => $setup.data.searchGame = "")
}, {
default: (0, import_vue2.withCtx)(() => [
(0, import_vue2.createElementVNode)("i", {
class: "limit_game_close",
onClick: _cache[0] || (_cache[0] = ($event) => $setup.closeLimitGamePopup())
}),
_hoisted_3,
(0, import_vue2.createElementVNode)("div", _hoisted_4, [
(0, import_vue2.withDirectives)((0, import_vue2.createElementVNode)(
"input",
{
type: "text",
class: "limit_game_input",
placeholder: "\u8BF7\u8F93\u5165\u6E38\u620F\u540D\u79F0",
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.data.searchGame = $event)
},
null,
512
/* NEED_PATCH */
), [
[import_vue2.vModelText, $setup.data.searchGame]
]),
_hoisted_5
]),
$setup.data.searchGame === "" ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("p", _hoisted_6, " \u4EE5\u4E0B\u6E38\u620F\u7531\u4E8E\u5408\u4F5C\u539F\u56E0\u4E0D\u652F\u6301\u4EE3\u91D1\u5238\u7684\u4F7F\u7528\uFF0C\u53EF\u7528\u6E38\u620F\u8303\u56F4\u5B58\u5728\u53D1\u751F\u589E\u51CF\u53D8\u66F4\u7684\u53EF\u80FD\u6027\uFF0C\u8BF7\u5173\u6CE8\u7559\u610F ")) : (0, import_vue2.createCommentVNode)("v-if", true),
$setup.filterGameList.length ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("div", _hoisted_7, [
$setup.data.searchGame !== "" ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("ul", _hoisted_8, [
((0, import_vue2.openBlock)(true), (0, import_vue2.createElementBlock)(
import_vue2.Fragment,
null,
(0, import_vue2.renderList)($setup.filterGameList, (item, index) => {
return (0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)(
"li",
{ key: index },
(0, import_vue2.toDisplayString)(item),
1
/* TEXT */
);
}),
128
/* KEYED_FRAGMENT */
))
])) : ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)(
import_vue2.Fragment,
{ key: 1 },
[
(0, import_vue2.createElementVNode)(
"p",
_hoisted_9,
(0, import_vue2.toDisplayString)($setup.filterGameList),
1
/* TEXT */
),
_hoisted_10
],
64
/* STABLE_FRAGMENT */
))
])) : ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("div", _hoisted_11, [
(0, import_vue2.createElementVNode)("img", {
src: $props.emptyIcon,
alt: "empyt"
}, null, 8, _hoisted_12),
_hoisted_13
]))
]),
_: 1
/* STABLE */
}, 8, ["show"])
])
])
],
2112
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
);
}
__vue_sfc__.render = __vue_render__;
__vue_sfc__._scopeId = "data-v-1188d790";
var stdin_default = __vue_sfc__;