widget.qw 1.0.41 → 1.0.42

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
@@ -817,27 +817,27 @@
817
817
  /* 防止压缩 */
818
818
  }
819
819
 
820
- .widget[data-v-655ddd86] {
820
+ .widget[data-v-0c8e09c0] {
821
821
  /* 统一字段间距 */
822
822
  }
823
- .widget[data-v-655ddd86] .van-cell {
823
+ .widget[data-v-0c8e09c0] .van-cell {
824
824
  align-items: center;
825
825
  }
826
- .widget[data-v-655ddd86] .van-field__label {
826
+ .widget[data-v-0c8e09c0] .van-field__label {
827
827
  width: 90px;
828
828
  flex: none;
829
829
  }
830
- .widget .readonly-field[data-v-655ddd86] {
830
+ .widget .readonly-field[data-v-0c8e09c0] {
831
831
  /* 添加必填星号对齐 */
832
832
  }
833
- .widget .readonly-field[data-v-655ddd86] .van-field__control {
833
+ .widget .readonly-field[data-v-0c8e09c0] .van-field__control {
834
834
  color: #323233;
835
835
  /* 修改文字颜色与普通字段一致 */
836
836
  padding-right: 16px;
837
837
  }
838
- .widget .readonly-field.van-field--required[data-v-655ddd86] .van-field__label::before {
838
+ .widget .readonly-field.van-field--required[data-v-0c8e09c0] .van-field__label::before {
839
839
  margin-right: 4px;
840
840
  }
841
- .widget .readonly-field[data-v-655ddd86] {
841
+ .widget .readonly-field[data-v-0c8e09c0] {
842
842
  margin: 4px 0;
843
843
  }
@@ -20748,17 +20748,13 @@ const _sfc_main$1 = {
20748
20748
  };
20749
20749
  }
20750
20750
  };
20751
- var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-655ddd86] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-655ddd86] .van-cell {\n align-items: center;\n}\n.widget[data-v-655ddd86] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-655ddd86] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-655ddd86] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-655ddd86] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-655ddd86] {\n margin: 4px 0;\n}')();
20751
+ var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-0c8e09c0] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-0c8e09c0] .van-cell {\n align-items: center;\n}\n.widget[data-v-0c8e09c0] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-0c8e09c0] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-0c8e09c0] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-0c8e09c0] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-0c8e09c0] {\n margin: 4px 0;\n}')();
20752
20752
  const _hoisted_1 = {
20753
20753
  class: "widget"
20754
20754
  };
20755
20755
  const _sfc_main = {
20756
20756
  __name: "SingleApiPicker",
20757
20757
  props: {
20758
- multiple: {
20759
- type: Boolean,
20760
- default: false
20761
- },
20762
20758
  label: {
20763
20759
  type: String,
20764
20760
  default: ""
@@ -20826,7 +20822,7 @@ const _sfc_main = {
20826
20822
  const _component_van_field = resolveComponent("van-field");
20827
20823
  const _component_van_picker = resolveComponent("van-picker");
20828
20824
  const _component_van_popup = resolveComponent("van-popup");
20829
- return openBlock(), createElementBlock("div", _hoisted_1, [!unref(isGone) && !props.multiple ? (openBlock(), createBlock(_component_van_field, {
20825
+ return openBlock(), createElementBlock("div", _hoisted_1, [!unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
20830
20826
  key: 0,
20831
20827
  modelValue: unref(formatLabel),
20832
20828
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formatLabel) ? formatLabel.value = $event : null),
@@ -20854,7 +20850,7 @@ const _sfc_main = {
20854
20850
  };
20855
20851
  }
20856
20852
  };
20857
- var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-655ddd86"]]);
20853
+ var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0c8e09c0"]]);
20858
20854
  const secret_notify = () => {
20859
20855
  showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
20860
20856
  };
@@ -20751,17 +20751,13 @@ var __async = (__this, __arguments, generator) => {
20751
20751
  };
20752
20752
  }
20753
20753
  };
20754
- var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-655ddd86] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-655ddd86] .van-cell {\n align-items: center;\n}\n.widget[data-v-655ddd86] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-655ddd86] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-655ddd86] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-655ddd86] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-655ddd86] {\n margin: 4px 0;\n}')();
20754
+ var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-0c8e09c0] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-0c8e09c0] .van-cell {\n align-items: center;\n}\n.widget[data-v-0c8e09c0] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-0c8e09c0] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-0c8e09c0] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-0c8e09c0] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-0c8e09c0] {\n margin: 4px 0;\n}')();
20755
20755
  const _hoisted_1 = {
20756
20756
  class: "widget"
20757
20757
  };
20758
20758
  const _sfc_main = {
20759
20759
  __name: "SingleApiPicker",
20760
20760
  props: {
20761
- multiple: {
20762
- type: Boolean,
20763
- default: false
20764
- },
20765
20761
  label: {
20766
20762
  type: String,
20767
20763
  default: ""
@@ -20829,7 +20825,7 @@ var __async = (__this, __arguments, generator) => {
20829
20825
  const _component_van_field = vue.resolveComponent("van-field");
20830
20826
  const _component_van_picker = vue.resolveComponent("van-picker");
20831
20827
  const _component_van_popup = vue.resolveComponent("van-popup");
20832
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [!vue.unref(isGone) && !props.multiple ? (vue.openBlock(), vue.createBlock(_component_van_field, {
20828
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [!vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
20833
20829
  key: 0,
20834
20830
  modelValue: vue.unref(formatLabel),
20835
20831
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(formatLabel) ? formatLabel.value = $event : null),
@@ -20857,7 +20853,7 @@ var __async = (__this, __arguments, generator) => {
20857
20853
  };
20858
20854
  }
20859
20855
  };
20860
- var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-655ddd86"]]);
20856
+ var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0c8e09c0"]]);
20861
20857
  const secret_notify = () => {
20862
20858
  showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
20863
20859
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.41",
4
+ "version": "1.0.42",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="widget">
3
- <van-field v-if="!isGone && !props.multiple" v-model="formatLabel" :is-link="!isReadonly && !isDisabled" :label="props.label" :placeholder="props.placeholder" readonly
3
+ <van-field v-if="!isGone" v-model="formatLabel" :is-link="!isReadonly && !isDisabled" :label="props.label" :placeholder="props.placeholder" readonly
4
4
  :required="isRequired" :disabled="isDisabled" @click="onShow" />
5
5
  <van-popup v-model:show="data.isShow" destroy-on-close round position="bottom">
6
6
  <van-picker :columns="props.options" @cancel="onCancel" @confirm="onConfirm" />
@@ -14,10 +14,6 @@ import util from '../util'
14
14
  import { useVModel } from '@vueuse/core'
15
15
 
16
16
  const props = defineProps({
17
- multiple:{
18
- type:Boolean,
19
- default:false
20
- },
21
17
  label: {
22
18
  type: String,
23
19
  default: ''