sakura-ui-plus 1.0.4 → 1.0.6
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/dist/es/index.js
CHANGED
|
@@ -622,8 +622,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
622
622
|
],
|
|
623
623
|
style: [selectStyle.value]
|
|
624
624
|
}, _ctx.$attrs), [
|
|
625
|
-
(openBlock(), createBlock(resolveDynamicComponent(selectComponent.value), {
|
|
626
|
-
ref: "elSelectRef",
|
|
625
|
+
(openBlock(), createBlock(resolveDynamicComponent(selectComponent.value), mergeProps({ ref: "elSelectRef" }, _ctx.$attrs, {
|
|
627
626
|
modelValue: selectValue.value,
|
|
628
627
|
"onUpdate:modelValue": [
|
|
629
628
|
_cache[0] || (_cache[0] = ($event) => selectValue.value = $event),
|
|
@@ -639,7 +638,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
639
638
|
"empty-values": _emptyValues.value,
|
|
640
639
|
size: __props.size,
|
|
641
640
|
options: __props.options
|
|
642
|
-
}, createSlots({ _: 2 }, [
|
|
641
|
+
}), createSlots({ _: 2 }, [
|
|
643
642
|
_ctx.$slots.header ? {
|
|
644
643
|
name: "header",
|
|
645
644
|
fn: withCtx(() => [
|
|
@@ -683,7 +682,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
683
682
|
]),
|
|
684
683
|
key: "3"
|
|
685
684
|
} : void 0
|
|
686
|
-
]),
|
|
685
|
+
]), 1040, ["modelValue", "clearable", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip", "disabled", "loading", "empty-values", "size", "options"]))
|
|
687
686
|
], 16)
|
|
688
687
|
]),
|
|
689
688
|
_: 3
|
|
@@ -1425,7 +1424,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1425
1424
|
closeIconSize: { default: 16 },
|
|
1426
1425
|
closeIconColor: { default: "#909399" },
|
|
1427
1426
|
background: { default: "#fff" },
|
|
1428
|
-
modal: { type: Boolean }
|
|
1427
|
+
modal: { type: Boolean, default: true }
|
|
1429
1428
|
}, {
|
|
1430
1429
|
"modelValue": {
|
|
1431
1430
|
type: Boolean,
|
|
@@ -2156,7 +2155,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2156
2155
|
const message = useMessage();
|
|
2157
2156
|
const onDrop = (e) => {
|
|
2158
2157
|
var _a;
|
|
2159
|
-
const { showMessage } = props;
|
|
2158
|
+
const { showMessage, disabled } = props;
|
|
2159
|
+
if (disabled) {
|
|
2160
|
+
return;
|
|
2161
|
+
}
|
|
2160
2162
|
isDragging.value = false;
|
|
2161
2163
|
const files = (_a = e.dataTransfer) == null ? void 0 : _a.files;
|
|
2162
2164
|
const fileResult = getFileResult(files);
|
|
@@ -2211,7 +2213,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2211
2213
|
key: 1,
|
|
2212
2214
|
class: normalizeClass([
|
|
2213
2215
|
unref(ns).b(),
|
|
2214
|
-
unref(ns).m(__props.type)
|
|
2216
|
+
unref(ns).m(__props.type),
|
|
2217
|
+
unref(ns).is("disabled", __props.disabled)
|
|
2215
2218
|
])
|
|
2216
2219
|
}, [
|
|
2217
2220
|
createVNode(unref(ElButton), {
|
package/dist/lib/index.js
CHANGED
|
@@ -624,8 +624,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
624
624
|
],
|
|
625
625
|
style: [selectStyle.value]
|
|
626
626
|
}, _ctx.$attrs), [
|
|
627
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(selectComponent.value), {
|
|
628
|
-
ref: "elSelectRef",
|
|
627
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(selectComponent.value), vue.mergeProps({ ref: "elSelectRef" }, _ctx.$attrs, {
|
|
629
628
|
modelValue: selectValue.value,
|
|
630
629
|
"onUpdate:modelValue": [
|
|
631
630
|
_cache[0] || (_cache[0] = ($event) => selectValue.value = $event),
|
|
@@ -641,7 +640,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
641
640
|
"empty-values": _emptyValues.value,
|
|
642
641
|
size: __props.size,
|
|
643
642
|
options: __props.options
|
|
644
|
-
}, vue.createSlots({ _: 2 }, [
|
|
643
|
+
}), vue.createSlots({ _: 2 }, [
|
|
645
644
|
_ctx.$slots.header ? {
|
|
646
645
|
name: "header",
|
|
647
646
|
fn: vue.withCtx(() => [
|
|
@@ -685,7 +684,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
685
684
|
]),
|
|
686
685
|
key: "3"
|
|
687
686
|
} : void 0
|
|
688
|
-
]),
|
|
687
|
+
]), 1040, ["modelValue", "clearable", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip", "disabled", "loading", "empty-values", "size", "options"]))
|
|
689
688
|
], 16)
|
|
690
689
|
]),
|
|
691
690
|
_: 3
|
|
@@ -1427,7 +1426,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1427
1426
|
closeIconSize: { default: 16 },
|
|
1428
1427
|
closeIconColor: { default: "#909399" },
|
|
1429
1428
|
background: { default: "#fff" },
|
|
1430
|
-
modal: { type: Boolean }
|
|
1429
|
+
modal: { type: Boolean, default: true }
|
|
1431
1430
|
}, {
|
|
1432
1431
|
"modelValue": {
|
|
1433
1432
|
type: Boolean,
|
|
@@ -2158,7 +2157,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
2158
2157
|
const message = useMessage();
|
|
2159
2158
|
const onDrop = (e) => {
|
|
2160
2159
|
var _a;
|
|
2161
|
-
const { showMessage } = props;
|
|
2160
|
+
const { showMessage, disabled } = props;
|
|
2161
|
+
if (disabled) {
|
|
2162
|
+
return;
|
|
2163
|
+
}
|
|
2162
2164
|
isDragging.value = false;
|
|
2163
2165
|
const files = (_a = e.dataTransfer) == null ? void 0 : _a.files;
|
|
2164
2166
|
const fileResult = getFileResult(files);
|
|
@@ -2213,7 +2215,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
2213
2215
|
key: 1,
|
|
2214
2216
|
class: vue.normalizeClass([
|
|
2215
2217
|
vue.unref(ns).b(),
|
|
2216
|
-
vue.unref(ns).m(__props.type)
|
|
2218
|
+
vue.unref(ns).m(__props.type),
|
|
2219
|
+
vue.unref(ns).is("disabled", __props.disabled)
|
|
2217
2220
|
])
|
|
2218
2221
|
}, [
|
|
2219
2222
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
package/dist/style.css
CHANGED
|
@@ -3869,6 +3869,7 @@
|
|
|
3869
3869
|
border: var(--sakura-file-item-border);
|
|
3870
3870
|
border-radius: var(--sakura-file-item-border-radius);
|
|
3871
3871
|
cursor: pointer;
|
|
3872
|
+
position: relative;
|
|
3872
3873
|
}
|
|
3873
3874
|
.sakura-file-item + .sakura-file-item {
|
|
3874
3875
|
margin-top: 20px;
|
|
@@ -4212,6 +4213,9 @@
|
|
|
4212
4213
|
--sakura-dialog-title-font-size: var(--sakura-font-size-medium);
|
|
4213
4214
|
--sakura-dialog-title-color: var(--sakura-text-color-primary);
|
|
4214
4215
|
--sakura-dialog-title-font-weight: var(--sakura-font-weight-primary);
|
|
4216
|
+
--sakura-dialog-header-padding: var(--sakura-dialog-padding);
|
|
4217
|
+
--sakura-dialog-body-padding: var(--sakura-dialog-padding);
|
|
4218
|
+
--sakura-dialog-footer-padding: var(--sakura-dialog-padding);
|
|
4215
4219
|
padding: 0;
|
|
4216
4220
|
border-radius: var(--sakura-dialog-border-radius);
|
|
4217
4221
|
overflow: hidden;
|
|
@@ -4238,8 +4242,8 @@
|
|
|
4238
4242
|
display: flex;
|
|
4239
4243
|
flex-direction: row;
|
|
4240
4244
|
align-items: center;
|
|
4241
|
-
margin-bottom: var(--sakura-dialog-padding);
|
|
4242
|
-
padding: var(--sakura-dialog-padding);
|
|
4245
|
+
margin-bottom: var(--sakura-dialog-header-padding);
|
|
4246
|
+
padding: var(--sakura-dialog-header-padding);
|
|
4243
4247
|
padding-bottom: 0;
|
|
4244
4248
|
}
|
|
4245
4249
|
.sakura-dialog {
|
|
@@ -4278,7 +4282,7 @@
|
|
|
4278
4282
|
.sakura-dialog .sakura-dialog__body {
|
|
4279
4283
|
display: flex;
|
|
4280
4284
|
flex-direction: column;
|
|
4281
|
-
padding: 0 var(--sakura-dialog-padding);
|
|
4285
|
+
padding: 0 var(--sakura-dialog-body-padding);
|
|
4282
4286
|
}
|
|
4283
4287
|
.sakura-dialog {
|
|
4284
4288
|
/**
|
|
@@ -4298,8 +4302,8 @@
|
|
|
4298
4302
|
display: flex;
|
|
4299
4303
|
flex-direction: row;
|
|
4300
4304
|
align-items: center;
|
|
4301
|
-
margin-top: var(--sakura-dialog-padding);
|
|
4302
|
-
padding: var(--sakura-dialog-padding);
|
|
4305
|
+
margin-top: var(--sakura-dialog-footer-padding);
|
|
4306
|
+
padding: var(--sakura-dialog-footer-padding);
|
|
4303
4307
|
padding-top: 0;
|
|
4304
4308
|
}
|
|
4305
4309
|
.sakura-dialog {
|
|
@@ -4429,6 +4433,9 @@
|
|
|
4429
4433
|
--sakura-drawer-title-font-size: var(--sakura-font-size-medium);
|
|
4430
4434
|
--sakura-drawer-title-color: var(--sakura-text-color-primary);
|
|
4431
4435
|
--sakura-drawer-title-font-weight: var(--sakura-font-weight-primary);
|
|
4436
|
+
--sakura-drawer-header-padding: var(--sakura-drawer-padding);
|
|
4437
|
+
--sakura-drawer-body-padding: var(--sakura-drawer-padding);
|
|
4438
|
+
--sakura-drawer-footer-padding: var(--sakura-drawer-padding);
|
|
4432
4439
|
padding: 0;
|
|
4433
4440
|
border-radius: var(--sakura-drawer-border-radius) 0 0 var(--sakura-drawer-border-radius);
|
|
4434
4441
|
overflow: hidden;
|
|
@@ -4463,7 +4470,7 @@
|
|
|
4463
4470
|
display: flex;
|
|
4464
4471
|
flex-direction: row;
|
|
4465
4472
|
align-items: center;
|
|
4466
|
-
padding: var(--sakura-drawer-padding);
|
|
4473
|
+
padding: var(--sakura-drawer-header-padding);
|
|
4467
4474
|
padding-bottom: 0;
|
|
4468
4475
|
}
|
|
4469
4476
|
.sakura-drawer {
|
|
@@ -4503,7 +4510,7 @@
|
|
|
4503
4510
|
flex: 1;
|
|
4504
4511
|
display: flex;
|
|
4505
4512
|
flex-direction: column;
|
|
4506
|
-
padding: var(--sakura-drawer-padding);
|
|
4513
|
+
padding: var(--sakura-drawer-body-padding);
|
|
4507
4514
|
overflow: hidden;
|
|
4508
4515
|
}
|
|
4509
4516
|
.sakura-drawer {
|
|
@@ -4524,7 +4531,7 @@
|
|
|
4524
4531
|
display: flex;
|
|
4525
4532
|
flex-direction: row;
|
|
4526
4533
|
align-items: center;
|
|
4527
|
-
padding: var(--sakura-drawer-padding);
|
|
4534
|
+
padding: var(--sakura-drawer-footer-padding);
|
|
4528
4535
|
padding-top: 0;
|
|
4529
4536
|
}
|
|
4530
4537
|
.sakura-drawer {
|
|
@@ -4827,7 +4834,7 @@
|
|
|
4827
4834
|
.sakura-upload.is-active {
|
|
4828
4835
|
border-color: var(--sakura-color-primary);
|
|
4829
4836
|
}
|
|
4830
|
-
.sakura-upload:hover {
|
|
4837
|
+
.sakura-upload:not(.sakura-upload.is-disabled):hover {
|
|
4831
4838
|
border-color: var(--sakura-color-primary);
|
|
4832
4839
|
}
|
|
4833
4840
|
.sakura-upload {
|
|
@@ -4923,4 +4930,34 @@
|
|
|
4923
4930
|
cursor: pointer;
|
|
4924
4931
|
width: 200%;
|
|
4925
4932
|
height: 200%;
|
|
4933
|
+
}
|
|
4934
|
+
.sakura-upload.is-disabled {
|
|
4935
|
+
cursor: not-allowed;
|
|
4936
|
+
}
|
|
4937
|
+
.sakura-upload.is-disabled:after {
|
|
4938
|
+
content: "";
|
|
4939
|
+
width: 100%;
|
|
4940
|
+
height: 100%;
|
|
4941
|
+
position: absolute;
|
|
4942
|
+
left: 0;
|
|
4943
|
+
top: 0;
|
|
4944
|
+
z-index: 9;
|
|
4945
|
+
cursor: not-allowed;
|
|
4946
|
+
}
|
|
4947
|
+
.sakura-upload.is-disabled {
|
|
4948
|
+
/**
|
|
4949
|
+
@at-root使用之后会将另起一行不在进行嵌套
|
|
4950
|
+
.demo {
|
|
4951
|
+
@at-root .a{
|
|
4952
|
+
color: red;
|
|
4953
|
+
}
|
|
4954
|
+
}
|
|
4955
|
+
.demo{}
|
|
4956
|
+
.a{
|
|
4957
|
+
color: red;
|
|
4958
|
+
}
|
|
4959
|
+
*/
|
|
4960
|
+
}
|
|
4961
|
+
.sakura-upload.is-disabled .sakura-upload__file {
|
|
4962
|
+
display: none;
|
|
4926
4963
|
}
|
|
@@ -33,6 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
33
33
|
cancelButtonText: string;
|
|
34
34
|
confirmButtonText: string;
|
|
35
35
|
showClose: boolean;
|
|
36
|
+
modal: boolean;
|
|
36
37
|
borderRadius: string | number;
|
|
37
38
|
top: string | number;
|
|
38
39
|
confirmButtonType: import('../../index.ts').ComponentType;
|
|
@@ -1860,6 +1860,7 @@ declare const _default: {
|
|
|
1860
1860
|
cancelButtonText: string;
|
|
1861
1861
|
confirmButtonText: string;
|
|
1862
1862
|
showClose: boolean;
|
|
1863
|
+
modal: boolean;
|
|
1863
1864
|
borderRadius: string | number;
|
|
1864
1865
|
top: string | number;
|
|
1865
1866
|
confirmButtonType: import('..').ComponentType;
|
|
@@ -1896,6 +1897,7 @@ declare const _default: {
|
|
|
1896
1897
|
cancelButtonText: string;
|
|
1897
1898
|
confirmButtonText: string;
|
|
1898
1899
|
showClose: boolean;
|
|
1900
|
+
modal: boolean;
|
|
1899
1901
|
borderRadius: string | number;
|
|
1900
1902
|
top: string | number;
|
|
1901
1903
|
confirmButtonType: import('..').ComponentType;
|
|
@@ -1934,6 +1936,7 @@ declare const _default: {
|
|
|
1934
1936
|
cancelButtonText: string;
|
|
1935
1937
|
confirmButtonText: string;
|
|
1936
1938
|
showClose: boolean;
|
|
1939
|
+
modal: boolean;
|
|
1937
1940
|
borderRadius: string | number;
|
|
1938
1941
|
top: string | number;
|
|
1939
1942
|
confirmButtonType: import('..').ComponentType;
|