@fmdeui/fmui 1.0.124 → 1.0.126

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,26 @@ 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
+ clearable: "",
203
+ style: normalizeStyle({ width: __props.inputWidth, cursor: "pointer" })
204
+ }, {
205
+ suffix: withCtx(() => [
206
+ createVNode(_component_el_icon, null, {
207
+ default: withCtx(() => [
208
+ createVNode(unref(Calendar))
209
+ ]),
210
+ _: 1
211
+ /* STABLE */
212
+ })
213
+ ]),
214
+ _: 1
215
+ /* STABLE */
216
+ }, 8, ["modelValue", "style"]))
193
217
  ]),
194
218
  _: 1
195
219
  /* STABLE */
@@ -328,7 +328,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
328
328
  ]),
329
329
  default: withCtx(() => [
330
330
  withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
331
- createVNode(_component_el_scrollbar, null, {
331
+ createVNode(_component_el_scrollbar, { style: { "flex": "1" } }, {
332
332
  default: withCtx(() => [
333
333
  createVNode(_component_el_tree, {
334
334
  ref_key: "treeRef",
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.124 */
1
+ /*! fmdeui-fmui v1.0.126 */
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,26 @@
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
+ clearable: "",
29312
+ style: vue.normalizeStyle({ width: __props.inputWidth, cursor: "pointer" })
29313
+ }, {
29314
+ suffix: vue.withCtx(() => [
29315
+ vue.createVNode(_component_el_icon, null, {
29316
+ default: vue.withCtx(() => [
29317
+ vue.createVNode(vue.unref(svg.Calendar))
29318
+ ]),
29319
+ _: 1
29320
+ /* STABLE */
29321
+ })
29322
+ ]),
29323
+ _: 1
29324
+ /* STABLE */
29325
+ }, 8, ["modelValue", "style"]))
29302
29326
  ]),
29303
29327
  _: 1
29304
29328
  /* STABLE */
@@ -29656,7 +29680,7 @@
29656
29680
  ]),
29657
29681
  default: vue.withCtx(() => [
29658
29682
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_5$4, [
29659
- vue.createVNode(_component_el_scrollbar, null, {
29683
+ vue.createVNode(_component_el_scrollbar, { style: { "flex": "1" } }, {
29660
29684
  default: vue.withCtx(() => [
29661
29685
  vue.createVNode(_component_el_tree, {
29662
29686
  ref_key: "treeRef",