@wfrog/vc-ui 1.12.2 → 1.12.3

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.
@@ -3,7 +3,7 @@ import { ElSwitch, ElPopconfirm } from 'element-plus/es';
3
3
  import 'element-plus/es/components/base/style/css';
4
4
  import 'element-plus/es/components/popconfirm/style/css';
5
5
  import 'element-plus/es/components/switch/style/css';
6
- import { defineComponent, useTemplateRef, onMounted, createBlock, unref, openBlock, mergeProps, isRef, withCtx, createElementVNode, normalizeClass, createVNode } from 'vue';
6
+ import { defineComponent, useTemplateRef, createBlock, unref, openBlock, mergeProps, isRef, withModifiers, withCtx, createElementVNode, normalizeClass, createVNode } from 'vue';
7
7
  import { useFormDisabled } from 'element-plus';
8
8
  import { useVModel } from '@vueuse/core';
9
9
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
@@ -29,15 +29,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  if (!mainRef.value) {
30
30
  return;
31
31
  }
32
- const ele = mainRef.value.getElementsByClassName("h-switch")[0];
32
+ const ele = mainRef.value.getElementsByClassName("vc-switch")[0];
33
33
  return ele;
34
34
  }
35
35
  const handleConfirm = () => getSwitchEle()?.click();
36
- onMounted(() => {
37
- getSwitchEle()?.addEventListener("click", (event) => {
38
- event.stopPropagation();
39
- });
40
- });
41
36
  return (_ctx, _cache) => {
42
37
  const _component_ElSwitch = ElSwitch;
43
38
  const _component_ElPopconfirm = ElPopconfirm;
@@ -46,7 +41,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
41
  modelValue: unref(myValue),
47
42
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myValue) ? myValue.value = $event : null),
48
43
  class: __props.className
49
- }, _ctx.$attrs, { disabled: unref(formDisabled) }), null, 16, ["modelValue", "class", "disabled"])) : (openBlock(), createBlock(_component_ElPopconfirm, mergeProps({
44
+ }, _ctx.$attrs, {
45
+ disabled: unref(formDisabled),
46
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {
47
+ }, ["stop"]))
48
+ }), null, 16, ["modelValue", "class", "disabled"])) : (openBlock(), createBlock(_component_ElPopconfirm, mergeProps({
50
49
  key: 1,
51
50
  title: __props.confirmTitle
52
51
  }, props.confirmProps, { onConfirm: handleConfirm }), {
@@ -54,12 +53,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
53
  createElementVNode("span", {
55
54
  ref_key: "mainRef",
56
55
  ref: mainRef,
57
- class: normalizeClass(_ctx.$style.main)
56
+ class: normalizeClass(_ctx.$style.main),
57
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {
58
+ }, ["stop"]))
58
59
  }, [
59
60
  createVNode(_component_ElSwitch, mergeProps({
60
61
  modelValue: unref(myValue),
61
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(myValue) ? myValue.value = $event : null),
62
- class: ["h-switch", __props.className]
62
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(myValue) ? myValue.value = $event : null),
63
+ class: ["vc-switch", __props.className]
63
64
  }, _ctx.$attrs, { disabled: unref(formDisabled) }), null, 16, ["modelValue", "class", "disabled"])
64
65
  ], 2)
65
66
  ]),
package/dist/es/index.mjs CHANGED
@@ -162,7 +162,7 @@ const __vite_glob_0_50 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
162
162
  default: _sfc_main$8
163
163
  }, Symbol.toStringTag, { value: 'Module' }));
164
164
 
165
- const version = "1.12.2";
165
+ const version = "1.12.3";
166
166
 
167
167
  const modules = /* #__PURE__ */ Object.assign({"./components/awesome-icon/awesome-icon.vue": __vite_glob_0_0,"./components/backbottom/backbottom.vue": __vite_glob_0_1,"./components/button/button.vue": __vite_glob_0_2,"./components/chat-container/chat-container.vue": __vite_glob_0_3,"./components/choice-boolean/choice-boolean.vue": __vite_glob_0_4,"./components/choice/choice.vue": __vite_glob_0_5,"./components/color-switch/color-switch.vue": __vite_glob_0_6,"./components/config-provider/config-provider.vue": __vite_glob_0_7,"./components/cropper/cropper.vue": __vite_glob_0_8,"./components/currency/currency.vue": __vite_glob_0_9,"./components/dark-switch/dark-switch.vue": __vite_glob_0_10,"./components/daterange-picker/daterange-picker.vue": __vite_glob_0_11,"./components/dialog-camera-upload/dialog-camera-upload.vue": __vite_glob_0_12,"./components/dialog-map-point/dialog-map-point.vue": __vite_glob_0_13,"./components/dialog-upload-images/dialog-upload-images.vue": __vite_glob_0_14,"./components/dialog/dialog.vue": __vite_glob_0_15,"./components/drag-verify/drag-verify.vue": __vite_glob_0_16,"./components/drawer/drawer.vue": __vite_glob_0_17,"./components/easy-pagination/easy-pagination.vue": __vite_glob_0_18,"./components/el-icon/el-icon.vue": __vite_glob_0_19,"./components/explorer-column-table/explorer-column-table.vue": __vite_glob_0_20,"./components/explorer-container/explorer-container.vue": __vite_glob_0_21,"./components/explorer-filter/explorer-filter.vue": __vite_glob_0_22,"./components/explorer-footer/explorer-footer.vue": __vite_glob_0_23,"./components/explorer-form/explorer-form.vue": __vite_glob_0_24,"./components/explorer-list/explorer-list.vue": __vite_glob_0_25,"./components/explorer-modal-form/explorer-modal-form.vue": __vite_glob_0_26,"./components/explorer-panel/explorer-panel.vue": __vite_glob_0_27,"./components/explorer-query/explorer-query.vue": __vite_glob_0_28,"./components/explorer-table/explorer-table.vue": __vite_glob_0_29,"./components/explorer-tools/explorer-tools.vue": __vite_glob_0_30,"./components/explorer-tree/explorer-tree.vue": __vite_glob_0_31,"./components/explorer/explorer.vue": __vite_glob_0_32,"./components/flag/flag.vue": __vite_glob_0_33,"./components/form-item/form-item.vue": __vite_glob_0_34,"./components/gen-input/gen-input.vue": __vite_glob_0_35,"./components/icon-picker/icon-picker.vue": __vite_glob_0_36,"./components/icon/icon.vue": __vite_glob_0_37,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_38,"./components/image/image.vue": __vite_glob_0_39,"./components/info-tooltip/info-tooltip.vue": __vite_glob_0_40,"./components/input-number/input-number.vue": __vite_glob_0_41,"./components/input/input.vue": __vite_glob_0_42,"./components/pca-picker/pca-picker.vue": __vite_glob_0_43,"./components/qr-code/qr-code.vue": __vite_glob_0_44,"./components/screenfull/screenfull.vue": __vite_glob_0_45,"./components/scrollbar/scrollbar.vue": __vite_glob_0_46,"./components/select/select.vue": __vite_glob_0_47,"./components/single-player/single-player.vue": __vite_glob_0_48,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_49,"./components/splitter/splitter.vue": __vite_glob_0_50,"./components/svg-icon/svg-icon.vue": __vite_glob_0_51,"./components/switch/switch.vue": __vite_glob_0_52,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_53,"./components/tags/tags.vue": __vite_glob_0_54,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_55,"./components/thousand-input/thousand-input.vue": __vite_glob_0_56,"./components/tinymce/tinymce.vue": __vite_glob_0_57,"./components/transfer-panel/transfer-panel.vue": __vite_glob_0_58,"./components/transfer/transfer.vue": __vite_glob_0_59,"./components/tree-picker/tree-picker.vue": __vite_glob_0_60,"./components/upload-file/upload-file.vue": __vite_glob_0_61});
168
168
  const upper = (_, letter) => letter.toUpperCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.12.2",
3
+ "version": "1.12.3",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",