@fmdeui/fmui 1.0.124 → 1.0.125

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.
@@ -1,4 +1,4 @@
1
- import { useModel, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeStyle, unref, createElementVNode, createCommentVNode, toDisplayString, createElementBlock, Fragment, renderList, createTextVNode, mergeModels } from 'vue';
1
+ import { useModel, ref, resolveComponent, openBlock, createBlock, withCtx, normalizeStyle, createVNode, unref, createElementVNode, createCommentVNode, toDisplayString, createElementBlock, Fragment, renderList, createTextVNode, mergeModels } from 'vue';
2
2
  import { Calendar, DArrowLeft, DArrowRight } from '@element-plus/icons-vue';
3
3
 
4
4
  const _hoisted_1 = { style: { "display": "flex", "justify-content": "space-between", "align-items": "center" } };
@@ -19,6 +19,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
19
19
  dropWidth: {
20
20
  type: String,
21
21
  default: "200px"
22
+ },
23
+ isReadonly: {
24
+ type: Boolean,
25
+ default: true
22
26
  }
23
27
  }, {
24
28
  "modelValue": {},
@@ -95,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
95
99
  size: "large",
96
100
  link: "",
97
101
  icon: unref(DArrowLeft),
98
- onClick: _cache[1] || (_cache[1] = ($event) => changeYear(-1))
102
+ onClick: _cache[2] || (_cache[2] = ($event) => changeYear(-1))
99
103
  }, null, 8, ["icon"]),
100
104
  createElementVNode(
101
105
  "b",
@@ -108,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
108
112
  size: "large",
109
113
  link: "",
110
114
  icon: unref(DArrowRight),
111
- onClick: _cache[2] || (_cache[2] = ($event) => changeYear(1))
115
+ onClick: _cache[3] || (_cache[3] = ($event) => changeYear(1))
112
116
  }, null, 8, ["icon"])
113
117
  ])
114
118
  ]),
@@ -171,7 +175,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
171
175
  })
172
176
  ]),
173
177
  default: withCtx(() => [
174
- createVNode(_component_el_input, {
178
+ __props.isReadonly ? (openBlock(), createBlock(_component_el_input, {
179
+ key: 0,
175
180
  modelValue: selectedPeriod.value,
176
181
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedPeriod.value = $event),
177
182
  placeholder: "\u8BF7\u9009\u62E9\u4F1A\u8BA1\u671F\u95F4",
@@ -189,7 +194,25 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
189
194
  ]),
190
195
  _: 1
191
196
  /* STABLE */
192
- }, 8, ["modelValue", "style"])
197
+ }, 8, ["modelValue", "style"])) : (openBlock(), createBlock(_component_el_input, {
198
+ key: 1,
199
+ modelValue: selectedPeriod.value,
200
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedPeriod.value = $event),
201
+ placeholder: "\u8BF7\u9009\u62E9\u4F1A\u8BA1\u671F\u95F4",
202
+ style: normalizeStyle({ width: __props.inputWidth, cursor: "pointer" })
203
+ }, {
204
+ suffix: withCtx(() => [
205
+ createVNode(_component_el_icon, null, {
206
+ default: withCtx(() => [
207
+ createVNode(unref(Calendar))
208
+ ]),
209
+ _: 1
210
+ /* STABLE */
211
+ })
212
+ ]),
213
+ _: 1
214
+ /* STABLE */
215
+ }, 8, ["modelValue", "style"]))
193
216
  ]),
194
217
  _: 1
195
218
  /* STABLE */
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.124 */
1
+ /*! fmdeui-fmui v1.0.125 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -29129,6 +29129,10 @@
29129
29129
  dropWidth: {
29130
29130
  type: String,
29131
29131
  default: "200px"
29132
+ },
29133
+ isReadonly: {
29134
+ type: Boolean,
29135
+ default: true
29132
29136
  }
29133
29137
  }, {
29134
29138
  "modelValue": {},
@@ -29204,7 +29208,7 @@
29204
29208
  size: "large",
29205
29209
  link: "",
29206
29210
  icon: vue.unref(svg.DArrowLeft),
29207
- onClick: _cache[1] || (_cache[1] = ($event) => changeYear(-1))
29211
+ onClick: _cache[2] || (_cache[2] = ($event) => changeYear(-1))
29208
29212
  }, null, 8, ["icon"]),
29209
29213
  vue.createElementVNode(
29210
29214
  "b",
@@ -29217,7 +29221,7 @@
29217
29221
  size: "large",
29218
29222
  link: "",
29219
29223
  icon: vue.unref(svg.DArrowRight),
29220
- onClick: _cache[2] || (_cache[2] = ($event) => changeYear(1))
29224
+ onClick: _cache[3] || (_cache[3] = ($event) => changeYear(1))
29221
29225
  }, null, 8, ["icon"])
29222
29226
  ])
29223
29227
  ]),
@@ -29280,7 +29284,8 @@
29280
29284
  })
29281
29285
  ]),
29282
29286
  default: vue.withCtx(() => [
29283
- vue.createVNode(_component_el_input, {
29287
+ __props.isReadonly ? (vue.openBlock(), vue.createBlock(_component_el_input, {
29288
+ key: 0,
29284
29289
  modelValue: selectedPeriod.value,
29285
29290
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedPeriod.value = $event),
29286
29291
  placeholder: "\u8BF7\u9009\u62E9\u4F1A\u8BA1\u671F\u95F4",
@@ -29298,7 +29303,25 @@
29298
29303
  ]),
29299
29304
  _: 1
29300
29305
  /* STABLE */
29301
- }, 8, ["modelValue", "style"])
29306
+ }, 8, ["modelValue", "style"])) : (vue.openBlock(), vue.createBlock(_component_el_input, {
29307
+ key: 1,
29308
+ modelValue: selectedPeriod.value,
29309
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedPeriod.value = $event),
29310
+ placeholder: "\u8BF7\u9009\u62E9\u4F1A\u8BA1\u671F\u95F4",
29311
+ style: vue.normalizeStyle({ width: __props.inputWidth, cursor: "pointer" })
29312
+ }, {
29313
+ suffix: vue.withCtx(() => [
29314
+ vue.createVNode(_component_el_icon, null, {
29315
+ default: vue.withCtx(() => [
29316
+ vue.createVNode(vue.unref(svg.Calendar))
29317
+ ]),
29318
+ _: 1
29319
+ /* STABLE */
29320
+ })
29321
+ ]),
29322
+ _: 1
29323
+ /* STABLE */
29324
+ }, 8, ["modelValue", "style"]))
29302
29325
  ]),
29303
29326
  _: 1
29304
29327
  /* STABLE */