123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- "use strict";
- const common_vendor = require("../../../common/vendor.js");
- const __default__ = {
- name: "UiSwitch"
- };
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
- props: {
- modelValue: {
- type: [Boolean, Number],
- default: false
- },
- ui: {
- type: String,
- default: ""
- },
- bg: {
- type: String,
- default: "ui-BG-Main"
- },
- text: {
- type: String,
- default: ""
- },
- size: {
- type: String,
- default: "sm"
- },
- disabled: {
- type: Boolean,
- default: false
- }
- },
- emits: ["update:modelValue"],
- setup(__props, { emit: emits }) {
- const props = __props;
- const change = () => {
- emits("update:modelValue", !props.modelValue);
- };
- return (_ctx, _cache) => {
- return {
- a: common_vendor.n({
- "ui-switch-input-checked": props.modelValue
- }),
- b: common_vendor.n(props.modelValue ? props.bg : ""),
- c: common_vendor.n(props.text),
- d: common_vendor.n(props.size),
- e: common_vendor.o(change),
- f: common_vendor.n({
- disabled: props.disabled
- }),
- g: common_vendor.n(props.ui)
- };
- };
- }
- });
- const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8eb57d65"], ["__file", "/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-app/sheep/ui/su-switch/su-switch.vue"]]);
- wx.createComponent(Component);
|