widget.qw 1.1.3 → 1.1.4

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/build/style.css CHANGED
@@ -89,10 +89,10 @@
89
89
  :root:root {
90
90
  --van-popover-action-width: 70vw;
91
91
  }
92
- [data-v-bdbdf60a] .label {
92
+ [data-v-fcba0e18] .label {
93
93
  color: #000 !important;
94
94
  }
95
- [data-v-bdbdf60a] .van-field__control:disabled {
95
+ [data-v-fcba0e18] .van-field__control:disabled {
96
96
  color: #000 !important;
97
97
  cursor: not-allowed;
98
98
  opacity: 1;
@@ -17638,7 +17638,7 @@ function useVModel(props2, key, emit2, options = {}) {
17638
17638
  });
17639
17639
  }
17640
17640
  }
17641
- var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-bdbdf60a] .label {\n color: #000 !important;\n}\n[data-v-bdbdf60a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
17641
+ var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-fcba0e18] .label {\n color: #000 !important;\n}\n[data-v-fcba0e18] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
17642
17642
  const _hoisted_1$i = {
17643
17643
  style: {
17644
17644
  "display": "flex",
@@ -17758,10 +17758,11 @@ const _sfc_main$s = {
17758
17758
  autosize: props.autosize,
17759
17759
  rules: unref(rules)
17760
17760
  }, {
17761
- button: withCtx(() => [createVNode(_component_van_icon, {
17761
+ button: withCtx(() => [!unref(isGone) && !unref(isReadonly) && !unref(isDisabled) ? (openBlock(), createBlock(_component_van_icon, {
17762
+ key: 0,
17762
17763
  name: "plus",
17763
17764
  onClick: onCalc
17764
- })]),
17765
+ })) : createCommentVNode("", true)]),
17765
17766
  _: 1
17766
17767
  }, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true), createVNode(_component_van_popup, {
17767
17768
  show: data.isShowPop,
@@ -17805,7 +17806,7 @@ const _sfc_main$s = {
17805
17806
  };
17806
17807
  }
17807
17808
  };
17808
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-bdbdf60a"]]);
17809
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-fcba0e18"]]);
17809
17810
  var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-3ae83b36] .label {\n color: #000 !important;\n}\n[data-v-3ae83b36] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
17810
17811
  const _sfc_main$r = {
17811
17812
  __name: "SinglePicker",
@@ -17641,7 +17641,7 @@ var __async = (__this, __arguments, generator) => {
17641
17641
  });
17642
17642
  }
17643
17643
  }
17644
- var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-bdbdf60a] .label {\n color: #000 !important;\n}\n[data-v-bdbdf60a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
17644
+ var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-fcba0e18] .label {\n color: #000 !important;\n}\n[data-v-fcba0e18] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
17645
17645
  const _hoisted_1$i = {
17646
17646
  style: {
17647
17647
  "display": "flex",
@@ -17761,10 +17761,11 @@ var __async = (__this, __arguments, generator) => {
17761
17761
  autosize: props.autosize,
17762
17762
  rules: vue.unref(rules)
17763
17763
  }, {
17764
- button: vue.withCtx(() => [vue.createVNode(_component_van_icon, {
17764
+ button: vue.withCtx(() => [!vue.unref(isGone) && !vue.unref(isReadonly) && !vue.unref(isDisabled) ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
17765
+ key: 0,
17765
17766
  name: "plus",
17766
17767
  onClick: onCalc
17767
- })]),
17768
+ })) : vue.createCommentVNode("", true)]),
17768
17769
  _: 1
17769
17770
  }, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true), vue.createVNode(_component_van_popup, {
17770
17771
  show: data.isShowPop,
@@ -17808,7 +17809,7 @@ var __async = (__this, __arguments, generator) => {
17808
17809
  };
17809
17810
  }
17810
17811
  };
17811
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-bdbdf60a"]]);
17812
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-fcba0e18"]]);
17812
17813
  var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-3ae83b36] .label {\n color: #000 !important;\n}\n[data-v-3ae83b36] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
17813
17814
  const _sfc_main$r = {
17814
17815
  __name: "SinglePicker",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.1.3",
4
+ "version": "1.1.4",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -5,7 +5,7 @@
5
5
  :rows="props.rows" :autosize="props.autosize" :rules="rules">
6
6
  <!-- 右侧插槽按钮 -->
7
7
  <template #button>
8
- <van-icon name="plus" @click="onCalc" />
8
+ <van-icon v-if="!isGone && !isReadonly && !isDisabled" name="plus" @click="onCalc" />
9
9
  </template>
10
10
  </van-field>
11
11
  <van-popup v-model:show="data.isShowPop" position="bottom" round style="padding: 25px 15px;">
@@ -9,7 +9,7 @@
9
9
  import { onMounted, reactive, watch } from "vue";
10
10
 
11
11
  const data = reactive({
12
- auth:'require',
12
+ auth:'readonly',
13
13
  text: -9,
14
14
  type: 'number',
15
15
  rows: 1,