widget.qw 1.0.26 → 1.0.27

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
@@ -40,10 +40,10 @@
40
40
  :root:root {
41
41
  --van-popover-action-width: 70vw;
42
42
  }
43
- [data-v-5653f0d0] .label {
43
+ [data-v-beab1d9e] .label {
44
44
  color: #000 !important;
45
45
  }
46
- [data-v-5653f0d0] .van-field__control:disabled {
46
+ [data-v-beab1d9e] .van-field__control:disabled {
47
47
  color: #000 !important;
48
48
  cursor: not-allowed;
49
49
  opacity: 1;
@@ -16144,7 +16144,7 @@ function useVModel(props, key, emit, options = {}) {
16144
16144
  });
16145
16145
  }
16146
16146
  }
16147
- var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-5653f0d0] .label {\n color: #000 !important;\n}\n[data-v-5653f0d0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16147
+ var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-beab1d9e] .label {\n color: #000 !important;\n}\n[data-v-beab1d9e] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16148
16148
  const _sfc_main$t = {
16149
16149
  __name: "Input",
16150
16150
  props: {
@@ -16205,11 +16205,26 @@ const _sfc_main$t = {
16205
16205
  });
16206
16206
  return (_ctx, _cache) => {
16207
16207
  const _component_van_field = resolveComponent("van-field");
16208
- return !unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
16208
+ return openBlock(), createElementBlock(Fragment, null, [!unref(isGone) && props.type === "number" ? (openBlock(), createBlock(_component_van_field, {
16209
16209
  key: 0,
16210
16210
  label: props.label,
16211
16211
  modelValue: unref(modelValue),
16212
16212
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
16213
+ modelModifiers: {
16214
+ number: true
16215
+ },
16216
+ disabled: unref(isDisabled),
16217
+ required: unref(isRequired),
16218
+ placeholder: props.placeholder,
16219
+ type: props.type,
16220
+ rows: props.rows,
16221
+ autosize: props.autosize,
16222
+ rules: props.rules
16223
+ }, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true), !unref(isGone) && props.type != "number" ? (openBlock(), createBlock(_component_van_field, {
16224
+ key: 1,
16225
+ label: props.label,
16226
+ modelValue: unref(modelValue),
16227
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
16213
16228
  disabled: unref(isDisabled),
16214
16229
  required: unref(isRequired),
16215
16230
  placeholder: props.placeholder,
@@ -16217,11 +16232,11 @@ const _sfc_main$t = {
16217
16232
  rows: props.rows,
16218
16233
  autosize: props.autosize,
16219
16234
  rules: props.rules
16220
- }, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true);
16235
+ }, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true)], 64);
16221
16236
  };
16222
16237
  }
16223
16238
  };
16224
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5653f0d0"]]);
16239
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-beab1d9e"]]);
16225
16240
  var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-24e62c3a] .label {\n color: #000 !important;\n}\n[data-v-24e62c3a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16226
16241
  const _sfc_main$s = {
16227
16242
  __name: "SinglePicker",
@@ -16147,7 +16147,7 @@ var __async = (__this, __arguments, generator) => {
16147
16147
  });
16148
16148
  }
16149
16149
  }
16150
- var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-5653f0d0] .label {\n color: #000 !important;\n}\n[data-v-5653f0d0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16150
+ var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-beab1d9e] .label {\n color: #000 !important;\n}\n[data-v-beab1d9e] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16151
16151
  const _sfc_main$t = {
16152
16152
  __name: "Input",
16153
16153
  props: {
@@ -16208,11 +16208,26 @@ var __async = (__this, __arguments, generator) => {
16208
16208
  });
16209
16209
  return (_ctx, _cache) => {
16210
16210
  const _component_van_field = vue.resolveComponent("van-field");
16211
- return !vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
16211
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [!vue.unref(isGone) && props.type === "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
16212
16212
  key: 0,
16213
16213
  label: props.label,
16214
16214
  modelValue: vue.unref(modelValue),
16215
16215
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
16216
+ modelModifiers: {
16217
+ number: true
16218
+ },
16219
+ disabled: vue.unref(isDisabled),
16220
+ required: vue.unref(isRequired),
16221
+ placeholder: props.placeholder,
16222
+ type: props.type,
16223
+ rows: props.rows,
16224
+ autosize: props.autosize,
16225
+ rules: props.rules
16226
+ }, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true), !vue.unref(isGone) && props.type != "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
16227
+ key: 1,
16228
+ label: props.label,
16229
+ modelValue: vue.unref(modelValue),
16230
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
16216
16231
  disabled: vue.unref(isDisabled),
16217
16232
  required: vue.unref(isRequired),
16218
16233
  placeholder: props.placeholder,
@@ -16220,11 +16235,11 @@ var __async = (__this, __arguments, generator) => {
16220
16235
  rows: props.rows,
16221
16236
  autosize: props.autosize,
16222
16237
  rules: props.rules
16223
- }, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true);
16238
+ }, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true)], 64);
16224
16239
  };
16225
16240
  }
16226
16241
  };
16227
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5653f0d0"]]);
16242
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-beab1d9e"]]);
16228
16243
  var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-24e62c3a] .label {\n color: #000 !important;\n}\n[data-v-24e62c3a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16229
16244
  const _sfc_main$s = {
16230
16245
  __name: "SinglePicker",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.26",
4
+ "version": "1.0.27",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <van-field :label="props.label" v-model="modelValue" v-if="!isGone" :disabled="isDisabled" :required="isRequired"
2
+ <van-field :label="props.label" v-model.number="modelValue" v-if="!isGone && props.type==='number'" :disabled="isDisabled" :required="isRequired"
3
+ :placeholder="props.placeholder" :type="props.type" :rows="props.rows" :autosize="props.autosize" :rules="props.rules"/>
4
+ <van-field :label="props.label" v-model="modelValue" v-if="!isGone && props.type!='number'" :disabled="isDisabled" :required="isRequired"
3
5
  :placeholder="props.placeholder" :type="props.type" :rows="props.rows" :autosize="props.autosize" :rules="props.rules"/>
4
6
  </template>
5
7