@fecp/mobile 1.0.38 → 1.0.40

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.
@@ -35,7 +35,14 @@ const _sfc_main = {
35
35
  type: String,
36
36
  default: ""
37
37
  },
38
- readonly: false,
38
+ disabled: {
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ readonly: {
43
+ type: Boolean,
44
+ default: false
45
+ },
39
46
  "is-link": false
40
47
  },
41
48
  emits: ["update:modelValue"],
@@ -107,6 +114,7 @@ const _sfc_main = {
107
114
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
108
115
  isLink: __props.readonly ? false : true,
109
116
  readonly: "",
117
+ disabled: __props.disabled,
110
118
  onClick: _cache[5] || (_cache[5] = () => {
111
119
  if (!__props.readonly) {
112
120
  showPicker.value = true;
@@ -136,7 +144,7 @@ const _sfc_main = {
136
144
  ]),
137
145
  _: 2
138
146
  }, [
139
- !__props.readonly && vue.unref(fieldTextValue) ? {
147
+ !__props.readonly && !__props.disabled && vue.unref(fieldTextValue) ? {
140
148
  name: "right-icon",
141
149
  fn: vue.withCtx(() => [
142
150
  vue.createVNode(_component_van_icon, {
@@ -147,7 +155,7 @@ const _sfc_main = {
147
155
  ]),
148
156
  key: "0"
149
157
  } : void 0
150
- ]), 1040, ["modelValue", "isLink"]);
158
+ ]), 1040, ["modelValue", "isLink", "disabled"]);
151
159
  };
152
160
  }
153
161
  };
@@ -44,7 +44,14 @@ const _sfc_main = {
44
44
  type: String,
45
45
  default: "1"
46
46
  },
47
- readonly: false,
47
+ disabled: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ readonly: {
52
+ type: Boolean,
53
+ default: false
54
+ },
48
55
  "is-link": false
49
56
  },
50
57
  emits: ["update:modelValue"],
@@ -120,6 +127,7 @@ const _sfc_main = {
120
127
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
121
128
  isLink: __props.readonly ? false : true,
122
129
  readonly: "",
130
+ disabled: __props.disabled,
123
131
  onClick: _cache[5] || (_cache[5] = () => {
124
132
  if (!__props.readonly) {
125
133
  showPicker.value = true;
@@ -149,7 +157,7 @@ const _sfc_main = {
149
157
  ]),
150
158
  _: 2
151
159
  }, [
152
- !__props.readonly && vue.unref(fieldTextValue) ? {
160
+ !__props.readonly && !__props.disabled && vue.unref(fieldTextValue) ? {
153
161
  name: "right-icon",
154
162
  fn: vue.withCtx(() => [
155
163
  vue.createVNode(_component_van_icon, {
@@ -160,7 +168,7 @@ const _sfc_main = {
160
168
  ]),
161
169
  key: "0"
162
170
  } : void 0
163
- ]), 1040, ["modelValue", "isLink"]);
171
+ ]), 1040, ["modelValue", "isLink", "disabled"]);
164
172
  };
165
173
  }
166
174
  };
@@ -36,7 +36,14 @@ const _sfc_main = {
36
36
  type: String,
37
37
  default: ""
38
38
  },
39
- readonly: false,
39
+ disabled: {
40
+ type: Boolean,
41
+ default: false
42
+ },
43
+ readonly: {
44
+ type: Boolean,
45
+ default: false
46
+ },
40
47
  "is-link": false
41
48
  },
42
49
  emits: ["update:modelValue"],
@@ -81,6 +88,7 @@ const _sfc_main = {
81
88
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
82
89
  isLink: __props.readonly ? false : true,
83
90
  readonly: "",
91
+ disabled: __props.disabled,
84
92
  onClick: _cache[4] || (_cache[4] = () => {
85
93
  if (!__props.readonly) {
86
94
  showPicker.value = true;
@@ -109,7 +117,7 @@ const _sfc_main = {
109
117
  ]),
110
118
  _: 2
111
119
  }, [
112
- !__props.readonly && vue.unref(fieldTextValue) ? {
120
+ !__props.readonly && !__props.disabled && vue.unref(fieldTextValue) ? {
113
121
  name: "right-icon",
114
122
  fn: vue.withCtx(() => [
115
123
  vue.createVNode(_component_van_icon, {
@@ -120,7 +128,7 @@ const _sfc_main = {
120
128
  ]),
121
129
  key: "0"
122
130
  } : void 0
123
- ]), 1040, ["modelValue", "isLink"]);
131
+ ]), 1040, ["modelValue", "isLink", "disabled"]);
124
132
  };
125
133
  }
126
134
  };
@@ -45,7 +45,14 @@ const _sfc_main = {
45
45
  default: "hour,minute"
46
46
  // default: ["hour", "minute", "second"],
47
47
  },
48
- readonly: false,
48
+ disabled: {
49
+ type: Boolean,
50
+ default: false
51
+ },
52
+ readonly: {
53
+ type: Boolean,
54
+ default: false
55
+ },
49
56
  "is-link": false
50
57
  },
51
58
  emits: ["update:modelValue"],
@@ -122,6 +129,7 @@ const _sfc_main = {
122
129
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
123
130
  isLink: __props.readonly ? false : true,
124
131
  readonly: "",
132
+ disabled: __props.disabled,
125
133
  onClick: _cache[5] || (_cache[5] = () => {
126
134
  if (!__props.readonly) {
127
135
  showPicker.value = true;
@@ -151,7 +159,7 @@ const _sfc_main = {
151
159
  ]),
152
160
  _: 2
153
161
  }, [
154
- !__props.readonly && vue.unref(fieldTextValue) ? {
162
+ !__props.readonly && !__props.disabled && vue.unref(fieldTextValue) ? {
155
163
  name: "right-icon",
156
164
  fn: vue.withCtx(() => [
157
165
  vue.createVNode(_component_van_icon, {
@@ -162,7 +170,7 @@ const _sfc_main = {
162
170
  ]),
163
171
  key: "0"
164
172
  } : void 0
165
- ]), 1040, ["modelValue", "isLink"]);
173
+ ]), 1040, ["modelValue", "isLink", "disabled"]);
166
174
  };
167
175
  }
168
176
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/mobile",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "main": "lib/packages/mobile/index.js",
5
5
  "module": "es/packages/mobile/index.mjs",
6
6
  "files": [