widget.qw 1.0.48 → 1.0.49

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.
@@ -17091,7 +17091,6 @@ const _sfc_main$o = {
17091
17091
  immediate: true
17092
17092
  });
17093
17093
  function onToggleShow() {
17094
- console.log("11111111");
17095
17094
  if (isReadonly.value)
17096
17095
  return;
17097
17096
  data2.isShow = true;
@@ -17110,9 +17109,9 @@ const _sfc_main$o = {
17110
17109
  placeholder: props.placeholder,
17111
17110
  required: unref(isRequired),
17112
17111
  rules: props.rules,
17113
- "is-link": unref(isReadonly) ? false : true,
17114
- onClick: onToggleShow
17115
- }, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules", "is-link"])) : createCommentVNode("", true), createVNode(_sfc_main$p, {
17112
+ "right-icon": "arrow",
17113
+ onClickRightIcon: onToggleShow
17114
+ }, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules"])) : createCommentVNode("", true), createVNode(_sfc_main$p, {
17116
17115
  isShow: data2.isShow,
17117
17116
  "onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
17118
17117
  modelValue: unref(modelValue),
@@ -17094,7 +17094,6 @@ var __async = (__this, __arguments, generator) => {
17094
17094
  immediate: true
17095
17095
  });
17096
17096
  function onToggleShow() {
17097
- console.log("11111111");
17098
17097
  if (isReadonly.value)
17099
17098
  return;
17100
17099
  data2.isShow = true;
@@ -17113,9 +17112,9 @@ var __async = (__this, __arguments, generator) => {
17113
17112
  placeholder: props.placeholder,
17114
17113
  required: vue.unref(isRequired),
17115
17114
  rules: props.rules,
17116
- "is-link": vue.unref(isReadonly) ? false : true,
17117
- onClick: onToggleShow
17118
- }, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules", "is-link"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$p, {
17115
+ "right-icon": "arrow",
17116
+ onClickRightIcon: onToggleShow
17117
+ }, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$p, {
17119
17118
  isShow: data2.isShow,
17120
17119
  "onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
17121
17120
  modelValue: vue.unref(modelValue),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.48",
4
+ "version": "1.0.49",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -2,9 +2,11 @@
2
2
  <van-field v-if="!isGone" v-model="formatTime" name="datetimePicker" :label="props.label"
3
3
  :disabled="isDisabled"
4
4
  :readonly="isReadonly"
5
+ readonly
5
6
  clearable
6
7
  :placeholder="props.placeholder" :required="isRequired" :rules="props.rules"
7
- :is-link="isReadonly ? false : true" @click="onToggleShow">
8
+ right-icon="arrow"
9
+ @click-right-icon="onToggleShow">
8
10
  </van-field>
9
11
 
10
12
  <!-- 弹出层 -->
@@ -12,7 +14,6 @@
12
14
  :columnsType="props.columnsType" />
13
15
  </template>
14
16
 
15
-
16
17
  <script setup>
17
18
  import { ref, reactive, watch, getCurrentInstance, computed } from "vue"
18
19
  import DatetimePop from './DatetimePop.vue'
@@ -105,8 +106,6 @@ watch(
105
106
  )
106
107
 
107
108
  function onToggleShow() {
108
- console.log('11111111')
109
-
110
109
  if (isReadonly.value)
111
110
  return
112
111