@elementplus-kit/uikit 1.0.0 → 1.0.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.
Files changed (37) hide show
  1. package/aaaindex.ts +55 -0
  2. package/components/config.ts +4 -0
  3. package/components/dialog/index.ts +5 -4
  4. package/components/dialog/src/index.ts +12 -4
  5. package/components/drawer/index.ts +3 -4
  6. package/components/drawer/src/index.ts +10 -3
  7. package/components/form/index.ts +4 -8
  8. package/components/form/src/FormItem.ts +3 -3
  9. package/components/form/src/index.ts +3 -2
  10. package/components/index.ts +41 -0
  11. package/components/pagination/index.ts +4 -5
  12. package/components/pagination/src/index.ts +10 -3
  13. package/components/search/index.ts +4 -56
  14. package/components/search/src/index-/346/272/220.vue +256 -0
  15. package/components/search/src/index.tsx +172 -0
  16. package/components/search/style/index.scss +93 -0
  17. package/components/table/index.ts +4 -7
  18. package/components/table/src/TableColumn.ts +116 -0
  19. package/components/table/src/index.ts +207 -8
  20. package/components/table/src/index2.ts +219 -0
  21. package/components/table/src/index3.ts +233 -0
  22. package/components/table2/index.ts +3 -4
  23. package/components/table2/src/index.ts +9 -202
  24. package/components/{table → table2}/src/types.ts +39 -39
  25. package/components//346/250/241/346/235/277/ttt.ts +3 -2
  26. package/components//346/250/241/346/235/277/ttt.vue +18 -0
  27. package/index.ts +2 -0
  28. package/package.json +17 -18
  29. package/aaaindex.js +0 -18
  30. package/components/index.js +0 -50
  31. /package/components/{table2 → table}/src/constants.ts +0 -0
  32. /package/components/{table2 → table}/src/tableaa.ts +0 -0
  33. /package/components/{table2 → table}/src/type.ts +0 -0
  34. /package/components/table/{style → type}/index.scss +0 -0
  35. /package/components/{table → table2}/src/config.ts +0 -0
  36. /package/components/{table → table2}/src/render.ts +0 -0
  37. /package/components/table2/{type → style}/index.scss +0 -0
@@ -1,39 +1,39 @@
1
- export interface FormItemListItem {
2
- type: string
3
- label?: string
4
- prop: string
5
- required?: Boolean
6
- vIf?: boolean | ((item: FormItemListItem) => boolean)
7
- dictType?: string
8
- options?: Array<Object>
9
- col?: Number
10
- formItem?: Object
11
- attrs?: Object
12
- }
13
-
14
- export interface FormItemList {
15
- module: Object
16
- formOpsions: FormItemListItem[]
17
- readonly: boolean
18
- }
19
-
20
- export type formType =
21
- | 'input'
22
- | 'textarea'
23
- | 'input-number'
24
- | 'select'
25
- | 'select-v2'
26
- | 'cascader'
27
- | 'tree-select'
28
- | 'radio'
29
- | 'checkbox'
30
- | 'time-select'
31
- | 'date-picker'
32
- | 'time-picker'
33
- | 'rate'
34
- | 'color-picker'
35
- | 'slider'
36
- | 'switch'
37
- | 'text'
38
- | 'html'
39
- | 'slot'
1
+ export interface FormItemListItem {
2
+ type: string
3
+ label?: string
4
+ prop: string
5
+ required?: Boolean
6
+ vIf?: boolean | ((item: FormItemListItem) => boolean)
7
+ dictType?: string
8
+ options?: Array<Object>
9
+ col?: Number
10
+ formItem?: Object
11
+ attrs?: Object
12
+ }
13
+
14
+ export interface FormItemList {
15
+ module: Object
16
+ formOpsions: FormItemListItem[]
17
+ readonly: boolean
18
+ }
19
+
20
+ export type formType =
21
+ | 'input'
22
+ | 'textarea'
23
+ | 'input-number'
24
+ | 'select'
25
+ | 'select-v2'
26
+ | 'cascader'
27
+ | 'tree-select'
28
+ | 'radio'
29
+ | 'checkbox'
30
+ | 'time-select'
31
+ | 'date-picker'
32
+ | 'time-picker'
33
+ | 'rate'
34
+ | 'color-picker'
35
+ | 'slider'
36
+ | 'switch'
37
+ | 'text'
38
+ | 'html'
39
+ | 'slot'
@@ -5,6 +5,7 @@ import {
5
5
  toRefs,
6
6
  getCurrentInstance,
7
7
  provide,
8
+ defineComponent,
8
9
  type ExtractPropTypes,
9
10
  type PropType,
10
11
  } from 'vue'
@@ -22,7 +23,7 @@ const propsAttrs = {
22
23
 
23
24
  export type PropsAttrs = ExtractPropTypes<typeof propsAttrs>
24
25
 
25
- export default {
26
+ export default defineComponent({
26
27
  props: propsAttrs,
27
28
  emits: [...getEmits()],
28
29
  setup(props: PropsAttrs, { attrs: $attrs, emit, slots, expose }) {
@@ -62,4 +63,4 @@ export default {
62
63
  // 返回渲染函数
63
64
  return () => renderForm()
64
65
  },
65
- }
66
+ })
@@ -0,0 +1,18 @@
1
+ <template>
2
+ <div class="xxx">
3
+
4
+ </div>
5
+ </template>
6
+ <script setup lang="ts">
7
+ import { ref, computed, useAttrs, useSlots, defineModel } from 'vue'
8
+ import { ArrowUpBold } from '@element-plus/icons-vue'
9
+ const props = defineProps({
10
+ formOptions: {
11
+ type: Array,
12
+ default: () => []
13
+ },
14
+ })
15
+ const emit = defineEmits(['search', 'reset', 'close'])
16
+
17
+ </script>
18
+ <style scoped lang="scss"></style>
package/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ // import c from './components/index.ts'
2
+ // export default c
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
- {
2
- "name": "@elementplus-kit/uikit",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "./components/index.js",
6
- "scripts": {
7
- "build": "build",
8
- "publish": "npx standard-version && npm publish"
9
- },
10
- "peerDependencies": {
11
- "element-plus": "^2.0.0",
12
- "vue": "^3.0.0"
13
- },
14
- "keywords": [],
15
- "author": "",
16
- "license": "ISC",
17
- "packageManager": "pnpm@10.15.0"
18
- }
1
+ {
2
+ "name": "@elementplus-kit/uikit",
3
+ "version": "1.0.2",
4
+ "description": "",
5
+ "main": "./components/index.ts",
6
+ "peerDependencies": {
7
+ "element-plus": "^2.0.0",
8
+ "vue": "^3.0.0"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "scripts": {
14
+ "build": "build",
15
+ "pub": "npx standard-version && npm publish"
16
+ }
17
+ }
package/aaaindex.js DELETED
@@ -1,18 +0,0 @@
1
- // 引入封装好的组件
2
- // import kButton from "./k-button/index.vue";
3
- // 将来如果有其它组件,都可以写到这个数组里
4
- // const coms = [kButton];
5
-
6
- // 批量组件注册
7
- const install = function (Vue, options) {
8
- console.log("🚀 ~ install ~ Vue:", Vue);
9
- console.log("插件安装了 ", options);
10
-
11
- coms.forEach((com) => {
12
- console.log("🚀 ~ install ~ com:", com)
13
- Vue.component('k-button', com);
14
- });
15
- };
16
- // 为什么导出为install? 安装 Vue.js 插件。如果插件是一个对象,必须提供 install 方法。
17
- // 如果插件是一个函数,它会被作为install 方法。install 方法调用时,会将 Vue 作为参数传入。
18
- export default install; // 这个方法以后再使用的时候可以被use调用
@@ -1,50 +0,0 @@
1
- // 引入封装好的组件
2
- import CForm from "./form/index.ts";
3
- export * from "./form/index.ts";
4
-
5
- import CTable from "./table/index.ts";
6
- export * from "./table/index.ts";
7
-
8
- import CTable2 from "./table2/index.ts";
9
- export * from "./table2/index.ts";
10
-
11
- import CPagination from "./pagination/index.ts";
12
- export * from "./pagination/index.ts";
13
-
14
- import CDialog from "./dialog/index.ts";
15
- export * from "./dialog/index.ts";
16
-
17
- import CDrawer from "./drawer/index.ts";
18
- export * from "./drawer/index.ts";
19
-
20
- // 将来如果有其它组件,都可以写到这个数组里
21
- const coms = [CForm, CTable, CTable2, CPagination, CDialog, CDrawer];
22
- // 批量组件注册
23
- const install = function (Vue, options = {}) {
24
- // 组件注册配置项
25
- // 1、组件注册通用前缀
26
- // const prefix = 'C'
27
- // 2、各组件props默认值
28
- // const propsDefault = {
29
- // CForm: {
30
- // modelValue: {},
31
- // rules: {},
32
- // },
33
- // }
34
- // 3、功能点功能点
35
-
36
- // console.log("🚀 ~ install ~ Vue:", Vue)
37
- // const { prefix } = options;
38
- // console.log("🚀 ~ install ~ Vue:", Vue);
39
- // console.log("插件安装了 ", options);
40
-
41
- // 循环注册
42
- coms.forEach((item) => {
43
- // const nameL = `${prefix}${item.name}`
44
- // console.log("🚀 ~ install ~ item:", item);
45
- Vue.component(item.name, item.com);
46
- });
47
- };
48
- // 为什么导出为install? 安装 Vue.js 插件。如果插件是一个对象,必须提供 install 方法。
49
- // 如果插件是一个函数,它会被作为install 方法。install 方法调用时,会将 Vue 作为参数传入。
50
- export default install; // 这个方法以后再使用的时候可以被use调用
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes