@yqg/permission 1.3.1-alpha.2 → 1.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yqg/permission",
3
- "version": "1.3.1-alpha.2",
3
+ "version": "1.3.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
package/src/App.vue CHANGED
@@ -9,6 +9,7 @@ const color = ref<string>('#1677ff');
9
9
  const locale = ref<LocaleType>('zh-CN');
10
10
 
11
11
  const permissions = reactive([
12
+ 'yewei0313.REAQS.DEPAWED_ANQ2.QUERY',
12
13
  ]);
13
14
  // const permissions = reactive(['CRANE.BUSINESS.QUERY', 'RANE.BUSINESS.CREATE', 'CRANE.BUSINESS.UPDATE', 'CRANE.BUSINESS.DELETE']);
14
15
  const changeColor = () => {
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
  <template #title>
8
8
  <span>{{ t('permissionApply') }}</span>
9
- <span v-show="isAllChecked" class="crane-permission-title-tips">{{ t('isAllOwnTips') }}</span>
9
+ <span v-show="isAllChecked && permissionList.length" class="crane-permission-title-tips">{{ t('isAllOwnTips') }}</span>
10
10
  </template>
11
11
  <Form ref="formRef" :model="formState" :labelCol="{ span: 4 }" :wrapperCol="{ span: 19 }">
12
12
  <FormItem :label="t('applyPermission')" name="features"
@@ -34,7 +34,7 @@
34
34
 
35
35
  <Popover v-if="item.relatedCompleteNames?.length">
36
36
  <template #content>
37
- <div style="max-width: 400px;">
37
+ <div class="crane-department-wraper">
38
38
  <div>
39
39
  {{ t('adaptDepartment') }}:
40
40
  </div>
@@ -146,6 +146,11 @@ const onChangeTimeHandler = () => {
146
146
 
147
147
  </script>
148
148
  <style scoped>
149
+ .crane-department-wraper {
150
+ max-width: 600px;
151
+ max-height: 300px;
152
+ overflow-y: scroll;
153
+ }
149
154
  .crane-flex-center {
150
155
  display: flex;
151
156
  align-items: center;