widget.qw 1.0.23 → 1.0.24

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.
Files changed (99) hide show
  1. package/.env.development +9 -9
  2. package/.env.production +8 -8
  3. package/README.md +73 -73
  4. package/build/style.css +482 -468
  5. package/build/widget.qw.es.js +2373 -1631
  6. package/build/widget.qw.umd.js +2282 -1540
  7. package/index.html +17 -17
  8. package/package.json +47 -47
  9. package/src/App.vue +26 -26
  10. package/src/api/index.js +141 -141
  11. package/src/components/AuditBar.vue +340 -340
  12. package/src/components/BillCard.vue +155 -155
  13. package/src/components/CascaderPicker.vue +87 -87
  14. package/src/components/CascaderPop.vue +330 -330
  15. package/src/components/CheckGroup.vue +113 -113
  16. package/src/components/DatetimePicker/DatetimePop.vue +342 -342
  17. package/src/components/DatetimePicker/index.vue +112 -112
  18. package/src/components/DayDropdown.vue +56 -56
  19. package/src/components/FilePicker.vue +113 -113
  20. package/src/components/Input.vue +71 -71
  21. package/src/components/MonthDropdown.vue +51 -51
  22. package/src/components/MultiPicker.vue +123 -123
  23. package/src/components/SecretNotify.js +5 -5
  24. package/src/components/Sheet.vue +92 -92
  25. package/src/components/SingleApiPicker.vue +112 -112
  26. package/src/components/SinglePicker.vue +102 -102
  27. package/src/components/SingleUserSelector.vue +425 -425
  28. package/src/components/Switch.vue +64 -64
  29. package/src/components/TreePicker.vue +113 -113
  30. package/src/components/UserPicker.vue +106 -106
  31. package/src/components/UserProfile.vue +131 -128
  32. package/src/components/UsersPicker.vue +118 -118
  33. package/src/components/YearDropdown.vue +59 -59
  34. package/src/components/data_selector.vue +280 -280
  35. package/src/components/image_picker.vue +114 -114
  36. package/src/components/images_picker.vue +139 -139
  37. package/src/components/index.js +157 -157
  38. package/src/components/mult_list_selector.vue +155 -155
  39. package/src/components/subdepartment_selector.vue +481 -481
  40. package/src/components/user_selector.vue +639 -639
  41. package/src/components/widget/DataPop.vue +95 -95
  42. package/src/components/widget/TreePop.vue +88 -88
  43. package/src/components/widget/UserPop.vue +347 -347
  44. package/src/main.js +117 -117
  45. package/src/router/index.ts +168 -168
  46. package/src/util/array_util.js +32 -32
  47. package/src/util/auth_util.js +72 -72
  48. package/src/util/bool_util.js +5 -5
  49. package/src/util/bus.js +1 -1
  50. package/src/util/cache_util.js +18 -18
  51. package/src/util/errer_code.js +6 -6
  52. package/src/util/eval_util.js +19 -19
  53. package/src/util/icon_util.js +36 -36
  54. package/src/util/image_util.js +27 -27
  55. package/src/util/index.js +55 -55
  56. package/src/util/num_util.js +70 -70
  57. package/src/util/obj_util.js +28 -28
  58. package/src/util/request.js +73 -73
  59. package/src/util/request_json.js +71 -71
  60. package/src/util/request_json_mute.js +65 -65
  61. package/src/util/request_upload.js +79 -79
  62. package/src/util/route_util.js +31 -31
  63. package/src/util/str_util.js +143 -143
  64. package/src/util/time_util.js +406 -406
  65. package/src/util/toast_util.js +24 -24
  66. package/src/util/tree_util.js +153 -153
  67. package/src/util/validate.js +182 -182
  68. package/src/util/vue_filter.js +223 -223
  69. package/src/views/auditbar/index.vue +65 -65
  70. package/src/views/billcard/index.vue +45 -45
  71. package/src/views/cascaderpop/index.vue +90 -90
  72. package/src/views/checkgroup/index.vue +35 -35
  73. package/src/views/dataSelector/index.vue +48 -48
  74. package/src/views/datetimepicker/index.vue +34 -34
  75. package/src/views/daydropdown/index.vue +31 -31
  76. package/src/views/filepicker/index.vue +31 -31
  77. package/src/views/imagepicker/index.vue +31 -31
  78. package/src/views/imagespicker/index.vue +31 -31
  79. package/src/views/input/index.vue +34 -34
  80. package/src/views/monthdropdown/index.vue +31 -31
  81. package/src/views/multListSelector/index.vue +61 -61
  82. package/src/views/multipicker/index.vue +36 -36
  83. package/src/views/productSelector/index.vue +35 -35
  84. package/src/views/projectdropdown/index.vue +31 -31
  85. package/src/views/projectpicker/index.vue +41 -41
  86. package/src/views/secretnotify/index.vue +27 -27
  87. package/src/views/sheet/index.vue +45 -45
  88. package/src/views/singlepicker/index.vue +35 -35
  89. package/src/views/subdepartmentSelector/index.vue +40 -40
  90. package/src/views/switch/index.vue +34 -34
  91. package/src/views/treepicker/index.vue +41 -41
  92. package/src/views/userSelector/index.vue +54 -54
  93. package/src/views/userSelectorNew/index.vue +45 -45
  94. package/src/views/userpicker/index.vue +43 -43
  95. package/src/views/userprofile/index.vue +30 -30
  96. package/src/views/userspicker/index.vue +43 -43
  97. package/src/views/yeardropdown/index.vue +32 -32
  98. package/src/vm/index.js +1 -1
  99. package/vite.config.ts +122 -122
@@ -1,96 +1,96 @@
1
- <template>
2
- <!-- 数据选择弹出层 -->
3
- <van-popup v-model:show="show" position="bottom" class="popup-box">
4
- <!-- 全选 -->
5
- <div class="select-all-container">
6
- <van-checkbox shape="square" v-model="data.isAllChecked" @click="onToggleAll"
7
- label-position="left">全选</van-checkbox>
8
- </div>
9
- <!-- 数据列表 -->
10
- <div class="checkbox-list">
11
- <van-checkbox-group v-model="modelValue" direction="vertical">
12
- <van-checkbox style="padding:5px 0;" v-for="(option, i) in props.options" :key="i" :name="option.code"
13
- shape="square">{{ option.title }}</van-checkbox>
14
- </van-checkbox-group>
15
- </div>
16
- </van-popup>
17
- </template>
18
-
19
- <script setup>
20
- import { onMounted, ref, reactive, onBeforeUpdate, computed, nextTick, watch } from "vue"
21
- import { useVModel } from "@vueuse/core";
22
-
23
- const props = defineProps({
24
- show: {
25
- type: Boolean,
26
- default: false,
27
- },
28
- options: {
29
- type: Array,
30
- default: []
31
- },
32
- modelValue: {
33
- type: Array,
34
- default: []
35
- }
36
- });
37
-
38
- const data = reactive({
39
- isAllChecked: false,
40
- })
41
- // 定义emit
42
- const emit = defineEmits(["update:show", "update:modelValue"]);
43
- // 弹出?
44
- const show = useVModel(props, 'show', emit)
45
- // 选中的code列表
46
- const modelValue = useVModel(props, 'modelValue', emit)
47
-
48
- onMounted(async () => {
49
-
50
- });
51
-
52
- const onToggleAll = () => {
53
- if (data.isAllChecked) {
54
- modelValue.value = props.options.map(item => {
55
- return item.code
56
- })
57
- } else {
58
- modelValue.value = [];
59
- }
60
- };
61
- </script>
62
-
63
- <style scoped>
64
- .popup-box {
65
- min-height: 20vh;
66
- max-height: 40vh;
67
- overflow-y: auto;
68
-
69
- .checkbox-list {
70
- padding: 15px 25px;
71
-
72
- :deep(.van-checkbox__label) {
73
- flex: 1;
74
- text-align: right;
75
- }
76
- }
77
- }
78
-
79
- .select-all-container {
80
- font-size: 14px;
81
- padding: 15px 25px 0 15px;
82
- margin: 10px 0;
83
- display: flex;
84
- justify-content: flex-end;
85
- align-items: center;
86
- }
87
-
88
- .select-all-container .van-checkbox {
89
- margin-left: auto;
90
- }
91
-
92
- /* 新增:调整方形复选框的边距 */
93
- .van-checkbox--square {
94
- margin-left: 8px;
95
- }
1
+ <template>
2
+ <!-- 数据选择弹出层 -->
3
+ <van-popup v-model:show="show" position="bottom" class="popup-box">
4
+ <!-- 全选 -->
5
+ <div class="select-all-container">
6
+ <van-checkbox shape="square" v-model="data.isAllChecked" @click="onToggleAll"
7
+ label-position="left">全选</van-checkbox>
8
+ </div>
9
+ <!-- 数据列表 -->
10
+ <div class="checkbox-list">
11
+ <van-checkbox-group v-model="modelValue" direction="vertical">
12
+ <van-checkbox style="padding:5px 0;" v-for="(option, i) in props.options" :key="i" :name="option.code"
13
+ shape="square">{{ option.title }}</van-checkbox>
14
+ </van-checkbox-group>
15
+ </div>
16
+ </van-popup>
17
+ </template>
18
+
19
+ <script setup>
20
+ import { onMounted, ref, reactive, onBeforeUpdate, computed, nextTick, watch } from "vue"
21
+ import { useVModel } from "@vueuse/core";
22
+
23
+ const props = defineProps({
24
+ show: {
25
+ type: Boolean,
26
+ default: false,
27
+ },
28
+ options: {
29
+ type: Array,
30
+ default: []
31
+ },
32
+ modelValue: {
33
+ type: Array,
34
+ default: []
35
+ }
36
+ });
37
+
38
+ const data = reactive({
39
+ isAllChecked: false,
40
+ })
41
+ // 定义emit
42
+ const emit = defineEmits(["update:show", "update:modelValue"]);
43
+ // 弹出?
44
+ const show = useVModel(props, 'show', emit)
45
+ // 选中的code列表
46
+ const modelValue = useVModel(props, 'modelValue', emit)
47
+
48
+ onMounted(async () => {
49
+
50
+ });
51
+
52
+ const onToggleAll = () => {
53
+ if (data.isAllChecked) {
54
+ modelValue.value = props.options.map(item => {
55
+ return item.code
56
+ })
57
+ } else {
58
+ modelValue.value = [];
59
+ }
60
+ };
61
+ </script>
62
+
63
+ <style scoped>
64
+ .popup-box {
65
+ min-height: 20vh;
66
+ max-height: 40vh;
67
+ overflow-y: auto;
68
+
69
+ .checkbox-list {
70
+ padding: 15px 25px;
71
+
72
+ :deep(.van-checkbox__label) {
73
+ flex: 1;
74
+ text-align: right;
75
+ }
76
+ }
77
+ }
78
+
79
+ .select-all-container {
80
+ font-size: 14px;
81
+ padding: 15px 25px 0 15px;
82
+ margin: 10px 0;
83
+ display: flex;
84
+ justify-content: flex-end;
85
+ align-items: center;
86
+ }
87
+
88
+ .select-all-container .van-checkbox {
89
+ margin-left: auto;
90
+ }
91
+
92
+ /* 新增:调整方形复选框的边距 */
93
+ .van-checkbox--square {
94
+ margin-left: 8px;
95
+ }
96
96
  </style>
@@ -1,89 +1,89 @@
1
- <template>
2
- <!-- 数据选择弹出层 -->
3
- <van-popup v-model:show="show" position="bottom" class="popup-box">
4
- <van-tree-select
5
- v-model:active-id="modelValue"
6
- v-model:main-active-index="data.activeIndex"
7
- :items="options"
8
- />
9
- </van-popup>
10
- </template>
11
-
12
- <script setup>
13
- import { onMounted, ref, reactive, onBeforeUpdate, computed, nextTick, watch } from "vue"
14
- import { useVModel } from "@vueuse/core";
15
-
16
- const props = defineProps({
17
- show: {
18
- type: Boolean,
19
- default: false,
20
- },
21
- options: {
22
- type: Array,
23
- default: []
24
- },
25
- modelValue: {
26
- type: Array,
27
- default: []
28
- }
29
- });
30
-
31
- const data = reactive({
32
- activeIndex: 0,
33
- })
34
- // 定义emit
35
- const emit = defineEmits(["update:show", "update:modelValue"]);
36
- // 弹出?
37
- const show = useVModel(props, 'show', emit)
38
- // 选中的code列表
39
- const modelValue = useVModel(props, 'modelValue', emit)
40
-
41
- onMounted(async () => {
42
-
43
- });
44
-
45
- const onToggleAll = () => {
46
- if (data.isAllChecked) {
47
- modelValue.value = props.options.map(item => {
48
- return item.code
49
- })
50
- } else {
51
- modelValue.value = [];
52
- }
53
- };
54
- </script>
55
-
56
- <style scoped>
57
- .popup-box {
58
- min-height: 20vh;
59
- max-height: 40vh;
60
- overflow-y: auto;
61
-
62
- .checkbox-list {
63
- padding: 15px 25px;
64
-
65
- :deep(.van-checkbox__label) {
66
- flex: 1;
67
- text-align: right;
68
- }
69
- }
70
- }
71
-
72
- .select-all-container {
73
- font-size: 14px;
74
- padding: 15px 25px 0 15px;
75
- margin: 10px 0;
76
- display: flex;
77
- justify-content: flex-end;
78
- align-items: center;
79
- }
80
-
81
- .select-all-container .van-checkbox {
82
- margin-left: auto;
83
- }
84
-
85
- /* 新增:调整方形复选框的边距 */
86
- .van-checkbox--square {
87
- margin-left: 8px;
88
- }
1
+ <template>
2
+ <!-- 数据选择弹出层 -->
3
+ <van-popup v-model:show="show" position="bottom" class="popup-box">
4
+ <van-tree-select
5
+ v-model:active-id="modelValue"
6
+ v-model:main-active-index="data.activeIndex"
7
+ :items="options"
8
+ />
9
+ </van-popup>
10
+ </template>
11
+
12
+ <script setup>
13
+ import { onMounted, ref, reactive, onBeforeUpdate, computed, nextTick, watch } from "vue"
14
+ import { useVModel } from "@vueuse/core";
15
+
16
+ const props = defineProps({
17
+ show: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
21
+ options: {
22
+ type: Array,
23
+ default: []
24
+ },
25
+ modelValue: {
26
+ type: Array,
27
+ default: []
28
+ }
29
+ });
30
+
31
+ const data = reactive({
32
+ activeIndex: 0,
33
+ })
34
+ // 定义emit
35
+ const emit = defineEmits(["update:show", "update:modelValue"]);
36
+ // 弹出?
37
+ const show = useVModel(props, 'show', emit)
38
+ // 选中的code列表
39
+ const modelValue = useVModel(props, 'modelValue', emit)
40
+
41
+ onMounted(async () => {
42
+
43
+ });
44
+
45
+ const onToggleAll = () => {
46
+ if (data.isAllChecked) {
47
+ modelValue.value = props.options.map(item => {
48
+ return item.code
49
+ })
50
+ } else {
51
+ modelValue.value = [];
52
+ }
53
+ };
54
+ </script>
55
+
56
+ <style scoped>
57
+ .popup-box {
58
+ min-height: 20vh;
59
+ max-height: 40vh;
60
+ overflow-y: auto;
61
+
62
+ .checkbox-list {
63
+ padding: 15px 25px;
64
+
65
+ :deep(.van-checkbox__label) {
66
+ flex: 1;
67
+ text-align: right;
68
+ }
69
+ }
70
+ }
71
+
72
+ .select-all-container {
73
+ font-size: 14px;
74
+ padding: 15px 25px 0 15px;
75
+ margin: 10px 0;
76
+ display: flex;
77
+ justify-content: flex-end;
78
+ align-items: center;
79
+ }
80
+
81
+ .select-all-container .van-checkbox {
82
+ margin-left: auto;
83
+ }
84
+
85
+ /* 新增:调整方形复选框的边距 */
86
+ .van-checkbox--square {
87
+ margin-left: 8px;
88
+ }
89
89
  </style>