widget.qw 1.0.30 → 1.0.31

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
@@ -1,36 +1,36 @@
1
- @charset "UTF-8";.widget[data-v-6ce090e6] {
1
+ @charset "UTF-8";.widget[data-v-78443471] {
2
2
  text-align: center;
3
3
  padding: 15px 15px;
4
4
  }
5
- .memo[data-v-6ce090e6] {
5
+ .memo[data-v-78443471] {
6
6
  margin-bottom: 15px;
7
7
  }
8
- .refuse-btn[data-v-6ce090e6] {
8
+ .refuse-btn[data-v-78443471] {
9
9
  width: 120px;
10
10
  margin-right: 15px;
11
11
  }
12
- .pass-btn[data-v-6ce090e6] {
12
+ .pass-btn[data-v-78443471] {
13
13
  width: 120px;
14
14
  }
15
- .apply-btn[data-v-6ce090e6] {
15
+ .apply-btn[data-v-78443471] {
16
16
  width: 60vw;
17
17
  }
18
- .task-list[data-v-6ce090e6] {
18
+ .task-list[data-v-78443471] {
19
19
  margin-top: 15px;
20
20
  }
21
- .task-title[data-v-6ce090e6] {
21
+ .task-title[data-v-78443471] {
22
22
  font-size: 14px;
23
23
  font-weight: bold;
24
24
  color: #333;
25
25
  text-align: left;
26
26
  }
27
- .task-user[data-v-6ce090e6] {
27
+ .task-user[data-v-78443471] {
28
28
  font-size: 13px;
29
29
  color: #666;
30
30
  text-align: left;
31
31
  margin-top: 5px;
32
32
  }
33
- .audit-title[data-v-6ce090e6] {
33
+ .audit-title[data-v-78443471] {
34
34
  padding: 25px 15px 0 15px;
35
35
  font-size: 16px;
36
36
  font-weight: bold;
@@ -40,10 +40,10 @@
40
40
  :root:root {
41
41
  --van-popover-action-width: 70vw;
42
42
  }
43
- [data-v-beab1d9e] .label {
43
+ [data-v-ec78c334] .label {
44
44
  color: #000 !important;
45
45
  }
46
- [data-v-beab1d9e] .van-field__control:disabled {
46
+ [data-v-ec78c334] .van-field__control:disabled {
47
47
  color: #000 !important;
48
48
  cursor: not-allowed;
49
49
  opacity: 1;
@@ -15755,7 +15755,7 @@ var lodash$1 = { exports: {} };
15755
15755
  }).call(commonjsGlobal);
15756
15756
  })(lodash$1, lodash$1.exports);
15757
15757
  var lodash = lodash$1.exports;
15758
- var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-6ce090e6] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-6ce090e6] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-6ce090e6] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-6ce090e6] {\n width: 120px;\n}\n.apply-btn[data-v-6ce090e6] {\n width: 60vw;\n}\n.task-list[data-v-6ce090e6] {\n margin-top: 15px;\n}\n.task-title[data-v-6ce090e6] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-6ce090e6] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-6ce090e6] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15758
+ var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-78443471] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-78443471] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-78443471] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-78443471] {\n width: 120px;\n}\n.apply-btn[data-v-78443471] {\n width: 60vw;\n}\n.task-list[data-v-78443471] {\n margin-top: 15px;\n}\n.task-title[data-v-78443471] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-78443471] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-78443471] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15759
15759
  var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
15760
15760
  var _export_sfc = (sfc, props) => {
15761
15761
  const target = sfc.__vccOpts || sfc;
@@ -15966,39 +15966,39 @@ const _sfc_main$u = {
15966
15966
  return "\u5BA1\u6279\u6D41\u7A0B:";
15967
15967
  }
15968
15968
  });
15969
- watch(() => props.userId, () => {
15969
+ watch(() => props.userId, () => __async(this, null, function* () {
15970
15970
  if (!props.userId)
15971
15971
  return;
15972
- queryDetail();
15973
- queryStepAuth();
15974
- updateCanApply();
15975
- }, {
15972
+ yield queryDetail();
15973
+ yield queryStepAuth();
15974
+ yield updateCanApply();
15975
+ }), {
15976
15976
  immediate: true
15977
15977
  });
15978
- watch(() => props.processId, () => {
15979
- queryDetail();
15980
- queryStepAuth();
15981
- updateCanApply();
15982
- }, {
15978
+ watch(() => props.processId, () => __async(this, null, function* () {
15979
+ yield queryDetail();
15980
+ yield queryStepAuth();
15981
+ yield updateCanApply();
15982
+ }), {
15983
15983
  immediate: true
15984
15984
  });
15985
15985
  watch(() => props.mouldId, () => __async(this, null, function* () {
15986
15986
  if (!props.processId && !props.mouldId)
15987
15987
  return;
15988
- queryDetail();
15988
+ yield queryDetail();
15989
15989
  yield queryStepAuth();
15990
- updateAuth();
15991
- updateCanApply();
15990
+ yield updateAuth();
15991
+ yield updateCanApply();
15992
15992
  }), {
15993
15993
  immediate: true
15994
15994
  });
15995
15995
  watch(() => props.form, () => __async(this, null, function* () {
15996
15996
  if (!data2.stepAuth)
15997
15997
  return;
15998
- queryDetail();
15998
+ yield queryDetail();
15999
15999
  yield queryStepAuth();
16000
- updateAuth();
16001
- updateCanApply();
16000
+ yield updateAuth();
16001
+ yield updateCanApply();
16002
16002
  }), {
16003
16003
  immediate: true
16004
16004
  }, {
@@ -16079,7 +16079,7 @@ const _sfc_main$u = {
16079
16079
  };
16080
16080
  }
16081
16081
  };
16082
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-6ce090e6"]]);
16082
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-78443471"]]);
16083
16083
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16084
16084
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16085
16085
  const isDef = (val) => typeof val !== "undefined";
@@ -16146,14 +16146,18 @@ function useVModel(props, key, emit, options = {}) {
16146
16146
  });
16147
16147
  }
16148
16148
  }
16149
- 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}")();
16149
+ var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-ec78c334] .label {\n color: #000 !important;\n}\n[data-v-ec78c334] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16150
16150
  const _sfc_main$t = {
16151
16151
  __name: "Input",
16152
16152
  props: {
16153
16153
  modelValue: {
16154
- type: String,
16154
+ type: [String, Number],
16155
16155
  default: null
16156
16156
  },
16157
+ modelModifiers: {
16158
+ type: Object,
16159
+ default: () => ({})
16160
+ },
16157
16161
  label: {
16158
16162
  type: String,
16159
16163
  default: ""
@@ -16238,7 +16242,7 @@ const _sfc_main$t = {
16238
16242
  };
16239
16243
  }
16240
16244
  };
16241
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-beab1d9e"]]);
16245
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ec78c334"]]);
16242
16246
  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}")();
16243
16247
  const _sfc_main$s = {
16244
16248
  __name: "SinglePicker",
@@ -15758,7 +15758,7 @@ var __async = (__this, __arguments, generator) => {
15758
15758
  }).call(commonjsGlobal);
15759
15759
  })(lodash$1, lodash$1.exports);
15760
15760
  var lodash = lodash$1.exports;
15761
- var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-6ce090e6] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-6ce090e6] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-6ce090e6] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-6ce090e6] {\n width: 120px;\n}\n.apply-btn[data-v-6ce090e6] {\n width: 60vw;\n}\n.task-list[data-v-6ce090e6] {\n margin-top: 15px;\n}\n.task-title[data-v-6ce090e6] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-6ce090e6] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-6ce090e6] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15761
+ var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-78443471] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-78443471] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-78443471] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-78443471] {\n width: 120px;\n}\n.apply-btn[data-v-78443471] {\n width: 60vw;\n}\n.task-list[data-v-78443471] {\n margin-top: 15px;\n}\n.task-title[data-v-78443471] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-78443471] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-78443471] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15762
15762
  var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
15763
15763
  var _export_sfc = (sfc, props) => {
15764
15764
  const target = sfc.__vccOpts || sfc;
@@ -15969,39 +15969,39 @@ var __async = (__this, __arguments, generator) => {
15969
15969
  return "\u5BA1\u6279\u6D41\u7A0B:";
15970
15970
  }
15971
15971
  });
15972
- vue.watch(() => props.userId, () => {
15972
+ vue.watch(() => props.userId, () => __async(this, null, function* () {
15973
15973
  if (!props.userId)
15974
15974
  return;
15975
- queryDetail();
15976
- queryStepAuth();
15977
- updateCanApply();
15978
- }, {
15975
+ yield queryDetail();
15976
+ yield queryStepAuth();
15977
+ yield updateCanApply();
15978
+ }), {
15979
15979
  immediate: true
15980
15980
  });
15981
- vue.watch(() => props.processId, () => {
15982
- queryDetail();
15983
- queryStepAuth();
15984
- updateCanApply();
15985
- }, {
15981
+ vue.watch(() => props.processId, () => __async(this, null, function* () {
15982
+ yield queryDetail();
15983
+ yield queryStepAuth();
15984
+ yield updateCanApply();
15985
+ }), {
15986
15986
  immediate: true
15987
15987
  });
15988
15988
  vue.watch(() => props.mouldId, () => __async(this, null, function* () {
15989
15989
  if (!props.processId && !props.mouldId)
15990
15990
  return;
15991
- queryDetail();
15991
+ yield queryDetail();
15992
15992
  yield queryStepAuth();
15993
- updateAuth();
15994
- updateCanApply();
15993
+ yield updateAuth();
15994
+ yield updateCanApply();
15995
15995
  }), {
15996
15996
  immediate: true
15997
15997
  });
15998
15998
  vue.watch(() => props.form, () => __async(this, null, function* () {
15999
15999
  if (!data2.stepAuth)
16000
16000
  return;
16001
- queryDetail();
16001
+ yield queryDetail();
16002
16002
  yield queryStepAuth();
16003
- updateAuth();
16004
- updateCanApply();
16003
+ yield updateAuth();
16004
+ yield updateCanApply();
16005
16005
  }), {
16006
16006
  immediate: true
16007
16007
  }, {
@@ -16082,7 +16082,7 @@ var __async = (__this, __arguments, generator) => {
16082
16082
  };
16083
16083
  }
16084
16084
  };
16085
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-6ce090e6"]]);
16085
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-78443471"]]);
16086
16086
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16087
16087
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16088
16088
  const isDef = (val) => typeof val !== "undefined";
@@ -16149,14 +16149,18 @@ var __async = (__this, __arguments, generator) => {
16149
16149
  });
16150
16150
  }
16151
16151
  }
16152
- 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}")();
16152
+ var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-ec78c334] .label {\n color: #000 !important;\n}\n[data-v-ec78c334] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
16153
16153
  const _sfc_main$t = {
16154
16154
  __name: "Input",
16155
16155
  props: {
16156
16156
  modelValue: {
16157
- type: String,
16157
+ type: [String, Number],
16158
16158
  default: null
16159
16159
  },
16160
+ modelModifiers: {
16161
+ type: Object,
16162
+ default: () => ({})
16163
+ },
16160
16164
  label: {
16161
16165
  type: String,
16162
16166
  default: ""
@@ -16241,7 +16245,7 @@ var __async = (__this, __arguments, generator) => {
16241
16245
  };
16242
16246
  }
16243
16247
  };
16244
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-beab1d9e"]]);
16248
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ec78c334"]]);
16245
16249
  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}")();
16246
16250
  const _sfc_main$s = {
16247
16251
  __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.30",
4
+ "version": "1.0.31",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -249,39 +249,39 @@ const formatProcessTitle = computed(() => {
249
249
  }
250
250
  })
251
251
 
252
- watch(() => props.userId, () => {
252
+ watch(() => props.userId, async() => {
253
253
  if (!props.userId)
254
254
  return
255
255
 
256
- queryDetail()
257
- queryStepAuth()
258
- updateCanApply()
256
+ await queryDetail()
257
+ await queryStepAuth()
258
+ await updateCanApply()
259
259
  }, { immediate: true })
260
260
 
261
- watch(() => props.processId, () => {
262
- queryDetail()
263
- queryStepAuth()
264
- updateCanApply()
261
+ watch(() => props.processId, async() => {
262
+ await queryDetail()
263
+ await queryStepAuth()
264
+ await updateCanApply()
265
265
  }, { immediate: true })
266
266
 
267
267
  watch(() => props.mouldId, async () => {
268
268
  if (!props.processId && !props.mouldId)
269
269
  return
270
270
 
271
- queryDetail()
271
+ await queryDetail()
272
272
  await queryStepAuth()
273
- updateAuth()
274
- updateCanApply()
273
+ await updateAuth()
274
+ await updateCanApply()
275
275
  }, { immediate: true })
276
276
 
277
277
  watch(() => props.form, async () => {
278
278
  if (!data.stepAuth)
279
279
  return
280
280
 
281
- queryDetail()
281
+ await queryDetail()
282
282
  await queryStepAuth()
283
- updateAuth()
284
- updateCanApply()
283
+ await updateAuth()
284
+ await updateCanApply()
285
285
  }, { immediate: true }, {
286
286
  deep: true
287
287
  })
@@ -1,8 +1,10 @@
1
1
  <template>
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"
5
- :placeholder="props.placeholder" :type="props.type" :rows="props.rows" :autosize="props.autosize" :rules="props.rules"/>
2
+ <van-field :label="props.label" v-model.number="modelValue" v-if="!isGone && props.type === 'number'"
3
+ :disabled="isDisabled" :required="isRequired" :placeholder="props.placeholder" :type="props.type"
4
+ :rows="props.rows" :autosize="props.autosize" :rules="props.rules" />
5
+ <van-field :label="props.label" v-model="modelValue" v-if="!isGone && props.type != 'number'" :disabled="isDisabled"
6
+ :required="isRequired" :placeholder="props.placeholder" :type="props.type" :rows="props.rows"
7
+ :autosize="props.autosize" :rules="props.rules" />
6
8
  </template>
7
9
 
8
10
  <script setup>
@@ -12,24 +14,29 @@ import util from '../util'
12
14
 
13
15
  const props = defineProps({
14
16
  modelValue: {
15
- type:String,
16
- default:null
17
+ type: [String, Number],
18
+ default: null
19
+ },
20
+ // 支持v-model.number写法
21
+ modelModifiers: {
22
+ type: Object,
23
+ default: () => ({})
17
24
  },
18
25
  label: {
19
- type:String,
26
+ type: String,
20
27
  default: ''
21
28
  },
22
29
  type: {
23
30
  type: String,
24
31
  default: 'text'
25
32
  },
26
- rows:{
27
- type:Number,
28
- default:1
33
+ rows: {
34
+ type: Number,
35
+ default: 1
29
36
  },
30
- autosize:{
31
- type:Boolean,
32
- default:false
37
+ autosize: {
38
+ type: Boolean,
39
+ default: false
33
40
  },
34
41
  placeholder: {
35
42
  type: String,
@@ -47,14 +54,14 @@ const props = defineProps({
47
54
  type: String,
48
55
  default: ''
49
56
  },
50
- rules:{
57
+ rules: {
51
58
  type: Array,
52
- default:null
59
+ default: null
53
60
  }
54
61
  })
55
62
  const emit = defineEmits(['update:modelValue'])
56
63
  const modelValue = useVModel(props, 'modelValue', emit)
57
- const {isRequired, isReadonly, isGone, isDisabled} = util.props2auth(props)
64
+ const { isRequired, isReadonly, isGone, isDisabled } = util.props2auth(props)
58
65
 
59
66
  onMounted(() => {
60
67
  })