qtsk-vue3 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ import { ElLoading } from 'element-plus'
2
+
3
+ export const Loading = ElLoading
@@ -5,7 +5,7 @@
5
5
  v-bind="$attrs"
6
6
  :teleported="false"
7
7
  :no-data-text="'暂无数据项'"
8
- clearable
8
+ :clearable="clearable"
9
9
  >
10
10
  <el-option v-for="item in options" :key="item[valueName]" :label="item[keyName]" :value="item[valueName]">
11
11
  <div v-if="item.icon" style="display: flex;align-items: center;justify-content: space-between;">
@@ -39,6 +39,10 @@ defineProps({
39
39
  valueName: {
40
40
  type: String,
41
41
  default: 'value'
42
+ },
43
+ clearable: {
44
+ type: Boolean,
45
+ default: true
42
46
  }
43
47
  })
44
48
  const selectValue = defineModel('modelValue', { default: '', type: [Number, String, Array] })
package/package/index.js CHANGED
@@ -1,24 +1,23 @@
1
- import Components from './component'
2
- import { Message, MessageBox } from './components/Message'
3
-
4
- const makeInstaller = (components = [], directives = []) => {
5
- const apps = []
6
- const install = (app, opts) => {
7
- const option = opts
8
- if (apps.includes(app)) return
9
- apps.push(app)
10
- components.forEach((c) => {
11
- app.component(c.name, c)
12
- })
13
- app.config.globalProperties.$ELEMENT = option
14
- }
15
- return install
16
- }
17
-
18
- const install = makeInstaller(Components)
19
-
20
- export { Message, MessageBox, install, install as default }
21
-
22
- console.info('%c====== Editing in local package ======', 'font-size:16px;color:pink;')
1
+ import Components from './component'
2
+ import { Message, MessageBox } from './components/Message'
3
+ import { Loading } from './components/Loading'
23
4
 
24
-
5
+ const makeInstaller = (components = [], directives = []) => {
6
+ const apps = []
7
+ const install = (app, opts) => {
8
+ const option = opts
9
+ if (apps.includes(app)) return
10
+ apps.push(app)
11
+ components.forEach((c) => {
12
+ app.component(c.name, c)
13
+ })
14
+ app.config.globalProperties.$ELEMENT = option
15
+ }
16
+ return install
17
+ }
18
+
19
+ const install = makeInstaller(Components)
20
+
21
+ export { Message, MessageBox, Loading, install, install as default }
22
+
23
+ console.info('%c====== Editing in local package ======', 'font-size:16px;color:pink;')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qtsk-vue3",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "vue3版组件库",
5
5
  "main": "./package/index.js",
6
6
  "scripts": {