Skip to content

Commit

Permalink
docs(docs): add sku doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiaofa committed Sep 1, 2023
1 parent 244028e commit 9e03f4c
Show file tree
Hide file tree
Showing 11 changed files with 839 additions and 809 deletions.
2 changes: 1 addition & 1 deletion internal/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"stub": "unbuild --stub"
},
"peerDependencies": {
"vue": "^3.2.47"
"vue": "^3.2.25"
},
"dependencies": {
"@fast-plus/build-constants": "^0.0.1",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"postinstall": "pnpm stub && concurrently \"pnpm gen:version\" \"pnpm run -C internal/metadata dev\""
},
"peerDependencies": {
"vue": "^3.2.47"
"vue": "^3.2.0"
},
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
Expand Down Expand Up @@ -117,7 +117,7 @@
"unplugin-element-plus": "^0.4.1",
"unplugin-vue-macros": "^0.11.2",
"vitest": "^0.32.4",
"vue": "^3.3.4",
"vue": "^3.2.37",
"vue-router": "^4.2.4",
"vue-tsc": "^1.8.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"unpkg": "index.js",
"jsdelivr": "index.js",
"peerDependencies": {
"vue": "^3.2.47"
"vue": "^3.2.0"
},
"types": "index.d.ts",
"sideEffects": false,
Expand Down
12 changes: 4 additions & 8 deletions packages/components/sku/src/sku-stepper.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/*
* @Description:
* @Author: 司马老贼
* @Date: 2023-03-03 17:13:51
* @LastEditTime: 2023-05-21 17:55:16
* @LastEditors: 司马老贼
*/
import { buildProps } from '@fast-plus/utils'

import type { ExtractPropTypes } from 'vue'
Expand All @@ -24,7 +17,10 @@ export const skuStepperProps = buildProps({
type: Number,
default: 1,
},
stock: Number,
stock: {
type: Number,
required: true,
},
disableStepperInput: Boolean,
} as const)

Expand Down
3 changes: 1 addition & 2 deletions packages/components/sku/src/sku-stepper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ defineOptions({
name: 'FSSkuStepper',
})
const ns = useNamespace('sku-stepper')
const props = defineProps(skuStepperProps)
defineEmits(skuStepperEmits)
const ns = useNamespace('sku-stepper')
const { num, min, max, quotaText, onOverLimit } = useSkuStepper(props)
</script>
4 changes: 2 additions & 2 deletions packages/fast-plus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"lib/components/*/style/*"
],
"peerDependencies": {
"vue": "^3.2.47"
"vue": "^3.2.0"
},
"dependencies": {
"@ctrl/tinycolor": "^3.4.1",
Expand All @@ -73,7 +73,7 @@
"devDependencies": {
"@types/node": "*",
"csstype": "^2.6.20",
"vue": "^3.2.47",
"vue": "^3.2.37",
"vue-router": "^4.0.16"
},
"vetur": {
Expand Down
5 changes: 1 addition & 4 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@
"peerDependencies": {
"vue": "^3.2.47"
},
"gitHead": "c69724230befa8fede0e6b9c37fb0b7e39fd7cdd",
"dependencies": {
"vue": "^3.2.47"
}
"gitHead": "c69724230befa8fede0e6b9c37fb0b7e39fd7cdd"
}
5 changes: 1 addition & 4 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"license": "MIT",
"main": "index.ts",
"peerDependencies": {
"vue": "^3.2.47"
},
"dependencies": {
"vue": "^3.2.47"
"vue": "^3.2.0"
}
}
2 changes: 1 addition & 1 deletion play/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.0.6",
"vue": "^3.2.47"
"vue": "^3.2.37"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.3",
Expand Down
7 changes: 0 additions & 7 deletions play/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/*
* @Description:
* @Author: 司马老贼
* @Date: 2023-05-31 12:07:17
* @LastEditTime: 2023-06-04 17:34:56
* @LastEditors: 司马老贼
*/
import path from 'path'
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
Expand Down
Loading

0 comments on commit 9e03f4c

Please sign in to comment.