widget.qw 1.0.25 → 1.0.27
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/build/style.css +37 -37
- package/build/widget.qw.es.js +37 -18
- package/build/widget.qw.umd.js +37 -18
- package/package.json +1 -1
- package/src/components/CascaderPop.vue +8 -3
- package/src/components/Input.vue +3 -1
- package/src/components/SingleApiPicker.vue +2 -2
- package/src/components/UserProfile.vue +0 -2
- package/src/views/cascaderpicker/index.vue +0 -0
- package/src/views/cascaderpicker/index_user.vue +0 -0
- package/src/views/singleapipicker/index.vue +0 -0
- package/src/views/cascaderpicker/index copy.vue +0 -0
package/build/style.css
CHANGED
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
:root:root {
|
|
41
41
|
--van-popover-action-width: 70vw;
|
|
42
42
|
}
|
|
43
|
-
[data-v-
|
|
43
|
+
[data-v-beab1d9e] .label {
|
|
44
44
|
color: #000 !important;
|
|
45
45
|
}
|
|
46
|
-
[data-v-
|
|
46
|
+
[data-v-beab1d9e] .van-field__control:disabled {
|
|
47
47
|
color: #000 !important;
|
|
48
48
|
cursor: not-allowed;
|
|
49
49
|
opacity: 1;
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
padding:4px 8px;
|
|
550
550
|
}
|
|
551
551
|
|
|
552
|
-
.widget[data-v-
|
|
552
|
+
.widget[data-v-107e26c3] {
|
|
553
553
|
position: relative;
|
|
554
554
|
display: flex;
|
|
555
555
|
flex-direction: column;
|
|
@@ -559,15 +559,15 @@
|
|
|
559
559
|
background: linear-gradient(to right, #4a90e2, #87ceeb);
|
|
560
560
|
border-radius: 10px;
|
|
561
561
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
562
|
-
.user-avatar[data-v-
|
|
562
|
+
.user-avatar[data-v-107e26c3] {
|
|
563
563
|
margin-bottom: 15px;
|
|
564
564
|
}
|
|
565
|
-
.user-info[data-v-
|
|
565
|
+
.user-info[data-v-107e26c3] {
|
|
566
566
|
display: flex;
|
|
567
567
|
align-items: center;
|
|
568
568
|
justify-content: space-around;
|
|
569
569
|
margin-bottom: 15px;
|
|
570
|
-
.user-info-item[data-v-
|
|
570
|
+
.user-info-item[data-v-107e26c3] {
|
|
571
571
|
font-size: 16px;
|
|
572
572
|
line-height: 22px;
|
|
573
573
|
color: #fff;
|
|
@@ -575,13 +575,13 @@
|
|
|
575
575
|
padding: 0 3px;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
.space[data-v-
|
|
578
|
+
.space[data-v-107e26c3] {
|
|
579
579
|
min-height: 10px;
|
|
580
580
|
flex: 1;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
/* 添加退出按钮样式 */
|
|
584
|
-
.logout-button[data-v-
|
|
584
|
+
.logout-button[data-v-107e26c3] {
|
|
585
585
|
width: 70px;
|
|
586
586
|
height: 30px;
|
|
587
587
|
position: absolute;
|
|
@@ -596,16 +596,16 @@
|
|
|
596
596
|
font-size: 14px;
|
|
597
597
|
transition: background-color 0.3s;
|
|
598
598
|
}
|
|
599
|
-
.logout-button[data-v-
|
|
599
|
+
.logout-button[data-v-107e26c3]:hover {
|
|
600
600
|
background-color: rgba(255, 255, 255, 0.4);
|
|
601
601
|
}
|
|
602
|
-
.user-jobs[data-v-
|
|
602
|
+
.user-jobs[data-v-107e26c3] {
|
|
603
603
|
display: flex;
|
|
604
604
|
justify-content: center;
|
|
605
605
|
gap: 15px;
|
|
606
606
|
width: 100%;
|
|
607
607
|
max-width: 300px;
|
|
608
|
-
.job-item[data-v-
|
|
608
|
+
.job-item[data-v-107e26c3] {
|
|
609
609
|
padding: 5px 10px;
|
|
610
610
|
background-color: rgba(255, 255, 255, 0.2);
|
|
611
611
|
border-radius: 20px;
|
|
@@ -709,25 +709,25 @@
|
|
|
709
709
|
margin:3px;
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
-
.cascader-pop[data-v-
|
|
712
|
+
.cascader-pop[data-v-0f636c64] {
|
|
713
713
|
width: 100%;
|
|
714
714
|
overflow: hidden;
|
|
715
715
|
}
|
|
716
|
-
.cascader-selector[data-v-
|
|
716
|
+
.cascader-selector[data-v-0f636c64] {
|
|
717
717
|
padding: 10px;
|
|
718
718
|
}
|
|
719
|
-
.search-buttons[data-v-
|
|
719
|
+
.search-buttons[data-v-0f636c64] {
|
|
720
720
|
display: flex;
|
|
721
721
|
gap: 10px;
|
|
722
722
|
}
|
|
723
|
-
.clear-btn[data-v-
|
|
723
|
+
.clear-btn[data-v-0f636c64] {
|
|
724
724
|
background-color: #f2f3f5;
|
|
725
725
|
border: none;
|
|
726
726
|
border-radius: 4px;
|
|
727
727
|
padding: 4px 8px;
|
|
728
728
|
font-size: 14px;
|
|
729
729
|
}
|
|
730
|
-
.confirm-btn[data-v-
|
|
730
|
+
.confirm-btn[data-v-0f636c64] {
|
|
731
731
|
background-color: #1989fa;
|
|
732
732
|
color: white;
|
|
733
733
|
border: none;
|
|
@@ -735,19 +735,19 @@
|
|
|
735
735
|
padding: 4px 8px;
|
|
736
736
|
font-size: 14px;
|
|
737
737
|
}
|
|
738
|
-
.no-results[data-v-
|
|
738
|
+
.no-results[data-v-0f636c64] {
|
|
739
739
|
text-align: center;
|
|
740
740
|
padding: 20px;
|
|
741
741
|
color: #969799;
|
|
742
742
|
}
|
|
743
|
-
.cascader-header[data-v-
|
|
743
|
+
.cascader-header[data-v-0f636c64] {
|
|
744
744
|
padding: 10px;
|
|
745
745
|
border-bottom: 1px solid #ebedf0;
|
|
746
746
|
display: flex;
|
|
747
747
|
justify-content: space-between;
|
|
748
748
|
align-items: center;
|
|
749
749
|
}
|
|
750
|
-
.current-path[data-v-
|
|
750
|
+
.current-path[data-v-0f636c64] {
|
|
751
751
|
flex: 1;
|
|
752
752
|
font-size: 14px;
|
|
753
753
|
color: #323233;
|
|
@@ -755,25 +755,25 @@
|
|
|
755
755
|
overflow: hidden;
|
|
756
756
|
text-overflow: ellipsis;
|
|
757
757
|
}
|
|
758
|
-
.header-right[data-v-
|
|
758
|
+
.header-right[data-v-0f636c64] {
|
|
759
759
|
display: flex;
|
|
760
760
|
gap: 8px;
|
|
761
761
|
margin-left: auto;
|
|
762
762
|
}
|
|
763
|
-
.cancel-btn[data-v-
|
|
763
|
+
.cancel-btn[data-v-0f636c64] {
|
|
764
764
|
color: #969799;
|
|
765
765
|
margin-right: 5px;
|
|
766
766
|
}
|
|
767
|
-
.scroll-container[data-v-
|
|
767
|
+
.scroll-container[data-v-0f636c64] {
|
|
768
768
|
height: calc(80vh - 150px);
|
|
769
769
|
overflow-y: auto;
|
|
770
770
|
}
|
|
771
|
-
.cell-content[data-v-
|
|
771
|
+
.cell-content[data-v-0f636c64] {
|
|
772
772
|
display: flex;
|
|
773
773
|
align-items: center;
|
|
774
774
|
gap: 12px;
|
|
775
775
|
}
|
|
776
|
-
.circle-selector[data-v-
|
|
776
|
+
.circle-selector[data-v-0f636c64] {
|
|
777
777
|
width: 20px;
|
|
778
778
|
height: 20px;
|
|
779
779
|
border-radius: 50%;
|
|
@@ -783,29 +783,29 @@
|
|
|
783
783
|
transition: all 0.2s;
|
|
784
784
|
flex-shrink: 0;
|
|
785
785
|
}
|
|
786
|
-
.circle-selector.selected[data-v-
|
|
786
|
+
.circle-selector.selected[data-v-0f636c64] {
|
|
787
787
|
background-color: #1989fa;
|
|
788
788
|
border-color: #1989fa;
|
|
789
789
|
}
|
|
790
|
-
.circle-selector.selected .van-icon[data-v-
|
|
790
|
+
.circle-selector.selected .van-icon[data-v-0f636c64] {
|
|
791
791
|
color: white;
|
|
792
792
|
font-size: 14px;
|
|
793
793
|
}
|
|
794
|
-
.van-cell__right-icon[data-v-
|
|
794
|
+
.van-cell__right-icon[data-v-0f636c64] {
|
|
795
795
|
color: #969799;
|
|
796
796
|
font-size: 16px;
|
|
797
797
|
margin-left: 8px;
|
|
798
798
|
}
|
|
799
|
-
.name[data-v-
|
|
799
|
+
.name[data-v-0f636c64] {
|
|
800
800
|
flex: 1;
|
|
801
801
|
overflow: hidden;
|
|
802
802
|
text-overflow: ellipsis;
|
|
803
803
|
white-space: nowrap;
|
|
804
804
|
}
|
|
805
|
-
.cancel-btn[data-v-
|
|
805
|
+
.cancel-btn[data-v-0f636c64] {
|
|
806
806
|
color: #969799;
|
|
807
807
|
}
|
|
808
|
-
.search-field[data-v-
|
|
808
|
+
.search-field[data-v-0f636c64] {
|
|
809
809
|
background: #fff;
|
|
810
810
|
padding: 10px 16px;
|
|
811
811
|
border-bottom: 1px solid #ebedf0;
|
|
@@ -817,27 +817,27 @@
|
|
|
817
817
|
/* 防止压缩 */
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
-
.widget[data-v-
|
|
820
|
+
.widget[data-v-210abf3c] {
|
|
821
821
|
/* 统一字段间距 */
|
|
822
822
|
}
|
|
823
|
-
.widget[data-v-
|
|
823
|
+
.widget[data-v-210abf3c] .van-cell {
|
|
824
824
|
align-items: center;
|
|
825
825
|
}
|
|
826
|
-
.widget[data-v-
|
|
826
|
+
.widget[data-v-210abf3c] .van-field__label {
|
|
827
827
|
width: 90px;
|
|
828
828
|
flex: none;
|
|
829
829
|
}
|
|
830
|
-
.widget .readonly-field[data-v-
|
|
830
|
+
.widget .readonly-field[data-v-210abf3c] {
|
|
831
831
|
/* 添加必填星号对齐 */
|
|
832
832
|
}
|
|
833
|
-
.widget .readonly-field[data-v-
|
|
833
|
+
.widget .readonly-field[data-v-210abf3c] .van-field__control {
|
|
834
834
|
color: #323233;
|
|
835
835
|
/* 修改文字颜色与普通字段一致 */
|
|
836
836
|
padding-right: 16px;
|
|
837
837
|
}
|
|
838
|
-
.widget .readonly-field.van-field--required[data-v-
|
|
838
|
+
.widget .readonly-field.van-field--required[data-v-210abf3c] .van-field__label::before {
|
|
839
839
|
margin-right: 4px;
|
|
840
840
|
}
|
|
841
|
-
.widget .readonly-field[data-v-
|
|
841
|
+
.widget .readonly-field[data-v-210abf3c] {
|
|
842
842
|
margin: 4px 0;
|
|
843
843
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -16144,7 +16144,7 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
16144
16144
|
});
|
|
16145
16145
|
}
|
|
16146
16146
|
}
|
|
16147
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
16147
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-beab1d9e] .label {\n color: #000 !important;\n}\n[data-v-beab1d9e] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16148
16148
|
const _sfc_main$t = {
|
|
16149
16149
|
__name: "Input",
|
|
16150
16150
|
props: {
|
|
@@ -16205,11 +16205,14 @@ const _sfc_main$t = {
|
|
|
16205
16205
|
});
|
|
16206
16206
|
return (_ctx, _cache) => {
|
|
16207
16207
|
const _component_van_field = resolveComponent("van-field");
|
|
16208
|
-
return !unref(isGone) ? (openBlock(), createBlock(_component_van_field, {
|
|
16208
|
+
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone) && props.type === "number" ? (openBlock(), createBlock(_component_van_field, {
|
|
16209
16209
|
key: 0,
|
|
16210
16210
|
label: props.label,
|
|
16211
16211
|
modelValue: unref(modelValue),
|
|
16212
16212
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
16213
|
+
modelModifiers: {
|
|
16214
|
+
number: true
|
|
16215
|
+
},
|
|
16213
16216
|
disabled: unref(isDisabled),
|
|
16214
16217
|
required: unref(isRequired),
|
|
16215
16218
|
placeholder: props.placeholder,
|
|
@@ -16217,11 +16220,23 @@ const _sfc_main$t = {
|
|
|
16217
16220
|
rows: props.rows,
|
|
16218
16221
|
autosize: props.autosize,
|
|
16219
16222
|
rules: props.rules
|
|
16220
|
-
}, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true)
|
|
16223
|
+
}, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true), !unref(isGone) && props.type != "number" ? (openBlock(), createBlock(_component_van_field, {
|
|
16224
|
+
key: 1,
|
|
16225
|
+
label: props.label,
|
|
16226
|
+
modelValue: unref(modelValue),
|
|
16227
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
16228
|
+
disabled: unref(isDisabled),
|
|
16229
|
+
required: unref(isRequired),
|
|
16230
|
+
placeholder: props.placeholder,
|
|
16231
|
+
type: props.type,
|
|
16232
|
+
rows: props.rows,
|
|
16233
|
+
autosize: props.autosize,
|
|
16234
|
+
rules: props.rules
|
|
16235
|
+
}, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true)], 64);
|
|
16221
16236
|
};
|
|
16222
16237
|
}
|
|
16223
16238
|
};
|
|
16224
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
16239
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-beab1d9e"]]);
|
|
16225
16240
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-24e62c3a] .label {\n color: #000 !important;\n}\n[data-v-24e62c3a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16226
16241
|
const _sfc_main$s = {
|
|
16227
16242
|
__name: "SinglePicker",
|
|
@@ -19564,7 +19579,7 @@ const _sfc_main$c = {
|
|
|
19564
19579
|
}
|
|
19565
19580
|
};
|
|
19566
19581
|
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-58929b5a"]]);
|
|
19567
|
-
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-
|
|
19582
|
+
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-107e26c3] {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: space-around;\r\n padding: 20px;\r\n background: linear-gradient(to right, #4a90e2, #87ceeb);\r\n border-radius: 10px;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n.user-avatar[data-v-107e26c3] {\r\n margin-bottom: 15px;\n}\n.user-info[data-v-107e26c3] {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n margin-bottom: 15px;\n.user-info-item[data-v-107e26c3] {\r\n font-size: 16px;\r\n line-height: 22px;\r\n color: #fff;\r\n text-align: center;\r\n padding: 0 3px;\n}\n}\n.space[data-v-107e26c3] {\r\n min-height: 10px;\r\n flex: 1;\n}\r\n\r\n /* \u6DFB\u52A0\u9000\u51FA\u6309\u94AE\u6837\u5F0F */\n.logout-button[data-v-107e26c3] {\r\n width: 70px;\r\n height: 30px;\r\n position: absolute;\r\n top: 20px;\r\n right: 20px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n color: white;\r\n border: none;\r\n border-radius: 15px;\r\n padding: 5px 15px;\r\n cursor: pointer;\r\n font-size: 14px;\r\n transition: background-color 0.3s;\n}\n.logout-button[data-v-107e26c3]:hover {\r\n background-color: rgba(255, 255, 255, 0.4);\n}\n.user-jobs[data-v-107e26c3] {\r\n display: flex;\r\n justify-content: center;\r\n gap: 15px;\r\n width: 100%;\r\n max-width: 300px;\n.job-item[data-v-107e26c3] {\r\n padding: 5px 10px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n border-radius: 20px;\r\n font-size: 12px;\r\n color: #fff;\n}\n}\n}\r\n")();
|
|
19568
19583
|
const _hoisted_1$5 = {
|
|
19569
19584
|
class: "widget"
|
|
19570
19585
|
};
|
|
@@ -19643,7 +19658,7 @@ const _sfc_main$b = {
|
|
|
19643
19658
|
};
|
|
19644
19659
|
}
|
|
19645
19660
|
};
|
|
19646
|
-
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
19661
|
+
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-107e26c3"]]);
|
|
19647
19662
|
var BillCard_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-68bdd6bc] {\n background-color: white;\n border-radius: 8px;\n box-shadow: var(--van-dropdown-menu-shadow);\n color: 14px;\n}\n.widget .card-box[data-v-68bdd6bc] {\n padding-bottom: 8px;\n}\n.widget .card-box .card-header[data-v-68bdd6bc] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 15px 10px;\n border-bottom: 1px solid #eee;\n}\n.widget .card-box .card-header .card-sum[data-v-68bdd6bc] {\n flex: 1;\n font-size: 14px;\n text-align: left;\n}\n.widget .card-box .card-header .user-state[data-v-68bdd6bc] {\n margin-right: 1px;\n}\n[data-v-68bdd6bc] .van-cell__value {\n flex: 2 !important;\n}\n[data-v-68bdd6bc] .van-cell__title {\n font-size: 12px !important;\n color: #666 !important;\n text-align: left !important;\n}\n[data-v-68bdd6bc] .van-cell__value {\n font-size: 12px !important;\n color: #888 !important;\n}\n[data-v-68bdd6bc] .van-cell {\n padding: 2px 10px !important;\n}")();
|
|
19648
19663
|
const _hoisted_1$4 = {
|
|
19649
19664
|
class: "widget"
|
|
@@ -20289,7 +20304,7 @@ const _sfc_main$3 = {
|
|
|
20289
20304
|
}
|
|
20290
20305
|
};
|
|
20291
20306
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6744b874"]]);
|
|
20292
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20307
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-0f636c64] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-0f636c64] {\r\n padding: 10px;\n}\n.search-buttons[data-v-0f636c64] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-0f636c64] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-0f636c64] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-0f636c64] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-0f636c64] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-0f636c64] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-0f636c64] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-0f636c64] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-0f636c64] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-0f636c64] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-0f636c64] {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-0f636c64] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-0f636c64] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-0f636c64] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-0f636c64] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-0f636c64] {\r\n color: #969799;\n}\n.search-field[data-v-0f636c64] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
20293
20308
|
const _hoisted_1$1 = {
|
|
20294
20309
|
class: "cascader-selector"
|
|
20295
20310
|
};
|
|
@@ -20377,12 +20392,16 @@ const _sfc_main$2 = {
|
|
|
20377
20392
|
keywordQueryNode();
|
|
20378
20393
|
};
|
|
20379
20394
|
const onBack = () => {
|
|
20380
|
-
|
|
20381
|
-
|
|
20395
|
+
let parentId = "";
|
|
20396
|
+
if (data2.parentNode)
|
|
20397
|
+
parentId = data2.parentNode.parentId;
|
|
20398
|
+
let isReturnParent = false;
|
|
20399
|
+
if (!parentId)
|
|
20400
|
+
isReturnParent = true;
|
|
20382
20401
|
data2.keyword = "";
|
|
20383
20402
|
props.idQueryNode({
|
|
20384
|
-
id:
|
|
20385
|
-
isReturnParent
|
|
20403
|
+
id: parentId,
|
|
20404
|
+
isReturnParent
|
|
20386
20405
|
}, (node) => {
|
|
20387
20406
|
data2.parentNode = node;
|
|
20388
20407
|
});
|
|
@@ -20518,7 +20537,7 @@ const _sfc_main$2 = {
|
|
|
20518
20537
|
};
|
|
20519
20538
|
}
|
|
20520
20539
|
};
|
|
20521
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
20540
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-0f636c64"]]);
|
|
20522
20541
|
const _sfc_main$1 = {
|
|
20523
20542
|
__name: "CascaderPicker",
|
|
20524
20543
|
props: {
|
|
@@ -20630,7 +20649,7 @@ const _sfc_main$1 = {
|
|
|
20630
20649
|
};
|
|
20631
20650
|
}
|
|
20632
20651
|
};
|
|
20633
|
-
var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-
|
|
20652
|
+
var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-210abf3c] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-210abf3c] .van-cell {\n align-items: center;\n}\n.widget[data-v-210abf3c] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-210abf3c] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-210abf3c] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-210abf3c] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-210abf3c] {\n margin: 4px 0;\n}')();
|
|
20634
20653
|
const _hoisted_1 = {
|
|
20635
20654
|
class: "widget"
|
|
20636
20655
|
};
|
|
@@ -20685,8 +20704,8 @@ const _sfc_main = {
|
|
|
20685
20704
|
let one = props.options.find((item) => item.value == modelValue.value);
|
|
20686
20705
|
return one ? one.text : "";
|
|
20687
20706
|
});
|
|
20688
|
-
onMounted(() =>
|
|
20689
|
-
})
|
|
20707
|
+
onMounted(() => {
|
|
20708
|
+
});
|
|
20690
20709
|
const onShow = () => {
|
|
20691
20710
|
if (isReadonly.value || isDisabled.value || isGone.value)
|
|
20692
20711
|
return;
|
|
@@ -20711,14 +20730,14 @@ const _sfc_main = {
|
|
|
20711
20730
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_van_field, {
|
|
20712
20731
|
modelValue: unref(formatLabel),
|
|
20713
20732
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formatLabel) ? formatLabel.value = $event : null),
|
|
20714
|
-
"is-link":
|
|
20733
|
+
"is-link": !unref(isReadonly) && !unref(isDisabled),
|
|
20715
20734
|
label: props.label,
|
|
20716
20735
|
placeholder: props.placeholder,
|
|
20717
20736
|
readonly: "",
|
|
20718
20737
|
required: unref(isRequired),
|
|
20719
20738
|
disabled: unref(isDisabled),
|
|
20720
20739
|
onClick: onShow
|
|
20721
|
-
}, null, 8, ["modelValue", "label", "placeholder", "required", "disabled"]), createVNode(_component_van_popup, {
|
|
20740
|
+
}, null, 8, ["modelValue", "is-link", "label", "placeholder", "required", "disabled"]), createVNode(_component_van_popup, {
|
|
20722
20741
|
show: data2.isShow,
|
|
20723
20742
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
20724
20743
|
"destroy-on-close": "",
|
|
@@ -20735,7 +20754,7 @@ const _sfc_main = {
|
|
|
20735
20754
|
};
|
|
20736
20755
|
}
|
|
20737
20756
|
};
|
|
20738
|
-
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
20757
|
+
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-210abf3c"]]);
|
|
20739
20758
|
const secret_notify = () => {
|
|
20740
20759
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
20741
20760
|
};
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -16147,7 +16147,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16147
16147
|
});
|
|
16148
16148
|
}
|
|
16149
16149
|
}
|
|
16150
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
16150
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-beab1d9e] .label {\n color: #000 !important;\n}\n[data-v-beab1d9e] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16151
16151
|
const _sfc_main$t = {
|
|
16152
16152
|
__name: "Input",
|
|
16153
16153
|
props: {
|
|
@@ -16208,11 +16208,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16208
16208
|
});
|
|
16209
16209
|
return (_ctx, _cache) => {
|
|
16210
16210
|
const _component_van_field = vue.resolveComponent("van-field");
|
|
16211
|
-
return !vue.unref(isGone) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
16211
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [!vue.unref(isGone) && props.type === "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
16212
16212
|
key: 0,
|
|
16213
16213
|
label: props.label,
|
|
16214
16214
|
modelValue: vue.unref(modelValue),
|
|
16215
16215
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
16216
|
+
modelModifiers: {
|
|
16217
|
+
number: true
|
|
16218
|
+
},
|
|
16216
16219
|
disabled: vue.unref(isDisabled),
|
|
16217
16220
|
required: vue.unref(isRequired),
|
|
16218
16221
|
placeholder: props.placeholder,
|
|
@@ -16220,11 +16223,23 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16220
16223
|
rows: props.rows,
|
|
16221
16224
|
autosize: props.autosize,
|
|
16222
16225
|
rules: props.rules
|
|
16223
|
-
}, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true)
|
|
16226
|
+
}, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true), !vue.unref(isGone) && props.type != "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
16227
|
+
key: 1,
|
|
16228
|
+
label: props.label,
|
|
16229
|
+
modelValue: vue.unref(modelValue),
|
|
16230
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
16231
|
+
disabled: vue.unref(isDisabled),
|
|
16232
|
+
required: vue.unref(isRequired),
|
|
16233
|
+
placeholder: props.placeholder,
|
|
16234
|
+
type: props.type,
|
|
16235
|
+
rows: props.rows,
|
|
16236
|
+
autosize: props.autosize,
|
|
16237
|
+
rules: props.rules
|
|
16238
|
+
}, null, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true)], 64);
|
|
16224
16239
|
};
|
|
16225
16240
|
}
|
|
16226
16241
|
};
|
|
16227
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
16242
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-beab1d9e"]]);
|
|
16228
16243
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-24e62c3a] .label {\n color: #000 !important;\n}\n[data-v-24e62c3a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16229
16244
|
const _sfc_main$s = {
|
|
16230
16245
|
__name: "SinglePicker",
|
|
@@ -19567,7 +19582,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19567
19582
|
}
|
|
19568
19583
|
};
|
|
19569
19584
|
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-58929b5a"]]);
|
|
19570
|
-
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-
|
|
19585
|
+
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-107e26c3] {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: space-around;\r\n padding: 20px;\r\n background: linear-gradient(to right, #4a90e2, #87ceeb);\r\n border-radius: 10px;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n.user-avatar[data-v-107e26c3] {\r\n margin-bottom: 15px;\n}\n.user-info[data-v-107e26c3] {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n margin-bottom: 15px;\n.user-info-item[data-v-107e26c3] {\r\n font-size: 16px;\r\n line-height: 22px;\r\n color: #fff;\r\n text-align: center;\r\n padding: 0 3px;\n}\n}\n.space[data-v-107e26c3] {\r\n min-height: 10px;\r\n flex: 1;\n}\r\n\r\n /* \u6DFB\u52A0\u9000\u51FA\u6309\u94AE\u6837\u5F0F */\n.logout-button[data-v-107e26c3] {\r\n width: 70px;\r\n height: 30px;\r\n position: absolute;\r\n top: 20px;\r\n right: 20px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n color: white;\r\n border: none;\r\n border-radius: 15px;\r\n padding: 5px 15px;\r\n cursor: pointer;\r\n font-size: 14px;\r\n transition: background-color 0.3s;\n}\n.logout-button[data-v-107e26c3]:hover {\r\n background-color: rgba(255, 255, 255, 0.4);\n}\n.user-jobs[data-v-107e26c3] {\r\n display: flex;\r\n justify-content: center;\r\n gap: 15px;\r\n width: 100%;\r\n max-width: 300px;\n.job-item[data-v-107e26c3] {\r\n padding: 5px 10px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n border-radius: 20px;\r\n font-size: 12px;\r\n color: #fff;\n}\n}\n}\r\n")();
|
|
19571
19586
|
const _hoisted_1$5 = {
|
|
19572
19587
|
class: "widget"
|
|
19573
19588
|
};
|
|
@@ -19646,7 +19661,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19646
19661
|
};
|
|
19647
19662
|
}
|
|
19648
19663
|
};
|
|
19649
|
-
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
19664
|
+
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-107e26c3"]]);
|
|
19650
19665
|
var BillCard_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-68bdd6bc] {\n background-color: white;\n border-radius: 8px;\n box-shadow: var(--van-dropdown-menu-shadow);\n color: 14px;\n}\n.widget .card-box[data-v-68bdd6bc] {\n padding-bottom: 8px;\n}\n.widget .card-box .card-header[data-v-68bdd6bc] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 15px 10px;\n border-bottom: 1px solid #eee;\n}\n.widget .card-box .card-header .card-sum[data-v-68bdd6bc] {\n flex: 1;\n font-size: 14px;\n text-align: left;\n}\n.widget .card-box .card-header .user-state[data-v-68bdd6bc] {\n margin-right: 1px;\n}\n[data-v-68bdd6bc] .van-cell__value {\n flex: 2 !important;\n}\n[data-v-68bdd6bc] .van-cell__title {\n font-size: 12px !important;\n color: #666 !important;\n text-align: left !important;\n}\n[data-v-68bdd6bc] .van-cell__value {\n font-size: 12px !important;\n color: #888 !important;\n}\n[data-v-68bdd6bc] .van-cell {\n padding: 2px 10px !important;\n}")();
|
|
19651
19666
|
const _hoisted_1$4 = {
|
|
19652
19667
|
class: "widget"
|
|
@@ -20292,7 +20307,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20292
20307
|
}
|
|
20293
20308
|
};
|
|
20294
20309
|
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6744b874"]]);
|
|
20295
|
-
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-
|
|
20310
|
+
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-0f636c64] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-0f636c64] {\r\n padding: 10px;\n}\n.search-buttons[data-v-0f636c64] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-0f636c64] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-0f636c64] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-0f636c64] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-0f636c64] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-0f636c64] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-0f636c64] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-0f636c64] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-0f636c64] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-0f636c64] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-0f636c64] {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-0f636c64] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-0f636c64] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-0f636c64] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-0f636c64] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-0f636c64] {\r\n color: #969799;\n}\n.search-field[data-v-0f636c64] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
20296
20311
|
const _hoisted_1$1 = {
|
|
20297
20312
|
class: "cascader-selector"
|
|
20298
20313
|
};
|
|
@@ -20380,12 +20395,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20380
20395
|
keywordQueryNode();
|
|
20381
20396
|
};
|
|
20382
20397
|
const onBack = () => {
|
|
20383
|
-
|
|
20384
|
-
|
|
20398
|
+
let parentId = "";
|
|
20399
|
+
if (data2.parentNode)
|
|
20400
|
+
parentId = data2.parentNode.parentId;
|
|
20401
|
+
let isReturnParent = false;
|
|
20402
|
+
if (!parentId)
|
|
20403
|
+
isReturnParent = true;
|
|
20385
20404
|
data2.keyword = "";
|
|
20386
20405
|
props.idQueryNode({
|
|
20387
|
-
id:
|
|
20388
|
-
isReturnParent
|
|
20406
|
+
id: parentId,
|
|
20407
|
+
isReturnParent
|
|
20389
20408
|
}, (node) => {
|
|
20390
20409
|
data2.parentNode = node;
|
|
20391
20410
|
});
|
|
@@ -20521,7 +20540,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20521
20540
|
};
|
|
20522
20541
|
}
|
|
20523
20542
|
};
|
|
20524
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
20543
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-0f636c64"]]);
|
|
20525
20544
|
const _sfc_main$1 = {
|
|
20526
20545
|
__name: "CascaderPicker",
|
|
20527
20546
|
props: {
|
|
@@ -20633,7 +20652,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20633
20652
|
};
|
|
20634
20653
|
}
|
|
20635
20654
|
};
|
|
20636
|
-
var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-
|
|
20655
|
+
var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-210abf3c] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-210abf3c] .van-cell {\n align-items: center;\n}\n.widget[data-v-210abf3c] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-210abf3c] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-210abf3c] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-210abf3c] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-210abf3c] {\n margin: 4px 0;\n}')();
|
|
20637
20656
|
const _hoisted_1 = {
|
|
20638
20657
|
class: "widget"
|
|
20639
20658
|
};
|
|
@@ -20688,8 +20707,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20688
20707
|
let one = props.options.find((item) => item.value == modelValue.value);
|
|
20689
20708
|
return one ? one.text : "";
|
|
20690
20709
|
});
|
|
20691
|
-
vue.onMounted(() =>
|
|
20692
|
-
})
|
|
20710
|
+
vue.onMounted(() => {
|
|
20711
|
+
});
|
|
20693
20712
|
const onShow = () => {
|
|
20694
20713
|
if (isReadonly.value || isDisabled.value || isGone.value)
|
|
20695
20714
|
return;
|
|
@@ -20714,14 +20733,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20714
20733
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [vue.createVNode(_component_van_field, {
|
|
20715
20734
|
modelValue: vue.unref(formatLabel),
|
|
20716
20735
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(formatLabel) ? formatLabel.value = $event : null),
|
|
20717
|
-
"is-link":
|
|
20736
|
+
"is-link": !vue.unref(isReadonly) && !vue.unref(isDisabled),
|
|
20718
20737
|
label: props.label,
|
|
20719
20738
|
placeholder: props.placeholder,
|
|
20720
20739
|
readonly: "",
|
|
20721
20740
|
required: vue.unref(isRequired),
|
|
20722
20741
|
disabled: vue.unref(isDisabled),
|
|
20723
20742
|
onClick: onShow
|
|
20724
|
-
}, null, 8, ["modelValue", "label", "placeholder", "required", "disabled"]), vue.createVNode(_component_van_popup, {
|
|
20743
|
+
}, null, 8, ["modelValue", "is-link", "label", "placeholder", "required", "disabled"]), vue.createVNode(_component_van_popup, {
|
|
20725
20744
|
show: data2.isShow,
|
|
20726
20745
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
20727
20746
|
"destroy-on-close": "",
|
|
@@ -20738,7 +20757,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20738
20757
|
};
|
|
20739
20758
|
}
|
|
20740
20759
|
};
|
|
20741
|
-
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
20760
|
+
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-210abf3c"]]);
|
|
20742
20761
|
const secret_notify = () => {
|
|
20743
20762
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
20744
20763
|
};
|
package/package.json
CHANGED
|
@@ -117,11 +117,16 @@ const onSearch = () => {
|
|
|
117
117
|
|
|
118
118
|
// 返回上一级
|
|
119
119
|
const onBack = () => {
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
let parentId = ''
|
|
121
|
+
if(data.parentNode)
|
|
122
|
+
parentId = data.parentNode.parentId
|
|
123
|
+
|
|
124
|
+
let isReturnParent = false
|
|
125
|
+
if(!parentId)
|
|
126
|
+
isReturnParent = true
|
|
122
127
|
|
|
123
128
|
data.keyword = ""
|
|
124
|
-
props.idQueryNode({ id:
|
|
129
|
+
props.idQueryNode({ id: parentId, isReturnParent: isReturnParent }, (node) => {
|
|
125
130
|
data.parentNode = node
|
|
126
131
|
})
|
|
127
132
|
}
|
package/src/components/Input.vue
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<van-field :label="props.label" v-model="modelValue" v-if="!isGone" :disabled="isDisabled" :required="isRequired"
|
|
2
|
+
<van-field :label="props.label" v-model.number="modelValue" v-if="!isGone && props.type==='number'" :disabled="isDisabled" :required="isRequired"
|
|
3
|
+
:placeholder="props.placeholder" :type="props.type" :rows="props.rows" :autosize="props.autosize" :rules="props.rules"/>
|
|
4
|
+
<van-field :label="props.label" v-model="modelValue" v-if="!isGone && props.type!='number'" :disabled="isDisabled" :required="isRequired"
|
|
3
5
|
:placeholder="props.placeholder" :type="props.type" :rows="props.rows" :autosize="props.autosize" :rules="props.rules"/>
|
|
4
6
|
</template>
|
|
5
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="widget">
|
|
3
|
-
<van-field v-model="formatLabel" is-link :label="props.label" :placeholder="props.placeholder" readonly
|
|
3
|
+
<van-field v-model="formatLabel" :is-link="!isReadonly && !isDisabled" :label="props.label" :placeholder="props.placeholder" readonly
|
|
4
4
|
:required="isRequired" :disabled="isDisabled" @click="onShow" />
|
|
5
5
|
<van-popup v-model:show="data.isShow" destroy-on-close round position="bottom">
|
|
6
6
|
<van-picker :columns="props.options" @cancel="onCancel" @confirm="onConfirm" />
|
|
@@ -55,7 +55,7 @@ const formatLabel = computed(() => {
|
|
|
55
55
|
return one ? one.text : ''
|
|
56
56
|
})
|
|
57
57
|
|
|
58
|
-
onMounted(
|
|
58
|
+
onMounted(() => {
|
|
59
59
|
})
|
|
60
60
|
|
|
61
61
|
const onShow=()=>{
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|