@kmkf-fe-packages/services-components 0.8.7-alpha.10 → 0.8.7-alpha.9

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.
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare type ShopNameProps = {
3
+ hidden: boolean;
4
+ shopList: any[];
5
+ handleChangeShopId: (val: string) => void;
6
+ disabled: boolean | undefined;
7
+ };
8
+ declare const ShopName: ({ shopList, disabled, handleChangeShopId, hidden }: ShopNameProps) => React.JSX.Element;
9
+ export default ShopName;
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { Form } from 'antd';
3
+ import ShopList from "../ShopList";
4
+ var ShopName = function ShopName(_ref) {
5
+ var shopList = _ref.shopList,
6
+ disabled = _ref.disabled,
7
+ handleChangeShopId = _ref.handleChangeShopId,
8
+ hidden = _ref.hidden;
9
+ return /*#__PURE__*/React.createElement("div", {
10
+ className: "form-item--wrap",
11
+ style: {
12
+ position: 'relative'
13
+ },
14
+ key: 'shopId'
15
+ }, /*#__PURE__*/React.createElement(Form.Item, {
16
+ name: "shopId",
17
+ label: "\u5E97\u94FA\u540D\u79F0",
18
+ className: "form-item-label--index",
19
+ hidden: hidden,
20
+ rules: [{
21
+ required: true,
22
+ message: '请选择店铺名称'
23
+ }]
24
+ }, /*#__PURE__*/React.createElement(ShopList, {
25
+ shopList: shopList,
26
+ disabled: disabled,
27
+ setShopId: handleChangeShopId,
28
+ placeholder: "\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",
29
+ showSearch: true,
30
+ optionFilterProp: "label",
31
+ style: {
32
+ width: '220px'
33
+ }
34
+ })));
35
+ };
36
+ export default ShopName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.8.7-alpha.10",
3
+ "version": "0.8.7-alpha.9",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "d992899a5472446e810465c8273192fc6525296b"
43
+ "gitHead": "b44755b3a04d2f8f387eac071180db6e5f5e4ce4"
44
44
  }