lew-ui 2.7.53 → 2.7.55
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/LICENSE +21 -21
- package/dist/_components/CommonIcon.vue.d.ts +1 -1
- package/dist/components/data/collapse/src/emits.d.ts +1 -1
- package/dist/components/data/desc/index.d.ts +0 -1
- package/dist/components/data/desc/src/LewDesc.vue.d.ts +2 -6
- package/dist/components/feedback/modal/src/LewModal.vue.d.ts +38 -0
- package/dist/components/feedback/modal/src/props.d.ts +18 -0
- package/dist/components/form/form/src/LewFormItem.vue.d.ts +9 -15
- package/dist/components/form/form/src/emits.d.ts +1 -1
- package/dist/components/form/form/src/props.d.ts +3 -6
- package/dist/components/form/select/src/emits.d.ts +1 -1
- package/dist/components/form/switch/src/emits.d.ts +1 -1
- package/dist/components/form/tabs/src/props.d.ts +1 -1
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +0 -2
- package/dist/components/form/tree-select/src/props.d.ts +0 -1
- package/dist/components/general/tag/src/LewTag.vue.d.ts +0 -2
- package/dist/components/general/tag/src/emits.d.ts +0 -1
- package/dist/index.css +1 -1
- package/dist/index.js +66 -62
- package/dist/index.umd.cjs +7 -7
- package/package.json +1 -1
- package/dist/components/data/desc/src/emits.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ const collapseItemEmits = {
|
|
|
3
3
|
change: (expanded, key) => ({ expanded, key })
|
|
4
4
|
};
|
|
5
5
|
const collapseEmits = {
|
|
6
|
-
change: (value) => value
|
|
6
|
+
change: (value) => value || typeof value === "undefined"
|
|
7
7
|
};
|
|
8
8
|
const __vite_glob_0_0$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20class='icon'%20width='200px'%20height='200.00px'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M605.081538%2034.133311H170.735161C132.983719%2034.133311%20102.400273%2064.85329%20102.400273%20102.160999v853.776497C102.400273%20993.552404%20132.778919%201023.999317%20170.803427%201023.999317h716.560589A68.437288%2068.437288%200%200%200%20955.733038%20955.56203V229.171047L761.787567%2034.133311h-156.706029z'%20fill='%23FFFFFF'%20/%3e%3cpath%20d='M153.668506%200A85.401543%2085.401543%200%200%200%2068.266962%2085.094343v853.776498A85.094343%2085.094343%200%200%200%20153.736772%201023.999317h716.560589A85.503943%2085.503943%200%200%200%20955.733038%20938.495374V212.104392a17.134922%2017.134922%200%200%200-4.949331-12.049059L756.838237%205.017597A17.169055%2017.169055%200%200%200%20744.720912%200H153.668506z%20m591.052406%2034.133311l-12.117326-5.017597%20193.945471%20195.037737L921.599727%20212.104392v726.356849c0%2028.398914-23.005851%2051.404766-51.336499%2051.404766H153.736772A50.995166%2050.995166%200%200%201%20102.400273%20938.904974V85.094343C102.400273%2057.139162%20125.440258%2034.133311%20153.668506%2034.133311H744.720912z'%20fill='%23CECECE'%20/%3e%3cpath%20d='M533.196786%20662.561692l-15.15519-39.867707h-129.160447l-15.15519%2040.721039c-5.939196%2015.871989-10.990926%2026.623982-15.15519%2032.187712s-11.059193%208.328528-20.582386%208.328528c-8.089595%200-15.223457-2.969598-21.435719-8.874661S307.200137%20682.427278%20307.200137%20674.883817c0-4.33493%200.7168-8.806394%202.150398-13.448525s3.822931-11.059193%207.133862-19.28532l81.237279-206.267596%208.328528-21.333319c3.242665-8.294394%206.724262-15.189323%2010.41066-20.684786%203.686398-5.495463%208.533328-9.932793%2014.506657-13.311991s13.448524-5.085863%2022.254918-5.085864c8.942927%200%2016.418122%201.706666%2022.425585%205.085864s10.820259%207.748262%2014.506657%2013.107191%206.792529%2011.093326%209.318394%2017.237322%205.734396%2014.33599%209.625594%2024.575983l82.978078%20204.97053c6.485329%2015.598923%209.762127%2026.931182%209.762126%2034.030911%200%207.372795-3.071998%2014.131191-9.215993%2020.275187s-13.550924%209.215994-22.220786%209.215993c-5.05173%200-9.38666-0.887466-13.004791-2.696531s-6.655996-4.266664-9.113594-7.372795-5.085863-7.884795-7.918928-14.301857-5.15413-12.117325-7.167995-17.032522z%20m-127.419649-88.200475h94.890604l-47.889035-131.071913-47.001569%20131.071913z%20m298.359268-77.346082v170.93962c0%2011.844259-2.833065%2020.787186-8.465061%2026.862915s-12.799991%209.113594-21.435719%209.113594-15.701323-3.106131-21.128519-9.318394-8.123728-15.086923-8.123728-26.658115v-169.232954c0-11.707726%202.696532-20.51412%208.123728-26.419183s12.458658-8.874661%2021.128519-8.87466%2015.803723%202.969598%2021.435719%208.87466%208.465061%2014.165324%208.465061%2024.712517z%20m-29.252247-61.098626c-8.226128%200-15.291723-2.525865-21.128519-7.577595s-8.772261-12.219725-8.772261-21.435719c0-8.362661%203.003731-15.291723%208.977061-20.684786s12.970658-8.123728%2020.923719-8.123728c7.645862%200%2014.43839%202.457598%2020.377586%207.372795s8.874661%2012.049059%208.874661%2021.435719c0%209.113594-2.901331%2016.213323-8.669861%2021.33332s-12.629325%207.679995-20.582386%207.679994z'%20fill='%23F6A623'%20/%3e%3cpath%20d='M802.064873%20238.967307H938.666382a17.066655%2017.066655%200%200%200%2012.083192-29.149847l-204.799863-204.799863A17.066655%2017.066655%200%200%200%20716.799863%2017.100789v136.601509a85.333276%2085.333276%200%200%200%2085.26501%2085.265009zM750.933174%2017.100789l-29.149847%2012.083192%20204.799863%20204.799863%2012.083192-29.149847h-136.601509A51.199966%2051.199966%200%200%201%20750.933174%20153.702298V17.100789z'%20fill='%23CECECE'%20/%3e%3c/svg%3e";
|
|
9
9
|
const __vite_glob_0_1$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20class='icon'%20width='200px'%20height='200.00px'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M605.081538%2034.133311H170.735161C132.983719%2034.133311%20102.400273%2064.85329%20102.400273%20102.160999v853.776497C102.400273%20993.552404%20132.778919%201023.999317%20170.803427%201023.999317h716.560589A68.437288%2068.437288%200%200%200%20955.733038%20955.56203V229.171047L761.787567%2034.133311h-156.706029z'%20fill='%23FFFFFF'%20/%3e%3cpath%20d='M153.668506%200A85.401543%2085.401543%200%200%200%2068.266962%2085.094343v853.776498A85.094343%2085.094343%200%200%200%20153.736772%201023.999317h716.560589A85.503943%2085.503943%200%200%200%20955.733038%20938.495374V212.104392a17.134922%2017.134922%200%200%200-4.949331-12.049059L756.838237%205.017597A17.169055%2017.169055%200%200%200%20744.720912%200H153.668506z%20m591.052406%2034.133311l-12.117326-5.017597%20193.945471%20195.037737L921.599727%20212.104392v726.356849c0%2028.398914-23.005851%2051.404766-51.336499%2051.404766H153.736772A50.995166%2050.995166%200%200%201%20102.400273%20938.904974V85.094343C102.400273%2057.139162%20125.440258%2034.133311%20153.668506%2034.133311H744.720912z'%20fill='%23CECECE'%20/%3e%3cpath%20d='M694.886278%20305.28833a1083.732611%201083.732611%200%200%200-313.173124%2053.657564c-6.997329%201.945599-7.441062%207.748262-7.441062%207.748262v298.871267c-18.739188-4.232531-41.847439-1.774932-64.068224%208.294394-41.267172%2018.670921-63.761024%2056.388229-50.244233%2084.241011%2013.516791%2027.886915%2057.924228%2035.327976%2099.1914%2016.691189%2036.522642-16.520522%2054.681564-41.471972%2054.408497-74.274084v-256.614229a1085.302743%201085.302743%200%200%201%20246.271836-42.530105v238.045708c-18.943987-4.64213-42.632505-2.321065-65.36529%207.987195-41.267172%2018.670921-63.761024%2056.388229-50.244233%2084.24101%2013.516791%2027.852781%2057.924228%2035.36211%2099.191401%2016.691189%2056.388229-23.756784%2055.26183-75.741816%2055.26183-75.741816l0.955732-276.343283c0.1024-0.580266%200.2048-1.160533%200.2048-1.809065V312.353925c-0.1024-3.481598-2.286932-6.655996-4.94933-7.065595z'%20fill='%2375A6DF'%20/%3e%3cpath%20d='M802.064873%20238.967307H938.666382a17.066655%2017.066655%200%200%200%2012.083192-29.149847l-204.799863-204.799863A17.066655%2017.066655%200%200%200%20716.799863%2017.100789v136.601509a85.333276%2085.333276%200%200%200%2085.26501%2085.265009zM750.933174%2017.100789l-29.149847%2012.083192%20204.799863%20204.799863%2012.083192-29.149847h-136.601509A51.199966%2051.199966%200%200%201%20750.933174%20153.702298V17.100789z'%20fill='%23CECECE'%20/%3e%3c/svg%3e";
|
|
@@ -5162,20 +5162,20 @@ function any2px(value) {
|
|
|
5162
5162
|
}
|
|
5163
5163
|
return "";
|
|
5164
5164
|
}
|
|
5165
|
-
let lastTimestamp =
|
|
5166
|
-
let counter =
|
|
5165
|
+
let lastTimestamp = 0;
|
|
5166
|
+
let counter = 0;
|
|
5167
5167
|
function getUniqueId() {
|
|
5168
5168
|
const letters = "abcdefghijklmnopqrstuvwxyz";
|
|
5169
5169
|
const firstChar = letters[Math.floor(Math.random() * letters.length)];
|
|
5170
|
-
const timestamp =
|
|
5170
|
+
const timestamp = Date.now();
|
|
5171
5171
|
if (timestamp === lastTimestamp) {
|
|
5172
5172
|
counter++;
|
|
5173
5173
|
} else {
|
|
5174
|
-
counter =
|
|
5174
|
+
counter = 0;
|
|
5175
5175
|
lastTimestamp = timestamp;
|
|
5176
5176
|
}
|
|
5177
|
-
const random2 =
|
|
5178
|
-
const uniqueNumber = timestamp *
|
|
5177
|
+
const random2 = Math.floor(Math.random() * 1e3);
|
|
5178
|
+
const uniqueNumber = timestamp * 1e3 + counter + random2;
|
|
5179
5179
|
const rest = uniqueNumber.toString(36).slice(-7).padStart(7, "0");
|
|
5180
5180
|
return firstChar + rest;
|
|
5181
5181
|
}
|
|
@@ -6162,9 +6162,6 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6162
6162
|
}
|
|
6163
6163
|
});
|
|
6164
6164
|
const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-9aad9f0c"]]);
|
|
6165
|
-
const descEmits = {
|
|
6166
|
-
ready: () => true
|
|
6167
|
-
};
|
|
6168
6165
|
const formProps = {
|
|
6169
6166
|
options: {
|
|
6170
6167
|
type: Array,
|
|
@@ -6272,12 +6269,8 @@ const formItemProps = {
|
|
|
6272
6269
|
})
|
|
6273
6270
|
},
|
|
6274
6271
|
visible: {
|
|
6275
|
-
type: Function,
|
|
6276
|
-
default: () => true
|
|
6277
|
-
validator: validators.boolean({
|
|
6278
|
-
componentName: "LewForm",
|
|
6279
|
-
propName: "visible"
|
|
6280
|
-
})
|
|
6272
|
+
type: [Function, Boolean],
|
|
6273
|
+
default: () => true
|
|
6281
6274
|
},
|
|
6282
6275
|
required: {
|
|
6283
6276
|
type: Boolean,
|
|
@@ -6334,20 +6327,12 @@ const formItemProps = {
|
|
|
6334
6327
|
})
|
|
6335
6328
|
},
|
|
6336
6329
|
disabled: {
|
|
6337
|
-
type: Function,
|
|
6338
|
-
default: () => false
|
|
6339
|
-
validator: validators.boolean({
|
|
6340
|
-
componentName: "LewFormItem",
|
|
6341
|
-
propName: "disabled"
|
|
6342
|
-
})
|
|
6330
|
+
type: [Function, Boolean],
|
|
6331
|
+
default: () => false
|
|
6343
6332
|
},
|
|
6344
6333
|
readonly: {
|
|
6345
|
-
type: Function,
|
|
6346
|
-
default: () => false
|
|
6347
|
-
validator: validators.boolean({
|
|
6348
|
-
componentName: "LewFormItem",
|
|
6349
|
-
propName: "readonly"
|
|
6350
|
-
})
|
|
6334
|
+
type: [Function, Boolean],
|
|
6335
|
+
default: () => false
|
|
6351
6336
|
},
|
|
6352
6337
|
tips: {
|
|
6353
6338
|
type: String,
|
|
@@ -7035,10 +7020,8 @@ const LewDescItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "da
|
|
|
7035
7020
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
7036
7021
|
__name: "LewDesc",
|
|
7037
7022
|
props: descProps,
|
|
7038
|
-
|
|
7039
|
-
setup(__props, { emit: __emit }) {
|
|
7023
|
+
setup(__props) {
|
|
7040
7024
|
const props = __props;
|
|
7041
|
-
const emit = __emit;
|
|
7042
7025
|
const descLabelRef = ref();
|
|
7043
7026
|
const autoLabelWidth = ref(0);
|
|
7044
7027
|
const componentOptions = computed(
|
|
@@ -7077,7 +7060,6 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
7077
7060
|
}
|
|
7078
7061
|
onMounted(() => {
|
|
7079
7062
|
calculateLabelWidth();
|
|
7080
|
-
emit("ready");
|
|
7081
7063
|
});
|
|
7082
7064
|
watch(
|
|
7083
7065
|
() => props.size,
|
|
@@ -7116,7 +7098,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
7116
7098
|
};
|
|
7117
7099
|
}
|
|
7118
7100
|
});
|
|
7119
|
-
const LewDesc = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
7101
|
+
const LewDesc = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-d41a708e"]]);
|
|
7120
7102
|
const expandEmits = {
|
|
7121
7103
|
expand: () => true,
|
|
7122
7104
|
collapse: () => true
|
|
@@ -7489,9 +7471,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
7489
7471
|
});
|
|
7490
7472
|
const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-ed4ad664"]]);
|
|
7491
7473
|
const tableEmits = {
|
|
7492
|
-
sortChange: (sortValue) => sortValue,
|
|
7493
|
-
selectChange: (selectedKeys) => selectedKeys,
|
|
7494
|
-
dragSort: (dataSource) => dataSource
|
|
7474
|
+
sortChange: (sortValue) => sortValue || typeof sortValue === "undefined",
|
|
7475
|
+
selectChange: (selectedKeys) => selectedKeys || typeof selectedKeys === "undefined",
|
|
7476
|
+
dragSort: (dataSource) => dataSource || typeof dataSource === "undefined"
|
|
7495
7477
|
};
|
|
7496
7478
|
function tryOnScopeDispose(fn2) {
|
|
7497
7479
|
if (getCurrentScope()) {
|
|
@@ -11077,6 +11059,7 @@ const modalProps = {
|
|
|
11077
11059
|
},
|
|
11078
11060
|
okButtonProps: {
|
|
11079
11061
|
type: Object,
|
|
11062
|
+
typeComponents: [{ name: "LewButtonProps", path: "/Button" }],
|
|
11080
11063
|
validator: validators.object({
|
|
11081
11064
|
componentName: "LewModal",
|
|
11082
11065
|
propName: "okButtonProps"
|
|
@@ -11084,11 +11067,28 @@ const modalProps = {
|
|
|
11084
11067
|
},
|
|
11085
11068
|
closeButtonProps: {
|
|
11086
11069
|
type: Object,
|
|
11070
|
+
typeComponents: [{ name: "LewButtonProps", path: "/Button" }],
|
|
11087
11071
|
validator: validators.object({
|
|
11088
11072
|
componentName: "LewModal",
|
|
11089
11073
|
propName: "closeButtonProps"
|
|
11090
11074
|
})
|
|
11091
11075
|
},
|
|
11076
|
+
hideOkButton: {
|
|
11077
|
+
type: Boolean,
|
|
11078
|
+
default: false,
|
|
11079
|
+
validator: validators.boolean({
|
|
11080
|
+
componentName: "LewModal",
|
|
11081
|
+
propName: "hideOkButton"
|
|
11082
|
+
})
|
|
11083
|
+
},
|
|
11084
|
+
hideCloseButton: {
|
|
11085
|
+
type: Boolean,
|
|
11086
|
+
default: false,
|
|
11087
|
+
validator: validators.boolean({
|
|
11088
|
+
componentName: "LewModal",
|
|
11089
|
+
propName: "hideCloseButton"
|
|
11090
|
+
})
|
|
11091
|
+
},
|
|
11092
11092
|
zIndex: {
|
|
11093
11093
|
type: Number,
|
|
11094
11094
|
default: 1001,
|
|
@@ -16046,7 +16046,7 @@ const cascaderModel = {
|
|
|
16046
16046
|
}
|
|
16047
16047
|
};
|
|
16048
16048
|
const checkboxEmits = {
|
|
16049
|
-
change: (value) => value
|
|
16049
|
+
change: (value) => typeof value === "boolean"
|
|
16050
16050
|
};
|
|
16051
16051
|
const checkboxGroupEmits = {
|
|
16052
16052
|
change: (value, item) => ({ value, item })
|
|
@@ -19563,8 +19563,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
19563
19563
|
const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-38041cdb"]]);
|
|
19564
19564
|
const formEmits = {
|
|
19565
19565
|
change: (value) => value,
|
|
19566
|
-
mounted: () =>
|
|
19567
|
-
}
|
|
19566
|
+
mounted: () => true
|
|
19568
19567
|
};
|
|
19569
19568
|
const formItemEmits = {
|
|
19570
19569
|
change: (value) => value
|
|
@@ -21362,7 +21361,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21362
21361
|
};
|
|
21363
21362
|
}
|
|
21364
21363
|
});
|
|
21365
|
-
const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
21364
|
+
const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-df6f6e1c"]]);
|
|
21366
21365
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
21367
21366
|
__name: "LewForm",
|
|
21368
21367
|
props: formProps,
|
|
@@ -21392,12 +21391,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21392
21391
|
};
|
|
21393
21392
|
}
|
|
21394
21393
|
const formSchema = computed(() => {
|
|
21395
|
-
const schemaMap = componentOptions.value.reduce(
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21394
|
+
const schemaMap = componentOptions.value.reduce(
|
|
21395
|
+
(acc, item) => {
|
|
21396
|
+
if (item.field && item.rule) {
|
|
21397
|
+
acc[item.field] = typeof item.rule === "string" ? new Function("Yup", `return ${item.rule}`)(Yup) : item.rule;
|
|
21398
|
+
}
|
|
21399
|
+
return acc;
|
|
21400
|
+
},
|
|
21401
|
+
{}
|
|
21402
|
+
);
|
|
21401
21403
|
return create$3().shape(schemaMap);
|
|
21402
21404
|
});
|
|
21403
21405
|
const getFormClassNames = computed(() => object2class("lew-form", {}));
|
|
@@ -21432,7 +21434,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21432
21434
|
});
|
|
21433
21435
|
}
|
|
21434
21436
|
function resetError() {
|
|
21435
|
-
componentOptions.value.forEach(
|
|
21437
|
+
componentOptions.value.forEach(
|
|
21438
|
+
(item) => item.field && resetFieldError(item.field)
|
|
21439
|
+
);
|
|
21436
21440
|
}
|
|
21437
21441
|
function resetFieldError(field, ignore = false) {
|
|
21438
21442
|
const ref2 = formItemRefMap.value[field];
|
|
@@ -21443,7 +21447,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21443
21447
|
}
|
|
21444
21448
|
function validate() {
|
|
21445
21449
|
return new Promise((resolve) => {
|
|
21446
|
-
Object.keys(formItemRefMap.value).forEach(
|
|
21450
|
+
Object.keys(formItemRefMap.value).forEach(
|
|
21451
|
+
(key) => resetFieldError(key, false)
|
|
21452
|
+
);
|
|
21447
21453
|
formSchema.value.validate(formMap.value, { abortEarly: false }).then(() => resolve(true)).catch((error) => {
|
|
21448
21454
|
for (const item of error?.inner || []) {
|
|
21449
21455
|
const path = item.path.replace(/^\["?|"?\]$/g, "");
|
|
@@ -21519,7 +21525,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21519
21525
|
};
|
|
21520
21526
|
}
|
|
21521
21527
|
});
|
|
21522
|
-
const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
21528
|
+
const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-d62eca7f"]]);
|
|
21523
21529
|
const inputEmits = {
|
|
21524
21530
|
change: (value) => value,
|
|
21525
21531
|
input: (value) => value,
|
|
@@ -23710,7 +23716,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23710
23716
|
});
|
|
23711
23717
|
const LewRate = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-4f04bcc0"]]);
|
|
23712
23718
|
const selectEmits = {
|
|
23713
|
-
change: (value) => value,
|
|
23719
|
+
change: (value) => value || typeof value === "undefined",
|
|
23714
23720
|
blur: () => true,
|
|
23715
23721
|
clear: () => true,
|
|
23716
23722
|
focus: () => true
|
|
@@ -26206,7 +26212,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
26206
26212
|
});
|
|
26207
26213
|
const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-94778521"]]);
|
|
26208
26214
|
const switchEmits = {
|
|
26209
|
-
change: (value) => value
|
|
26215
|
+
change: (value) => typeof value === "boolean" || value === void 0
|
|
26210
26216
|
};
|
|
26211
26217
|
const switchModel = {
|
|
26212
26218
|
modelValue: {
|
|
@@ -26289,13 +26295,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
26289
26295
|
_loading.value = true;
|
|
26290
26296
|
const isSuccess = await props.request();
|
|
26291
26297
|
if (isSuccess) {
|
|
26292
|
-
const
|
|
26298
|
+
const currentValue = modelValue.value ?? false;
|
|
26299
|
+
const newValue = !currentValue;
|
|
26293
26300
|
modelValue.value = newValue;
|
|
26294
26301
|
emit("change", newValue);
|
|
26295
26302
|
}
|
|
26296
26303
|
_loading.value = false;
|
|
26297
26304
|
} else {
|
|
26298
|
-
const
|
|
26305
|
+
const currentValue = modelValue.value ?? false;
|
|
26306
|
+
const newValue = !currentValue;
|
|
26299
26307
|
modelValue.value = newValue;
|
|
26300
26308
|
emit("change", newValue);
|
|
26301
26309
|
}
|
|
@@ -26376,7 +26384,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
26376
26384
|
};
|
|
26377
26385
|
}
|
|
26378
26386
|
});
|
|
26379
|
-
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
26387
|
+
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-35986493"]]);
|
|
26380
26388
|
const tabsEmits = {
|
|
26381
26389
|
change: (value, item) => {
|
|
26382
26390
|
return { value, item };
|
|
@@ -26980,7 +26988,6 @@ const treeSelectProps = {
|
|
|
26980
26988
|
dataSource: {
|
|
26981
26989
|
type: Array,
|
|
26982
26990
|
typePopKeys: ["LewTreeDataSource"],
|
|
26983
|
-
required: true,
|
|
26984
26991
|
validator: validators.array({
|
|
26985
26992
|
componentName: "LewTreeSelect",
|
|
26986
26993
|
propName: "dataSource"
|
|
@@ -29305,8 +29312,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
29305
29312
|
});
|
|
29306
29313
|
const LewMark = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-01d3c8a2"]]);
|
|
29307
29314
|
const tagEmits = {
|
|
29308
|
-
close: () => true
|
|
29309
|
-
click: (event) => event
|
|
29315
|
+
close: () => true
|
|
29310
29316
|
};
|
|
29311
29317
|
const tagProps = {
|
|
29312
29318
|
text: {
|
|
@@ -29472,8 +29478,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
29472
29478
|
}
|
|
29473
29479
|
);
|
|
29474
29480
|
async function handleClose() {
|
|
29475
|
-
if (props.disabled || isClosing.value)
|
|
29476
|
-
return;
|
|
29481
|
+
if (props.disabled || isClosing.value) return;
|
|
29477
29482
|
if (props.close) {
|
|
29478
29483
|
isClosing.value = true;
|
|
29479
29484
|
await props.close();
|
|
@@ -30307,6 +30312,7 @@ const contextMenuProps = {
|
|
|
30307
30312
|
}
|
|
30308
30313
|
};
|
|
30309
30314
|
const MENU_SHOW_DELAY = 120;
|
|
30315
|
+
const MENU_DESTROY_DELAY = 250;
|
|
30310
30316
|
const ATTR_MENU_ID = "lew-context-menu-id";
|
|
30311
30317
|
const ATTR_DATA_LEW = "data-lew";
|
|
30312
30318
|
function initLewContextMenu() {
|
|
@@ -30395,7 +30401,7 @@ function showMenu(e, options, trigger) {
|
|
|
30395
30401
|
if (currentContent) {
|
|
30396
30402
|
setTimeout(() => {
|
|
30397
30403
|
destroyContextMenu(currentContent);
|
|
30398
|
-
},
|
|
30404
|
+
}, MENU_DESTROY_DELAY);
|
|
30399
30405
|
}
|
|
30400
30406
|
const menuDom = createContextMenu(options);
|
|
30401
30407
|
const getReferenceClientRect = () => {
|
|
@@ -31461,7 +31467,6 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
31461
31467
|
dateRangePickerModel,
|
|
31462
31468
|
dateRangePickerProps,
|
|
31463
31469
|
dateRangeProps,
|
|
31464
|
-
descEmits,
|
|
31465
31470
|
descItemProps,
|
|
31466
31471
|
descProps,
|
|
31467
31472
|
drawerEmits,
|
|
@@ -38927,7 +38932,6 @@ export {
|
|
|
38927
38932
|
dateRangeProps,
|
|
38928
38933
|
de,
|
|
38929
38934
|
index as default,
|
|
38930
|
-
descEmits,
|
|
38931
38935
|
descItemProps,
|
|
38932
38936
|
descProps,
|
|
38933
38937
|
destroyLewContextMenu,
|