@yqg/permission 1.3.8-bate.1 → 1.3.8-bate.2
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/{apply-modal-N4GHHoip.js → apply-modal-vNbmgdPR.js} +4 -4
- package/dist/{category-selector-CUQM_UkK.js → category-selector-B2yEMLYM.js} +63 -63
- package/dist/{index-CK0baIJ8.js → index-DcRMlXfi.js} +1 -1
- package/dist/{index-BG_UX-xg.js → index-r4_L4Wy-.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{permission-item-DoRp9bUn.js → permission-item-CT0UwVta.js} +4 -4
- package/dist/{yqg-permission-DnNXofuh.js → yqg-permission-8e7RGZ5e.js} +2 -2
- package/dist/yqg-permission.umd.js +7 -7
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/category-selector.vue +4 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -34,7 +34,7 @@ const changeLocale = () => {
|
|
|
34
34
|
<!-- 02124 -->
|
|
35
35
|
<!-- 05184 -->
|
|
36
36
|
<yqg-permission :permissions="permissions" workNumber="03817" :color="color" :locale="locale"
|
|
37
|
-
:omitCategoryIds="[
|
|
37
|
+
:omitCategoryIds="[]" @onSuccess="() => {console.log('成功')}">
|
|
38
38
|
</yqg-permission>
|
|
39
39
|
</div>
|
|
40
40
|
<data class="case-card">
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<span v-else>{{ attributeName }}</span>
|
|
20
20
|
</template>
|
|
21
21
|
</TreeSelect>
|
|
22
|
-
<span v-if="item.attributeValueIds_view?.includes(
|
|
22
|
+
<span v-if="item.attributeValueIds_view?.includes(ALL_CATEGORY_ID)" style="color: #ff4d4f; font-size: 12px;">
|
|
23
23
|
{{ t('categoryChangeTips', { category: item.categoryName }) }}
|
|
24
24
|
</span>
|
|
25
25
|
</FormItem>
|
|
@@ -36,8 +36,11 @@ import {
|
|
|
36
36
|
import { defineProps, PropType, ref, computed, defineExpose } from 'vue';
|
|
37
37
|
import t from '../utils';
|
|
38
38
|
import useAttributesCache from '../hooks/useAttributesCache';
|
|
39
|
+
|
|
39
40
|
const SHOW_PARENT = TreeSelect.SHOW_PARENT;
|
|
40
41
|
|
|
42
|
+
const ALL_CATEGORY_ID = -1;
|
|
43
|
+
|
|
41
44
|
const props = defineProps({
|
|
42
45
|
categoryList: {
|
|
43
46
|
type: Array as PropType<CategoryType[]>,
|